From: Arthur Reutenauer <arthur.reutenauer@normalesup.org>
To: Mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: checking whether file is landscape or portrait
Date: Wed, 29 Jan 2020 14:31:12 +0100 [thread overview]
Message-ID: <20200129133112.odvgcjdtbaikjnxx@phare.normalesup.org> (raw)
In-Reply-To: <eb8d1cd3-3509-f9cd-cf17-f945e9783fdd@gmx.es>
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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2020-01-29 13:31 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-28 15:51 Pablo Rodriguez
2020-01-28 16:04 ` Taco Hoekwater
2020-01-28 16:39 ` Pablo Rodriguez
2020-01-28 16:46 ` Wolfgang Schuster
2020-01-28 16:15 ` Wolfgang Schuster
2020-01-28 16:43 ` Pablo Rodriguez
2020-01-29 13:31 ` Arthur Reutenauer [this message]
2020-01-29 15:44 ` Pablo Rodriguez
2020-01-30 12:08 ` context
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200129133112.odvgcjdtbaikjnxx@phare.normalesup.org \
--to=arthur.reutenauer@normalesup.org \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).