Tagged Questions
4
votes
1answer
126 views
sum two numbers in \ifnum
I would like to implement a command in LaTeX which would sum two numbers before comparing them to a third number as follows:
\ifnum #1+45>0
above
\else
left
\fi
where #1 is an angle in ...
9
votes
3answers
285 views
How to ensure document total page numbers is a multiple of four?
I'm producing a document (book class) that will ultimately be produced using offset lithography. It's therefore useful to ensure the total number of pages is a multiple of four by adding as many blank ...
17
votes
6answers
1k views
Checking if a number is a multiple of 4
Using etoolbox, ifthen, or another form of conditional checking, how can I check if a value is a multiple of 4? E.g. if the number is 4, 8, 12, 16, etc., then it returns "true".