[pstricks] node connections

Zbigniew Nitecki zbigniew.nitecki at tufts.edu
Wed May 20 15:02:22 CEST 2009


I am trying to create a series of pictures in which a fixed triangle  
ABC is
joined by lines to a variable point D, and tried to do this using node  
connections.
The following code leads to the error
> ! Incomplete \iffalse; all text was ignored after line 37.
> <inserted text>
>                 \fi
> <*> newpicturetest.tex

**********************************************************
	\begin{pspicture}(-0.5,-2)(2,3)
	\newcommand{\trianglepicture}[2]{%
	\SpecialCoor
		\dotnode(0,0){A}
		\dotnode(2,1){B}
		\dotnode(-1,2){C}
		\psarc{->}(0.3,1){0.2}{-90}{180}
		
		\dotnode(#1,#2){D}
		
		\ncline[linewidth=1.2pt, arrows=->]{A}{B}
		\ncline [linewidth=1.2pt, arrows=->]{B}{C}
		\ncline [linewidth=1.2pt, arrows=->]{C}{A}
		
		\ncline[linestyle=dashed]{DA}
		\ncline[linestyle=dashed]{DA}
		\ncline[linestyle=dashed]{DA}
	}
	
	\trianglepicture{-0.5}{-1}
	
	\end{pspicture}
**************************************************************
I don't understand my error.  Which command is invoking \iffalse?

Zbigniew Nitecki
Department of Mathematics
Tufts University
Medford, MA 02155

telephones:
Office    (617)627-3843
Dept.    (617)627-3234
Dept. fax    (617)627-3966
http://www.tufts.edu/~znitecki/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/pstricks/attachments/20090520/784c4ffb/attachment.html 


More information about the PSTricks mailing list