- Change parameter order in \providelength to match \setlength.

- Remove Part name from appendix and back matter headers.
This commit is contained in:
Silcantar
2025-08-24 22:33:29 -05:00
parent 662b4201ad
commit 7945ab0e6b
6 changed files with 18 additions and 18 deletions

View File

@@ -9,12 +9,12 @@
\hfuzz = 6.0pt
\vfuzz = 0.0pt
\providecommand{\providelength}[2][0pt]{%
\NewDocumentCommand{\providelength}{m O{0pt}}{%
\ifdeflength{#2}{% It is already defined!
}{% Not defined, so define it!
\newlength{#2}%
\newlength{#1}%
}%
\setlength{#2}{#1}%
\setlength{#1}{#2}%
}
\RequirePackage{microtype}
@@ -47,8 +47,9 @@
\RequirePackage{calc}
\RequirePackage[strict]{changepage}
\newlength{\contentwidth}
\setlength{\contentwidth}{\textwidth + \marginparsep + \marginparwidth}
%\newlength{\contentwidth}
\providelength{\marparwidth}[\marginparsep + \marginparwidth]
\providelength{\contentwidth}[\textwidth + \marparwidth]
\RequirePackage[balanced]{lua-widow-control}
\ifthenelse{\boolean{isDraft}}{