Hi,<div><br></div><div>I've been trying to come up with a robust TeX workflow using Smultron as an editor, and have come up with the following command, based on the info at (<a href="http://blog.mlux.de/?p=98">http://blog.mlux.de/?p=98</a> - down currently) which seems to work well on a stock MacTeX install:</div>
<div><br></div><div><div>#!/bin/bash</div><div>PATH=/usr/texbin:$PATH</div><div>cd %%d</div><div>file=%%p</div><div>pdffile="${file%.tex}.pdf"</div><div>/usr/texbin/xelatex "${file}" </div><div>open "${pdffile}"</div>
<div><br></div><div>This will render the TeX document (in the above case using XeTeX) and open it with the default application. Thought it might be useful to other users.</div><div><br></div><div>Regards,</div><div><br></div>
<div>Ryan</div></div>