commit 740c247dfe9909e53280ee30fd6abbcd65f638a2
Author: Juergen Spitzmueller <[email protected]>
Date: Thu Dec 5 17:39:16 2013 +0100
Do not load the xunicode package with TeX fonts
diff --git a/src/BufferParams.cpp b/src/BufferParams.cpp
index cc18ce1..0604a99 100644
--- a/src/BufferParams.cpp
+++ b/src/BufferParams.cpp
@@ -1958,7 +1958,8 @@ bool BufferParams::writeLaTeX(otexstream & os,
LaTeXFeatures & features,
// xunicode needs to be loaded at least after amsmath, amssymb,
// esint and the other packages that provide special glyphs
- if (features.runparams().flavor == OutputParams::XETEX)
+ if (features.runparams().flavor == OutputParams::XETEX
+ && useNonTeXFonts)
lyxpreamble += "\\usepackage{xunicode}\n";
// Polyglossia must be loaded last