Kornel Benko wrote:
> Save the files some source directory.
>
> Editing source/Main.lyx
> # Display with lualatex works
> # Display with xelatex does not.
You do not have the TeXGyre fonts installed in your OSes font folder, do you?
XeTeX cannot find fonts by font name in the TEXMF tree, as opposed to LuaTeX.
This is probably the cause of this difference
> The file Main_xetex.lyx is a copy of Main.lyx, but the fonts are changed to
> use latex equivalents tgtermes, ...
>
> Editing source/Main_xetex.lyx
> # Display with xelatex works.
>
> Now test export for Main_xetex.lyx
>
> #lyx -e xetex source/Main_xetex.lyx
> The resulting "source/Main_xetex.tex" is compilable with xetex.
>
> #lyx -E xetex /tmp/xetextes/Main_xetex.tex Main_xetex.lyx
> Now try to compile /tmp/xetextes/Main_xetex.tex
>
> Make a diff
> #diff /tmp/xetextes/Main_xetex.tex source/Main_xetex.tex
I see. Can you try the attached patch?
Regards,
Jürgen
diff --git a/src/Buffer.cpp b/src/Buffer.cpp
index 0ac68c8..b8719cb 100644
--- a/src/Buffer.cpp
+++ b/src/Buffer.cpp
@@ -933,7 +933,7 @@ bool Buffer::readDocument(Lexer & lex)
}
}
- if (!params().master.empty()) {
+ if (!parent() && !params().master.empty()) {
FileName const master_file = makeAbsPath(params().master,
onlyPath(absFileName()));
if (isLyXFileName(master_file.absFileName())) {