texlive[61549] Master: biblatex-readbbl (9jan22)

commits+karl at tug.org commits+karl at tug.org
Sun Jan 9 22:19:09 CET 2022


Revision: 61549
          http://tug.org/svn/texlive?view=revision&revision=61549
Author:   karl
Date:     2022-01-09 22:19:09 +0100 (Sun, 09 Jan 2022)
Log Message:
-----------
biblatex-readbbl (9jan22)

Modified Paths:
--------------
    trunk/Master/tlpkg/bin/tlpkg-ctan-check
    trunk/Master/tlpkg/libexec/ctan2tds
    trunk/Master/tlpkg/tlpsrc/collection-bibtexextra.tlpsrc

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/biblatex-readbbl/
    trunk/Master/texmf-dist/doc/latex/biblatex-readbbl/Changes
    trunk/Master/texmf-dist/doc/latex/biblatex-readbbl/README
    trunk/Master/texmf-dist/doc/latex/biblatex-readbbl/biblatex-readbbl.pdf
    trunk/Master/texmf-dist/doc/latex/biblatex-readbbl/biblatex-readbbl.tex
    trunk/Master/texmf-dist/tex/latex/biblatex-readbbl/
    trunk/Master/texmf-dist/tex/latex/biblatex-readbbl/biblatex-readbbl.sty
    trunk/Master/tlpkg/tlpsrc/biblatex-readbbl.tlpsrc

Added: trunk/Master/texmf-dist/doc/latex/biblatex-readbbl/Changes
===================================================================
--- trunk/Master/texmf-dist/doc/latex/biblatex-readbbl/Changes	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/biblatex-readbbl/Changes	2022-01-09 21:19:09 UTC (rev 61549)
@@ -0,0 +1 @@
+v 0.01  2022-01-09  - first CTAN version

Added: trunk/Master/texmf-dist/doc/latex/biblatex-readbbl/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/biblatex-readbbl/README	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/biblatex-readbbl/README	2022-01-09 21:19:09 UTC (rev 61549)
@@ -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 at tug.org   2022-01-09
\ No newline at end of file


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

Index: trunk/Master/texmf-dist/doc/latex/biblatex-readbbl/biblatex-readbbl.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/biblatex-readbbl/biblatex-readbbl.pdf	2022-01-09 21:17:59 UTC (rev 61548)
+++ trunk/Master/texmf-dist/doc/latex/biblatex-readbbl/biblatex-readbbl.pdf	2022-01-09 21:19:09 UTC (rev 61549)

Property changes on: trunk/Master/texmf-dist/doc/latex/biblatex-readbbl/biblatex-readbbl.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/biblatex-readbbl/biblatex-readbbl.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/biblatex-readbbl/biblatex-readbbl.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/biblatex-readbbl/biblatex-readbbl.tex	2022-01-09 21:19:09 UTC (rev 61549)
@@ -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}


Property changes on: trunk/Master/texmf-dist/doc/latex/biblatex-readbbl/biblatex-readbbl.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/latex/biblatex-readbbl/biblatex-readbbl.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/biblatex-readbbl/biblatex-readbbl.sty	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/biblatex-readbbl/biblatex-readbbl.sty	2022-01-09 21:19:09 UTC (rev 61549)
@@ -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 at read@file{}
+\DeclareOptionX{bblfile}{\def\bbl at 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 at read@file\relax  
+  \gdef\bbl at read@file{\jobname}% 
+\fi
+
+%\typeout{>>>>> Read bbl file: \bbl at read@file}
+
+\gdef\blx at bblfile{%
+  \blx at secinit
+  \begingroup
+  \blx at bblstart
+%%%%  Start erzeugte Datei \jobname.bbl %%%%
+%
+\IfFileExists{\bbl at read@file.bbl}{\input{\bbl at read@file.bbl}}{\typeout{!!File \bbl at read@file.bbl does not exist!!!}}
+%
+%%%%  Ende erzeugte Datei \jobname.bbl %%%%
+  \global\toggletrue{blx at bbldone}%
+  \blx at generate@bbl at mdfivesum@found{\jobname.bbl}
+  \blx at bblend
+  \endgroup
+  % Check if Biber rerun was not carried out.
+  % If so, ask for it again.
+%  \blx at check@bbl at rerun@mdfivesum
+  % global sorting as this is called at BeginDocument
+  \csnumgdef{blx at labelnumber@\the\c at refsection}{0}%
+}
+
+\endgroup
+


Property changes on: trunk/Master/texmf-dist/tex/latex/biblatex-readbbl/biblatex-readbbl.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/tlpkg/bin/tlpkg-ctan-check
===================================================================
--- trunk/Master/tlpkg/bin/tlpkg-ctan-check	2022-01-09 21:17:59 UTC (rev 61548)
+++ trunk/Master/tlpkg/bin/tlpkg-ctan-check	2022-01-09 21:19:09 UTC (rev 61549)
@@ -119,7 +119,8 @@
     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

Modified: trunk/Master/tlpkg/libexec/ctan2tds
===================================================================
--- trunk/Master/tlpkg/libexec/ctan2tds	2022-01-09 21:17:59 UTC (rev 61548)
+++ trunk/Master/tlpkg/libexec/ctan2tds	2022-01-09 21:19:09 UTC (rev 61549)
@@ -209,6 +209,7 @@
  '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'",

Added: trunk/Master/tlpkg/tlpsrc/biblatex-readbbl.tlpsrc
===================================================================
Modified: trunk/Master/tlpkg/tlpsrc/collection-bibtexextra.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/collection-bibtexextra.tlpsrc	2022-01-09 21:17:59 UTC (rev 61548)
+++ trunk/Master/tlpkg/tlpsrc/collection-bibtexextra.tlpsrc	2022-01-09 21:19:09 UTC (rev 61549)
@@ -70,6 +70,7 @@
 depend biblatex-philosophy
 depend biblatex-phys
 depend biblatex-publist
+depend biblatex-readbbl
 depend biblatex-realauthor
 depend biblatex-sbl
 depend biblatex-science



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