summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/thuthesis/latexmkrc
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/thuthesis/latexmkrc
Initial commit
Diffstat (limited to 'macros/latex/contrib/thuthesis/latexmkrc')
-rw-r--r--macros/latex/contrib/thuthesis/latexmkrc14
1 files changed, 14 insertions, 0 deletions
diff --git a/macros/latex/contrib/thuthesis/latexmkrc b/macros/latex/contrib/thuthesis/latexmkrc
new file mode 100644
index 0000000000..d9969694c2
--- /dev/null
+++ b/macros/latex/contrib/thuthesis/latexmkrc
@@ -0,0 +1,14 @@
+# vim: set ft=perl:
+$xdvipdfmx="xdvipdfmx -q -E -o %D %O %S";
+$clean_ext = 'thm bbl hd loe synctex.gz xdv';
+$makeindex = 'makeindex -s gind.ist %O -o %D %S';
+add_cus_dep('glo', 'gls', 0, 'makeglo2gls');
+sub makeglo2gls {
+ system("makeindex -s gglo.ist -o \"$_[0].gls\" \"$_[0].glo\"");
+}
+push @generated_exts, "glo", "gls";
+add_cus_dep('nlo', 'nls', 0, 'nlo2nls');
+sub nlo2nls {
+ system("makeindex -s nomencl.ist -o \"$_[0].nls\" \"$_[0].nlo\"");
+}
+push @generated_exts, "nlo", "nls";