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 "---------------------------------------------------------------"
## If the file ltxmkshellescape.rc exists in the current directory,
## set the flag useshellescape=TRUE
useshellescape=false
echo "--- Looking for ltxmkshellescape.rc"
if [ -e ltxmkshellescape.rc ]; then
useshellescape=true
echo "+++ Shell escape activated"
## If the file .latexmkrc exists in the current directory,
## set the flag ltxmkrc=TRUE
ltxmkrc=false
echo "--- Looking for .latexmkrc"
if [ -e .latexmkrc ]; then
ltxmkrc=true
echo "+++ LaTeXMK RC file invoked"
else
echo "--- This job does not request shell escape"
echo "--- This job did not request LaTeXMK RC file"
fi
@ -80,10 +80,10 @@ if [ $# -eq 1 ]; then
fi
# Run pdflatex, bibtex, and company
if $useshellescape; then
echo "<cheRTeX> Calling LaTeXMK with shell escape"
if $ltxmkrc; then
echo "<cheRTeX> Calling LaTeXMK with RC file"
simpledelay.sh 2
latexmk -r ltxmkshellescape.rc -pdf -bibtex $jobname
latexmk -r .latexmkrc -pdf -bibtex $jobname
else
echo "<cheRTeX> Calling LaTeXMK"
simpledelay.sh 2

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