[pstricks] latex->dvips->ps2pdf->pdflatex
David Arnold
dwarnold45 at suddenlink.net
Wed Jun 24 05:47:29 CEST 2009
All,
With the file below, saved as dev.tex, we try:
latex --shell-escape dev.tex
dvips -o dev-pics.ps dev.dvi
ps2pdf -dAutoRotatePages=/None dev-pics.ps dev-pics.pdf
pdflatex dev.tex
Only to get this error:
<dev-pics.pdf, id=2, page=1, 143.26523pt x 114.81895pt>
<use dev-pics.pdf, page 1>
! Too many }'s.
\psgraph ...{#1}\else \Addto at Envbody {#1\end {#2}}
\fi \process at envbody
l.32 \end{psgraph}
Any suggestions?
David.
\documentclass[12pt]{article}
\usepackage{pst-pdf}
\usepackage{preview}
\usepackage{pst-bar}
\usepackage{pst-plot}
\usepackage{pst-tree}
\usepackage{pstricks-add}
\PreviewEnvironment{psgraph}
\usepackage{filecontents}
\input{longdiv}
\begin{document}
\begin{filecontents*}{GasolinePrices.csv}
5/18, 5/25, 6/1, 6/15, 6/22
230, 243, 252, 267, 269
\end{filecontents*}
\psset{xAxisLabel={Date (2009)},xAxisLabelPos={c,-0.3in},
yAxisLabel={PPG Regular Gasoline},yAxisLabelPos={-0.5in,c}}
\begin{psgraph}[ticks=y,labels=y,dy=20,Dy=20,Oy=220,yticksize=0 5](0,0)
(5,60){5cm}{4cm}
\psframe[fillcolor=black!10,fillstyle=solid](0,0)(5,60)
\psaxes[labels=none,ticks=y,axesstyle=frame,Dy=10,yticksize=0 5](0,0)
(5,60)
\readpsbardata[header=true]{\data}{GasolinePrices.csv}
\psbarscale(1){220 sub}
\psbarchart[barstyle=blue]{\data}
\end{psgraph}
\end{document}
More information about the PSTricks
mailing list