Skip to content Skip to sidebar Skip to footer

Sphinx Automodule, No Text Wrap In Class Name (latexpdf)

I'm generating pdf using make latexpdf of Sphinx. This mostly works fine but I have a quite deep folder structure for my project resulting in class names that do not fit on the pag

Solution 1:

Hi I hope you found the solution if not add the code below in the preamble of your conf.py

\makeatletter
\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

Post a Comment for "Sphinx Automodule, No Text Wrap In Class Name (latexpdf)"