Is there any way to overlay some lines and dimensions on the document so that one can see where the margins end and more easily examine the overall layout and ratios of elements on the page?

See for example, some of the illustrations of frameworks in this article on the canons of page construction and this one on margins (which displays dimensions).

  • 8
    Do you want to have the page layout measurements to overlaid with your document content (as opposed to a mock-up page with layout figures on them)? Only on a pre-specified page? If measurements are not that important to be displayed with the "lines", then \usepackage[showframe]{geometry} would suffice.
    – Werner
    Commented Jan 26, 2012 at 7:06

3 Answers 3


Just to add another useful package that does it:


(as many people load geometry anyways, it is a nice gadget)


Use \layout form the layout package. This produces:

enter image description here

and prints the layout details on the bottom:

enter image description here


If you just want the boundaries overlaid on the actual pages, independently of other packages,

  • Nice sub-package of eso-pic, a pity it has no documentation...
    – Rmano
    Commented Apr 8, 2021 at 7:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .