| 1 |
\documentclass{minimal} |
| 2 |
\usepackage{logreq} |
| 3 |
|
| 4 |
% indexing example |
| 5 |
% (e.g., if index.sty were to support logreq) |
| 6 |
|
| 7 |
% sample preamble: |
| 8 |
|
| 9 |
% \usepackage{index} |
| 10 |
% \newindex{default}{idx}{ind}{Subject Index} |
| 11 |
% \newindex{names}{ndx}{nnd}{Name Index} |
| 12 |
% \newindex{titles}{tdx}{tnd}{Title Index} |
| 13 |
|
| 14 |
% workflow: |
| 15 |
|
| 16 |
% latex file |
| 17 |
% makeindex -o file.ind file.idx (= makeindex file) |
| 18 |
% makeindex -o file.nnd file.ndx |
| 19 |
% makeindex -o file.tnd file.tdx |
| 20 |
% latex file |
| 21 |
|
| 22 |
\logrequest[package=index,priority=8,active=0]{% |
| 23 |
\generic{makeindex} |
| 24 |
\cmdline{ |
| 25 |
\binary{makeindex} |
| 26 |
\option{-o example.ind} |
| 27 |
\infile{\jobname.idx} |
| 28 |
} |
| 29 |
\input{ |
| 30 |
\file{\jobname.idx} |
| 31 |
} |
| 32 |
\output{ |
| 33 |
\file{\jobname.ind} |
| 34 |
} |
| 35 |
\provides[type=dynamic]{ |
| 36 |
\file{\jobname.ind} |
| 37 |
} |
| 38 |
\requires[type=dynamic]{ |
| 39 |
\file{\jobname.idx} |
| 40 |
} |
| 41 |
} |
| 42 |
|
| 43 |
\logrequest[package=index,priority=8,active=0]{% |
| 44 |
\generic{makeindex} |
| 45 |
\cmdline{ |
| 46 |
\binary{makeindex} |
| 47 |
\option{-o example.nnd} |
| 48 |
\infile{\jobname.ndx} |
| 49 |
} |
| 50 |
\input{ |
| 51 |
\file{\jobname.ndx} |
| 52 |
} |
| 53 |
\output{ |
| 54 |
\file{\jobname.nnd} |
| 55 |
} |
| 56 |
\provides[type=dynamic]{ |
| 57 |
\file{\jobname.nnd} |
| 58 |
} |
| 59 |
\requires[type=dynamic]{ |
| 60 |
\file{\jobname.ndx} |
| 61 |
} |
| 62 |
} |
| 63 |
|
| 64 |
\logrequest[package=index,priority=8,active=0]{% |
| 65 |
\generic{makeindex} |
| 66 |
\cmdline{ |
| 67 |
\binary{makeindex} |
| 68 |
\option{-o example.tnd} |
| 69 |
\infile{\jobname.tdx} |
| 70 |
} |
| 71 |
\input{ |
| 72 |
\file{\jobname.tdx} |
| 73 |
} |
| 74 |
\output{ |
| 75 |
\file{\jobname.tnd} |
| 76 |
} |
| 77 |
\provides[type=dynamic]{ |
| 78 |
\file{\jobname.tnd} |
| 79 |
} |
| 80 |
\requires[type=dynamic]{ |
| 81 |
\file{\jobname.tdx} |
| 82 |
} |
| 83 |
} |
| 84 |
|
| 85 |
\ltxrequest{index}{0}{ |
| 86 |
\provides[type=dynamic]{ |
| 87 |
\file{\jobname.idx} |
| 88 |
\file{\jobname.ndx} |
| 89 |
\file{\jobname.tdx} |
| 90 |
} |
| 91 |
\requires[type=dynamic]{ |
| 92 |
\file{\jobname.ind} |
| 93 |
\file{\jobname.nnd} |
| 94 |
\file{\jobname.tnd} |
| 95 |
} |
| 96 |
} |
| 97 |
|
| 98 |
\begin{document} |
| 99 |
\end{document} |