Added support for makeglossaries to .latexmkrc

Incorporated the contents of previous ltxmkshellescape.rc
into the new .latexmkrc.
Updated chertex.sh to reflect the new rc file structure.
master
Taha Ahmed 13 years ago
parent 710b12deaa
commit 1c67e1b2c6

@ -0,0 +1,19 @@
### .latexmkrc file.
### For use with latexmk shell script.
### Instructions for use:
### Put a copy of this file in the directory that contains the current job.
### Comment out the parts that are not applicable for the current job.
## shell escape
$latex = "latex --shell-escape";
$pdflatex = "pdflatex --shell-escape";
## makeglossaries (for the glossaries package)
add_cus_dep('glo', 'gls', 0, 'makeglossaries');
add_cus_dep('acn', 'acr', 0, 'makeglossaries');
sub makeglossaries {
system("makeglossaries $_[0]");
}

@ -16,15 +16,15 @@ echo "^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
echo "MMX -- taha.ahmed@mkem.uu.se -- CHEPEC doctoral degree project" echo "MMX -- taha.ahmed@mkem.uu.se -- CHEPEC doctoral degree project"
echo "---------------------------------------------------------------" echo "---------------------------------------------------------------"
## If the file ltxmkshellescape.rc exists in the current directory, ## If the file .latexmkrc exists in the current directory,
## set the flag useshellescape=TRUE ## set the flag ltxmkrc=TRUE
useshellescape=false ltxmkrc=false
echo "--- Looking for ltxmkshellescape.rc" echo "--- Looking for .latexmkrc"
if [ -e ltxmkshellescape.rc ]; then if [ -e .latexmkrc ]; then
useshellescape=true ltxmkrc=true
echo "+++ Shell escape activated" echo "+++ LaTeXMK RC file invoked"
else else
echo "--- This job does not request shell escape" echo "--- This job did not request LaTeXMK RC file"
fi fi
@ -80,10 +80,10 @@ if [ $# -eq 1 ]; then
fi fi
# Run pdflatex, bibtex, and company # Run pdflatex, bibtex, and company
if $useshellescape; then if $ltxmkrc; then
echo "<cheRTeX> Calling LaTeXMK with shell escape" echo "<cheRTeX> Calling LaTeXMK with RC file"
simpledelay.sh 2 simpledelay.sh 2
latexmk -r ltxmkshellescape.rc -pdf -bibtex $jobname latexmk -r .latexmkrc -pdf -bibtex $jobname
else else
echo "<cheRTeX> Calling LaTeXMK" echo "<cheRTeX> Calling LaTeXMK"
simpledelay.sh 2 simpledelay.sh 2

@ -1,2 +0,0 @@
$latex = "latex --shell-escape";
$pdflatex = "pdflatex --shell-escape";
Loading…
Cancel
Save