forked from jterrace/sphinxtr
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Highlighted Sourcecode from Pygments requires the fancyvrb and color packages. To get it working with the Sphinx LaTeX Parser some commands where necessary which were commented out. And last but not least creating a lstlisting environment is not a reasonable choice, considering that this package has the same job as Pygments. Therefore the overwritten method depart_literal_block was removed, that Sphinx' default will be used. The result is for some reasons rather ugly, but at least it works now. I also changed the code example to a Python function to show that highlighting really works now. FYI: For some reason I also needed to uncomment the `notice` environment defintion. Building from master without the changes introduced here didn't work at all. Might be something I did, though. But maybe this is a hint that a lot more of the sphinx.sty needs to be uncommented, but nobody noticed because it wasn't used until now. Fixes jterrace#8 Signed-off-by: Erik Bernoth <[email protected]>
- Loading branch information
1 parent
5d21b2d
commit 99165e3
Showing
3 changed files
with
98 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters