[pstricks] problems running test-pst.tex
Patrick Drechsler
patrick.drechsler at gmx.net
Sat May 22 20:52:50 CEST 2004
Hi,
I'm having trouble latexing test-pst.tex.
If managed to reduce the file a bit and it seems to have
something to do with file lgc/4-10-7.inl.
Here's the reduced test-pst.tex:
--8<------------------------schnipp------------------------->8---
\documentclass{article}
\usepackage[latin1]{inputenc} % From LaTeX distribution
\usepackage{calc} % From LaTeX distribution
\usepackage{graphicx} % From LaTeX distribution
\usepackage{ifthen} % From LaTeX distribution
\usepackage{subfigure} % From CTAN/macros/latex/contrib/supported/subfigure
\usepackage{pst-all} % From PSTricks
\usepackage{pst-poly} % From pstricks/contrib/pst-poly
\usepackage{multido} % From PSTricks
\input{random.tex} % From CTAN/macros/generic
% Take care that on some non Unix systems, you may have to replace
% the / character by, for instance, the : one (\input{lgc:#2.inl}})
\newcommand{\ExampleSubFigure}[2][0.3333]{%
\subfigure[Example #2]{%
\begin{minipage}[t]{#1\textwidth}
\parbox[b]{\textwidth}{%
\centering
\input{lgc/#2.inl}}
\end{minipage}}}
\newpsobject{showgrid}{psgrid}{subgriddiv=1,griddots=10,gridlabels=6pt}
% New colors defined
\definecolor{brown}{rgb}{.65, .16, .16}
\definecolor{lightblue}{rgb}{.68, .85, .9}
\definecolor{palegreen}{rgb}{.6, .98, .6}
\definecolor{pink}{rgb}{1, .75, .8}
\definecolor{wheat}{rgb}{.96, .87, .7}
% Layout changes
\textheight=23cm
\topmargin=-2cm
\textwidth=16cm
\oddsidemargin=0cm
\evensidemargin=0cm
\begin{document}
\begin{figure}[!htbp]
\centering
\ExampleSubFigure[0.4]{4-10-7}
\caption{Section 10-A}
\end{figure}
\end{document}
--8<------------------------schnapp------------------------->8---
,----
| ERROR: Undefined control sequence.
|
| --- TeX said ---
| \pst at linetype ->\pslinetype
|
| l.5 ...es,PolyOffset=2,PolyIntermediatePoint=0.75]
`----
The file 4-10-7 works as soon as I exclude the linestyle=dashed
in line 5:
--8<------------------------schnipp------------------------->8---
\PstPolygon
\PstPolygon[PolyNbSides=11]
\PstPolygon[PolyOffset=2]
\PstPolygon[linecolor=red,PolyIntermediatePoint=0.2]
\PstPolygon[linestyle=dashed,PolyCurves,PolyOffset=2,PolyIntermediatePoint=0.75]
% exclude /^^^^^^^^^^^^^^^^
% do this instead:
%\PstPolygon[%linestyle=dashed,
%PolyCurves,PolyOffset=2,PolyIntermediatePoint=0.75]
\PstPolygon[unit=2,PolyNbSides=9,PolyOffset=2]
\PstPolygon[unit=2,PolyNbSides=27,PolyOffset=7,PolyCurves,
PolyIntermediatePoint=0.1]
--8<------------------------schnapp------------------------->8---
Any ideas what I'm doing wrong?
Patrick
,----[ *File List* ]
| test-pst.tex
| article.cls 2001/04/21 v1.4e Standard LaTeX document class
| size10.clo 2001/04/21 v1.4e Standard LaTeX file (size option)
| inputenc.sty 2001/07/10 v0.99a Input encoding file
| latin1.def 2001/07/10 v0.99a Input encoding file
| calc.sty 1998/07/07 v4.1b Infix arithmetic (KKT,FJ)
| graphicx.sty 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
| keyval.sty
| graphics.sty 2001/07/07 v1.0n Standard LaTeX Graphics (DPC,SPQR)
| trig.sty 1999/03/16 v1.09 sin cos tan (DPC)
| graphics.cfg 2001/08/31 v1.1 graphics configuration of teTeX/TeXLive
| dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
| ifthen.sty 2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)
| subfigure.sty 1995/03/06 v2.0 subfigure package
| pst-all.sty 2004/05/06 the main pstricks tools
| pstricks.sty 2004/05/12 v0.2l LaTeX wrapper for `PSTricks' (RN,HV)
| pstricks.tex 2003/03/07 v97 patch 15 `PSTricks' (tvz)
| color.sty 1999/02/16 v1.0i Standard LaTeX Color (DPC)
| color.cfg 2001/08/31 v1.1 color configuration of teTeX/TeXLive
| dvipsnam.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
| pst-grad.sty 1997/03/25 package wrapper for PSTricks pst-grad.tex
| pst-plot.sty 1997/03/25 package wrapper for PSTricks pst-plot.tex
| pst-coil.sty 1997/03/25 package wrapper for PSTricks pst-coil.tex
| pst-text.sty 1997/03/25 package wrapper for PSTricks pst-text.tex
| pst-char.sty 1997/03/25 package wrapper for PSTricks pst-char.tex
| pst-node.sty 1997/03/25 package wrapper for PSTricks pst-node.tex
| pst-3d.sty 1997/03/25 package wrapper for PSTricks pst-3d.tex
| pst-eps.sty 1997/03/25 package wrapper for PSTricks pst-eps.tex
| pst-fill.sty 1997/04/08 package wrapper for PSTricks pst-fill package
| pst-tree.sty 1997/03/25 package wrapper for PSTricks pst-tree.tex
| multido.sty 2004/05/17 package wrapper for PSTricks `multido.tex', (HV/RN)
| pst-poly.sty 1997/06/11 package wrapper for PSTricks pst-poly.tex
| random.tex
| lgc/4-10-7.inl
`----
--
I'm not asleep. I'm just looking at my eyelids!
More information about the PSTricks
mailing list