X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBufferParams.cpp;h=c99b467282afb770bf410eb3efa5aa4bf3a5b79d;hb=8bf5d4b4614bc45e727112cdb20e162da3e26717;hp=c53d0ec9212c110a80ac8a938ae2f77c6b6cae9e;hpb=b99a2a625513ebac315d5d70a6ed8d23e330f321;p=features.git diff --git a/src/BufferParams.cpp b/src/BufferParams.cpp index c53d0ec921..c99b467282 100644 --- a/src/BufferParams.cpp +++ b/src/BufferParams.cpp @@ -1419,8 +1419,13 @@ bool BufferParams::writeLaTeX(otexstream & os, LaTeXFeatures & features, if (useNonTeXFonts && !ams.empty()) os << from_ascii(ams); - if (useNonTeXFonts) + if (useNonTeXFonts) { os << "\\usepackage{fontspec}\n"; + if (fonts_math != "auto" && features.isAvailable("unicode-math")) { + features.require("unicode-math"); + os << "\\usepackage{unicode-math}\n"; + } + } // font selection must be done before loading fontenc.sty string const fonts = loadFonts(features);