Fixed the wobbly footer again

This commit is contained in:
Lukas Pietzschmann
2024-04-17 10:33:10 +02:00
parent 96dfbf63c3
commit 05c17badab

View File

@@ -428,6 +428,8 @@ segmentation style={solid, shorten >=1mm,shorten <=1mm, line width=\smile@linewi
\global\maxfooterwd=#1%
\immediate\write\@auxout{\global\maxfooterwd=\the#1}%
\fi}
% Make sure we always put the current max footer width into the aux file
\AtEndDocument{\immediate\write\@auxout{\global\maxfooterwd=\the\maxfooterwd}}
\newsavebox\footerright
\def\setfooter#1#2#3{\savebox\footerright{\color{white}\hspace{0.3cm}#3\hspace{0.3cm}}
\updatemaxfooterwd{\wd\footerright}\leavevmode\hbox{%