Sphinx Latex break line autodoc

柔情痞子 提交于 2020-03-05 01:31:53

问题


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

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 ?

来源:https://stackoverflow.com/questions/60251546/sphinx-latex-break-line-autodoc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!