LaTeX forum ⇒ 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).
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?

Postby Cham » Sun Jan 05, 2020 6:20 pm

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] [Expand/Collapse] [Download] ({untitled.tex})
  1. \documentclass[11pt,letterpaper,twoside]{book}
  2. \usepackage[T1]{fontenc}
  3. \usepackage[nomath]{lmodern}
  4. \usepackage[total={6in,10in},left=1.5in,top=0.5in,includehead,includefoot,showframe]{geometry}
  5. \usepackage[nodisplayskipstretch]{setspace}
  6. \setstretch{1.1}
  7. \raggedbottom
  8. \usepackage{microtype}
  9. \usepackage{amsmath}
  10. \usepackage{showframe}
  11.  
  12. \begin{document}
  13.  
  14. \setlength{\abovedisplayskip}{2ex}
  15. \setlength{\abovedisplayshortskip}{0pt}
  16. \setlength{\belowdisplayskip}{\abovedisplayskip}
  17. \setlength{\belowdisplayshortskip}{\belowdisplayskip}
  18. \setlength{\jot}{3ex}
  19.  
  20. This is just a test, to see what will happen next and the equation below this dummy text sample:
  21. \begin{align}
  22. y^2 + x^2 - z^2 = 1
  23. \end{align}
  24.  
  25. \end{document}

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

Postby Stefan Kottwitz » Wed Jan 08, 2020 4:09 am

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


Return to “Page Layout”

Who is online

Users browsing this forum: No registered users and 4 guests