Am Freitag, 22. November 2013 um 21:52:45, schrieb Guenter Milde <mi...@users.sf.net> > On 2013-11-22, Kornel Benko wrote: > ... > > the following command seems not to export correctly: > ... > > #lyx -E xetex /tmp/xetextest/file.tex file.lyx > > > If I export the file from inside lyx (file->export-?latex(XeTeX)) > > and then compare both created files > > > #diff /tmp/xetextest/file.tex file.tex > > 4,9c4,7 > >< \usepackage{fontspec} > >< \setmainfont[Mapping=tex-text]{TeX Gyre Termes} > >< \setsansfont[Mapping=tex-text]{TeX Gyre Heros} > >< \setmonofont{TeX Gyre Cursor} > > --- > >> \usepackage{tgtermes} > >> \usepackage{tgheros} > >> \usepackage{tgcursor} > >> \usepackage[T1]{fontenc} > > 16a15 > >> \usepackage{babel} > > 25a25,26 > > 201,204d201 > >< \usepackage{polyglossia} > > One is using "non TeX fonts" while the other exports just as "normal" LaTeX. > Both should work with XeTeX but usually "non TeX fonts" is intended when > exporting for compiling with XeTeX.
No. The one "non TeX fonts" is using e.g. "TeX Gyre Termes", which has ' ' in name. This prevents xetex from compile. Here the message: ... (/usr/local/texlive/2013/texmf-dist/tex/latex/fontspec/fontspec.cfg)))kpathsea:make_tex: Invalid fontname `TeX Gyre Termes', contains ' ' !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! ! fontspec error: "font-not-found" ! ! The font "TeX Gyre Termes" cannot be found. ! ! See the fontspec documentation for further information. ! ! For immediate help type H <return>. !............................................... l.7 ...mainfont[Mapping=tex-text]{TeX Gyre Termes} > > > 223c220 > >< (Dr. \textlatin{rer. nat.})} > > --- > >> (Dr. \foreignlanguage{latin}{rer. nat.})} > > It seems polyglossia uses "\textlatin" to change the language while with > babel "\textlatin" ensures a font encoding supporting the Latin *script* is > used. > > > > The '-E' exported file is not compilable with xelatex, while the other is. > > What is the problem/error report with the -E exported file? > Does this depend on the file or does it happen with all files? > > Günter The problem is that it is not compilable. Kornel
signature.asc
Description: This is a digitally signed message part.