Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

The page How to use PSTricks in pdfLaTeX? explains a workaround that allows to use PSTricks in pdfLaTeX. As far as I understand it, it allows you to include a mix of eps and pdf figures in a TeX document and to compile the document with pdfLaTeX. Along similar lines, I was wondering if there is any way to get PSTricks to work with PDFTeXify in WinEdt?

share|improve this question
    
You must use texify in the following way: texify.exe --pdf --tex-option=--enable-write18 If you are using TeXLive use: texify.exe --pdf --tex-option=--shell-escape –  Marco Daniel Sep 5 '11 at 21:43
add comment

2 Answers

texify (or pdftexify) is merely a program that will run (pdf)latex (and, if necessary, bibtex, makeindex, and what not) for however many times it takes to get all cross-references, citations, index commands, etc sorted out and resolved properly. Hence, as long as you've set your pdflatex program to run properly with pstricks, e.g., by specifying pdflatex -shell-escape, you shouldn't encounter any problems with pdftexify.

share|improve this answer
1  
@Marco @Mico Thanks to both for the answers. I had already sorted out pdflatex and that ran fine (in WinEdt: by adding -shell-escape before "%N%T" in the parameters box in Options > Execution modes > PDFLatex) but PDFTexify still did not work. However, Marco's suggestion seems to have done the trick: in Options > Execution modes > PDFTexify I added --tex-option=--enable-write18 after --pdf in the switches box and now PDFTexify seems to work with PSTricks. I did a quick check and I was able to compile a document that contained both eps and pdf figures with just PDFTexify. Thanks! –  Nicolas Sep 6 '11 at 12:04
    
Sorry, it works but it takes only pdf figures as input, not eps figures. –  Nicolas Sep 6 '11 at 12:27
2  
Apologies for adding to this, especially if this is common knowledge, but with \usepackage{epstopdf} in the preamble it is possible to include a mix of pdf and eps figures (epstopdf converts any eps files it encounters into pdfs on the spot) and run PDFTexify as explained above. –  Nicolas Sep 6 '11 at 14:39
add comment

try \usepackage[pdf]{pstricks} and then it should work with including eps images whith the option -shell-escape. And then there is no need for the package epstopdf

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.