<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div><<snip>><br></div></blockquote><br><blockquote type="cite"><div>You can try to add the -c option to the latexmk command line in the engine file(s) you use. E.g., if you use the pdflatexmk engine simply double click on the pdflatexmk.engine file in ~/Library/TeXShop/Engines/ to open it in TeXShop. The last line in that file looks like<br><br>"${LTMKBIN}"/latexmk -pdf -r "${LTMKEDIT}/latexmkrcedit" -r "${TSBIN}/pdflatexmkrc" "$1"<br><br>and simply put the -c option before the -pdf option:<br><br>"${LTMKBIN}"/latexmk -c -pdf -r "${LTMKEDIT}/latexmkrcedit" -r "${TSBIN}/pdflatexmkrc" "$1"<br><br>                    ^^^ <br><br>if that doesn't clean enough try the -C option which cleans out a bunch more. No guarantees!<br><br>I think this will clean out the files at the start of a latexmk run.<br><br>Good Luck,<br><br>Herb Schulz<br>(herbs at wideopenwest dot com)<br><br><br></div></blockquote></div><div><br></div>I am using xelatexmk, so I edited xelatexmk.engine, adding a -c:<div><br></div><div><div>*****************************</div><div>#!/bin/bash<br>export TSBIN="$HOME/Library/TeXShop/bin/tslatexmk"<br>export LTMKBIN="$HOME/Library/TeXShop/bin/tslatexmk"<br>export LTMKEDIT="$HOME/Library/TeXShop/bin"<br># make sure latexmkrcedit exists in bin<br>if [ ! -e "${LTMKEDIT}/latexmkrcedit" ] ; then<br><span class="Apple-tab-span" style="white-space:pre">        </span>cp "${LTMKBIN}/latexmkrcDONTedit" "${LTMKEDIT}/latexmkrcedit"<br>fi<br>"${LTMKBIN}"/latexmk <font class="Apple-style-span" color="#FA0C17">-c</font> -pdf -r "${LTMKEDIT}/latexmkrcedit" -r "${TSBIN}/xelatexmkrc" "$1"<br>*******************************<br><div><br></div><div>Unfortunately latexmk now hangs at this point:</div><div><br></div><div>*****************</div><div>Latexmk: This is Latexmk, John Collins, 23 July 2010, version: 4.18.<br>**** Report bugs etc to John Collins <collins at <a href="http://phys.psu.edu">phys.psu.edu</a>>. ****<br>Latexmk: Reference `eq:ltiTF' on page 12 undefined <br>Latexmk: Reference `eq:imfgenie' on page 23 undefined <br>Latexmk: Reference `eq:imfgenie' on page 23 undefined <br>Latexmk: Reference `eq:phi' on page 23 undefined <br>Latexmk: Reference `eq:bounds' on page 26 undefined <br>Latexmk: Reference `' on page 35 undefined <br>Latexmk: Reference `' on page 35 undefined <br>Latexmk: Reference `eq:phaseest3' on page 49 undefined <br>Latexmk: Reference `eq:phaseest3' on page 49 undefined <br>Latexmk: Reference `eq:phaseest4' on page 49 undefined <br>Latexmk: Reference `eq:phaseest4' on page 49 undefined <br>Latexmk: Reference `eq:phaseest3' on page 50 undefined <br>Latexmk: Reference `eq:phaseest3' on page 50 undefined <br>Latexmk: Found input bbl file 'ARTICLE-DISPERSION.bbl'<br>Latexmk: Log file says output to 'ARTICLE-DISPERSION.pdf'<br>Latexmk: Examining log file for generated files...</div><div>*********************</div><div><br></div><div>Not even an error message. Did I do something wrong?</div><div><br></div><div>(BTW, what I was expecting to happen was the latexmk would</div><div>just take a lot longer to format. I was prepared to say that</div><div>what I want is to clean the .aux only after an error, not all the time.)</div><div><br></div><div>-dave</div><div><br></div><div>P.S. Really appreciate all the time and effort you put into this list, Herb!<br><br><div>
<div><div style="font-size: 18px; ">David Messerschmitt</div><div style="font-size: 18px; ">Roger Strauch Professor Emeritus</div><div style="font-size: 18px; ">Electrical Engineering and Computer Sciences</div><div style="font-size: 18px; ">University of California at Berkeley</div><div style="font-size: 18px; ">      and</div><div style="font-size: 18px; ">Visiting Researcher</div><div style="font-size: 18px; ">SETI Institute</div></div><div><br></div><br class="Apple-interchange-newline">
</div>
<br></div></div></div></body></html>