From cd446cd39c56162c167ab57a5bb308e15115d89c 2012-11-22 07:30:37 From: jakobgager Date: 2012-11-22 07:30:37 Subject: [PATCH] Embed LaTeX output from pyout into equation* environment --- diff --git a/converters/latex.py b/converters/latex.py index 58e4932..78b70d8 100755 --- a/converters/latex.py +++ b/converters/latex.py @@ -150,7 +150,7 @@ class ConverterLaTeX(Converter): # output is a dictionary like object with type as a key if 'latex' in output: - lines.extend(output.latex) + lines.extend(self.in_env('equation*', output.latex.lstrip('$$').rstrip('$$'))) if 'text' in output: lines.extend(self.in_env('verbatim', output.text))