Skip to content

Commit fd076ef

Browse files
committed
Fix \py@release in custom maketitle by adding \makeatletter guard
\py@release contains @ which is only a letter inside \makeatletter scope. Without the guard pdflatex aborts with "Missing number, treated as zero". https://claude.ai/code/session_014hVQ5UrK1B4N9ar4UfYpm4
1 parent b466a05 commit fd076ef

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

doc/conf.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,11 @@
217217
"noteBorderColor={rgb}{0.306,0.498,0.627},"
218218
"warningBorderColor={rgb}{0.761,0.384,0.039},"
219219
),
220-
# Custom title page with amber header bar, logo, and accent footer
220+
# Custom title page with amber header bar, logo, and accent footer.
221+
# \makeatletter/\makeatother are required to access \py@release (@ is a
222+
# letter in LaTeX package code but not in regular document mode).
221223
"maketitle": r"""
224+
\makeatletter
222225
\begin{titlepage}
223226
\noindent{\color{dfprimary}\rule{\linewidth}{6pt}}\par
224227
\vfill
@@ -236,6 +239,7 @@
236239
\vfill
237240
\noindent{\color{dfaccent}\rule{\linewidth}{4pt}}\par
238241
\end{titlepage}
242+
\makeatother
239243
""",
240244
}
241245

0 commit comments

Comments
 (0)