# [pstricks] eps-output

Johan Ekh ekh.johan at gmail.com
Wed Aug 29 08:48:51 CEST 2007

Hi,

Please see attached below my latex file that I try to use for
creating an eps-file.

I first run latex on this file and then
I run "dvips -E curvature_range.dvi -o curvature_range.eps"

When I run latex on my main latex file, the picture is OK with text
and everything.

Any ideas?

Best regards,
Johan

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[dvips]{graphicx}
\usepackage{pst-plot}
\pagestyle{empty}
\begin{document}
\color{white}% fbox invisible
\fboxsep=0pt
\fbox{%
\begin{pspicture}(1.0,-2)(13.5,2)
\SpecialCoor
% \psframe(1.0,-2)(13.5,2)
%
\def\angleA{3.141592 2 div 1 sub}
\def\angleB{3.141592 2 div}
\def\angleC{3.141592 3 mul 2 div}
\def\angleD{3.141592 5 mul 2 div}
\def\angleE{3.141592 5 mul 2 div 1 add}
%
\psset{algebraic=true}
\qline(1.5,1)(13,1)
\qline(1.5,-1)(13,-1)
\psline[linestyle=dashed,dash=8pt 3pt 2pt 3pt](1.0,0)(13.5,0)
%
\psset{xunit=1.5cm}
\psplot[linecolor=blue, linestyle=dashed,dash=3pt 3pt, plotpoints=50,
showpoints=false]{\angleA}{\angleB}{sin(x-3.141592)}
\psplot[linecolor=blue, plotpoints=50,
showpoints=false]{\angleB}{\angleC}{sin(x-3.141592)}
\psplot[linecolor=blue, linestyle=dashed,dash=3pt 3pt, plotpoints=50,
showpoints=false]{\angleC}{\angleD}{sin(x-3.141592)}
\psplot[linecolor=blue, plotpoints=50,
showpoints=false]{\angleD}{\angleE}{sin(x-3.141592)}
%
\psline[]{->}(4.5,-2)(5.5,0.75)
% \psline[]{->}(4.5,-2)(1;90)
\psset{origin={0,0}}
\psline[]{->}(4.5,-2)(5.9,0.4)
\psellipticarc{<->}(4.5,-2)(2.4,3.2){52}{64.5}
\uput[0](5.5,-0.5){$\rho$}
\uput[45](5.8,0.58){$dl$}
%
\psline[]{->}(7.5,0)(7.5,1)
\uput[0](7.5,0.5){$R$}
%
\psline[]{->}(1.5,0)(1.5,1)
\uput[90](1.5,1.0){$y$}
\psline[]{->}(1.5,0)(2.5,0)
\uput[235](2.5,0){$z$}
%
\psline[linestyle=dashed,dash=3pt 3pt](3.13,0)(4.6,1.5)
\psarc{->}(3.13,0){1.5}{0}{34}
\uput[0](4,0.5){$\alpha$}
\end{pspicture}
}
\end{document}

2007/8/28, na199 at gmx.de <na199 at gmx.de>:
>
> As a guess I would say some limiting grouping or (curly) brackets are
> missing.
> Maybe you can include  a minimum sample?
>
> hh
>
>
> On 28 Aug 2007 at 16:28, Johan Ekh wrote:
>
> >
> > Hi all,
> > I'm trying to create an eps-file of my picture.
> > I follow the instructions in the pst-eps documentation, i.e. the first
> > procedure just to get a single file.
> >
> > However, I do not any text in my picture only the lines. When I remove
> > the line "\color{white}" I get the text but now of course I do not an
> invisible
> > fbox.
> >
> > In my main latex document everything works as I expect.
> >
> > Does anyone know what I have to do?
> >