Hi,<div><br></div><div>I&#39;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>&nbsp;- 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=&quot;${file%.tex}.pdf&quot;</div><div>/usr/texbin/xelatex &quot;${file}&quot;&nbsp;</div><div>open &quot;${pdffile}&quot;</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>