Debian Codegraph @

texmf-dist/tex/latex/latex-make/texdepends.sty

raw
1 %%
2 %% This is file `texdepends.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% texdepends.dtx (with options: `package')
8 %%
9 %% IMPORTANT NOTICE:
10 %%
11 %% For the copyright see the source file.
12 %%
13 %% Any modified versions of this file must be renamed
14 %% with new filenames distinct from texdepends.sty.
15 %%
16 %% For distribution of the original source see the terms
17 %% for copying and modification in the file texdepends.dtx.
18 %%
19 %% This generated file may be distributed as long as the
20 %% original source files, as listed above, are part of the
21 %% same distribution. (The sources need not necessarily be
22 %% in the same archive or directory.)
23 %%
24 %% File: texdepends.dtx Copyright (C) 2004--2011 V. Danjean
25 %% [email protected]
26 %% Modified by Matthieu Gallet
27 %% [email protected]
28 %%
29 %% This program is free software; you can redistribute it and/or
30 %% modify it under the terms of the GNU General Public License
31 %% as published by the Free Software Foundation; either version 2
32 %% of the License, or (at your option) any later version.
33 %%
34 %% This program is distributed in the hope that it will be useful,
35 %% but WITHOUT ANY WARRANTY; without even the implied warranty of
36 %% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37 %% GNU General Public License for more details.
38 %%
39 %% You should have received a copy of the GNU General Public License
40 %% along with this program; if not, write to the Free Software
41 %% Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
42 %%
43 \NeedsTeXFormat{LaTeX2e}%
44 \ProvidesPackage{texdepends}%
45 [2021/10/26 v2.4.3 No changes in texdepends.dtx]
46 \RequirePackage{ifthen}
47 \newboolean{TD@debug}
48 \newcommand{\TD@option@debug}[1][true]{%
49 %\PackageWarningNoLine{texdepends}{Setting debug to #1}
50 \setboolean{TD@debug}{#1}%
51 }%
52 \def\TD@option@extension[#1]{%
53 %\PackageWarningNoLine{texdepends}{Using extention #1}
54 \def\TD@extention{#1}%
55 }%
56 \def\TD@option@split#1=#2=#3\relax{%
57 \def\TD@option@name{#1}%
58 \ifx\TD@option@name\@empty\else
59 \expandafter\let\expandafter\TD@option@cmd
60 \csname TD@option@\TD@option@name\endcsname
61 %\PackageWarningNoLine{texdepends}{1: '#1', 2: '#2', 3: '#3'}
62 \ifx\TD@option@cmd\relax
63 \@unknownoptionerror%
64 \else
65 \ifx\@empty#3\@empty
66 \TD@option@cmd\relax%
67 \else
68 \def\TD@option@value{#2}%
69 \TD@option@cmd[\TD@option@value]%
70 \fi
71 \fi
72 \fi
73 }%
74 \DeclareOption*{%
75 %\PackageWarningNoLine{texdepends}{Option \CurrentOption}%
76 \expandafter\TD@option@split\CurrentOption==\relax%
77 }%
78 \ProcessOptions
79 \ifthenelse{\isundefined{\TD@extention}}{%
80 \PackageWarningNoLine{texdepends}{No extension given: detecting it}%
81 \RequirePackage{ifxetex,ifpdf}%
82 \ifxetex%
83 \PackageWarningNoLine{textdepends}{Detected XeTeX: using .pdf}%
84 \def\TD@extention{.pdf}%
85 \else\ifpdf%
86 \PackageWarningNoLine{texdepends}{Detected PDF mode: using .pdf}%
87 \def\TD@extention{.pdf}%
88 \else%
89 \PackageWarningNoLine{texdepends}{Detected DVI mode. Using .dvi}%
90 \def\TD@extention{.dvi}%
91 \fi\fi%
92 }{}%
93 \RequirePackage{xstring}%
94 \newcommand{\TD@warning}[1]{%
95 \PackageWarningNoLine{texdepends}{#1}%
96 }%
97 \newcommand{\TD@warningLine}[1]{%
98 \PackageWarning{texdepends}{#1}%
99 }%
100 \newcommand{\TD@info}[1]{%
101 \ifthenelse{\boolean{TD@debug}}{%
102 \PackageWarningNoLine{texdepends}{#1}%
103 }{%
104 \PackageInfo{texdepends}{#1}%
105 }%
106 }%
107 \newcommand{\TD@debug}[1]{%
108 \ifthenelse{\boolean{TD@debug}}{%
109 \PackageWarningNoLine{texdepends}{#1}%
110 }{%
111 }%
112 }%
113 \newwrite\TD@write
114 \TD@info{Writing info in '\jobname\[email protected]'}
115 \immediate\openout\TD@write\jobname\[email protected]%
116 \def\TD@print#1{%
117 {%
118 % TODO: fix pb when #1 contains '#'
119 %\noexpandarg%
120 \StrSubstitute{#1}{//}{/}[\TD@write@text]%
121 \immediate\write\TD@write{\TD@write@text}%
122 %\immediate\write\TD@write{#1}%
123 }
124 }%
125 \def\TD@printClass#1{%
126 \TD@print{TD_\jobname\TD@extention _INPUTS\space += #1.cls}%
127 }%
128 \def\TD@printPackage#1{%
129 \TD@print{TD_\jobname\TD@extention _INPUTS\space += #1.sty}%
130 }%
131 \def\TD@printInput#1{%
132 \TD@print{TD_\jobname\TD@extention _INPUTS\space += #1}%
133 }%
134 \def\TD@printNoDependsFile#1{%
135 \TD@print{TD_\jobname\TD@extention _DEPENDS_EXCLUDE\space += #1}%
136 }%
137 \def\TD@printFig#1{%
138 \TD@print{TD_\jobname\TD@extention _FIGURES\space += #1}%
139 }%
140 \def\TD@printSubfig#1{%
141 \TD@print{TD_\jobname\TD@extention _SUBFIGS\space += #1}%
142 }%
143 \def\TD@printRequiredFile#1#2{%
144 \TD@print{TD_\jobname\TD@extention _REQUIRED\space += #1}%
145 }%
146 \def\RequireFile#1{%
147 \TD@printRequiredFile{#1}{User}%
148 }%
149 \def\TD@printOut#1{%
150 \TD@print{TD_\jobname\TD@extention _OUTPUTS\space += #1}%
151 }%
152 \def\TD@printGraphicspath#1{%
153 \TD@print{TD_\jobname\TD@extention _GRAPHICSPATH\space := #1}%
154 }%
155 \def\TD@printBibfile#1{%
156 \TD@print{TD_\jobname\TD@extention _BIBFILES\space += #1.bib}%
157 }%
158 \def\TD@printBibstyle#1{%
159 \TD@print{TD_\jobname\TD@extention _BIBSTYLES\space += #1.bst}%
160 }%
161 \def\TD@printBblfile#1{%
162 \TD@print{TD_\jobname\TD@extention _BBLFILES\space += #1.bbl}%
163 }%
164 \def\TD@printRebuildRule#1{%
165 \TD@print{TD_\jobname\TD@extention _REBUILD_RULES\space += #1}%
166 }%
167 \def\TD@printIndex#1{%
168 \TD@print{TD_\jobname\TD@extention _INDEXES\space += INDEX}%
169 \TD@print{TD_\jobname\TD@extention _INDEXES_INDEX\space += #1}%
170 }%
171 \def\TD@printIndexSource#1#2{%
172 \TD@print{TD_\jobname\TD@extention _INDEX_#1_SRC\space = #2}%
173 }%
174 \def\TD@printIndexTarget#1#2{%
175 \TD@print{TD_\jobname\TD@extention _INDEX_#1_TARGET\space = #2}%
176 }%
177 \def\TD@printIndexStyle#1#2{%
178 \TD@print{TD_\jobname\TD@extention _INDEX_#1_STYLE\space = #2}%
179 }%
180 \def\TD@printGlossary#1{%
181 \TD@print{TD_\jobname\TD@extention _INDEXES += GLOSS}%
182 \TD@print{TD_\jobname\TD@extention _INDEXES_GLOSS\space += #1}%
183 }%
184 \def\TD@printGlossarySource#1#2{%
185 \TD@print{TD_\jobname\TD@extention _GLOSS_#1_SRC\space = #2}%
186 }%
187 \def\TD@printGlossaryTarget#1#2{%
188 \TD@print{TD_\jobname\TD@extention _GLOSS_#1_TARGET\space = #2}%
189 }%
190 \def\TD@printGlossaryStyle#1#2{%
191 \TD@print{TD_\jobname\TD@extention _GLOSS_#1_STYLE\space = #2}%
192 }%
193 \def\TD@switch#1{%
194 \expandafter\let\expandafter\TD@local@old\csname#1\endcsname%
195 \expandafter\let\expandafter\TD@local@new\csname TD@#1\endcsname%
196 \ifx\TD@local@old\TD@local@new
197 \PackageWarning{texdepends}{#1 already redefined. Skipping it.}%
198 \else
199 \ifx\TD@local@old\relax
200 \TD@warning{Diverting empty macro '#1' \MessageBreak%
201 Probably a bug in texdepends.sty}%
202 \else
203 \TD@info{Diverting macro '#1'}%
204 \fi
205 \expandafter\let\csname TD@orig@#1\endcsname\TD@local@old%
206 \expandafter\let\csname#1\endcsname\TD@local@new%
207 \fi
208 }%
209 \def\TD@docswitchlist{}%
210 \def\TD@docswitch#1{%
211 \TD@info{Registering macro '#1' for diversion}%
212 \ifx\TD@docswitchlist\@empty%
213 \xdef\TD@docswitchlist{#1}%
214 \else%
215 \xdef\TD@docswitchlist{\TD@docswitchlist,#1}%
216 \fi%
217 }%
218 \AtBeginDocument{%
219 \TD@info{Diverting registered macros...}%
220 \@for\TD@cmd:=\TD@docswitchlist\do{%
221 \TD@switch{\TD@cmd}%
222 }%
223 \TD@info{Divertions done}%
224 }%
225 \def\TD@PackagePreDivert#1{%
226 \expandafter\def\csname TD@PackageStart@#1\endcsname ##1##2##3##4%
227 }%
228 \def\TD@PackagePostDivert#1{%
229 \expandafter\def\csname TD@PackageEnd@#1\endcsname ##1##2##3##4%
230 }%
231 \ifx\documentclass\@twoclasseserror
232 \PackageError{texdepends}{texdepends needs to be loaded BEFORE
233 \string\documentclass \MessageBreak
234 Use \string\RequirePackage\space instead of \string\usepackage
235 \MessageBreak as the later is not allowed before
236 \string\documentclass}
237 \fi
238 \TD@printPackage{texdepends}
239 \TD@printGraphicspath{{.}}
240 \def\TD@depends{}%
241 \def\TD@dependsWarning{%
242 \PackageWarningNoLine{texdepends}{Figure(s) missing. Check
243 dependencies again}%
244 }%
245 \def\TD@missingDepends{%
246 \global\let\TD@depends\TD@dependsWarning%
247 }%
248 \AtEndDocument{%
249 \TD@depends%
250 }%
251 \def\TD@@fileswith@pti@ns#1[#2]#3[#4]{%
252 \ifx#1\@clsextension
253 \TD@printClass{#3}
254 \fi
255 \TD@orig@@fileswith@pti@ns{#1}[#2]{#3}[#4]%
256 }%
257 \let\TD@@@fileswith@pti@ns\TD@@fileswith@pti@ns
258 \TD@switch{@fileswith@pti@ns}%
259 \TD@switch{@@fileswith@pti@ns}%
260 \def\TD@@onefilewithoptions#1[#2][#3]#4{%
261 \TD@printPackage{#1}%
262 \ifthenelse{\equal{#1}{texdepends}}{%
263 \TD@debug{Package '#1' detected}
264 \@for\TD@package@option:=#2\do{%
265 \ifthenelse{\expandafter\isundefined\csname TD@option@\TD@package@option\endcsname}{
266 \TD@warningLine{Ignoring unknown option '\TD@package@option'}
267 }{
268 \ifthenelse{%
269 \equal{\TD@package@option}{debug}%
270 %\OR\equal{\TD@package@option}{debug}%
271 }{
272 \csname TD@option@\TD@package@option\endcsname%
273 }{
274 \TD@warningLine{Ignoring option '\TD@package@option'
275 \MessageBreak #1 already loaded
276 }
277 }
278 }
279 }
280 }{%
281 \expandafter\let\expandafter\TD@divert
282 \csname TD@PackageStart@#1\endcsname
283 \ifx\TD@divert\relax
284 \TD@debug{No preamble for package #1}
285 \else
286 \TD@info{Preamble for package #1}
287 \TD@divert{#1}{#2}{#3}{#4}%
288 \fi
289 \TD@orig@@onefilewithoptions{#1}[#2][#3]{#4}%
290 \expandafter\let\expandafter\TD@divert
291 \csname TD@PackageEnd@#1\endcsname
292 \ifx\TD@divert\relax
293 \TD@debug{No postamble for package #1}
294 \else
295 \TD@info{Postamble for package #1}
296 \TD@divert{#1}{#2}{#3}{#4}%
297 \fi
298 }%
299 }%
300 \TD@switch{@onefilewithoptions}%
301 \def\TD@@iinput#1{%
302 \TD@printInput{#1}%
303 \TD@orig@@iinput{#1}}%
304 \def\TD@@input@#1{%
305 \IfFileExists{#1}{%
306 \TD@printInput{#1}%
307 }{}%
308 \TD@orig@@input@{#1}}%
309 \TD@switch{@iinput}%
310 \TD@switch{@input@}%
311 \def\TD@verbatiminput#1{%
312 \TD@printInput{#1}%
313 \TD@orig@verbatiminput{#1}}%
314 \TD@PackagePostDivert{verbatim}{%
315 \TD@switch{verbatiminput}}%
316 \let\TD@orig@openout\openout
317 \def\TD@openout#1{%
318 \@ifnextchar={\TD@openout@eq#1}{\TD@openout@noeq#1}}
319 \def\TD@openout@eq#1=#2.#3{%
320 \TD@printOut{#2.#3}%
321 \TD@orig@openout#1=#2.#3%
322 }%
323 \def\TD@openout@noeq#1#2.#3{%
324 \TD@printOut{#2.#3}%
325 \TD@orig@openout#1#2.#3%
326 }%
327 %\TD@switch{openout}
328 \def\TD@bibli@bbl{%
329 \TD@printBblfile{\jobname}%
330 \global\let\TD@bibli@bbl\relax%
331 }%
332 \def\TD@bibli@files#1{%
333 \TD@bibli@bbl%
334 \@for\TD@bibfile:=#1\do{%
335 \TD@printBibfile{\TD@bibfile}%
336 }%
337 }
338 \def\TD@bibli@style#1{%
339 \TD@bibli@bbl%
340 %\@for\TD@bibstyle:=#1\do{%
341 % \TD@printBibstyle{\TD@bibstyle}%
342 %}
343 \TD@printBibstyle{#1}%
344 }
345 \def\TD@bibliography#1{%
346 \TD@bibli@files{#1}%
347 \TD@orig@bibliography{#1}%
348 }%
349 \def\TD@bibliographystyle#1{%
350 \TD@bibli@style{#1}%
351 \TD@orig@bibliographystyle{#1}%
352 }%
353 \TD@docswitch{bibliography}%
354 \TD@switch{bibliographystyle}%
355 \def\TD@makeindex{%
356 \TD@printIndex{\jobname}%
357 \TD@printIndexSource{\jobname}{\jobname.idx}%
358 \TD@orig@makeindex%
359 }%
360 \def\TD@makeglossary{%
361 \TD@printGlossary{\jobname}%
362 \TD@printGlossarySource{\jobname}{\jobname.glo}%
363 \TD@orig@makeglossary%
364 }%
365 \TD@switch{makeindex}%
366 \TD@switch{makeglossary}%
367 \def\TD@Gin@getbase#1{%
368 \TD@orig@Gin@getbase{#1}%
369 \ifx\Gin@ext\relax%
370 \else%
371 \TD@printFig{\Gin@base\Gin@ext}%
372 \fi%
373 }%
374 \def\TD@Ginclude@eps#1{%
375 \IfFileExists{#1}{%
376 \TD@orig@Ginclude@eps{#1}%
377 }{%
378 \PackageWarning{texdepends}{Figure '#1' needed\MessageBreak
379 Skipping it this time (the last one however)\MessageBreak}%
380 \TD@missingDepends%
381 \TD@printRequiredFile{#1}{eps}%
382 }%
383 }%
384 \def\TD@Ginclude@pdf#1{%
385 \IfFileExists{#1}{%
386 \TD@orig@Ginclude@pdf{#1}%
387 }{%
388 \PackageWarning{texdepends}{Figure '#1' needed\MessageBreak
389 Skipping it this time (the last one however)\MessageBreak}%
390 \TD@missingDepends%
391 \TD@printRequiredFile{#1}{pdf}%
392 }%
393 }%
394 \def\TD@graphicspath#1{%
395 \TD@printGraphicspath{#1}%
396 \TD@orig@graphicspath{#1}%
397 }%
398 \def\TD@Gread@eps#1{%
399 \IfFileExists{#1}{%
400 %\PackageWarning{texdepends}{Gread File '#1' exists}%
401 \TD@orig@Gread@eps{#1}%
402 }{%
403 \PackageWarning{texdepends}{No '#1' file \MessageBreak
404 using 1 for graphic dimensions}%
405 \setbox\@tempboxa\hbox{\relax}%
406 \def\Gin@llx{1}\let\Gin@lly\Gin@llx
407 \Gin@defaultbp\Gin@urx{\wd\@tempboxa}%
408 \Gin@defaultbp\Gin@ury{\ht\@tempboxa}%
409 }%
410 }%
411 \def\TD@Gread@pdf#1{%
412 \IfFileExists{#1}{%
413 %\PackageWarning{texdepends}{Gread File '#1' exists}%
414 \TD@orig@Gread@pdf{#1}%
415 }{%
416 \PackageWarning{texdepends}{No '#1' file \MessageBreak
417 using 1 for graphic dimensions}%
418 \setbox\@tempboxa\hbox{\relax}%
419 \def\Gin@llx{1}\let\Gin@lly\Gin@llx
420 \Gin@defaultbp\Gin@urx{\wd\@tempboxa}%
421 \Gin@defaultbp\Gin@ury{\ht\@tempboxa}%
422 }%
423 }%
424 \TD@PackagePostDivert{graphics}{%
425 \TD@switch{graphicspath}%
426 \TD@docswitch{Gin@getbase}%
427 \TD@docswitch{Ginclude@eps}%
428 \TD@docswitch{Ginclude@pdf}%
429 \TD@docswitch{Gread@eps}%
430 \TD@docswitch{Gread@pdf}%
431 }%
432 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
433 \def\TD@FL@includerawtexgraphics[#1]#2{%
434 \IfFileExists{#2}{%
435 \TD@orig@FL@includerawtexgraphics[#1]{#2}%
436 }{%
437 \PackageWarning{texdepends}{Figure '#2' needed\MessageBreak
438 Skipping it this time (the last one however)\MessageBreak}%
439 \TD@missingDepends%
440 \TD@printRequiredFile{#2}{rawtexgraphics}%
441 }%
442 }%
443
444 \def\TD@Ginclude@rawtex#1{%
445 \IfFileExists{#1}{%
446 \TD@orig@Ginclude@rawtex{#1}%
447 }{%
448 \PackageWarning{texdepends}{Figure '#1' needed\MessageBreak
449 Skipping it this time (the last one however)\MessageBreak}%
450 \TD@missingDepends%
451 \TD@printRequiredFile{#1}{rawtex}%
452 }%
453 }%
454
455 \def\TD@Ginclude@figtex#1{%
456 \IfFileExists{#1}{%
457 %\PackageWarning{texdepends}{Ginclude File '#1' exists}%
458 \TD@orig@Ginclude@figtex{#1}%
459 }{%
460 \ifthenelse{\isundefined{\FL@subfig@mainfigname}}{%
461 \PackageWarning{texdepends}{Figure '#1' needed\MessageBreak
462 Skipping it this time (the last one however)\MessageBreak}%
463 }{%
464 \PackageWarning{texdepends}{SubFigure '#1' from
465 \FL@subfig@mainfigname needed\MessageBreak
466 Skipping it this time (the last one however)\MessageBreak}%
467 }
468 \TD@missingDepends%
469 \TD@printRequiredFile{#1}{figtex}%
470 }%
471 }%
472 \def\TD@Ginclude@svgtex#1{%
473 \IfFileExists{#1}{%
474 %\PackageWarning{texdepends}{Ginclude File '#1' exists}%
475 \TD@orig@Ginclude@svgtex{#1}%
476 }{%
477 \ifthenelse{\isundefined{\FL@subfig@mainfigname}}{%
478 \PackageWarning{texdepends}{Figure '#1' needed\MessageBreak
479 Skipping it this time (the last one however)\MessageBreak}%
480 }{%
481 \PackageWarning{texdepends}{SubFigure '#1' from
482 \FL@subfig@mainfigname needed\MessageBreak
483 Skipping it this time (the last one however)\MessageBreak}%
484 }
485 \TD@missingDepends%
486 \TD@printRequiredFile{#1}{svgtex}%
487 }%
488 }%
489
490 \def\TD@Gread@figtex#1{%
491 \IfFileExists{#1}{%
492 %\PackageWarning{texdepends}{Gread File '#1' exists}%
493 \TD@orig@Gread@figtex{#1}%
494 }{%
495 \PackageWarning{texdepends}{No '#1' file \MessageBreak
496 using 1 for graphic dimensions}%
497 \setbox\@tempboxa\hbox{\relax}%
498 \def\Gin@llx{1}\let\Gin@lly\Gin@llx
499 \Gin@defaultbp\Gin@urx{\wd\@tempboxa}%
500 \Gin@defaultbp\Gin@ury{\ht\@tempboxa}%
501 }%
502 }%
503
504 \def\TD@Gread@svgtex#1{%
505 \IfFileExists{#1}{%
506 %\PackageWarning{texdepends}{Gread File '#1' exists}%
507 \TD@orig@Gread@svgtex{#1}%
508 }{%
509 \PackageWarning{texdepends}{No '#1' file \MessageBreak
510 using 1 for graphic dimensions}%
511 \setbox\@tempboxa\hbox{\relax}%
512 \def\Gin@llx{1}\let\Gin@lly\Gin@llx
513 \Gin@defaultbp\Gin@urx{\wd\@tempboxa}%
514 \Gin@defaultbp\Gin@ury{\ht\@tempboxa}%
515 }%
516 }%
517 \def\TD@FL@subfig@check#1{%
518 \TD@printRequiredFile{#1}{subfigcheck}%
519 \TD@printSubfig{#1}%
520 }%
521 \TD@PackagePostDivert{figlatex}{%
522 \TD@docswitch{FL@includerawtexgraphics}%
523 \TD@docswitch{Ginclude@rawtex}%
524 \TD@docswitch{Ginclude@figtex}%
525 \TD@docswitch{Ginclude@svgtex}%
526 \TD@docswitch{Gread@figtex}%
527 \TD@docswitch{Gread@svgtex}%
528 \TD@docswitch{FL@subfig@check}%
529 }%
530 \def\TD@PrintIndex{%
531 \TD@printIndexStyle{\jobname}{gind.ist}
532 \TD@printIndexTarget{\jobname}{\jobname.ind}
533 \TD@orig@PrintIndex%
534 }%
535 \def\TD@PrintChanges{%
536 \TD@printGlossaryStyle{\jobname}{gglo.ist}
537 \TD@printGlossaryTarget{\jobname}{\jobname.gls}
538 \TD@orig@PrintChanges%
539 }%
540 \TD@PackagePostDivert{doc}{%
541 \TD@docswitch{PrintIndex}%
542 \TD@docswitch{PrintChanges}%
543 }%
544 \def\TD@def@index#1#2#3#4{%
545 \TD@printIndex{#2}%
546 \TD@printIndexSource{#2}{\jobname.#3}%
547 \TD@printIndexTarget{#2}{\jobname.#4}
548 \TD@orig@def@index{#1}{#2}{#3}{#4}%
549 }%
550 \TD@PackagePostDivert{index}{%
551 \TD@switch{def@index}%
552 }%
553 \def\TD@printindex{%
554 \TD@printIndexTarget{\jobname}{\jobname.ind}
555 \TD@orig@printindex%
556 }%
557 \TD@PackagePostDivert{makeidx}{%
558 \TD@docswitch{printindex}%
559 }%
560 \def\TD@printglossary{%
561 \TD@printGlossaryTarget{\jobname}{\jobname.gls}
562 \TD@orig@printglossary%
563 }%
564 \TD@PackagePostDivert{nomencl}{%
565 \TD@docswitch{printglossary}%
566 \TD@switch{makeglossary}%
567 \TD@printGlossaryStyle{\jobname}{nomencl.ist}
568 }%
569 \def\TD@btSect{%
570 \@ifnextchar[{\TD@btSect@opt}{\TD@btSect@noopt}}
571 \def\TD@btSect@opt[#1]#2{%
572 \TD@bibli@files{#2}%
573 \TD@bibli@style{#1}%
574 \TD@orig@btSect[#1]{#2}}
575 \def\TD@btSect@noopt#1{%
576 \TD@bibli@files{#1}%
577 \TD@orig@btSect{#1}}
578
579 \def\TD@@bt@write@auxfile{%
580 \TD@printBblfile{\thebtauxfile}%
581 \TD@orig@@bt@write@auxfile%
582 }%
583 \TD@PackagePostDivert{bibtopic}{%
584 \global\let\TD@bibli@bbl\relax%
585 \global\let\TD@biblio@rules@package\TD@biblio@rules@package@bibtopic%
586 \TD@switch{@bt@write@auxfile}%
587 \TD@printOut{btbbl.aux}%
588 \TD@printRebuildRule{bibtopic}%
589 \TD@docswitch{btSect}%
590 }%
591 \TD@PackagePostDivert{comment}{%
592 \TD@printNoDependsFile{comment.cut}%
593 }%
594 \endinput
595 %%
596 %% End of file `texdepends.sty'.