From 4698ebd2b749ca24f962f9e0ebfb94bc13a88658 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sat, 9 Jun 2012 15:11:34 +0200 Subject: [PATCH] Let getOutputFlavor return the correct flavors for the latex varieties --- src/BufferParams.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/BufferParams.cpp b/src/BufferParams.cpp index ac028fc232..d7503d4d61 100644 --- a/src/BufferParams.cpp +++ b/src/BufferParams.cpp @@ -2177,12 +2177,22 @@ OutputParams::FLAVOR BufferParams::getOutputFlavor(string const format) const OutputParams::FLAVOR result = OutputParams::LATEX; + // FIXME It'd be better not to hardcode this, but to do + // something with formats. if (dformat == "xhtml") result = OutputParams::HTML; else if (dformat == "text") result = OutputParams::TEXT; else if (dformat == "lyx") result = OutputParams::LYX; + else if (dformat == "pdflatex") + result = OutputParams::PDFLATEX; + else if (dformat == "xetex") + result = OutputParams::XETEX; + else if (dformat == "luatex") + result = OutputParams::LUATEX; + else if (dformat == "dviluatex") + result = OutputParams::DVILUATEX; else { // Try to determine flavor of default output format vector backs = backends(); -- 2.39.2