texlive[60890] Master/texmf-dist: biblatex2bibitem (29oct21)

commits+karl at tug.org commits+karl at tug.org
Fri Oct 29 23:31:55 CEST 2021


Revision: 60890
          http://tug.org/svn/texlive?view=revision&revision=60890
Author:   karl
Date:     2021-10-29 23:31:54 +0200 (Fri, 29 Oct 2021)
Log Message:
-----------
biblatex2bibitem (29oct21)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/README.md
    trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-examples.bib
    trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-mwe.pdf
    trunk/Master/texmf-dist/tex/latex/biblatex2bibitem/biblatex2bibitem.sty

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-hyperref-result.pdf
    trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-hyperref-result.tex
    trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-hyperref.pdf
    trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-hyperref.tex
    trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-mwe-result.pdf
    trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-mwe-result.tex
    trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-new-result.pdf
    trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-new.pdf

Modified: trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/README.md	2021-10-29 21:31:33 UTC (rev 60889)
+++ trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/README.md	2021-10-29 21:31:54 UTC (rev 60890)
@@ -24,7 +24,8 @@
 The desired `bibitem`s will be written directly to the PDF file.
 
 When it's time to switch to `bibitem`s (e.g. before sending the paper to the journal),
-just copy them to the to your `.tex` file, remove `biblatex` commands and load `cite` package.
+just copy them directly from the pdf into  your `.tex` file, remove
+`biblatex` commands and (probably) load the `cite` package.
 
 ### Disclaimer
 
@@ -59,10 +60,10 @@
 
 ### `bibitem` separators
 
