sphinx-doc/sphinx
在 GitHub 查看Adding source code to Latex in a similar way that it is done in HTML
Open
#6,094 建立於 2019年2月23日
extensionshelp wantedtype:enhancement
倉庫指標
- Star
- (5,625 star)
- PR 合併指標
- (平均合併 10天 11小時) (30 天內合併 11 個 PR)
描述
Is your feature request related to a problem? Please describe.
I'm using sphinx.ext.viewcode to link the source code when I generate the html. That works well, when I press source, I can see the original code in the web page.
However, when generating the latex version, I can't add the source code in the pdf.
Describe the solution you'd like I would like to be able to have in the latex document the docstrings of my classes and a link to the original code (all in the same document).
Additional context asked in SOF