Featured Book

LaTeX Beginners Guide

Who is online

In total there are 6 users online :: 0 registered, 0 hidden and 6 guests (based on users active over the past 5 minutes)
Most users ever online was 1327 on Tue Nov 05, 2013 7:11 pm

Users browsing this forum: No registered users and 6 guests

Partner Sites

TeXwelt - Fragen und Antworten goLaTeX
TeXblog
TeXnicCenter
TeXample

PSTricks - TexLive: How to

Add tags Information and discussion about specific document classes and how to create your own document classes.

PSTricks - TexLive: How to

Postby svenskmand on Thu Sep 11th, 2008

Hello everybody,

i wanted to try out PSTricks as I often need math in my figures, so i installed the package "pstricks" and tried this example (I got the example from http://tug.org/PSTricks/Examples/Simple/simple0.tex so it should work)

Code: Select all  •  Open in writeLaTeX
\documentclass[a4paper,12pt]{article}
\usepackage{pstricks}

\begin{document}
\newgray{lGray}{0.95}          
\psset{unit=0.05mm
}% 1:20, or =0.1mm for 1:10
\begin{pspicture}(-100,-100)(1000,1300)
  \pspolygon[linewidth=2pt,fillcolor=lGray,%
      fillstyle=solid](0,0)(0,940)(860,1250)(860,0)
  \psset{linewidth=0.2pt,arrowscale=2,tbarsize=10pt}
  \psline{|<->|}(0,-100)(860,-100)\rput*(430,-100){860mm}      
  \psline{|<->|}(960,0)(960,1250)\rput*{90}(960,625){1250mm}      
  \psline{|<->|}(-100,0)(-100,940)\rput*{90}(-100,470){940mm}      
\end{pspicture}

\end{document
}


and got the following error

Code: Select all  •  Open in writeLaTeX
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
 %&-line parsing enabled.
entering extended mode
(./simple0.tex
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, loaded.
(/usr/share/texmf-texlive/tex/latex/base/article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(/usr/share/texmf-texlive/tex/latex/base/size12.clo))
(/home/svenskmand/texmf/tex/latex/pstricks/pstricks.sty
(/home/svenskmand/texmf/tex/generic/pstricks/pstricks.tex
`PSTricks' v1.26  <2008/07/31> (tvz)
(/home/svenskmand/texmf/tex/generic/pstricks/pstricks.con))
(/usr/share/texmf-texlive/tex/latex/graphics/color.sty
(/etc/texmf/tex/latex/config/color.cfg)
(/usr/share/texmf-texlive/tex/latex/pdftex-def/pdftex.def))) (./simple0.aux)
! Undefined control sequence.
<recently read> \c@lor@to@ps
                             
l.9       fillstyle=solid](
                           0,0)(0,940)(860,1250)(860,0)
! Undefined control sequence.
\pst@usecolor ...\string \color@ #1\endcsname \@@
                                                  \space
l.9       fillstyle=solid](
                           0,0)(0,940)(860,1250)(860,0)
! Undefined control sequence.
<recently read> \c@lor@to@ps
                             
l.10   \psset
             {linewidth=0.2pt,arrowscale=2,tbarsize=10pt}
! Undefined control sequence.
\pst@usecolor ...\string \color@ #1\endcsname \@@
                                                  \space
l.10   \psset
             {linewidth=0.2pt,arrowscale=2,tbarsize=10pt}
! Undefined control sequence.
<recently read> \c@lor@to@ps
                             
l.10   \psset
             {linewidth=0.2pt,arrowscale=2,tbarsize=10pt}
! Undefined control sequence.
\pst@usecolor ...\string \color@ #1\endcsname \@@
                                                  \space
l.10   \psset
             {linewidth=0.2pt,arrowscale=2,tbarsize=10pt}
! Undefined control sequence.
<recently read> \c@lor@to@ps
                             
l.11   \psline{|<->|}
                     (0,-100)(860,-100)\rput*(430,-100){860mm}
! Undefined control sequence.
\pst@usecolor ...\string \color@ #1\endcsname \@@
                                                  \space
l.11   \psline{|<->|}
                     (0,-100)(860,-100)\rput*(430,-100){860mm}
! Undefined control sequence.
<recently read> \c@lor@to@ps
                             
l.11   \psline{|<->|}(0,-100)(860,-100)\rput
                                            *(430,-100){860mm}
! Undefined control sequence.
\pst@usecolor ...\string \color@ #1\endcsname \@@
                                                  \space
l.11   \psline{|<->|}(0,-100)(860,-100)\rput
                                            *(430,-100){860mm}
! Undefined control sequence.
<recently read> \c@lor@to@ps
                             
l.11 ...}(0,-100)(860,-100)\rput*(430,-100){860mm}
                                                 
! Undefined control sequence.
\pst@usecolor ...\string \color@ #1\endcsname \@@
                                                  \space
l.11 ...}(0,-100)(860,-100)\rput*(430,-100){860mm}
                                                 
! Undefined control sequence.
<recently read> \c@lor@to@ps
                             
l.11 ...}(0,-100)(860,-100)\rput*(430,-100){860mm}
                                                 
! Undefined control sequence.
\pst@usecolor ...\string \color@ #1\endcsname \@@
                                                  \space
l.11 ...}(0,-100)(860,-100)\rput*(430,-100){860mm}
                                                 
! Undefined control sequence.
<recently read> \c@lor@to@ps
                             
l.12   \psline{|<->|}
                     (960,0)(960,1250)\rput*{90}(960,625){1250mm}
! Undefined control sequence.
\pst@usecolor ...\string \color@ #1\endcsname \@@
                                                  \space
l.12   \psline{|<->|}
                     (960,0)(960,1250)\rput*{90}(960,625){1250mm}
! Undefined control sequence.
<recently read> \c@lor@to@ps
                             
l.12   \psline{|<->|}(960,0)(960,1250)\rput
                                           *{90}(960,625){1250mm}
! Undefined control sequence.
\pst@usecolor ...\string \color@ #1\endcsname \@@
                                                  \space
l.12   \psline{|<->|}(960,0)(960,1250)\rput
                                           *{90}(960,625){1250mm}
! Undefined control sequence.
<recently read> \c@lor@to@ps
                             
l.12 ...60,0)(960,1250)\rput*{90}(960,625){1250mm}
                                                 
! Undefined control sequence.
\pst@usecolor ...\string \color@ #1\endcsname \@@
                                                  \space
l.12 ...60,0)(960,1250)\rput*{90}(960,625){1250mm}
                                                 
! Undefined control sequence.
<recently read> \c@lor@to@ps
                             
l.12 ...60,0)(960,1250)\rput*{90}(960,625){1250mm}
                                                 
! Undefined control sequence.
\pst@usecolor ...\string \color@ #1\endcsname \@@
                                                  \space
l.12 ...60,0)(960,1250)\rput*{90}(960,625){1250mm}
                                                 
! Undefined control sequence.
<recently read> \c@lor@to@ps
                             
l.13   \psline{|<->|}
                     (-100,0)(-100,940)\rput*{90}(-100,470){940mm}
! Undefined control sequence.
\pst@usecolor ...\string \color@ #1\endcsname \@@
                                                  \space
l.13   \psline{|<->|}
                     (-100,0)(-100,940)\rput*{90}(-100,470){940mm}
! Undefined control sequence.
<recently read> \c@lor@to@ps
                             
l.13   \psline{|<->|}(-100,0)(-100,940)\rput
                                            *{90}(-100,470){940mm}
! Undefined control sequence.
\pst@usecolor ...\string \color@ #1\endcsname \@@
                                                  \space
l.13   \psline{|<->|}(-100,0)(-100,940)\rput
                                            *{90}(-100,470){940mm}
! Undefined control sequence.
<recently read> \c@lor@to@ps
                             
l.13 ...00,0)(-100,940)\rput*{90}(-100,470){940mm}
                                                 
! Undefined control sequence.
\pst@usecolor ...\string \color@ #1\endcsname \@@
                                                  \space
l.13 ...00,0)(-100,940)\rput*{90}(-100,470){940mm}
                                                 
! Undefined control sequence.
<recently read> \c@lor@to@ps
                             
l.13 ...00,0)(-100,940)\rput*{90}(-100,470){940mm}
                                                 
! Undefined control sequence.
\pst@usecolor ...\string \color@ #1\endcsname \@@
                                                  \space
l.13 ...00,0)(-100,940)\rput*{90}(-100,470){940mm}
                                                 
[1
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map
}
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
] (./simple0.aux) )
(see the transcript file for additional information)</usr/share/texmf-texlive/f
onts/type1/bluesky/cm/cmr12.pfb>
Output written on simple0.pdf (1 page, 5069 bytes).
Transcript written on simple0.log.


I have TexLive version 2007-13 installed from the repo in Ubuntu 8.04 and use MiKTeX Package Manager (mpm) to install other packages. I installed pstricks from mpm, but as i got the above problem i installed texlive-pstricks from Synaptic, but I still got the above error. Anybody have any clue?

Best regards.
svenskmand
 
Posts: 5
Joined: Wed Aug 6th, 2008

Re: PSTricks - TexLive: How to

Postby Stefan_K on Thu Sep 11th, 2008

Hi Svenskmand,

don't use pdflatex with PSTricks, compile with latex instead. There are different buttons for instance in Kile. If you want to produce pdf output format, compile with latex to dvi, convert to ps by dvips and then to pdf by ps2pdf. Kile provides buttons for each step.

Stefan
LaTeX Community Administrator
User avatar
Stefan_K
Site Admin
 
Posts: 6269
Joined: Mon Mar 10th, 2008
Location: Hamburg, Germany

Re: PSTricks - TexLive: How to

Postby localghost on Thu Sep 11th, 2008

Take at look at the frequently done errors on the homepage of PSTricks. Pay special attention to point 5 of the list. This is what Stefan already mentioned.


Best regards
Thorsten¹
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 13.1 (Linux 3.11.10), TeX Live 2013 (vanilla), TeXworks 0.5 (r1351)
² Posting stopped indefinitely due to offenses
User avatar
localghost
Site Moderator
 
Posts: 9219
Joined: Fri Feb 2nd, 2007
Location: Braunschweig, Germany

Re: PSTricks - TexLive: How to

Postby svenskmand on Thu Sep 11th, 2008

Stefan_K wrote:Hi Svenskmand,

don't use pdflatex with PSTricks, compile with latex instead. There are different buttons for instance in Kile. If you want to produce pdf output format, compile with latex to dvi, convert to ps by dvips and then to pdf by ps2pdf. Kile provides buttons for each step.

Stefan


Thank you :), worked like a charm :)
svenskmand
 
Posts: 5
Joined: Wed Aug 6th, 2008


Return to Document Classes

Who is online

Users browsing this forum: No registered users and 6 guests