Page LayoutIs there a package to show all text and math lines, like showframe?

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

Is there a package to show all text and math lines, like showframe?

Post by Cham »

I need to see all the vertical spacings above and below equations, and also in the text itself. Using the showframe package (or an equivalent option in the geometry package) is nice but not enough. Here's a MWE to play with:

Code: Select all

\documentclass[11pt,letterpaper,twoside]{book}
\usepackage[T1]{fontenc}
\usepackage[nomath]{lmodern}
\usepackage[total={6in,10in},left=1.5in,top=0.5in,includehead,includefoot,showframe]{geometry}
\usepackage[nodisplayskipstretch]{setspace}
\setstretch{1.1}
\raggedbottom
\usepackage{microtype}
\usepackage{amsmath}
\usepackage{showframe}

\begin{document}

\setlength{\abovedisplayskip}{2ex}
\setlength{\abovedisplayshortskip}{0pt}
\setlength{\belowdisplayskip}{\abovedisplayskip}
\setlength{\belowdisplayshortskip}{\belowdisplayskip}
\setlength{\jot}{3ex}

This is just a test, to see what will happen next and the equation below this dummy text sample:
\begin{align}
    y^2 + x^2 - z^2 = 1
\end{align}

\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Stefan Kottwitz
Site Admin
Posts: 10319
Joined: Mon Mar 10, 2008 9:44 pm

Is there a package to show all text and math lines, like showframe?

Post by Stefan Kottwitz »

Hi Cham,

I think there's no such package yet. Though there's the cool package lua-visual-debug if this may be useful for you.

Stefan
LaTeX.org admin
Post Reply