Visualizing the layout
At the time of designing a document, one may like to have an exact view of the dimensions and position of the text body, the header and footer, and the space for the margin notes. LaTeX can print help lines for you so you can examine the layout and use it to position extra elements.
How to do it...
Load the showframe
package. This means the following steps:
- Open your document or a sample for testing. Here, we will use the very first document from Chapter 1, The Variety of Document Types.
- Add the following line at the end of your preamble:
\usepackage{showframe}
- Compile the document. You will see frames around text body, margin note area, and header and footer:
- Examining the layout can give you ideas about making adjustments, such as changing the margins or other page dimensions. If you don't need these help lines any more, you can disable the package by commenting out
\usepackage{showframe}
or by deleting it.
How it works...
We simply loaded the showframe
package. It...