<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV>I tried to reproduce the problem on a new project :</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Just create a new project, create a new Latex file using the Article template and drop the following:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN>\usepackage{pstricks}</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>\usepackage{pdfsync}</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>And you'll be able to see the problem ...</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>So I guess I have to move from:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">  </SPAN>\usepackage{pdfsync}</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>to:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN>\ifpdf</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">       </SPAN>\usepackage{pdfsync}</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN>\fi</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Is there any solution to use PSTricks and still have the PDF synchronization ?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Thanks,</DIV><DIV>Sylvain</DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR><DIV><DIV>Le 31 août 07 à 13:38, Brad Miller a écrit :</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite">I cannot reproduce the problem on my machine.  I think that there was some problem with processing the master file that I fixed in subversion post 1414.<BR><BR>I've also noticed that even if I have \usepackage{pstricks}, If I also have \usepackage[pdftex]{graphicx} in the same file latex will decide to write a pdf file rather than a dvi file.  So throwing in a \usepackage{pstricks} may not be having the effect you think. <BR><BR>Brad<BR><BR><DIV><SPAN class="gmail_quote">On 8/31/07, <B class="gmail_sendername">Sylvain Desvé</B> <<A href="mailto:sylvain.desve@mines.inpl-nancy.fr">sylvain.desve@mines.inpl-nancy.fr</A>> wrote:</SPAN><BLOCKQUOTE class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> I'm using a master file. I specified it using the "File Preferences ><BR>Set Master File". I also have an environment variable in the project<BR>scope (TM_LATEX_MASTER).<BR><BR>For the moment I have no PSTricks drawing in my latex document, I <BR>just tried adding the package. When I don't import the package, the<BR>"Typeset & View" window says that it's running pfdlatex on master.tex<BR>and if I import the package it says it's running latex on master.tex.<BR><BR>I use the teTeX distribution which I installed using MacPorts.<BR><BR>Thanks,<BR>Sylvain<BR><BR>Le 30 août 07 à 23:02, Brad Miller a écrit :<BR><BR>> The issue you reference *should* be handled correctly by the new <BR>> Typeset & View command.<BR>> It should detect that you have included pstricks and then run plain<BR>> latex, followed by divps and then ps2pdf.<BR>><BR>> Are you using a master file?  If so how is it specified? <BR>><BR>> When you run typeset & view  Does the output verify that you are<BR>> running latex?  On what file?<BR>><BR>> Thanks,<BR>><BR>> Brad<BR>><BR>> --<BR>> Brad Miller<BR>> Assistant Professor, Computer Science <BR>> Luther College<BR>><BR>> On 8/30/07, Sylvain Desvé<<A href="mailto:Sylvain.DESVE@mines.inpl-nancy.fr">Sylvain.DESVE@mines.inpl-nancy.fr</A>> wrote:<BR>>> Hi,<BR>>><BR>>> I tried using the pstricks package to draw in my latex file. <BR>>><BR>>> The "Typeset & View" command fails with the following:<BR>>><BR>>>    This is dvips(k) 5.95a Copyright 2005 Radical Eye Software<BR>>> ( <A href="http://www.radicaleye.com"> www.radicaleye.com</A>) dvips:<BR>>>    ! DVI file can't be opened. Error: /undefinedfilename in<BR>>> (<A href="http://master.ps">master.ps</A>) Operand stack:<BR>>>    Execution stack: %interp_exit .runexec2 --nostringval-- -- <BR>>> nostringval-- --nostringval--<BR>>>    2 %stopped_push --nostringval-- --nostringval-- --nostringval--<BR>>> false 1 %stopped_push<BR>>>    Dictionary stack: --dict:1145/1684(ro)(G)-- --dict:0/20(G)-- -- <BR>>> <A href="dict:70/200(L)--">dict:70/200(L)--</A> Current<BR>>>    allocation mode is local Last OS error: 2 GPL Ghostscript 8.60:<BR>>> Unrecoverable error, exit code 1<BR>>><BR>>> This issue was adressed here:<BR>>>     <A href="http://henrik.nyh.se/2006/10/textmate-latex-bundle-and-compiling-">http://henrik.nyh.se/2006/10/textmate-latex-bundle-and-compiling-</A><BR>>> to-pdf-via-ps)<BR>>><BR>>> But I'm using build 1414 and the Latex bundle has been fully <BR>>> refactored since so I thought<BR>>> the "typeset via PS" feature had been forgotten in the new bundle. If<BR>>> not, forgive me.<BR>>><BR>>> Thanks,<BR>>> Sylvain Desvé <BR>>> _______________________________________________<BR>>> textmate-dev mailing list<BR>>> <A href="mailto:textmate-dev@lists.macromates.com">textmate-dev@lists.macromates.com</A><BR>>> <A href="http://lists.macromates.com/mailman/listinfo/textmate-dev"> http://lists.macromates.com/mailman/listinfo/textmate-dev</A><BR>><BR>><BR>> _______________________________________________<BR>> textmate-dev mailing list<BR>> <A href="mailto:textmate-dev@lists.macromates.com"> textmate-dev@lists.macromates.com</A><BR>> <A href="http://lists.macromates.com/mailman/listinfo/textmate-dev">http://lists.macromates.com/mailman/listinfo/textmate-dev</A><BR><BR><BR>_______________________________________________ <BR>textmate-dev mailing list<BR><A href="mailto:textmate-dev@lists.macromates.com">textmate-dev@lists.macromates.com</A><BR><A href="http://lists.macromates.com/mailman/listinfo/textmate-dev">http://lists.macromates.com/mailman/listinfo/textmate-dev </A><BR></BLOCKQUOTE></DIV><BR><BR clear="all"><BR>-- <BR>Brad Miller<BR>Assistant Professor, Computer Science<BR>Luther College<DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">textmate-dev mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:textmate-dev@lists.macromates.com">textmate-dev@lists.macromates.com</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://lists.macromates.com/mailman/listinfo/textmate-dev">http://lists.macromates.com/mailman/listinfo/textmate-dev</A></DIV> </BLOCKQUOTE></DIV><BR></BODY></HTML>