Is there any way I can execute a command (\ifthenelse actually) at the start of every page?
I tried \AtBeginShipout (atbegshi) but that seem to get executed when the page is about to be rendered (shipped out). I want something different, as soon as the page is about to start.
lastpagepackage. Now, if I can execute this at the start of every page,\ifthenelse{\thepage=\pageref{LastPage}}{change geometry}{\relax}, I can solve the problem. Definitely, the document will have to be compiled a number of times to stablize everything. – Masroor Nov 15 '13 at 17:46;-)– egreg Nov 16 '13 at 14:05\neq"I can do it" :-) – Lev Bishop Nov 16 '13 at 14:08