Thanks,
Peng
do you mean specify --shell-espace for the latex used by latexmk?
create a file called peng.rc
in it you place
$latex = 'latex --shell-escape';
$pdflatex = 'pdflatex --shell-escape';
then use
latexmk -r peng.rc <other options> file.tex
There should be an overall configuration file as well. I think you might be able
to use $HOME/.latexmkrc or similar
--
/daleif (remove RTFSIGNATURE from email address)
LaTeX FAQ: http://www.tex.ac.uk/faq
Superb Class: http://www.ctan.org/tex-archive/help/Catalogue/entries/memoir.html
LaTeX book: http://www.imf.au.dk/system/latex/bog/ (in Danish)
Remember to post minimal working examples.