summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-01-09 21:19:09 +0000
committerKarl Berry <karl@freefriends.org>2022-01-09 21:19:09 +0000
commitfba6bb5ac55c1b9c5cf69dfcbea4dc3ed8958c60 (patch)
treeaa4e4caadf252b2950652212be103a02c6df53f4 /Master
parent9836d6892111c19eac0ef7cd79a0dc41135fc4ff (diff)
biblatex-readbbl (9jan22)
git-svn-id: svn://tug.org/texlive/trunk@61549 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/latex/biblatex-readbbl/Changes1
-rw-r--r--Master/texmf-dist/doc/latex/biblatex-readbbl/README13
-rw-r--r--Master/texmf-dist/doc/latex/biblatex-readbbl/biblatex-readbbl.pdfbin0 -> 25895 bytes
-rw-r--r--Master/texmf-dist/doc/latex/biblatex-readbbl/biblatex-readbbl.tex139
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-readbbl/biblatex-readbbl.sty68
-rwxr-xr-xMaster/tlpkg/bin/tlpkg-ctan-check3
-rwxr-xr-xMaster/tlpkg/libexec/ctan2tds1
-rw-r--r--Master/tlpkg/tlpsrc/biblatex-readbbl.tlpsrc0
-rw-r--r--Master/tlpkg/tlpsrc/collection-bibtexextra.tlpsrc1
9 files changed, 225 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/latex/biblatex-readbbl/Changes b/Master/texmf-dist/doc/latex/biblatex-readbbl/Changes
new file mode 100644
index 00000000000..b916f643762
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/biblatex-readbbl/Changes
@@ -0,0 +1 @@
+v 0.01 2022-01-09 - first CTAN version
diff --git a/Master/texmf-dist/doc/latex/biblatex-readbbl/README b/Master/texmf-dist/doc/latex/biblatex-readbbl/README
new file mode 100644
index 00000000000..d0f77cfebbd
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/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/Master/texmf-dist/doc/latex/biblatex-readbbl/biblatex-readbbl.pdf b/Master/texmf-dist/doc/latex/biblatex-readbbl/biblatex-readbbl.pdf
new file mode 100644
index 00000000000..04d2ec6d120
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/biblatex-readbbl/biblatex-readbbl.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/biblatex-readbbl/biblatex-readbbl.tex b/Master/texmf-dist/doc/latex/biblatex-readbbl/biblatex-readbbl.tex
new file mode 100644
index 00000000000..6dd622b8b4e
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/biblatex-readbbl/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/Master/texmf-dist/tex/latex/biblatex-readbbl/biblatex-readbbl.sty b/Master/texmf-dist/tex/latex/biblatex-readbbl/biblatex-readbbl.sty
new file mode 100644
index 00000000000..0de145ec4ab
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/biblatex-readbbl/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
+
diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check
index e91963346fb..ab4d0f3dd18 100755
--- a/Master/tlpkg/bin/tlpkg-ctan-check
+++ b/Master/tlpkg/bin/tlpkg-ctan-check
@@ -119,7 +119,8 @@ my @TLP_working = qw(
biblatex-nature biblatex-nejm biblatex-nottsclassic
biblatex-opcit-booktitle biblatex-oxref
biblatex-philosophy biblatex-phys biblatex-publist
- biblatex-realauthor biblatex-sbl biblatex-science biblatex-shortfields
+ biblatex-readbbl biblatex-realauthor
+ biblatex-sbl biblatex-science biblatex-shortfields
biblatex-socialscienceshuberlin biblatex-software
biblatex-source-division biblatex-spbasic
biblatex-subseries biblatex-swiss-legal
diff --git a/Master/tlpkg/libexec/ctan2tds b/Master/tlpkg/libexec/ctan2tds
index 27f4b5b2bb7..f7fb6011812 100755
--- a/Master/tlpkg/libexec/ctan2tds
+++ b/Master/tlpkg/libexec/ctan2tds
@@ -209,6 +209,7 @@ chomp (my $ctan_root = `tlpkginfo --ctan-root`);
'biblatex-gost', "&MAKEflatten",
'biblatex-juradiss', "&MAKEflatten",
'biblatex-musuos', "&MAKEflatten",
+ 'biblatex-readbbl', "&MAKEflatten",
'biblatex-spbasic', "&MAKEflatten",
'biblio', "die 'skipping, too big, use beebe'",
'bibtool', "die 'skipping, requires compilation'",
diff --git a/Master/tlpkg/tlpsrc/biblatex-readbbl.tlpsrc b/Master/tlpkg/tlpsrc/biblatex-readbbl.tlpsrc
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/Master/tlpkg/tlpsrc/biblatex-readbbl.tlpsrc
diff --git a/Master/tlpkg/tlpsrc/collection-bibtexextra.tlpsrc b/Master/tlpkg/tlpsrc/collection-bibtexextra.tlpsrc
index 02f6265ea26..fc56d7d69b4 100644
--- a/Master/tlpkg/tlpsrc/collection-bibtexextra.tlpsrc
+++ b/Master/tlpkg/tlpsrc/collection-bibtexextra.tlpsrc
@@ -70,6 +70,7 @@ depend biblatex-oxref
depend biblatex-philosophy
depend biblatex-phys
depend biblatex-publist
+depend biblatex-readbbl
depend biblatex-realauthor
depend biblatex-sbl
depend biblatex-science