##// END OF EJS Templates
fix non-existing directory
Bussonnier Matthias -
Show More
@@ -15,6 +15,7 b' formatted for use with PDFLatex.'
15 #-----------------------------------------------------------------------------
15 #-----------------------------------------------------------------------------
16
16
17 from IPython.utils.traitlets import Unicode
17 from IPython.utils.traitlets import Unicode
18 from IPython.config import Config
18
19
19 # local import
20 # local import
20 import latex
21 import latex
@@ -34,7 +35,25 b' class SphinxHowtoExporter(latex.LatexExporter):'
34 template_file = Unicode(
35 template_file = Unicode(
35 'sphinx_howto', config=True,
36 'sphinx_howto', config=True,
36 help="Name of the template file to use")
37 help="Name of the template file to use")
37
38
39 _default_config = Config({
40 'SphinxTransformer': {'enabled':True}
41 })
42
43 def __init__(self, transformers=None, filters=None, config=None, **kw):
44
45 c = self.default_config
46 if config:
47 c.merge(config)
48
49 super(SphinxHowtoExporter, self).__init__(
50 transformers=transformers,
51 filters=filters,
52 config=c,
53 **kw)
54
55
56
38 def _register_transformers(self):
57 def _register_transformers(self):
39
58
40 #Register the transformers of the base class.
59 #Register the transformers of the base class.
General Comments 0
You need to be logged in to leave comments. Login now