diff --git a/src/Exporter.cpp b/src/Exporter.cpp index 6c353ac357..db278c5345 100644 --- a/src/Exporter.cpp +++ b/src/Exporter.cpp @@ -197,7 +197,7 @@ bool Exporter::Export(Buffer * buffer, string const & format, buffer->makeDocBookFile(FileName(filename), runparams); } // LaTeX backend - else if (!put_in_tempdir) { + else if (backend_format == format) { runparams.nice = true; if (!buffer->makeLaTeXFile(FileName(filename), string(), runparams)) return false; diff --git a/status.15x b/status.15x index f84dfd6d61..d40df6186d 100644 --- a/status.15x +++ b/status.15x @@ -135,9 +135,6 @@ What's new - Fix LaTeX errors in Latvian and Lithuanian documents (bug 5323, bug 5324). -- When exporting a literate document as LaTeX, make sure that the code - needed for running LaTeX is not output. - - If "Do not use amsmath" is selected in the document settings, really do not use it (bug 5350). @@ -179,7 +176,7 @@ What's new - Fix the behaviour of the ErrorList dialog. -- When viewing full LaTeX source, make sure that the code needed for +- When viewing full LaTeX source, make sure that the code needed for running LaTeX is not added.