[Tex/LaTex] margins of book class

margins

I would like to know what are the margins (top, right,bottom and left; in meters) that are by default assigned for thebook class. Is there a command or a way to know them?

Best Answer

To produce an overview of the layout of the current document, you can use the \layout command from the layout package:

\documentclass{book}
\usepackage{layout}
\begin{document}
\layout
\end{document}

The ouput is a two page document showing this:

enter image description here

enter image description here

Another option would be to use the layouts package:

\documentclass{book}
\usepackage{layouts}

\newcommand\DocLength[1]{%
  The value for \texttt{#1} is \printinunitsof{mm}\prntlen{\csname#1\endcsname}\par}
\begin{document}

\DocLength{evensidemargin}
\DocLength{oddsidemargin}

\end{document}

enter image description here

Using the \pagevalues command you will obtain a table of the values of the current document’s page layout parameters; this, together with the showframe option for the geometry package, can be useful when designing a new page layout. A little example with some "extreme" values just for illustration:

\documentclass{article}
\usepackage[paperheight=12cm,paperwidth=18cm,includehead,includefoot,showframe]{geometry}
\usepackage{layouts}
\printinunitsof{cm}

\begin{document}
\pagevalues
\end{document}

enter image description here

Related Question