Show More
@@ -44,7 +44,8 class LatexPreprocessor(Preprocessor): | |||
|
44 | 44 | preprocessors to pass variables into the Jinja engine. |
|
45 | 45 | """ |
|
46 | 46 | # Generate Pygments definitions for Latex |
|
47 | resources["pygment_definitions"] = LatexFormatter().get_style_defs() | |
|
47 | resources["latex"] = {} | |
|
48 | resources["latex"]["pygment_definitions"] = LatexFormatter().get_style_defs() | |
|
48 | 49 | return super(LatexPreprocessor, self).preprocess(nb, resources) |
|
49 | 50 | |
|
50 | 51 |
@@ -27,6 +27,9 This template does not define a docclass, the inheriting class must define this. | |||
|
27 | 27 | % internal navigation ('pdf bookmarks' for the table of contents, |
|
28 | 28 | % internal cross-reference links, web links for URLs, etc.) |
|
29 | 29 | \usepackage{hyperref} |
|
30 | ||
|
31 | % Pygments definitions | |
|
32 | ((( resources.latex.pygment_definitions ))) | |
|
30 | 33 | ((* endblock packages *)) |
|
31 | 34 | |
|
32 | 35 | ((* block definitions *)) |
General Comments 0
You need to be logged in to leave comments.
Login now