Rules / Build

Dimension too large — Length too large

A length exceeds TeX’s maximum of about 16383pt (5.75 m).

Fix

Fix the length or rescale plot data.

Example

Reproduced on TeX Live 2026 by CI · pdflatex · corpus/dimension-too-large

Length larger than TeX allows

Fails: main.tex
\documentclass{article}
\newlength{\posterwidth}
\begin{document}
\setlength{\posterwidth}{20000pt}
Hello.
\end{document}
What TeX prints in main.log
! Dimension too large.
<to be read again> 
                   \relax 
l.4 \setlength{\posterwidth}{20000pt}
                                     
I can't work with sizes bigger than about 19 feet.
Continue and I'll use the largest value I can.