summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/biblatex-contrib
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-01-10 03:02:56 +0000
committerNorbert Preining <norbert@preining.info>2022-01-10 03:02:56 +0000
commitd50bfeb7feb32d585a89393c364ef5f9e1b915d0 (patch)
treee6d64ce9f2cb129a6c6d974ebd29251a13cba8d7 /macros/latex/contrib/biblatex-contrib
parentfbacb8167ccd172bb0b177974778f228ad41691d (diff)
CTAN sync 202201100302
Diffstat (limited to 'macros/latex/contrib/biblatex-contrib')
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-readbbl/Changes1
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-readbbl/README13
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-readbbl/doc/biblatex-readbbl.pdfbin0 -> 25895 bytes
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-readbbl/doc/biblatex-readbbl.tex139
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-readbbl/doc/demo.bbl86
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-readbbl/latex/biblatex-readbbl.sty68
6 files changed, 307 insertions, 0 deletions
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-readbbl/Changes b/macros/latex/contrib/biblatex-contrib/biblatex-readbbl/Changes
new file mode 100644
index 0000000000..b916f64376
--- /dev/null
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-readbbl/Changes
@@ -0,0 +1 @@
+v 0.01 2022-01-09 - first CTAN version
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-readbbl/README b/macros/latex/contrib/biblatex-contrib/biblatex-readbbl/README
new file mode 100644
index 0000000000..d0f77cfebb
--- /dev/null
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-readbbl/README
@@ -0,0 +1,13 @@
+biblatex-readbbl
+
+This small package modifies the macro of biblatex
+which reads a by Biber created bbl file. It is
+now possible to include a created bbl file with
+the filecontents macro into the main document
+and send it to a publisher who do not need to run
+the program biber.
+
+However, if the bibliography changes one has to
+create a new bbl file.
+
+hvoss@tug.org 2022-01-09 \ No newline at end of file
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-readbbl/doc/biblatex-readbbl.pdf b/macros/latex/contrib/biblatex-contrib/biblatex-readbbl/doc/biblatex-readbbl.pdf
new file mode 100644
index 0000000000..04d2ec6d12
--- /dev/null
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-readbbl/doc/biblatex-readbbl.pdf
Binary files differ
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-readbbl/doc/biblatex-readbbl.tex b/macros/latex/contrib/biblatex-contrib/biblatex-readbbl/doc/biblatex-readbbl.tex
new file mode 100644
index 0000000000..6dd622b8b4
--- /dev/null
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-readbbl/doc/biblatex-readbbl.tex
@@ -0,0 +1,139 @@
+\documentclass{article}
+\usepackage{libertinus}
+\usepackage[english]{babel}
+
+\makeatletter
+\begin{filecontents}[force,noheader]{\jobname.bbl}
+ %%%% Start erzeugte Datei \jobname.bbl %%%%
+\refsection{0}
+ \datalist[entry]{nyt/global//global/global}
+ \entry{bertram}{article}{}
+ \name{author}{2}{}{%
+ {{un=0,uniquepart=base,hash=8a5b475249c01d8aa99f2275128c1037}{%
+ family={Bertram},
+ familyi={B\bibinitperiod},
+ given={Aaron},
+ giveni={A\bibinitperiod},
+ givenun=0}}%
+ {{un=0,uniquepart=base,hash=60f0568f0258e96055aef41b438ecbd2}{%
+ family={Wentworth},
+ familyi={W\bibinitperiod},
+ given={Richard},
+ giveni={R\bibinitperiod},
+ givenun=0}}%
+ }
+ \strng{namehash}{4be7c21774d86b9e1f65ca280181467e}
+ \strng{fullhash}{4be7c21774d86b9e1f65ca280181467e}
+ \strng{bibnamehash}{4be7c21774d86b9e1f65ca280181467e}
+ \strng{authorbibnamehash}{4be7c21774d86b9e1f65ca280181467e}
+ \strng{authornamehash}{4be7c21774d86b9e1f65ca280181467e}
+ \strng{authorfullhash}{4be7c21774d86b9e1f65ca280181467e}
+ \field{sortinit}{B}
+ \field{sortinithash}{d7095fff47cda75ca2589920aae98399}
+ \field{extradatescope}{labelyear}
+ \field{labeldatesource}{}
+ \field{labelnamesource}{author}
+ \field{labeltitlesource}{shorttitle}
+ \field{annotation}{An \texttt{article} entry with a \texttt{volume} and a \texttt{number} field}
+ \field{journaltitle}{J.~Amer. Math. Soc.}
+ \field{langid}{american}
+ \field{number}{2}
+ \field{shorttitle}{Gromov invariants}
+ \field{title}{Gromov invariants for holomorphic maps on Riemann surfaces}
+ \field{volume}{9}
+ \field{year}{1996}
+ \field{dateera}{ce}
+ \field{pages}{529\bibrangedash 571}
+ \range{pages}{43}
+ \endentry
+ \entry{markey}{online}{}
+ \name{author}{1}{}{%
+ {{un=0,uniquepart=base,hash=9b9d49a73a3e877cd87f4aa91604d8d6}{%
+ family={Markey},
+ familyi={M\bibinitperiod},
+ given={Nicolas},
+ giveni={N\bibinitperiod},
+ givenun=0}}%
+ }
+ \strng{namehash}{9b9d49a73a3e877cd87f4aa91604d8d6}
+ \strng{fullhash}{9b9d49a73a3e877cd87f4aa91604d8d6}
+ \strng{bibnamehash}{9b9d49a73a3e877cd87f4aa91604d8d6}
+ \strng{authorbibnamehash}{9b9d49a73a3e877cd87f4aa91604d8d6}
+ \strng{authornamehash}{9b9d49a73a3e877cd87f4aa91604d8d6}
+ \strng{authorfullhash}{9b9d49a73a3e877cd87f4aa91604d8d6}
+ \field{sortinit}{M}
+ \field{sortinithash}{4625c616857f13d17ce56f7d4f97d451}
+ \field{extradatescope}{labelyear}
+ \field{labeldatesource}{}
+ \field{labelnamesource}{author}
+ \field{labeltitlesource}{title}
+ \field{annotation}{An \texttt{online} entry for a tutorial. Note the format of the \texttt{date} field (\texttt{yyyy-mm-dd}) in the database file.}
+ \field{day}{16}
+ \field{langid}{american}
+ \field{month}{10}
+ \field{subtitle}{The B to X of BibTeX}
+ \field{title}{Tame the BeaST}
+ \field{urlday}{1}
+ \field{urlmonth}{10}
+ \field{urlyear}{2006}
+ \field{version}{1.3}
+ \field{year}{2005}
+ \field{dateera}{ce}
+ \field{urldateera}{ce}
+ \verb{urlraw}
+ \verb http://mirror.ctan.org/info/bibtex/tamethebeast/ttb_en.pdf
+ \endverb
+ \verb{url}
+ \verb http://mirror.ctan.org/info/bibtex/tamethebeast/ttb_en.pdf
+ \endverb
+ \endentry
+ \enddatalist
+\endrefsection
+ %%%% Ende erzeugte Datei \jobname.bbl %%%%
+\end{filecontents}
+\makeatother
+
+\usepackage[colorlinks]{hyperref}
+\usepackage{csquotes}
+\usepackage[style=authoryear,maxbibnames=99]{biblatex}
+
+\usepackage%[bblfile=demo]
+ {biblatex-readbbl}
+
+\title{Creating a bibliography with package \texttt{biblatex}
+and a given \texttt{.bbl} file and without an additional \texttt{biber} run.}
+\author{Herbert Voß}
+
+\begin{document}
+\maketitle
+\section{Introduction}
+Often publishers do want to use a bibliography created by biber. The problem
+is that they often do not trust external programs which they do not use.
+By default \texttt{biblatex} cannot simply read the by biber created \texttt{.bbl} file.
+
+This package modifies the macro for reading the file, so that publishers
+need only the package \texttt{biblatex} and \texttt{biblatex-readbbl}.
+An existing \texttt{.bbl} file can be insert into the main dococument and then created on-the-fly by the filecontents environment
+(look into the documents source for an example).
+
+This package uses by default the macro \verb|\jobname| as main file name
+for the bibliography (.bbl file). You can read another file by passing
+the file name via the optional argument:
+
+\begin{verbatim}
+\usepackage[colorlinks]{hyperref}
+\usepackage[style=authoryear,maxbibnames=99]{biblatex}
+\usepackage[bblfile=demo]{biblatex-readbbl}
+\end{verbatim}
+
+In this case the file \verb|demo.bbl| is used.
+
+
+\section{Example}
+The example is created without an additional biber run.
+
+
+
+Ein Verweis auf \textcite{bertram}.~\parencite{markey}\par
+\printbibliography
+\end{document}
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-readbbl/doc/demo.bbl b/macros/latex/contrib/biblatex-contrib/biblatex-readbbl/doc/demo.bbl
new file mode 100644
index 0000000000..3e8616f4b8
--- /dev/null
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-readbbl/doc/demo.bbl
@@ -0,0 +1,86 @@
+ %%%% Start erzeugte Datei \jobname.bbl %%%%
+\refsection{0}
+ \datalist[entry]{nyt/global//global/global}
+ \entry{bertram}{article}{}
+ \name{author}{2}{}{%
+ {{un=0,uniquepart=base,hash=8a5b475249c01d8aa99f2275128c1037}{%
+ family={Bertram},
+ familyi={B\bibinitperiod},
+ given={Aaron},
+ giveni={A\bibinitperiod},
+ givenun=0}}%
+ {{un=0,uniquepart=base,hash=60f0568f0258e96055aef41b438ecbd2}{%
+ family={Wentworth},
+ familyi={W\bibinitperiod},
+ given={Richard},
+ giveni={R\bibinitperiod},
+ givenun=0}}%
+ }
+ \strng{namehash}{4be7c21774d86b9e1f65ca280181467e}
+ \strng{fullhash}{4be7c21774d86b9e1f65ca280181467e}
+ \strng{bibnamehash}{4be7c21774d86b9e1f65ca280181467e}
+ \strng{authorbibnamehash}{4be7c21774d86b9e1f65ca280181467e}
+ \strng{authornamehash}{4be7c21774d86b9e1f65ca280181467e}
+ \strng{authorfullhash}{4be7c21774d86b9e1f65ca280181467e}
+ \field{sortinit}{B}
+ \field{sortinithash}{d7095fff47cda75ca2589920aae98399}
+ \field{extradatescope}{labelyear}
+ \field{labeldatesource}{}
+ \field{labelnamesource}{author}
+ \field{labeltitlesource}{shorttitle}
+ \field{annotation}{An \texttt{article} entry with a \texttt{volume} and a \texttt{number} field}
+ \field{journaltitle}{J.~Amer. Math. Soc.}
+ \field{langid}{american}
+ \field{number}{2}
+ \field{shorttitle}{Gromov invariants}
+ \field{title}{Gromov invariants for holomorphic maps on Riemann surfaces}
+ \field{volume}{9}
+ \field{year}{1996}
+ \field{dateera}{ce}
+ \field{pages}{529\bibrangedash 571}
+ \range{pages}{43}
+ \endentry
+ \entry{markey}{online}{}
+ \name{author}{1}{}{%
+ {{un=0,uniquepart=base,hash=9b9d49a73a3e877cd87f4aa91604d8d6}{%
+ family={Markey},
+ familyi={M\bibinitperiod},
+ given={Nicolas},
+ giveni={N\bibinitperiod},
+ givenun=0}}%
+ }
+ \strng{namehash}{9b9d49a73a3e877cd87f4aa91604d8d6}
+ \strng{fullhash}{9b9d49a73a3e877cd87f4aa91604d8d6}
+ \strng{bibnamehash}{9b9d49a73a3e877cd87f4aa91604d8d6}
+ \strng{authorbibnamehash}{9b9d49a73a3e877cd87f4aa91604d8d6}
+ \strng{authornamehash}{9b9d49a73a3e877cd87f4aa91604d8d6}
+ \strng{authorfullhash}{9b9d49a73a3e877cd87f4aa91604d8d6}
+ \field{sortinit}{M}
+ \field{sortinithash}{4625c616857f13d17ce56f7d4f97d451}
+ \field{extradatescope}{labelyear}
+ \field{labeldatesource}{}
+ \field{labelnamesource}{author}
+ \field{labeltitlesource}{title}
+ \field{annotation}{An \texttt{online} entry for a tutorial. Note the format of the \texttt{date} field (\texttt{yyyy-mm-dd}) in the database file.}
+ \field{day}{16}
+ \field{langid}{american}
+ \field{month}{10}
+ \field{subtitle}{The B to X of BibTeX}
+ \field{title}{Tame the BeaST}
+ \field{urlday}{1}
+ \field{urlmonth}{10}
+ \field{urlyear}{2006}
+ \field{version}{1.3}
+ \field{year}{2005}
+ \field{dateera}{ce}
+ \field{urldateera}{ce}
+ \verb{urlraw}
+ \verb http://mirror.ctan.org/info/bibtex/tamethebeast/ttb_en.pdf
+ \endverb
+ \verb{url}
+ \verb http://mirror.ctan.org/info/bibtex/tamethebeast/ttb_en.pdf
+ \endverb
+ \endentry
+ \enddatalist
+\endrefsection
+ %%%% Ende erzeugte Datei \jobname.bbl %%%%
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-readbbl/latex/biblatex-readbbl.sty b/macros/latex/contrib/biblatex-contrib/biblatex-readbbl/latex/biblatex-readbbl.sty
new file mode 100644
index 0000000000..0de145ec4a
--- /dev/null
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-readbbl/latex/biblatex-readbbl.sty
@@ -0,0 +1,68 @@
+%% $Id: biblatex-readbbl.sty 401 2022-01-09 14:16:40Z herbert $
+%%
+%% This is file `biblatex-readbbl.sty',
+%%
+%% IMPORTANT NOTICE:
+%%
+%% (C) Herbert Voss <hvoss _at_ tug.org>, 2020
+%%
+%% 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.
+%%
+%% DESCRIPTION:
+%% `biblatex-readbbl' is a package for reading a bbl file created by biber
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{biblatex-readbbl}[2022/01/09 v 0.01 read bbl file]
+\RequirePackage{xkeyval}
+
+\def\bbl@read@file{}
+\DeclareOptionX{bblfile}{\def\bbl@read@file{#1}}
+\ProcessOptionsX\relax
+%
+\begingroup
+%% Convert \verb sections like:
+% \verb{urlraw}
+% \verb http://mirror.ctan.org/info/bibtex/tamethebeast/ttb_en.pdf
+% \endverb
+% \verb{url}
+% \verb http://mirror.ctan.org/info/bibtex/tamethebeast/ttb_en.pdf
+% \endverb
+%%
+%% into
+%
+% \field{urlraw}{http://mirror.ctan.org/info/bibtex/tamethebeast/ttb_en.pdf}
+% \field{url}{http://mirror.ctan.org/info/bibtex/tamethebeast/ttb_en.pdf}
+%
+%\def\verb#1 \noexpand#2 #3\endverb{\field{#1}{#3}}
+%
+
+\expandafter\ifx\expandafter\relax\bbl@read@file\relax
+ \gdef\bbl@read@file{\jobname}%
+\fi
+
+%\typeout{>>>>> Read bbl file: \bbl@read@file}
+
+\gdef\blx@bblfile{%
+ \blx@secinit
+ \begingroup
+ \blx@bblstart
+%%%% Start erzeugte Datei \jobname.bbl %%%%
+%
+\IfFileExists{\bbl@read@file.bbl}{\input{\bbl@read@file.bbl}}{\typeout{!!File \bbl@read@file.bbl does not exist!!!}}
+%
+%%%% Ende erzeugte Datei \jobname.bbl %%%%
+ \global\toggletrue{blx@bbldone}%
+ \blx@generate@bbl@mdfivesum@found{\jobname.bbl}
+ \blx@bblend
+ \endgroup
+ % Check if Biber rerun was not carried out.
+ % If so, ask for it again.
+% \blx@check@bbl@rerun@mdfivesum
+ % global sorting as this is called at BeginDocument
+ \csnumgdef{blx@labelnumber@\the\c@refsection}{0}%
+}
+
+\endgroup
+