From 531b2d1257fc5ecf47401e984120a926a3f9556a Mon Sep 17 00:00:00 2001 From: atxy-blip <181850195@smail.nju.edu.cn> Date: Wed, 24 Nov 2021 20:12:27 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BF=AE=E6=94=B9=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- latexmkrc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/latexmkrc b/latexmkrc index db3b340..3611c74 100644 --- a/latexmkrc +++ b/latexmkrc @@ -1,5 +1,6 @@ # vim: set ft=perl: +# Use XeLaTeX to compile. $pdf_mode = 5; $xelatex = "xelatex -shell-escape -file-line-error -halt-on-error -interaction=nonstopmode -no-pdf -synctex=1 %O %S"; @@ -9,6 +10,7 @@ $bibtex_use = 1.5; $clean_ext = "hd loe ptc run.xml synctex.gz thm xdv"; +# Process index. $makeindex = "makeindex %O -s gind.ist -o %D %S"; add_cus_dep('glo','gls',0,'makeindex'); sub makeindex { @@ -21,6 +23,16 @@ sub makeindex { } $makeindex_silent_switch = "-q"; +# Show CPU time used. +$show_time = 1; + +# Process glossary (change history). +add_cus_dep('glo', 'gls', 0, 'makeglo2gls'); +sub makeglo2gls { + system("zhmakeindex -s gglo.ist -o \"$_[0].gls\" \\ + -t \"$_[0].glg\" \"$_[0].glo\""); +} + add_cus_dep('nlo', 'nls', 0, 'nlo2nls'); sub nlo2nls { system("makeindex -s nomencl.ist -o \"$_[0].nls\" \"$_[0].nlo\""); -- GitLab