2

I am making my python docs with sphinx-apidoc. But some text seems messed up because the line does not break in certain cases.

enter image description here

I have tried to set latex_elements on config.py with preamble, but the result is the same. You can also see that the methods table also is a little confusing with a word in front of the other.

latex_elements = {
    'papersize': 'a4paper',
    'pointsize': '12pt',
    'figure_align': 'htbp',
    'preamble': r'''
    \usepackage[draft]{minted}
    \fvset{breaklines=true}
    ''',
}

Have you had the same problem ?

mzjn
  • 48,958
  • 13
  • 128
  • 248
Luis Coimbra
  • 171
  • 1
  • 1
  • 8
  • 2
    You could try to set `add_module_names` to `False`; https://www.sphinx-doc.org/en/stable/usage/configuration.html#confval-add_module_names – mzjn Feb 16 '20 at 18:51
  • Do not solve the problem. Just delete part of the content. – Luis Coimbra Feb 16 '20 at 19:38
  • https://stackoverflow.com/questions/60393710/sphinx-automodule-no-text-wrap-in-class-name-latexpdf/63792054#63792054 – Gaurav Mulay Sep 08 '20 at 19:54
  • Interesting. I had to delete my html build for `add_module_names` to take effect there. For LaTeX, it works without having to delete anything. – Breno May 13 '22 at 01:55

0 Answers0