[texhax] pstricks question

Zbigniew Nitecki zbigniew.nitecki at tufts.edu
Mon Jun 11 20:40:52 CEST 2007


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}
				}
				
			\begin{pspicture}(-4,-1.5)(4,1.5)
				\rput(-2.8,0){\DPic}
				\rput(2.5,0){\GPic}
			\end{pspicture}
************************************************************************ 
****
but I get the error message
************************************************************************ 
****
! Missing number, treated as zero.
<to be read again>
                    <
l.90 				\rput(-2.8,0){\DPic}

? l.90 				\rput(-2.8,0){\DPic}

************************************************************************ 
******
and I can't figure out what I am doing wrong.  What does the program  
expect
in the \rput command?

Zbigniew Nitecki
Department of Mathematics
Tufts University
Medford, MA 02155

telephones:
Office    (617)627-3843
Dept.    (617)627-3234
Dept. fax    (617)627-3966


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/texhax/attachments/20070611/ea2c5e1f/attachment.html 


More information about the texhax mailing list