flowfram package FAQ
How do I compute the distance from the edge of the page instead of the typeblock? 🔗
The following commands all take a length as the argument. The distance from the typeblock to the paper edge will be stored in the length. You can then use this value to go from an absolute position to a relative position.
\computeleftedgeevenCompute the left edge of the page, relative to the left edge of the typeblock for even pages.computeleftedgeoddCompute the left edge of the page, relative to the left edge of the typeblock for odd pages.\computebottomedgeCompute the bottom edge of the page, relative to the bottom of the typeblock.\computerightedgeevenCompute the right edge of the page, relative to the left edge of the typeblock for even pages.\computerightedgeoddCompute the right edge of the page, relative to the left edge of the typeblock.\computetopedgeCompute the top edge of the page, relative to the bottom of the typeblock.
% define two new lengths to represent the x and y coords
\newlength{\myX}
\newlength{\myY}
% compute the distance from the typeblock to the paper edge
\computeleftedgeodd{\myX}
\computebottomedge{\myY}
% Add the absolute co-ordinates to get co-ordinates
% relative to the typeblock
\addtolength{\myX}{1in}
\addtolength{\myY}{0.5in}
2013-12-08 17:40:29
Permalink: https://www.dickimaw-books.com/faq.php?id=106
Alternative link: https://www.dickimaw-books.com/faq.php?itemlabel=pageedgedist
Category: flowfram package
Topic:
General Queries
