]> git.lyx.org Git - features.git/commit
Output file from (xe|lua)latex is PDF, not DVI
authorScott Kostyshak <skostysh@lyx.org>
Wed, 25 May 2016 22:02:26 +0000 (18:02 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Fri, 3 Jun 2016 02:41:26 +0000 (22:41 -0400)
commit1e8b925c07b627b181e3553d5d7f2908fce45701
tree46b3c7fe88974a9faa2640dd472a14bd9004fb13
parent831c057593d7f56efc08c7321abe3c810855c71b
Output file from (xe|lua)latex is PDF, not DVI

A few parts of our code depend on correctly identifying the output
format of LaTeX commands. One specific bug is that because the
output file was not correctly set, it was not removed after an
error. For example, this commit fixes the following bug:

1. Create a new document that contains "hello\blah" where \blah is
in an ERT box.
2. Compile with PDF (LuaTeX). You'll get an error because of \blah.
3. Close the error dialog.
4. Remove the text "hello" and compile again with PDF (LuaTeX).

The error dialog is shown and the "Show Output Anyway" button is
enabled. If you click it, it shows the previously compiled PDF (with
the text "hello"). With this commit, the button is correctly
disabled (and the output file is deleted).
src/LaTeX.cpp