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