11

I would like to know the distance (in mm) of the margins I just set, and I would like them to be displayed in the document (for debugging purposes, of course).

I use the showframe option of the geometry package in order to denote the margins. How do I get to display the margin values?

This is a super MWE:

\documentclass[12pt,twoside,a4paper]{scrreprt}
\usepackage[pass,showframe]{geometry}
\usepackage{lmodern}
\usepackage{kantlipsum}

\begin{document}
\kant[1-10]
\end{document}

I would like it to be something like this (taken from Golden Ratio for vertical poem positioning):

enter image description here

Of course, I don't care about the text inside, just the margins (margin par, topmargin, innermargin, etc.)

17

Based on Gonzalo Medina' suggestion, and with a little bit of help with the documentation, I was able to achieve this with the layouts package:

\documentclass[12pt,twoside,a4paper]{scrbook}
\usepackage{lmodern}
\usepackage{layouts}

\begin{document}

\printinunitsof{mm}{\pagevalues}

\verb|\marginparwidth|: \printinunitsof{mm}\prntlen{\marginparwidth}

\pagediagram
\end{document}

With this result:

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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