Re: Problem with PSTricks using MikTex 2.9

Bruce Allison <[email protected]>
Newsgroups gmane.comp.tex.miktex
Message-ID <[email protected]>
Hello,
Thanks for all for the good suggestions regarding getting my pstricks 
commands to compile in WinEdt 6/MikTex 2.9 (under Windows 10) and 
produce a pdf file.  (See earlier posts for the exact commands).  Here 
is an update on the success of the various suggestions:

Suggestion 1.  Compile using the sequence latex, dvips, ps2pdf from the 
menu in WinEdt.
Result: Latex works (now that I have changed the dvi rendering method) 
and produces a correct dvi file.  Then dvips produces an error message  
(Cannot run C:\Program~2\PCTex\PCTexv6\pctex6.exe 
“My_path\Test_diagram.ps”), but also a ps file.  Finally, ps2pdf 
produces an error message (Cannot run “C:\Program Files 
(x86)\Adobe\Reader 9.0\Reader\AcroRd32” “My_path\Test_diagram.pdf”), but 
also a correct pdf file.  The same thing happens when I compile my full 
article (which contains 30 more complex pstricks diagrams).  So, if I am 
not bothered by the error messages, all appears to be is well.

Suggestion 2:  Add two lines at the beginning of the file (see Jerzy’s 
post), and compile using xelatex.
Result:  This doesn’t work for me.  MikTex reports that “Sorry, but 
xelatex did not succeed” and that “XeLatex failed to product a pdf 
file”.  The last line in the log file is “\pst@toks=\toks25”.

Suggestion 3:  Rewrite the code using tikx instead of pstricks (see 
Ulrike’s post), and compile using pdflatex.
Result:  Pdflatex produces an error message (the same as the 2nd one 
written under Suggestion 1), but also a correct pdf file.  So, again 
except for error message, all appears to be well.

Nevertheless, the error messages bother me.  Since the above methods 
work for others, I think now that the problem may be in my installation 
of Tex software on my computer.  For example, I also have PCTex 
installed on my system, which might explain somehow the error message 
produced by dvips.   I will try doing a new installation of 
WinEdt/MikTex) on my laptop (without PCTex installed), and see if that 
helps.

However, if you see anything that I am missing, please let me know.
Bruce


On 2016-11-02 10:27 AM, Ulrike Fischer wrote:
> Am Tue, 1 Nov 2016 23:08:34 -0600 schrieb Bruce Allison:
>
>> However, I still need to obtain a pdf file, and nothing I have tried has
>> worked in WinEdt/MikTex (e.g. pdflatex or dvi2pdf).
> postscript needs a postscript interpreter.
>
> So you need to run
>
> latex
> dvips
> ps2pdf
>
> All three tools have menu entries in winedt.
>
> The alternative is xelatex.
>
> Or you drop pstricks and use tikz instead, then you can compile with
> pdflatex directly:
>
> \documentclass{article}
> \usepackage{tikz}
> \begin{document}
> \begin{tikzpicture}
> \draw(0,0)--(4,0);
> \draw(2,0)--(2,1);
> \end{tikzpicture}
> \end{document}
>
>

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Q: How can I leave the mailing list?
A: See http://docs.miktex.org/faq/support.html#leavingml
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.