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.

I'm trying to get some PSTricks pictures to PDF. I'm using the information provided on http://tug.org/PSTricks/main.cgi?file=pdf/pdfoutput#autopstpdf

Well, never change a running system ... yesterday it worked, but due to HDD problems I had to reinstall my system (Win XP sp3, Miktex 2.9, Texniccenter 2.02). The thing is, the final .pdf is created, Latex->PDF, XeLatex->PFD, ... it doesn't matter. But what I would need is the cropped .pdf from the picture itself, the <'file'-autopp.pdf>.

Perl (5v18) ist installed (although before the reinstallation I didn't have it). I got the "typical" two warnings, which I found quite often in forums, but those guys just needed the final .pdf, I would need the cropped pictures.

Using:

 \documentclass[12pt]{article}

 \usepackage[pdf]{pstricks}
 \usepackage[crop=off]{auto-pst-pdf}
 \usepackage{pst-pdf}

 \begin{document}
 \input{a.pstricks}
 \end{document}

Getting (umformen.log): (... .tex-file is called "umformen")

[...]
    runsystem(echo "-------------------------------------------------")...executed.
    runsystem(echo "auto-pst-pdf: Auxiliary LaTeX compilation")...executed.
    runsystem(echo "-------------------------------------------------")...executed.
    runsystem(del "umformen-autopp.log")...executed.

    runsystem(latex -disable-write18 -jobname="umformen-autopp" -interaction=batchmode  "\let \APPmakepictures \empty \input
      umformen.tex")...executed.

    Package auto-pst-pdf Warning: 
        Creation of umformen-autopp.dvi failed.
    This warning occured on input line 124.

    Package auto-pst-pdf Warning: 
        Could not create umformen-pics.pdf. Auxiliary files not deleted.
    This warning occured on input line 124.
    runsystem(echo "-------------------------------------------------")...executed.
    runsystem(echo "auto-pst-pdf: End auxiliary LaTeX compilation")...executed.
    runsystem(echo "-------------------------------------------------")...executed.
[...]

Because the whole system is reinstalled, I think the error is maybe somewhere else? Anyone any clues?

Greetings, Florian

share|improve this question
    
Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. –  Heiko Oberdiek Apr 10 at 9:39
    
There can be clues in umformen-autopp.log if it exists. Otherwise the DVI generation can be done manually using the quoted command line latex -disable-write18 -jobname=umformen-autopp ... umformen.tex". –  Heiko Oberdiek Apr 10 at 9:59
    
Using the command line I get a .dvi, but I'm not quite sure, what do do with that? The umformen-autopp.log does exist. > –  Florian Kogler Apr 10 at 12:17

2 Answers 2

that cannot work, because a package is not loaded twice. \usepackage[pdf]{pstricks} already loads auto-pst-pdf. Try

 \documentclass[12pt]{article}

 \usepackage{ifpdf}
 \usepackage[crop=off]{auto-pst-pdf}
 \ifpdf\else\usepackage{pstricks}\fi

 \begin{document}
 \input{a.pstricks}
 \end{document}

and also:

 \documentclass[12pt]{article}

 \usepackage{ifpdf}
 \usepackage{auto-pst-pdf}
 \ifpdf\else\usepackage{pstricks}\fi

 \begin{document}
 \input{a.pstricks}
 \end{document}

I tried the first example and an up-to-date MiKTeX 2.9 on a Windows 7.0 with a file a.pstricks:

\begin{pspicture}
\psframe*[linecolor=blue](10,10)
\end{pspicture}

and had no problems (running TeXmaker with enabled --shell-escape)

share|improve this answer
    
I tried both, both not working, same two warnings and no ..-autopp.pdf –  Florian Kogler Apr 10 at 12:04
    
ok, then use the example with \usepackage[cleanup={}]{auto-pst-pdf}. What files were created? –  Herbert Apr 10 at 12:44
    
Using this line I get a u*.aux, u*.log, u*.pdf, u*.synctex, u*-autopp.log - and of course the two warnings occure –  Florian Kogler Apr 10 at 14:56
    
it looks like that you have no write access for that directory where the external file is written. –  Herbert Apr 10 at 15:16
    
Using XP, specially just as one user, I didn't think the problem was there. Today I tried from the beginning, and it worked. So I tried to find the error. I'm not completely sure, but I think it's a \begin{picture} instead of \begin{pspicture}, which causes all the troubles. –  Florian Kogler Apr 11 at 6:58
up vote 0 down vote accepted

\begin{pspicture} instead of \begin{picture}

I was using the programm "JPicEdt" to actually draw the picture. One can choose the type of picture: "Emulated Latex", "PSTricks", ... Unfortunatly the type was wrong configurated, also in the minimal I made (a.pstricks), which infact wasn't minimal, but one step over minimal, including the error.
Changing the type does change the output file (pspicture -> picture), although the "save"-button stays gray. Maybe somehow the error got in there.

Hoping to help somebody, thanks for helping me!
Florian

share|improve this answer

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.