| 1 |
\documentclass{minimal} |
| 2 |
\usepackage{logreq} |
| 3 |
|
| 4 |
% biblatex example |
| 5 |
% (this is a mockup of code which will be used in biblatex >= 0.9b) |
| 6 |
|
| 7 |
% sample code: |
| 8 |
|
| 9 |
% \usepackage{biblatex} |
| 10 |
% \bibliography{bibfile1,bibfile2,bibfile3} |
| 11 |
% \begin{document} |
| 12 |
% ... |
| 13 |
% \begin{refsection}[bibfile1,bibfile3] |
| 14 |
% ... |
| 15 |
% \end{refsection} |
| 16 |
% ... |
| 17 |
% \begin{refsection}[bibfile4,bibfile6,bibfile2] |
| 18 |
% ... |
| 19 |
% \end{refsection} |
| 20 |
% ... |
| 21 |
% \begin{refsection}[bibfile5,bibfile6] |
| 22 |
% ... |
| 23 |
% \end{refsection} |
| 24 |
% \end{document} |
| 25 |
|
| 26 |
% workflow: |
| 27 |
|
| 28 |
% latex file (-> all requests active) |
| 29 |
% bibtex file |
| 30 |
% bibtex file1-blx |
| 31 |
% bibtex file2-blx |
| 32 |
% bibtex file3-blx |
| 33 |
% latex file (-> all requests inactive) |
| 34 |
|
| 35 |
% additional bibtex passes may be required to resolve xrefs, |
| 36 |
% additional latex passes may be required to resolve labels; |
| 37 |
% i.e., the workflow may get as complex as this: |
| 38 |
|
| 39 |
% latex file (-> all requests active) |
| 40 |
% bibtex file |
| 41 |
% bibtex file1-blx |
| 42 |
% bibtex file2-blx |
| 43 |
% bibtex file3-blx |
| 44 |
% latex file (-> all requests inactive) |
| 45 |
% bibtex file |
| 46 |
% bibtex file1-blx |
| 47 |
% bibtex file2-blx |
| 48 |
% bibtex file3-blx |
| 49 |
% latex file (-> latex request active, bibtex requests inactive) |
| 50 |
% latex file (-> both requests inactive) |
| 51 |
|
| 52 |
\logrequest[package=biblatex,priority=5,active=1]{ |
| 53 |
\generic{bibtex} |
| 54 |
\cmdline{ |
| 55 |
\binary{bibtex} |
| 56 |
\option{--min_crossrefs 2} |
| 57 |
\infile{\jobname} |
| 58 |
} |
| 59 |
\input{ |
| 60 |
\file{\jobname.aux} |
| 61 |
} |
| 62 |
\output{ |
| 63 |
\file{\jobname.bbl} |
| 64 |
} |
| 65 |
\provides[type=dynamic]{ |
| 66 |
\file{\jobname.bbl} |
| 67 |
} |
| 68 |
\requires[type=dynamic]{ |
| 69 |
\file{\jobname.aux} |
| 70 |
\file{\jobname-blx.bib} |
| 71 |
} |
| 72 |
\requires[type=editable]{ |
| 73 |
\let\do=\file |
| 74 |
\docsvlist{bibfile1,bibfile2,bibfile3} |
| 75 |
} |
| 76 |
\requires[type=static]{ |
| 77 |
\file{biblatex.bst} |
| 78 |
} |
| 79 |
} |
| 80 |
|
| 81 |
\logrequest[package=biblatex,priority=5,active=1]{ |
| 82 |
\generic{bibtex} |
| 83 |
\cmdline{ |
| 84 |
\binary{bibtex} |
| 85 |
\option{--min_crossrefs 2} |
| 86 |
\infile{\jobname1-blx} |
| 87 |
} |
| 88 |
\input{ |
| 89 |
\file{\jobname1-blx.aux} |
| 90 |
} |
| 91 |
\output{ |
| 92 |
\file{\jobname1-blx.bbl} |
| 93 |
} |
| 94 |
\provides[type=dynamic]{ |
| 95 |
\file{\jobname1-blx.bbl} |
| 96 |
} |
| 97 |
\requires[type=dynamic]{ |
| 98 |
\file{\jobname1-blx.aux} |
| 99 |
\file{\jobname-blx.bib} |
| 100 |
} |
| 101 |
\requires[type=editable]{ |
| 102 |
\let\do=\file |
| 103 |
\docsvlist{bibfile1,bibfile3} |
| 104 |
} |
| 105 |
\requires[type=static]{ |
| 106 |
\file{biblatex.bst} |
| 107 |
} |
| 108 |
} |
| 109 |
|
| 110 |
\logrequest[package=biblatex,priority=5,active=1]{ |
| 111 |
\generic{bibtex} |
| 112 |
\cmdline{ |
| 113 |
\binary{bibtex} |
| 114 |
\option{--min_crossrefs 2} |
| 115 |
\infile{\jobname2-blx} |
| 116 |
} |
| 117 |
\input{ |
| 118 |
\file{\jobname2-blx.aux} |
| 119 |
} |
| 120 |
\output{ |
| 121 |
\file{\jobname2-blx.bbl} |
| 122 |
} |
| 123 |
\provides[type=dynamic]{ |
| 124 |
\file{\jobname2-blx.bbl} |
| 125 |
} |
| 126 |
\requires[type=dynamic]{ |
| 127 |
\file{\jobname2-blx.aux} |
| 128 |
\file{\jobname-blx.bib} |
| 129 |
} |
| 130 |
\requires[type=editable]{ |
| 131 |
\let\do=\file |
| 132 |
\docsvlist{bibfile4,bibfile6,bibfile2} |
| 133 |
} |
| 134 |
\requires[type=static]{ |
| 135 |
\file{biblatex.bst} |
| 136 |
} |
| 137 |
} |
| 138 |
|
| 139 |
\logrequest[package=biblatex,priority=5,active=1]{ |
| 140 |
\generic{bibtex} |
| 141 |
\cmdline{ |
| 142 |
\binary{bibtex} |
| 143 |
\option{--min_crossrefs 2} |
| 144 |
\infile{\jobname3-blx} |
| 145 |
} |
| 146 |
\input{ |
| 147 |
\file{\jobname3-blx.aux} |
| 148 |
} |
| 149 |
\output{ |
| 150 |
\file{\jobname3-blx.bbl} |
| 151 |
} |
| 152 |
\provides[type=dynamic]{ |
| 153 |
\file{\jobname3-blx.bbl} |
| 154 |
} |
| 155 |
\requires[type=dynamic]{ |
| 156 |
\file{\jobname3-blx.aux} |
| 157 |
\file{\jobname-blx.bib} |
| 158 |
} |
| 159 |
\requires[type=editable]{ |
| 160 |
\let\do=\file |
| 161 |
\docsvlist{bibfile5,bibfile6} |
| 162 |
} |
| 163 |
\requires[type=static]{ |
| 164 |
\file{biblatex.bst} |
| 165 |
} |
| 166 |
} |
| 167 |
|
| 168 |
\ltxrequest{biblatex}{1}{ |
| 169 |
\provides[type=dynamic]{ |
| 170 |
\file{\jobname.aux} |
| 171 |
\file{\jobname1-blx.aux} |
| 172 |
\file{\jobname2-blx.aux} |
| 173 |
\file{\jobname3-blx.aux} |
| 174 |
\file{\jobname-blx.bib} |
| 175 |
} |
| 176 |
\requires[type=dynamic]{ |
| 177 |
\file{\jobname.bbl} |
| 178 |
\file{\jobname1-blx.bbl} |
| 179 |
\file{\jobname2-blx.bbl} |
| 180 |
\file{\jobname3-blx.bbl} |
| 181 |
} |
| 182 |
\requires[type=static]{ |
| 183 |
\let\do=\file |
| 184 |
\docsvlist{biblatex.def,numeric.bbx,standard.bbx,numeric.cbx, |
| 185 |
biblatex.cfg,american.lbx,english.lbx} |
| 186 |
} |
| 187 |
} |
| 188 |
|
| 189 |
\begin{document} |
| 190 |
\end{document} |