[NTG-context] checking whether file is landscape or portrait
Arthur Reutenauer
arthur.reutenauer at normalesup.org
Wed Jan 29 14:31:12 CET 2020
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.
Best,
Arthur
More information about the ntg-context
mailing list