logger.info(msg + ' yes')
addToRC(r'\converter luatex pdf5 "%s" "latex=lualatex"' % LUATEX)
if DVILUATEX != '':
- addToRC(r'\converter luatex dvi3 "%s" "latex=lualatex"' % DVILUATEX)
+ addToRC(r'\converter luatex dvi3 "%s" "latex=dvilualatex"' % DVILUATEX)
# remove temporary files
removeFiles(['luatest.tex', 'luatest.log', 'luatest.aux', 'luatest.pdf'])
runparams.flavor = OutputParams::PDFLATEX;
else if (backend_format == "luatex")
runparams.flavor = OutputParams::LUATEX;
+ else if (backend_format == "dviluatex")
+ runparams.flavor = OutputParams::DVILUATEX;
else if (backend_format == "xetex")
runparams.flavor = OutputParams::XETEX;
}
switch (features.runparams().flavor) {
case OutputParams::LATEX:
+ case OutputParams::DVILUATEX:
if (dvipost) {
features.require("ct-dvipost");
features.require("dvipost");
if (v.back() == "latex") {
v.push_back("pdflatex");
v.push_back("luatex");
+ v.push_back("dviluatex");
v.push_back("xetex");
- } else if (v.back() == "xetex")
+ } else if (v.back() == "xetex") {
v.push_back("luatex");
+ v.push_back("dviluatex");
+ }
v.push_back("xhtml");
v.push_back("text");
v.push_back("lyx");
return;
// LuaTeX neither, but with tex fonts, we need to load
// the luainputenc package.
- if (features.runparams().flavor == OutputParams::LUATEX) {
+ if (features.runparams().flavor == OutputParams::LUATEX
+ || features.runparams().flavor == OutputParams::DVILUATEX) {
if (!useNonTeXFonts && inputenc != "default"
&& ((inputenc == "auto" && language->encoding()->package() == Encoding::inputenc)
|| (inputenc != "auto" && encoding().package() == Encoding::inputenc))) {
return OutputParams::XETEX;
if (conv.latex_flavor == "lualatex")
return OutputParams::LUATEX;
+ if (conv.latex_flavor == "dvilualatex")
+ return OutputParams::DVILUATEX;
if (conv.latex_flavor == "pdflatex")
return OutputParams::PDFLATEX;
if (conv.xml)
v.push_back("latex");
v.push_back("literate");
v.push_back("luatex");
+ v.push_back("dviluatex");
v.push_back("lyx");
v.push_back("xhtml");
v.push_back("pdflatex");
FlavorTranslator initFlavorTranslator()
{
FlavorTranslator f(OutputParams::LATEX, "latex");
+ f.addPair(OutputParams::DVILUATEX, "dviluatex");
f.addPair(OutputParams::LUATEX, "luatex");
f.addPair(OutputParams::PDFLATEX, "pdflatex");
f.addPair(OutputParams::XETEX, "xetex");
bool OutputParams::isLaTeX() const
{
- return flavor == LATEX || flavor == LUATEX
+ return flavor == LATEX || flavor == LUATEX || flavor == DVILUATEX
|| flavor == PDFLATEX || flavor == XETEX;
}
bool OutputParams::isFullUnicode() const
{
- return flavor == LUATEX || flavor == XETEX;
+ return flavor == LUATEX|| flavor == DVILUATEX || flavor == XETEX;
}
} // namespace lyx
class OutputParams {
public:
enum FLAVOR {
+ DVILUATEX,
LATEX,
LUATEX,
PDFLATEX,
#include "support/filetools.h"
#include "support/foreach.h"
#include "support/gettext.h"
+#include "support/lassert.h"
#include "support/lstrings.h"
#include "support/os.h"
#include "support/Package.h"
{
QString spellchecker = spellcheckerCB->itemData(index).toString();
- compoundWordCB->setEnabled(spellchecker != QString("native"));
+ compoundWordCB->setEnabled(spellchecker == QString("aspell"));
}
formatsCB->addItem(qt_(cit->prettyname()),
QVariant(form_->formats().getNumber(cit->name())));
if (form_->converters().isReachable("latex", cit->name())
+ || form_->converters().isReachable("dviluatex", cit->name())
|| form_->converters().isReachable("pdflatex", cit->name())
|| form_->converters().isReachable("luatex", cit->name())
|| form_->converters().isReachable("xetex", cit->name()))
#include "graphics/PreviewLoader.h"
+#include "support/bind.h"
#include "support/convert.h"
#include "support/debug.h"
#include "support/ExceptionMessage.h"
#include "support/filetools.h"
#include "support/gettext.h"
+#include "support/lassert.h"
#include "support/lstrings.h"
#include "support/lyxlib.h"
-#include "support/Translator.h"
-
-#include "support/bind.h"
#include <sstream>
+#include <vector>
using namespace std;
using namespace lyx::support;
string format;
switch (features.runparams().flavor) {
case OutputParams::LATEX:
+ case OutputParams::DVILUATEX:
format = "LaTeX";
break;
case OutputParams::LUATEX:
- Improve import of LaTeX documents with non-ASCII contents before loading
the inputenc package (bug 7509).
+- The export format DVI (LuaTeX) is now correctly created (bug7713).
+
- Macros that use other macros now output properly to XHTML (bug 7532).
- Fixed XHTML output for tables that use multirow.
- On Windows, allow to automatically switch TeX engines without the need
of manually saving the preferences after reconfiguring (bug 7557).
-- Fix dvi forward search on Windows when compiling with MSVC.
+- Fix DVI forward search on Windows when compiling with MSVC.
- Calculate relative pathnames to master documents when master is in a
directory above the child (bug 7540).