diff options
author | Karl Berry <karl@freefriends.org> | 2022-01-09 21:19:09 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-01-09 21:19:09 +0000 |
commit | fba6bb5ac55c1b9c5cf69dfcbea4dc3ed8958c60 (patch) | |
tree | aa4e4caadf252b2950652212be103a02c6df53f4 /Master/texmf-dist | |
parent | 9836d6892111c19eac0ef7cd79a0dc41135fc4ff (diff) |
biblatex-readbbl (9jan22)
git-svn-id: svn://tug.org/texlive/trunk@61549 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r-- | Master/texmf-dist/doc/latex/biblatex-readbbl/Changes | 1 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/biblatex-readbbl/README | 13 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/biblatex-readbbl/biblatex-readbbl.pdf | bin | 0 -> 25895 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/biblatex-readbbl/biblatex-readbbl.tex | 139 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-readbbl/biblatex-readbbl.sty | 68 |
5 files changed, 221 insertions, 0 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 Binary files differnew file mode 100644 index 00000000000..04d2ec6d120 --- /dev/null +++ b/Master/texmf-dist/doc/latex/biblatex-readbbl/biblatex-readbbl.pdf 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 + |