Skip to content
Snippets Groups Projects
Commit 531b2d12 authored by Yu Xiong's avatar Yu Xiong :confounded:
Browse files

chore: 修改编译配置文件

parent 2321c887
No related branches found
No related tags found
No related merge requests found
# vim: set ft=perl: # vim: set ft=perl:
# Use XeLaTeX to compile.
$pdf_mode = 5; $pdf_mode = 5;
$xelatex = "xelatex -shell-escape -file-line-error -halt-on-error -interaction=nonstopmode -no-pdf -synctex=1 %O %S"; $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; ...@@ -9,6 +10,7 @@ $bibtex_use = 1.5;
$clean_ext = "hd loe ptc run.xml synctex.gz thm xdv"; $clean_ext = "hd loe ptc run.xml synctex.gz thm xdv";
# Process index.
$makeindex = "makeindex %O -s gind.ist -o %D %S"; $makeindex = "makeindex %O -s gind.ist -o %D %S";
add_cus_dep('glo','gls',0,'makeindex'); add_cus_dep('glo','gls',0,'makeindex');
sub makeindex { sub makeindex {
...@@ -21,6 +23,16 @@ sub makeindex { ...@@ -21,6 +23,16 @@ sub makeindex {
} }
$makeindex_silent_switch = "-q"; $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'); add_cus_dep('nlo', 'nls', 0, 'nlo2nls');
sub nlo2nls { sub nlo2nls {
system("makeindex -s nomencl.ist -o \"$_[0].nls\" \"$_[0].nlo\""); system("makeindex -s nomencl.ist -o \"$_[0].nls\" \"$_[0].nlo\"");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment