[texhax] pstricks question
Herbert Voss
LaTeX at zedat.fu-berlin.de
Mon Jun 11 21:04:30 CEST 2007
Zbigniew Nitecki wrote:
> > I want to place two pictures side-by-side inside a pspicture
> > envinronment: one involves plotting a curve, for which I need to set
> > a much smaller yunit. So (trying to mimic the "cat" on pp. 148-150 of
> > the Latex Graphics Companion) I created two commands, one to draw each
> > picture, then used an \rput to place them next to each other.
> > Here is the code:
> > ******************************************************************
> > \newcommand{\GPic}{%
> > \psset{yunit=0.1 mm}
> > \psline{<->}(-1.5,0)(1.5,0)
> > \psline{<->}(0,-120)(0,120)
> > \rput(-1,0){$|$}\uput[dl](-1,0){$-1$}
> > \rput(1,0){$|$}
> > \rput(1,0){$|$}\uput[dr](1,0){$1$}
> > \rput(0,90){$-$}\uput[r](0,90){$\frac{\pi}{2}$}
> > \rput(0,-90){$-$}\uput[r](0,-90){$-\frac{\pi}{2}$}
> >
> > \parametricplot{-90}{90}{t sin t}
> > }
> >
> > \newcommand{\DPic}{%
> > \psline[linestyle=dashed]{<->}(-1.2,0)(1.2,0)
> > \psline[linestyle=dashed]{<->}(0,-1.2)(0,1.2)
> > \psarc[linewidth=1.0pt][<->](0,0){1}{-90}{90}
>
\psarc[linewidth=1.0pt]{<->}(0,0){1}{-90}{90}}
or
\psarc[linewidth=1.0pt,arrows=<->](0,0){1}{-90}{90}}
Herbert
More information about the texhax
mailing list