I try to include a pstricks figure in a lyx document.
I use ERT
and from the example
%%Herbert Voss: PSTricks -- Grafik fuer TeX und LaTeX, 5. Auflage (1. Auflage
2004)
%%
%% Example 25-6-1 on page 485.
\documentclass{ttctexa}
\pagestyle{empty}
\setcounter{page}{6}
\setlength\textwidth{201.7051pt}
\setlength\parindent{0pt}
\StartShownPreambleCommands
\usepackage{pstricks,pst-map3dII}
\StopShownPreambleCommands
\begin{document}
\psset{path=pst-geo/dataII,unit=0.75cm}
\begin{pspicture*}(-7,-7)(7,7)%
\WorldMapThreeDII[all=true,rivers=false,level=75]
\end{pspicture*}
\end{document}
I use the following in my ERT box:
\psset{path=pst-geo/dataII,unit=0.75cm}
\begin{pspicture*}(-7,-7)(7,7)%
\WorldMapThreeDII[all=true,rivers=false,level=75]
\end{pspicture*}
In the preamble of my koma book I use
\usepackage{graphicx}
\usepackage{psfrag}
\usepackage {pstricks,pst-map3dII}
I have recently installed texlive2009 from a DVD (Dante)
and set the pathes in .profile to
export PATH=/usr/local/texlive/2009/bin/i386-linux:$PATH
export MANPATH=/usr/local/texlive/2009/texmf/doc/man:$MANPATH
export INFOPATH=/usr/local/texlive/2009/texmf/doc/info:$INFOPATH
running it I get the following errors in the latex log file:
Package hyperref Warning: Rerun to get /PageLabels entry.
! LaTeX Error: \begin{pspicture*} on input line 49 ended by \end{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.52 \end{document}
Your command was ignored.
Type I <command> <return> to replace it with another command,
or <return> to continue without it.
! Missing \endgroup inserted.
<inserted text>
\endgroup
l.52 \end{document}
I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.
! Missing } inserted.
<inserted text>
}
l.52 \end{document}
Does somebody know what I did wrong?
If of importance, I am using Debian Lenny
Would this path be found
\psset{path=pst-geo/dataII,unit=0.75cm}
or do I have to add the texlive2009 path before path=pst-geo?
Would appreciate help very much,
Wolfgang