We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85d6693 commit a97043dCopy full SHA for a97043d
1 file changed
doc/conf.py
@@ -237,6 +237,14 @@ def exclude_api_from_gettext(app):
237
\newfontfamily\unicodefallback{Symbola}[Scale=MatchLowercase]
238
\usepackage[Symbols]{ucharclasses}
239
\setTransitionsForSymbols{\unicodefallback}{\normalfont}
240
+ % Prevent orphan section headings at the bottom of a page: force a page
241
+ % break if there is not enough room for the heading plus a few lines of
242
+ % its following paragraph.
243
+ \usepackage{needspace}
244
+ \usepackage{etoolbox}
245
+ \pretocmd{\section}{\Needspace{5\baselineskip}}{}{}
246
+ \pretocmd{\subsection}{\Needspace{4\baselineskip}}{}{}
247
+ \pretocmd{\subsubsection}{\Needspace{3\baselineskip}}{}{}
248
"""
249
+ "\n".join(f"\\newcommand{{\\{cmd}}}{{{defn}}}" for cmd, defn in macros.items()),
250
}
0 commit comments