Figure overflow detection

Figures set wider than their column extend into the margin or across the gutter, making a paper look broken even when it compiles cleanly.

Quick answer

LaTeX Formatter parses every \includegraphics call, resolves its requested width (\textwidth, \columnwidth, \linewidth, or a fixed length), and compares it against the real column width of the detected template. Over-wide figures are rewritten to fit the column (for example \textwidth to \columnwidth, or capped at 0.95\columnwidth), with a changelog line for each figure changed.

The problem

Figures set wider than their column extend into the margin or across the gutter, making a paper look broken even when it compiles cleanly.

How detection works

LaTeX Formatter parses every \includegraphics call, resolves its requested width (\textwidth, \columnwidth, \linewidth, or a fixed length), and compares it against the real column width of the detected template.

What you get

Over-wide figures are rewritten to fit the column (for example \textwidth to \columnwidth, or capped at 0.95\columnwidth), with a changelog line for each figure changed.

Before and after

Two-column figure scaled to fit

Before

\includegraphics[width=\textwidth]{plot.pdf}

After

\includegraphics[width=\columnwidth]{plot.pdf}

Frequently asked questions

Does it change the figure file?+

No - it only changes the requested width in your LaTeX source. Your image file is untouched.

Check your paper before reviewers do

Upload your .tex or .zip and get a corrected file plus a plain-English changelog in under 60 seconds.

Check My Paper - Free