All my length are in millimetres and the command \the\mylength outputs a length in points.
Idem with the \layout from the package layout.
How can I display all theses lengths in millimetres (more easily understandable than the points).
All my length are in millimetres and the command \the\mylength outputs a length in points.
Idem with the \layout from the package layout.
How can I display all theses lengths in millimetres (more easily understandable than the points).
There are many ways to convert a dimen with unit pt to another unit such as mm, see How do I convert pt/in/cm/mm to em/ex as they are defined at a given point in the document?, for example.
The following document prints the layout values of package layout's \layout in mm using e-TeX:
\documentclass{article}
\usepackage{layout}
\makeatletter
\renewcommand*{\lay@value}[2]{%
\strip@pt\dimexpr0.351459\dimexpr\csname#2\endcsname\relax\relax mm%
}
\makeatother
\begin{document}
\layout
\end{document}
\theunless you change the source code of TeX and recompile it. There are other questions dealing with the problem of showing length in different units of measure. – egreg Apr 24 '14 at 12:59layout. – Heiko Oberdiek Apr 24 '14 at 13:50