1
Fork 0
mirror of https://github.com/Steffo99/sophon.git synced 2024-12-21 22:34:21 +00:00

🔧 Test sphinx directives fix

This commit is contained in:
Steffo 2021-12-07 18:09:56 +01:00
parent 9123db12ec
commit 3483778410
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -150,6 +150,15 @@ latex_elements = {
\setsansfont{EB Garamond} \setsansfont{EB Garamond}
\setmonofont{Fira Code} \setmonofont{Fira Code}
""", """,
"preamble": r"""
\renewcommand{\pysigline}[1]{%
\setlength{\py@argswidth}{\dimexpr\labelwidth+\linewidth\relax}%
\item[{\parbox[t]{\py@argswidth}{\raggedright#1}}]}
\renewcommand{\pysiglinewithargsret}[1]{%
\setlength{\py@argswidth}{\dimexpr\labelwidth+\linewidth\relax}%
\item[{\parbox[t]{\py@argswidth}{\raggedright#1}}]}
\makeatother
""",
"maketitle": r""" "maketitle": r"""
\begin{titlepage} \begin{titlepage}