13.07.2015 Views

xlop-doc.pdf. - Mirror

xlop-doc.pdf. - Mirror

xlop-doc.pdf. - Mirror

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Giving directly\opprint{var} is ineffective since this macro is a complexa gives side effect. It is necessary to access directly to this number.When a variable hold a number, <strong>xlop</strong> creates a macro \Op@var which containthis number. Note the uppercase “O” and the lowercase “p”. The atsign is here to do this definition a private one, that is, you have to encloseit with \makeatletter and \makeatother to access it (or \catcode @=11in TEX).1234× 56= 69104source\opcopy{1234}{a}\opcopy{56}{b}%\opmul*{a}{b}{r}%\makeatletter\newcolumntype{.}{D{.}{.}{­1}}\begin{tabular}{l.}& \Op@a \\$\times$ & \Op@b \\$=$ & \Op@r\end{tabular}\makeatotherNote that this way of doing don’t work when decimal separator is betweenbraces since macro \opprint{var} contain such braces. In thiscase, the simplest is to use \opexport macro (see page 25).45

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!