<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I am having a strange problem with Typeset & View that makes no sense to me.  It works fine in simple documents with the same preamble, but not on a longer one.  The document typesets as it should, but the focus does not change to Skim.  I get the following error:<div><font class="Apple-style-span" face="'Trebuchet MS'" size="3"><span class="Apple-style-span" style="font-size: 13px;"><br class="webkit-block-placeholder"></span></font></div><div><font class="Apple-style-span" face="'Trebuchet MS'" size="3"><span class="Apple-style-span" style="font-size: 13px;">sh: -c: line 0: syntax error near unexpected token `(' sh: -c: line 0: `dvips QuantumCalculus.dvi -o QuantumCalculus.ps' sh: -c: line 0: syntax error near unexpected token `(' sh: -c: line 0: `ps2pdf QuantumCalculus.ps' sh: -c: line 0: syntax error near unexpected token `(' sh: -c: line 0: `/Applications/Skim.app/Contents/Resources/displayline 177 "QuantumCalculus.pdf" /Users/jenny/Desktop/Pending/QuantumCalculus.tex'</span></font></div><div><font class="Apple-style-span" face="'Trebuchet MS'" size="3"><span class="Apple-style-span" style="font-size: 13px;"><br class="webkit-block-placeholder"></span></font></div><div><font class="Apple-style-span" face="'Trebuchet MS'" size="3"><span class="Apple-style-span" style="font-size: 13px;"><span class="Apple-style-span" style="color: rgb(255, 0, 0); ">A fatal error occured, log file is in <a href="txmt://open?url=file:%2F%2F%2FUsers%2Fjenny%2FDesktop%2FPending%2FNewGeomMethods(QuantumCalculus).log&line=1" style="color: red; margin-top: 0px; ">QuantumCalculus.log</a></span></span></font></div><div><font class="Apple-style-span" face="'Trebuchet MS'" size="3"><span class="Apple-style-span" style="font-size: 13px;"><br class="webkit-block-placeholder"></span></font></div><div><font class="Apple-style-span" face="'Trebuchet MS'" size="3"><span class="Apple-style-span" style="font-size: 13px;">I have tried changing the viewer, but the error message is essentially the same.   The focus remains in TextMate, the typeset document is correct, and t<span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px; ">here are no errors in the log file.    </span></span></font></div><div><br class="webkit-block-placeholder"></div><div> I created a new version of the same document by pasting in small section after section to find the problem.  It typeset perfectly each time, all the way through to the end.  The two files are identical and one works, the other doesn't.  Naturally,  I  began using the second, but after a dozen or so uses of Typeset & View, it gave me the same error message as above.   </div><div><br class="webkit-block-placeholder"></div><div>Thanks for the help,</div><div><br class="webkit-block-placeholder"></div><div>Jenny</div></body></html>