# How to show margin distances in mm

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

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

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: