TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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).

share|improve this question
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 Jan 26 '12 at 7:06
up vote 13 down vote accepted

Just to add another useful package that does it:


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

share|improve this answer

Use \layout form the layout package. This produces:

enter image description here

and the details on the bottom:

enter image description here

share|improve this answer

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.