Debian Codegraph @

texmf-dist/doc/latex/hitszthesis/latexmkrc

raw
1 # vim: set ft=perl:
2 @default_files = ('main.tex');
3
4 $pdf_mode = 1;
5 $bibtex_use = 2;
6 $recorder = 1;
7 $preview_continuous_mode = 1;
8 $clean_ext = "synctex.gz acn acr alg aux bbl bcf blg brf fdb_latexmk glg glo gls idx ilg ind lof log lot out run.xml toc thm toe ist idx";
9 $pdflatex = "xelatex -file-line-error --shell-escape -src-specials -synctex=1 -interaction=nonstopmode %O %S;cp %D %R.pdf";
10 $pdf_update_method = 0;
11 $makeindex = 'internal splitindex';
12 sub splitindex {
13 # Use splitindex instead of makeindex.
14 # The splitindex programe starts from an .idx file, makes a set of
15 # other .idx files for separate indexes, and then runs makeindex to
16 # make corresponding .ind files.
17 # However, it is possible that the document uses the splitindex
18 # package, but in a way compatible with the standard methods
19 # compatible with makeindex, i.e., with a single index and with the
20 # use of the \printindex command.
21 # Then we need to invoke makeindex.
22 # In addition, latexmk assumes that makeindex or its replacement makes
23 # an .ind file from an .idx file, and latexmk gives an error if it
24 # doesn't exist, we need to make an .ind file.
25 # Both problems are solved by running makeindex and then splitindex.
26 # Note: errors are returned by makeindex and splitindex for things
27 # like a missing input file. No error is returned for lines in an
28 # input file that are in an incorrect format; they are simply
29 # ignored. So no problem is caused by lines in the .idx file
30 # that are generated by splitindex in a format incompatible with
31 # makeindex.
32 my $ret1 = system( "makeindex", $$Psource );
33 my $ret2 = system( "splitindex", $$Psource );
34 return $ret1 || $ret2;
35 }
36 @cus_dep_list = (@cus_dep_list, "idx ind 0 makenomenclature");
37 sub makenomenclature {
38 system("splitindex $_[0] -- -s $_[0].ist"); }
39 @generated_exts = (@generated_exts, 'glo');
40