I try make a macro that has to work differently depending upon page size and orientation.
What are the commands to determine page size (a4, a5, a6) and orientation (portrait or lanscape) ?
I try make a macro that has to work differently depending upon page size and orientation.
What are the commands to determine page size (a4, a5, a6) and orientation (portrait or lanscape) ?
I use \paperwidth&\paperheight, \pdfpagewidth&\pdfpageheight (sometimes I use \maxdimen, if needed) and \ifdim...\else...\fi when I need to set up something depending on these dimensions.
There is one fine example, please see http://www.tug.org/utilities/plain/cseq.html#ifdim-rp
8^b– Steven B. Segletes Jun 03 '14 at 11:41