[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.



More information about the ntg-context mailing list