I have just discovered accidentally how to perform simple arithmetic operations in TeX:
\number\numexpr 5+5\relax
And this will print the result, not the operands.
I have just discovered accidentally how to perform simple arithmetic operations in TeX:
\number\numexpr 5+5\relax
And this will print the result, not the operands.
\include and \inputThanks to this comment, I have realized the main difference between \include and \input in LaTeX: \include has a page break before and after the file and \input doesn’t.
When magnifying with XeTeX using the geometry package is important not to forget that the documentclass should not have the page size set on it, instead of having it set on the proper geometry option.
Using ConTeXt (taken from the imposition explanation):
\definepapersize [filius][width=136mm, height=232mm]
\setuppapersize [filius][A4,landscape]
\setuparranging [2UP,doublesided]
\setuplayout [backspace=0pt,
topspace=0pt,
width=middle,
height=middle,
location=middle,
header=0pt,
footer=0pt,
grid=no, marking=off]
\starttext
\insertpages
[document.pdf][width=0pt]
\stoptext
You have to replace the document.pdf with the real file name and filius with the original paper size.