I have prepared a tufte-like style with a large margin alternating from the right hand side on odd pages, to the left hand side on even pages. These margins are about a third of the width and are used for marginal notes. I have written a
wide-figure macro which displays a table larger than the body of the text and
<move>s it to the left on an even page, in order to center it.
The problem is that I have done this with (undocumented)
<specific|even|> tags that display content only on odd and even pages respectively, with the content taking no space, so I needed a phantom and now it works but the usual cursor positioning issues that arise when one abuses moving routines make it barely usable.
Instead I would like to:
<move|my content|<if|page-is-even|<minus|some distance>|>>. Since the page number is not available at typesetting, I thought of checking the position of the box: if the left-most coordinate is larger than some amount, then we are in an even page, because those have large margins on the left. However, this does not work. Either because the box length
l is relative to the body of the document or because it’s not available inside the if, or some other obscure reason.
I would be grateful for any suggestions.