Document ClassesPSTricks - TexLive: How to

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
svenskmand
Posts: 5
Joined: Wed Aug 06, 2008 1:52 pm

PSTricks - TexLive: How to

Post by svenskmand »

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

\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

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.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Re: PSTricks - TexLive: How to

Post by Stefan Kottwitz »

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.org admin
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

PSTricks - TexLive: How to

Post by localghost »

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¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
svenskmand
Posts: 5
Joined: Wed Aug 06, 2008 1:52 pm

PSTricks - TexLive: How to

Post by svenskmand »

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 :)
Post Reply