[OS X TeX] Calculate with LaTeX and fp.sty

Frank STENGEL fstengel at mac.com
Mon Feb 6 08:03:43 EST 2006

Le 5 févr. 06 à 21:58, Friedrich Vosberg a écrit :

> Morning.
> I've spent the whole weekend but did not find a solution.
> Does somebody of you have an idea, how to calculate the following  
> example including the hidden part in which the result of the  
> previous calculation should be processed?

Why not use \sum? The problem is that macros do not have a result per  
se. \RVGInkasso onl typesets/prints the result (the contents of sum).  
One way would be to have temporary macos containing the results. Say  
\resultRVGInkasso etc. Your code could become:

===== 8>< =====
    \numprint{\sum} % not \rtvg, otherwise endless loop!
====== ><8 =====

By the way, why repeat \numprint three times in \RVGInkasso?, why not  
factor it out of the \if ... \fi? One could have also a non-\numprint  
version of your macro, coupled with a version that ose the \numprint.  
That would look like

% the previous code without the \numprints
Frank STENGEL (fstengel<at>mac.com)

------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/

More information about the MacOSX-TeX mailing list