]> git.lyx.org Git - features.git/blobdiff - src/Buffer.cpp
Align \textgreek and \textcyr with font encoding, part II
[features.git] / src / Buffer.cpp
index 61f2bfc762111096a7bcd1a15c606fc9c929a014..97ecd4df41d52466872176e49c5f66ee4e6b6558 100644 (file)
@@ -1781,6 +1781,9 @@ Buffer::ExportStatus Buffer::writeLaTeXSource(otexstream & os,
        //        (or not reached) and characters encodable in the current
        //        encoding are not converted to ASCII-representation.
 
+       // Some macros rely on font encoding
+       runparams.main_fontenc = params().main_font_encoding();
+
        // If we are compiling a file standalone, even if this is the
        // child of some other buffer, let's cut the link here, so the
        // file is really independent and no concurring settings from