sphinx-doc/sphinx

Adding source code to Latex in a similar way that it is done in HTML

Open

#6.094 aberto em 23 de fev. de 2019

Ver no GitHub
 (2 comments) (0 reactions) (0 assignees)Python (1.985 forks)batch import
extensionshelp wantedtype:enhancement

Métricas do repositório

Stars
 (5.625 stars)
Métricas de merge de PR
 (Mesclagem média 10d 11h) (11 fundiu PRs em 30d)

Description

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

Guia do colaborador