]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/tex2lyx.cpp
More no-math fonts
[lyx.git] / src / tex2lyx / tex2lyx.cpp
index b713e4c76dab30d991afc37238db8dced7e4b467..a049aab6f5fdb85d280741e2e785cc87a9ffe581 100644 (file)
@@ -673,7 +673,7 @@ bool tex2lyx(idocstream & is, ostream & os, string encoding)
        stringstream ss;
        // store the document language in the context to be able to handle the
        // commands like \foreignlanguage and \textenglish etc.
-       context.font.language = preamble.h_language;
+       context.font.language = preamble.language();
        // parse the main text
        parse_text(p, ss, FLAG_END, true, context);
        if (Context::empty)
@@ -771,6 +771,8 @@ bool tex2tex(string const & infilename, FileName const & outfilename,
                command += " -f none";
        if (pdflatex)
                command += " -e pdflatex ";
+       else if (xetex)
+               command += " -e xetex ";
        else
                command += " -e latex ";
        command += quoteName(outfilename.toFilesystemEncoding());