-By default, generated `bibitem`s are separated by a line with a percent sign on it to make the readng of the cde easier.
+By default, generated `bibitem`s are separated by a line with an empty pair of curly braces on it to make the reading of the code easier.
 You can tweak this by e.g.
 ```latex
-\renewcommand{\printgeneratedbibitemseparator}{\ttfamily\%\\}
+\renewcommand{\printgeneratedbibitemseparator}{\ttfamily\{\}\\}
 ```
 (for putting all the `bibitem`s into monotype font) or e.g.
 ```latex
@@ -78,6 +79,7 @@
 
 + `\print at end@thebibliography`   - default: `\textbackslash   end\{thebibliography\}      `
 
++ `\print at bibitem@command`       - default: `\textbackslash bibitem`
 
 ## See also
 

Modified: trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-examples.bib
===================================================================
--- trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-examples.bib	2021-10-29 21:31:33 UTC (rev 60889)
+++ trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-examples.bib	2021-10-29 21:31:54 UTC (rev 60890)
@@ -2,7 +2,7 @@
   title={On a question\relax ~of Erd\H{o}s and Ulam},
   author={Solymosi, Jozsef and De Zeeuw, Frank},
   archivePrefix = {arXiv},
-  eprint = {0806.3095},
+  eprint = {0806.3095_},
   journal={Discrete \& Computational Geometry},
   volume={43},
   number={2},
@@ -9,6 +9,7 @@
   pages={393--401},
   year={2010},
   publisher={Springer},
+  url={https://example.com/@рус_},
 }
 
 @article{halbeisen2019geometric,

Added: trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-hyperref-result.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-hyperref-result.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-hyperref-result.pdf	2021-10-29 21:31:33 UTC (rev 60889)
+++ trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-hyperref-result.pdf	2021-10-29 21:31:54 UTC (rev 60890)

Property changes on: trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-hyperref-result.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-hyperref-result.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-hyperref-result.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-hyperref-result.tex	2021-10-29 21:31:54 UTC (rev 60890)
@@ -0,0 +1,80 @@
+\documentclass[british]{article}
+\usepackage[T1]{fontenc}
+\usepackage[utf8]{inputenc}
+\usepackage{babel}
+\usepackage{csquotes}
+
+\usepackage{amssymb} % Just for \mathbb
+
+
+\usepackage{xcolor}
+\usepackage[colorlinks]{hyperref}
+\makeatletter
+\Hy at AtBeginDocument{%
+  \def\@pdfborder{0 0 1}% Overrides border definition set with colorlinks=true
+  \def\@pdfborderstyle{/S/U/W 1}% Overrides border style set with colorlinks=true
+                                % Hyperlink border style will be underline of width 1pt
+}
+\makeatother
+\hypersetup{%
+  colorlinks=true,% hyperlinks will be coloured
+  linkcolor=blue,% hyperlink text will be blue
+  urlcolor=blue,% hyperlink text will be blue
+  linkbordercolor=red,% hyperlink border will be red
+  urlbordercolor=red,% hyperlink border will be red
+}
+
+%%\usepackage[backend=biber,style=alphabetic,citestyle=alphabetic,backref]{biblatex}
+%%\addbibresource{biblatex-examples.bib}
+%%\addbibresource{biblatex2bibitem-examples.bib}
+
+%%\usepackage{biblatex2bibitem}
+\usepackage{cite}
+
+\begin{document}
+\cite{sigfridsson,knuth:ct:e}.
+
+See also \cite{solymosi2010question,halbeisen2019geometric,Kohnert2006IntegralPS}.
+
+\newpage
+
+\begin{thebibliography}{99}
+{}
+\bibitem{halbeisen2019geometric}
+Lorenz Halbeisen and Norbert Hungerbühler. ‘A geometric
+representation of integral solutions of $x^2+ xy+ y^2= m^2$’. In:
+\emph{Quaestiones Mathematicae} (2019), pp. 1–15 (cit. on
+p. \hyperlink {page.1} {1}).
+{}
+\bibitem{Kohnert2006IntegralPS}
+Axel Kohnert and Sascha Kurz. ‘Integral point sets over {$\mathbb
+{Z}^m_n$}’. In: \emph{Discrete Applied Mathematics} 157 (2006),
+pp. 2105–2117 (cit. on p. \hyperlink {page.1} {1}).
+{}
+\bibitem{knuth:ct:e}
+Donald E. Knuth. \emph{Computers \& Typesetting}. Vol. E:
+\emph{{Computer Modern} Typefaces}. Reading, Mass.:
+Addison-Wesley, 1986 (cit. on p. \hyperlink {page.1} {1}).{}
+\bibitem{solymosi2010question}
+Jozsef Solymosi and Frank De Zeeuw. ‘On a question\relax ~of Erdős
+and Ulam’. In: \emph{Discrete \& Computational Geometry} 43.2
+(2010), pp. 393–401. arXiv: \href {http://arxiv.org/abs/0806.3095_}
+{\nolinkurl {0806.3095_}}. \textsc{url}: \url
+{https://example.com/@%D1%80%D1%83%D1%81_} (cit. on
+p. \hyperlink {page.1} {1}).
+{}
+\bibitem{sigfridsson}
+Emma Sigfridsson and Ulf Ryde. ‘Comparison of methods for deriving
+atomic charges from the electrostatic potential and moments’. In:
+\emph{Journal of Computational Chemistry} 19.4 (1998), pp. 377–395.
+\textsc{doi}: \href
+{https://doi.org/10.1002/(SICI)1096-987X(199803)19:4<377::AID-JCC1>3.0.CO;2-P}
+{\nolinkurl
+{10.1002/(SICI)1096-987X(199803)19:4<377::AID-JCC1>3.0.CO;2-P}}
+(cit. on p. \hyperlink {page.1} {1}).
+\end{thebibliography}
+
+%%\printbibliography
+%%\printbibitembibliography
+
+\end{document}


Property changes on: trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-hyperref-result.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-hyperref.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-hyperref.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-hyperref.pdf	2021-10-29 21:31:33 UTC (rev 60889)
+++ trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-hyperref.pdf	2021-10-29 21:31:54 UTC (rev 60890)

Property changes on: trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-hyperref.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-hyperref.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-hyperref.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-hyperref.tex	2021-10-29 21:31:54 UTC (rev 60890)
@@ -0,0 +1,43 @@
+\documentclass[british]{article}
+\usepackage[T1]{fontenc}
+\usepackage[utf8]{inputenc}
+\usepackage{babel}
+\usepackage{csquotes}
+
+\usepackage{amssymb} % Just for \mathbb
+
+
+\usepackage{xcolor}
+\usepackage[colorlinks]{hyperref}
+\makeatletter
+\Hy at AtBeginDocument{%
+  \def\@pdfborder{0 0 1}% Overrides border definition set with colorlinks=true
+  \def\@pdfborderstyle{/S/U/W 1}% Overrides border style set with colorlinks=true
+                                % Hyperlink border style will be underline of width 1pt
+}
+\makeatother
+\hypersetup{%
+  colorlinks=true,% hyperlinks will be coloured
+  linkcolor=blue,% hyperlink text will be blue
+  urlcolor=blue,% hyperlink text will be blue
+  linkbordercolor=red,% hyperlink border will be red
+  urlbordercolor=red,% hyperlink border will be red
+}
+
+\usepackage[backend=biber,style=alphabetic,citestyle=alphabetic,backref]{biblatex}
+\addbibresource{biblatex-examples.bib}
+\addbibresource{biblatex2bibitem-examples.bib}
+
+\usepackage{biblatex2bibitem}
+
+\begin{document}
+\cite{sigfridsson,knuth:ct:e}.
+
+See also \cite{solymosi2010question,halbeisen2019geometric,Kohnert2006IntegralPS}.
+
+\newpage
+
+\printbibliography
+
+\printbibitembibliography
+\end{document}


Property changes on: trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-hyperref.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-mwe-result.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-mwe-result.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-mwe-result.pdf	2021-10-29 21:31:33 UTC (rev 60889)
+++ trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-mwe-result.pdf	2021-10-29 21:31:54 UTC (rev 60890)

Property changes on: trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-mwe-result.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-mwe-result.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-mwe-result.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-mwe-result.tex	2021-10-29 21:31:54 UTC (rev 60890)
@@ -0,0 +1,60 @@
+\documentclass[british]{article}
+\usepackage[T1]{fontenc}
+\usepackage[utf8]{inputenc}
+\usepackage{babel}
+\usepackage{csquotes}
+
+%These two are needed because biblatex provides \nolinkurl and \url
+\usepackage{url}
+\providecommand*{\nolinkurl}{\url}
+
+\usepackage{amssymb} % Just for \mathbb
+\usepackage{cite}
+%% \usepackage[style=numeric, backend=biber]{biblatex}
+%% \usepackage{biblatex2bibitem}
+%%
+%% \addbibresource{biblatex-examples.bib}
+%%
+%% \addbibresource{biblatex2bibitem-examples.bib}
+
+\begin{document}
+\cite{sigfridsson,knuth:ct:e}.
+
+See also \cite{solymosi2010question,halbeisen2019geometric,Kohnert2006IntegralPS}.
+
+\begin{thebibliography}{99}
+{}
+\bibitem{halbeisen2019geometric}
+Lorenz Halbeisen and Norbert Hungerbühler. ‘A geometric
+representation of integral solutions of $x^2+ xy+ y^2= m^2$’. In:
+\emph{Quaestiones Mathematicae} (2019), pp. 1–15.
+{}
+\bibitem{knuth:ct:e}
+Donald E. Knuth. \emph{Computers \& Typesetting}. Vol. E:
+\emph{{Computer Modern} Typefaces}. Reading, Mass.:
+Addison-Wesley, 1986.
+{}
+\bibitem{Kohnert2006IntegralPS}
+Axel Kohnert and Sascha Kurz. ‘Integral point sets over {$\mathbb
+{Z}^m_n$}’. In: \emph{Discrete Applied Mathematics} 157 (2006),
+pp. 2105–2117.
+{}
+\bibitem{sigfridsson}
+
+Emma Sigfridsson and Ulf Ryde. ‘Comparison of methods for deriving
+atomic charges from the electrostatic potential and moments’. In:
+\emph{Journal of Computational Chemistry} 19.4 (1998), pp. 377–395.
+\textsc{doi}: \nolinkurl
+{10.1002/(SICI)1096-987X(199803)19:4<377::AID-JCC1>3.0.CO;2-P}.
+{}
+\bibitem{solymosi2010question}
+Jozsef Solymosi and Frank De Zeeuw. ‘On a question\relax ~of Erdős
+and Ulam’. In: \emph{Discrete \& Computational Geometry} 43.2
+(2010), pp. 393–401. arXiv: \nolinkurl {0806.3095_}. \textsc{url}: \url
+{https://example.com/@%D1%80%D1%83%D1%81_}.
+\end{thebibliography}
+
+%% \printbibliography
+%%
+%% \printbibitembibliography
+\end{document}


Property changes on: trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-mwe-result.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-mwe.pdf
===================================================================
(Binary files differ)

Added: trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-new-result.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-new-result.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-new-result.pdf	2021-10-29 21:31:33 UTC (rev 60889)
+++ trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-new-result.pdf	2021-10-29 21:31:54 UTC (rev 60890)

Property changes on: trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-new-result.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-new.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-new.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-new.pdf	2021-10-29 21:31:33 UTC (rev 60889)
+++ trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-new.pdf	2021-10-29 21:31:54 UTC (rev 60890)

Property changes on: trunk/Master/texmf-dist/doc/latex/biblatex2bibitem/biblatex2bibitem-new.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Modified: trunk/Master/texmf-dist/tex/latex/biblatex2bibitem/biblatex2bibitem.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/biblatex2bibitem/biblatex2bibitem.sty	2021-10-29 21:31:33 UTC (rev 60889)
+++ trunk/Master/texmf-dist/tex/latex/biblatex2bibitem/biblatex2bibitem.sty	2021-10-29 21:31:54 UTC (rev 60890)
@@ -1,5 +1,5 @@
 % 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
@@ -6,20 +6,22 @@
 %
 %% 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 at begin@thebibliography}{\textbackslash begin\{thebibliography\}\{99\}}
 \newcommand{\print at end@thebibliography  }{\textbackslash   end\{thebibliography\}      }
 
+\newcommand{\print at bibitem@command}{\textbackslash bibitem}
 
+
 \defbibenvironment{bibitembibliography}
   {
    % Page numbers and page headings are not wanted when copying
@@ -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 at bibitem@command\{\printfield{entrykey}\}\\}
 
 \newcommand{\utffriendlydetokenize}[1]{%
 \scantokens{%



More information about the tex-live-commits mailing list.