One of
the arithmetic instructions (\divide) does not even have an equivalent in standard
LaTeX.
The inx expressions can be used in arguments to macros (the calc package
doesn't employ category code changes to achieve its goals)
Tell me more
×
TeX - LaTeX Stack Exchange is a question and answer site for
users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.
|
|
||||
|
There are a number of libraries that can be used for calculations with LaTeX perhaps the best being the
With the result being available in Here is a full minimal:
|
|||
|
|
|
This would be the implementation of
Now Similarly one could implement |
|||
|
|

\newcommand\mydivide[3]{\edef#1{\number\numexpr(#2)/(#3)\relax}}will divide the second by the third argument and store the result in a macro whose name is the first argument. – Stephan Lehmke Apr 10 '12 at 17:27