blob: 0de145ec4abde592c7efad516816bfc63b42f5f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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
|