Graphics, Figures & TablesGetting PStricks to work under Win7

Information and discussion about graphics, figures & tables in LaTeX documents.
justincase
Posts: 25
Joined: Sat Sep 04, 2010 1:56 am

Getting PStricks to work under Win7

Post by justincase »

Hi there

I'm using Texnic Center under Win7 Professional and Pstricks won't work.

What I did:
I've installed Ghost Script (and added it to the system variables) and MikTex, after that Texnic Center. I'm trying the Profile Latex => PS => PDf 'cause this should be the way to get it to work. I've read allot but nothing helped me out.

Some Code:
My test.tex:

Code: Select all

\documentclass{minimal}

\usepackage{pstricks}
\usepackage{pst-pdf}
\begin{document}
\log
\begin{pspicture}(5,2)
    \psgrid[subgriddiv=1,
        griddots=7,
        gridlabels=5pt,
        gridcolor=gray,
        gridlabelcolor=gray](0,0)(5,2)
    % A blue curve
    \psline[linecolor=blue]{->}(0,0)(1, 0.75)(2,0.5)(3,1.5)(4,1.25)(5,2)
\end{pspicture}

\end{document}
My log:

Code: Select all

This is pdfTeX, Version 3.1415926-1.40.10 (MiKTeX 2.8) (preloaded format=latex 2010.9.3)  3 SEP 2010 18:55
entering extended mode
**graphen_test.tex
(C:\Users\BlackDevil\Documents\graphen_test.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman, ngerman, german-x-2009-06-19, ngerman-x-2009-06-19, french, loaded.
("C:\Program Files\MiKTeX 2.8\tex\latex\base\minimal.cls"
Document Class: minimal 2001/05/25 Standard LaTeX minimal class
) ("C:\Program Files\MiKTeX 2.8\tex\latex\pstricks\pstricks.sty"
Package: pstricks 2010/08/28 v0.46 LaTeX wrapper for `PSTricks' (RN,HV)

("C:\Program Files\MiKTeX 2.8\tex\generic\pstricks\pstricks.tex"
("C:\Program Files\MiKTeX 2.8\tex\generic\xkeyval\pst-xkey.tex"
File: pst-xkey.tex 2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)

("C:\Program Files\MiKTeX 2.8\tex\latex\xkeyval\xkeyval.sty"
Package: xkeyval 2008/08/13 v2.6a package option processing (HA)

("C:\Program Files\MiKTeX 2.8\tex\generic\xkeyval\xkeyval.tex"
\XKV@toks=\toks14
\XKV@tempa@toks=\toks15
\XKV@depth=\count79
File: xkeyval.tex 2008/08/13 v2.6a key=value parser (HA)

("C:\Program Files\MiKTeX 2.8\tex\generic\xkeyval\keyval.tex"))))
("C:\Program Files\MiKTeX 2.8\tex\generic\pstricks\pst-fp.tex"
`pst-fp' v0.06, 2010/05/14 (hv)
\pstFP@xs=\count80
\pstFP@xia=\count81
\pstFP@xib=\count82
\pstFP@xfa=\count83
\pstFP@xfb=\count84
\pstFP@rega=\count85
\pstFP@regb=\count86
\pstFP@regs=\count87
\pstFP@times=\count88
)
\psLoopIndex=\count89

`PSTricks' v2.10  <2010/08/27> (tvz)
\pst@dima=\dimen102
\pst@dimb=\dimen103
\pst@dimc=\dimen104
\pst@dimd=\dimen105
\pst@dimg=\dimen106
\pst@dimh=\dimen107
\pst@dimm=\dimen108
\pst@dimn=\dimen109
\pst@dimo=\dimen110
\pst@dimp=\dimen111
\pst@hbox=\box26
\pst@boxg=\box27
\pst@cnta=\count90
\pst@cntb=\count91
\pst@cntc=\count92
\pst@cntd=\count93
\pst@cntg=\count94
\pst@cnth=\count95
\pst@cntm=\count96
\pst@cntn=\count97
\pst@cnto=\count98
\pst@cntp=\count99
\@zero=\count100
\pst@toks=\toks16
("C:\Program Files\MiKTeX 2.8\tex\generic\pstricks\pstricks.con")
\psunit=\dimen112
\psxunit=\dimen113
\psyunit=\dimen114
\pslinewidth=\dimen115
\pst@customdefs=\toks17
\pslinearc=\dimen116
\pst@symbolStep=\dimen117
\pst@symbolWidth=\dimen118
\everypsbox=\toks18
\psframesep=\dimen119
\pslabelsep=\dimen120
\pst@shift=\dimen121
\theoverlaybox=\box28
)
File: pstricks.tex 2010/08/27 v2.10 `PSTricks' (tvz,hv)

("C:\Program Files\MiKTeX 2.8\tex\generic\pstricks\pst-fp.tex")
File: pst-fp.tex 2010/08/27 v2.10 `PST-fp' (hv)

I hope some one can help me. Otherwise: What I'm trying to do is to draw such a graph
diodenkennlinie.jpg
diodenkennlinie.jpg (8.05 KiB) Viewed 5147 times
Maybe there's another way to do it...

greetings

Edit: I forgot to say that it will not build a document.


Edit by localghost: No external links (where applicable)! Attachments go onto the forum server (see Board Rules).
Last edited by justincase on Sun Sep 05, 2010 12:33 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: Getting PStricks to work under Win7

Post by josephwright »

Your example will compile if you remove the \log command, which is not really logical here.
Joseph Wright
CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

Getting PStricks to work under Win7

Post by CrazyHorse »

justincase wrote: I'm using Texnic Center under Win7 Professional and Pstricks won't work.

What I did:
I've installed Ghost Script (and added it to the system variables) and MikTex, after that Texnic Center. I'm trying the Profile Latex => PS => PDf 'cause this should be the way to get it to work. I've read allot but nothing helped me out.

Some Code:
My test.tex:

Code: Select all

\documentclass{minimal}

\usepackage{pstricks}
\usepackage{pst-pdf}
\begin{document}
\log
When using package auto-pst-pdf then run "pdflatex -shell-escape file"
see http://tug.org/PSTricks/main.cgi?file=p ... autopstpdf

Or run it with latex->dvips->ps2pdf and without the auto-pst-pdf package.
Abd, as Joseph already pointet out, delete the \log statement.

Herbert
justincase
Posts: 25
Joined: Sat Sep 04, 2010 1:56 am

Getting PStricks to work under Win7

Post by justincase »

The \log is just there to get the log for you guys. It doesn't compile with or without...

Okay I've installed Pearl and added the shell extension and used the example code

Code: Select all

\documentclass[12pt]{article}

\usepackage{pstricks}
\usepackage{auto-pst-pdf}

\pagestyle{empty}

\begin{document}

\begin{pspicture}(-5.25,-5.25)(5.25,5.25)%
  \pscircle*[linecolor=cyan]{5}
  \psgrid[subgriddiv=0,gridcolor=lightgray,gridlabels=0pt]
  \Huge\sffamily\bfseries
  \rput(-4.5,4.5){A} \rput(4.5,4.5){B}
  \rput(-4.5,-4.5){C}\rput(4.5,-4.5){D}
  \rput(0,0){auto-pst-pdf}
  \rmfamily
  \rput(0,-3.8){PSTricks}
  \rput(0,3.8){\LaTeX}
\end{pspicture}

\end{document}
It still won't work :(
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Getting PStricks to work under Win7

Post by frabjous »

The command \log means "logarithm", the mathematical function. It has nothing to do with producing a log file. Log files should be produced whatever you do. (You could add \listfiles at the beginning if you wanted a more verbose one, however.)

Is it producing a log file? If so, why not upload it here so we can see it?
justincase
Posts: 25
Joined: Sat Sep 04, 2010 1:56 am

Getting PStricks to work under Win7

Post by justincase »

Damn your right. Sorry.

Latest log file

Code: Select all

This is pdfTeX, Version 3.1415926-1.40.10 (MiKTeX 2.8) (preloaded format=pdflatex 2010.9.2)  4 SEP 2010 11:02
entering extended mode
**C:/Users/BlackDevil/Documents/graphen_test.tex
(C:/Users/BlackDevil/Documents/graphen_test.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman, ngerman, german-x-2009-06-19, ngerman-x-2009-06-19, french, loaded.
("C:\Program Files\MiKTeX 2.8\tex\latex\base\article.cls"
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
("C:\Program Files\MiKTeX 2.8\tex\latex\base\size10.clo"
File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
("C:\Program Files\MiKTeX 2.8\tex\generic\oberdiek\ifpdf.sty"
Package: ifpdf 2010/01/28 v2.1 Provides the ifpdf switch (HO)
Package ifpdf Info: pdfTeX in pdf mode detected.
)
CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

Getting PStricks to work under Win7

Post by CrazyHorse »

justincase wrote:
Latest log file

Code: Select all

This is pdfTeX, Version 3.1415926-1.40.10 (MiKTeX 2.8) (preloaded format=pdflatex 2010.9.2)  4 SEP 2010 11:02
entering extended mode
**C:/Users/BlackDevil/Documents/graphen_test.tex
(C:/Users/BlackDevil/Documents/graphen_test.tex
LaTeX2e <2009/09/24>
did you run pdflatex with the -shell-escape option?
See my last mail.

And do you have installed Perl? If not, see my link above.

Herbert
justincase
Posts: 25
Joined: Sat Sep 04, 2010 1:56 am

Getting PStricks to work under Win7

Post by justincase »

And yes, I've installed Pearl. But after I've installed Texnic.


Edit by localghost: No external links (where applicable)! Attachments go onto the forum server (see Board Rules).
Attachments
screen.png
screen.png (34.13 KiB) Viewed 5135 times
CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

Getting PStricks to work under Win7

Post by CrazyHorse »

justincase wrote:And yes, I've installed Pearl. But after I've installed Texnic.
that seems to be ok. The log file is incomplete.
What happens when running latex->dvips->ps2pdf
instead?

Herbert
justincase
Posts: 25
Joined: Sat Sep 04, 2010 1:56 am

Re: Getting PStricks to work under Win7

Post by justincase »

I don't have such a profile :/
Post Reply