On 1/29/20 2:31 PM, Arthur Reutenauer wrote:
On Tue, Jan 28, 2020 at 05:43:36PM +0100, Pablo Rodriguez wrote:
Iβm afraid this is the second time Iβm aware of the existence of \ifdim (the first time was when reading previous message from Taco π ).
Itβs a TeX primitive. From the TeXbook, chapter 20:
* \ifdim<dimen1><relation><dimen2> (compares two dimensions) This is like \ifnum, but it compares two <dimen> values. For example, to test whether the value of \hsize exceeds 100pt, you can say β\ifdim\hsize>100ptβ.
The definition of \ifnum, right above it, states:
* \ifnum<number1><relation><number2> (compares two integers) The <relation> must be either β<β or β=β or β>β. The two integer numbers are compared to each other in the usual way, and the result is true or false accordingly.
Many thanks for your reply, Arthur. The explanation is extremely clear. I think I should try to read the TeXbook (but I need time for this first). Many thanks for your help, Pablo -- http://www.ousia.tk