##// END OF EJS Templates
proof of concept of pdf generation by chaining a pdflatex call onto the end of the latex converter
Tom Dimiduk -
Show More
@@ -0,0 +1,7 b''
1 from .latex import ConverterLaTeX
2 import subprocess
3
4 class ConverterLaTeXToPDF(ConverterLaTeX):
5 def render(self):
6 super(ConverterLaTeXToPDF, self).render()
7 subprocess.check_call(['pdflatex', self.outbase + '.tex'])
@@ -31,6 +31,7 b' from converters.latex import ConverterLaTeX'
31 from converters.python import ConverterPy
31 from converters.python import ConverterPy
32 from converters.reveal import ConverterReveal
32 from converters.reveal import ConverterReveal
33 from converters.base import Converter
33 from converters.base import Converter
34 from converters.pdf import ConverterLaTeXToPDF
34
35
35
36
36 # When adding a new format, make sure to add it to the `converters`
37 # When adding a new format, make sure to add it to the `converters`
@@ -44,6 +45,7 b' converters = {'
44 'html': ConverterHTML,
45 'html': ConverterHTML,
45 'blogger-html': ConverterBloggerHTML,
46 'blogger-html': ConverterBloggerHTML,
46 'latex': ConverterLaTeX,
47 'latex': ConverterLaTeX,
48 'pdf' : ConverterLaTeXToPDF,
47 'py': ConverterPy,
49 'py': ConverterPy,
48 'reveal': ConverterReveal,
50 'reveal': ConverterReveal,
49 }
51 }
General Comments 0
You need to be logged in to leave comments. Login now