Guenter Milde wrote: > Both xelatex and luatlaex can use TeX fonts and PSNFSS: > > \documentclass{minimal} > \usepackage{fixltx2e} > \usepackage{bookman} > \usepackage[T1]{fontenc} > \usepackage[utf8]{inputenc} > > \begin{document} > > Hallo Welt! > > \end{document}
OK, I tried this now. The two engines indeed seem to be able to deal with these font packages. However, as soon as the fontspec package is loaded, it doesn't work anymore (and there will always be LM in the output). Fontspec is automatically loaded at least by xltxtra and polyglossia. So if we provide tex fonts support with XeTeX, we will have to use babel and omit xltxtra. We can do that, but do we really want to provide such a limited choice? Attached is a patch, if you want to try it out. Jürgen
Index: src/Buffer.cpp =================================================================== --- src/Buffer.cpp (Revision 36500) +++ src/Buffer.cpp (Arbeitskopie) @@ -3630,10 +3630,12 @@ vector<string> v; v.push_back(bufferFormat()); // FIXME: Don't hardcode format names here, but use a flag - if (v.back() == "latex") + if (v.back() == "latex") { v.push_back("pdflatex"); - else if (v.back() == "xetex") v.push_back("luatex"); + v.push_back("xetex"); + } else if (v.back() == "xetex") + v.push_back("luatex"); v.push_back("xhtml"); v.push_back("text"); v.push_back("lyx"); Index: src/BufferParams.cpp =================================================================== --- src/BufferParams.cpp (Revision 36500) +++ src/BufferParams.cpp (Arbeitskopie) @@ -1896,8 +1896,11 @@ if (features.runparams().flavor == OutputParams::XETEX) { os << "\\usepackage{xunicode}\n"; texrow.newline(); - os << "\\usepackage{xltxtra}\n"; - texrow.newline(); + // this must only be loaded if we use OS fonts + if (useNonTeXFonts) { + os << "\\usepackage{xltxtra}\n"; + texrow.newline(); + } } // Polyglossia must be loaded after xltxtra if (use_polyglossia) {