Dear LyX developers, the patch below solves some of the unresolved FIXMES in the "Partial fix for #9740 "XeTeX/LuaTeX with TeX fonts problems" 1523fc6023440f10ca0/lyxgit
Testing shows, that this improves LuaTeX export with the minimal example of ticket #6216 that triggered the code containing the FIXMES: http://www.lyx.org/trac/raw-attachment/ticket/6216/6216.lyx With branch, exporting it with XeTeX and LuaTeX fails. With current master, export with XeTeX works but export to the LuaTeX file fails (due to the encoding beeing changed (no-tex fonts) but not beeing reset wrong test for FullUnicode instead of useNonTeXFonts in output_latex.cpp) With the patch, export with XeTeX works. Export to the LuaTeX file works, too. Compiling with LuaTeX fails (luainputenc problem) but the "show anyway" button shows the correct result. This means, the patch does not help to cure any case but improves LuaTeX export. There are new FIXMEs, where I were to lazy to get "buf" into the scope and fix all side-effects: + // BufferParams const & bparams = buf.params(); //FIXME: ‘buf’ was not declared in this scope Instead, I just commented the affected nonTeXFonts tests - the abovementionend test document still works also after selecting nonTeXFonts, so maybe the test are just to save time but have no effect on the output. Please test and apply if found useful and error-free. Günter