3

Is there a package that visualizes and label all the spacings in a document, similar to what this diagram shows (except it would label exactly how many pts each variable is)?

spacing visualized

Geremia
  • 2,201
  • 1
    Have a look at the layouts package – siracusa Apr 13 '19 at 00:09
  • @siracusa Is that something I can include in an already-existing document and it'll superimpose boxes and labels? How do I use it? Could you please provide an answer showing how to use it? thanks – Geremia Apr 13 '19 at 01:10

1 Answers1

2

Chapter 7 of the layouts documentation explains the provided commands related to list designs. There are two main macros: \listdiagram and \listdesign, where the latter shows the current values for all list parameters but doesn't draw the full list layout diagram as provided by the former macro.

By redefining an internal macro we can still define a new command that provides both diagram and values:

\documentclass{article}
\usepackage{layouts}

\makeatletter
\newcommand\listvaluesdiagram{%
    \begingroup
    \def\testprintparameters{\l@ytempiftrue}%
    \drawlist
    \endgroup
}
\makeatother

\begin{document}
\listvaluesdiagram
\end{document}

enter image description here

siracusa
  • 13,411