summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/logreq/examples/05-biblatex+biber.tex
blob: a3e558dea19f5c18e983374d5c26d659fa23b847 (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
\documentclass{minimal}
\usepackage{logreq}

% biblatex example
% (this is a mockup of code which will be used in biblatex >= 0.9b)

% sample preamble:

% \usepackage[backend=biber]{biblatex}
% \bibliography{bibfile1,bibfile2,bibfile3}

% workflow:

% latex file	(-> both requests active)
% biber file
% latex file	(-> both requests inactive)

% The Biber (> 0.5.3) workflow will be straightforward even if
% there are refsection environments, but additional latex passes
% may be required to resolve labels:

% latex file	(-> both requests active)
% bibtex file
% latex file	(-> latex request active, biber request inactive)
% latex file	(-> both requests inactive)

\logrequest[package=biblatex,priority=5,active=1]{
  \generic{biber}
  \cmdline{
    \binary{biber}
    \infile{\jobname}
  }
  \input{
    \file{\jobname.bcf}
  }
  \output{
    \file{\jobname.bbl}
  }
  \provides[type=dynamic]{
    \file{\jobname.bbl}
  }
  \requires[type=dynamic]{
    \file{\jobname.bcf}
  }
  \requires[type=editable]{
    \let\do=\file
    \docsvlist{bibfile1,bibfile2,bibfile3}
  }
}

\ltxrequest{biblatex}{1}{
  \provides[type=dynamic]{
    \file{\jobname.bcf}
  }
  \requires[type=dynamic]{
    \file{\jobname.bbl}
  }
  \requires[type=static]{
    \let\do=\file
    \docsvlist{biblatex.def,numeric.bbx,standard.bbx,numeric.cbx,
               biblatex.cfg,american.lbx,english.lbx}
  }
}

\begin{document}
\end{document}