pnkraemer / tueplots

Figure sizes, font sizes, fonts, and more configurations at minimal overhead. Fix your journal papers, conference proceedings, and other scientific publications.
https://tueplots.readthedocs.io
MIT License
663 stars 25 forks source link

Explain `overfull hbox` in troubleshooting section #85

Closed pnkraemer closed 2 years ago

pnkraemer commented 2 years ago

Even though the figsizes delivered by tueplots match the figure sizes in style files exactly, sometimes, figures can be a few pt wider than what latex allows. This is not tueplots fault, but likely due to the optimisation that matplotlib carries out as part of constrained_layout=True or tight_layout=True.

The solution is usually to apply \includegraphics[width=\textwidth] in the latex code (to fix the final few millimeters -- the visual difference is zero), or to set the rel_width parameter (see #84) to rel_width=0.97.