/usr/share/doc/logreq/examples/02-index.tex is in logreq 1.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 | \documentclass{minimal}
\usepackage{logreq}
% indexing example
% (e.g., if index.sty were to support logreq)
% sample preamble:
% \usepackage{index}
% \newindex{default}{idx}{ind}{Subject Index}
% \newindex{names}{ndx}{nnd}{Name Index}
% \newindex{titles}{tdx}{tnd}{Title Index}
% workflow:
% latex file
% makeindex -o file.ind file.idx (= makeindex file)
% makeindex -o file.nnd file.ndx
% makeindex -o file.tnd file.tdx
% latex file
\logrequest[package=index,priority=8,active=0]{%
\generic{makeindex}
\cmdline{
\binary{makeindex}
\option{-o example.ind}
\infile{\jobname.idx}
}
\input{
\file{\jobname.idx}
}
\output{
\file{\jobname.ind}
}
\provides[type=dynamic]{
\file{\jobname.ind}
}
\requires[type=dynamic]{
\file{\jobname.idx}
}
}
\logrequest[package=index,priority=8,active=0]{%
\generic{makeindex}
\cmdline{
\binary{makeindex}
\option{-o example.nnd}
\infile{\jobname.ndx}
}
\input{
\file{\jobname.ndx}
}
\output{
\file{\jobname.nnd}
}
\provides[type=dynamic]{
\file{\jobname.nnd}
}
\requires[type=dynamic]{
\file{\jobname.ndx}
}
}
\logrequest[package=index,priority=8,active=0]{%
\generic{makeindex}
\cmdline{
\binary{makeindex}
\option{-o example.tnd}
\infile{\jobname.tdx}
}
\input{
\file{\jobname.tdx}
}
\output{
\file{\jobname.tnd}
}
\provides[type=dynamic]{
\file{\jobname.tnd}
}
\requires[type=dynamic]{
\file{\jobname.tdx}
}
}
\ltxrequest{index}{0}{
\provides[type=dynamic]{
\file{\jobname.idx}
\file{\jobname.ndx}
\file{\jobname.tdx}
}
\requires[type=dynamic]{
\file{\jobname.ind}
\file{\jobname.nnd}
\file{\jobname.tnd}
}
}
\begin{document}
\end{document}
|