Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect "Overfull vbox" warning messages in log file #2924

Open
user202729 opened this issue Apr 14, 2024 · 1 comment
Open

Detect "Overfull vbox" warning messages in log file #2924

user202729 opened this issue Apr 14, 2024 · 1 comment

Comments

@user202729
Copy link

%! TEX program = pdflatex
\documentclass{article}
\usepackage{graphicx}
\begin{document}

\includegraphics[width=20cm, height=1cm]{example-image-a}

\includegraphics[height=30cm, width=1cm]{example-image-a}

\end{document}

⟹ log file contains

Overfull \hbox (239.0729pt too wide) in paragraph at lines 6--7

⋮

Overfull \vbox (303.66812pt too high) has occurred while \output is active []

There's no line number in the error message however. Should we still do this?

@lervag
Copy link
Owner

lervag commented Apr 15, 2024

There's no line number in the error message however. Should we still do this?

You mean, should we still include the error message in the parsed log? Currently, it will only be included if there is some form of line specification:

setlocal errorformat+=%+WOverfull\ %\\%\\vbox%.%#\ at\ line\ %l

I think we could probably add another matcher to include \vbox warnings that don't have the line specification. Users are free to ignore the messages with the filter option, so I think it makes sense to include all relevant warnings. Right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants