summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-10-29 21:31:54 +0000
committerKarl Berry <karl@freefriends.org>2021-10-29 21:31:54 +0000
commit61fd3fe3e0d6f4d7f75285509318883de37ade37 (patch)
tree02dadd8ee8affe1755fad1a07440f00734a1cc05 /Master/texmf-dist/tex/latex
parent53fa86c1a99996fb63aa77b0c01079910dd56bca (diff)
biblatex2bibitem (29oct21)
git-svn-id: svn://tug.org/texlive/trunk@60890 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex2bibitem/biblatex2bibitem.sty26
1 files changed, 20 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex2bibitem/biblatex2bibitem.sty b/Master/texmf-dist/tex/latex/biblatex2bibitem/biblatex2bibitem.sty
index 6065032d98b..1099f7728cc 100644
--- a/Master/texmf-dist/tex/latex/biblatex2bibitem/biblatex2bibitem.sty
+++ b/Master/texmf-dist/tex/latex/biblatex2bibitem/biblatex2bibitem.sty
@@ -1,24 +1,26 @@
% A workaround to convert biblatex-generated bibliography to bibitems
-%
+%
% (c) Nikolai Avdeev aka @nickkolok, and @odomanov
%
% See also https://github.com/odomanov/biblatex-gost/issues/20
%
%% This program can be redistributed and/or modified under the terms
%% of the LaTeX Project Public License Distributed from CTAN archives
-%% in directory macros/latex/base/lppl.txt.
-%
+%% https://ctan.org/license/lppl1.3c
+%
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\ProvidesPackage{biblatex2bibitem}
- [2020/03/03 v0.2.0 LaTeX package to convert biblatex-generated bibliography to bibitem commands]
+ [2021/10/26 v0.2.1 LaTeX package to convert biblatex-generated bibliography to bibitem commands]
\RequirePackage{biblatex}
-\newcommand{\printgeneratedbibitemseparator}{\%\\}
+\newcommand{\printgeneratedbibitemseparator}{\{\}\\}
\newcommand{\print@begin@thebibliography}{\textbackslash begin\{thebibliography\}\{99\}}
\newcommand{\print@end@thebibliography }{\textbackslash end\{thebibliography\} }
+\newcommand{\print@bibitem@command}{\textbackslash bibitem}
+
\defbibenvironment{bibitembibliography}
{
@@ -38,6 +40,18 @@
\renewcommand*{\textsc}[1]{\textbackslash textsc\{##1\}}%
\renewcommand*{\emph}[1]{\textbackslash emph\{##1\}}%
%
+ \providecommand*{\nolinkurl}{\url}
+ \renewcommand*{\nolinkurl}[1]{\textbackslash nolinkurl \{##1\}}%
+ \renewcommand*{\url}[1]{\textbackslash url \{##1\}}%
+ %
+ \ifcsname href\endcsname% Sometimes it is not defined
+ \renewcommand*{\href}[2]{\textbackslash href \{##1\} \{##2\}}%
+ \fi
+ %
+ \ifcsname hyperlink\endcsname% Sometimes it is not defined
+ \renewcommand*{\hyperlink}[2]{\textbackslash hyperlink \{##1\} \{##2\}}%
+ \fi
+ %
\renewcommand*{\mkbibemph}[1]{\textbackslash emph\{##1\}}%
\renewcommand*{\mkbibitalic}[1]{\textbackslash textit\{##1\}}%
\renewcommand*{\mkbibbold}[1]{\textbackslash textbf\{##1\}}%
@@ -49,7 +63,7 @@
\thispagestyle{empty}
\pagestyle{empty}
}
- {\item\printgeneratedbibitemseparator\textbackslash bibitem\{\printfield{entrykey}\}\\}
+ {\item\printgeneratedbibitemseparator\print@bibitem@command\{\printfield{entrykey}\}\\}
\newcommand{\utffriendlydetokenize}[1]{%
\scantokens{%