1

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 page. Anyone who knows how I can tackle this?

Here is a screenshot of the problem:

screenshot

mzjn
  • 48,958
  • 13
  • 128
  • 248
Sam
  • 405
  • 4
  • 14

1 Answers1

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
xiawi
  • 1,772
  • 4
  • 19
  • 21
  • Honestly didn't figure it out by then, I'll revisit it probably this month. Thanks! – Sam Sep 09 '20 at 11:15