[pstricks] nodes and FP package
Francisco A. S. Grossi
fgrossi at usp.br
Wed Jul 12 19:07:20 CEST 2006
Oh! This is the second time I am bitten by this comment at the end of line!
The first time was with a nested multido. Thnk you very much. I looked at
it many many times, tried several alternatives ... except the right one.
Is there a general directive about when this end-of-line comment is
necessary?
Francisco
----- Original Message -----
From: "Herbert Voss" <LaTeX at zedat.fu-berlin.de>
To: "Graphics with PSTricks" <pstricks at tug.org>
Sent: Wednesday, July 12, 2006 8:09 AM
Subject: Re: [pstricks] nodes and FP package
> Francisco A. S. Grossi wrote:
>> I have an strange behavior that I cannot figure out. I draw two nodes and
>> connect them:
>>
>> - with direct definitions
>> - with coordnates calculated by FP package
>>
>> The results slhoud be identical, but they are displaced relative to each
>> other. The example with FP package is displaced to the right, as the
>> small
>> sample shows.
>>
>> I need FP because I am coding a command top draw a network of nodes and
>> their coodinates must be calculated through a copule of parameters.
>>
>> Any ideas?
>>
>> \documentclass[a4paper,12pt,fleqn]{article}
>> \usepackage[T1]{fontenc}
>> \usepackage[brazil]{babel}
>> \usepackage{pst-all}
>> \usepackage[nomessages]{fp}
>>
>> \begin{document}
>>
>> \begin{pspicture}[showgrid=true](0,0)(10,5)
>> \FPsub\xp{4}{0.8}
>> \FPadd\yp{0}{1.0}
>> \cnode(\xp,\yp){0.2}{1e}
>> \FPadd\xp{4}{5.3}
>
> \FPsub\xp{4}{0.8}%
> \FPadd\yp{0}{1.0}%
> \cnode(\xp,\yp){0.2}{1e}
> \FPadd\xp{4}{5.3}%
>
>
> Herbert
>
>
> _______________________________________________
> pstricks mailing list
> pstricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
>
More information about the PSTricks
mailing list