]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeXFeatures.cpp
Extend LATEXIFY command param handling and add literal param.
[lyx.git] / src / LaTeXFeatures.cpp
index 5e4aac0637972123b6bd1f8d6c337eb0c8ab518b..08e1470561e7cd97ffde86067286a4a65ba9bb99 100644 (file)
@@ -865,10 +865,11 @@ void LaTeXFeatures::getFontEncodings(vector<string> & encodings) const
 {
        // these must be loaded if glyphs of this script are used
        // unless a language providing them is used in the document
-       // FIXME: currently the option is written twice in this case
-       if (mustProvide("textgreek"))
+       if (mustProvide("textgreek")
+           && find(encodings.begin(), encodings.end(), "LGR") == encodings.end())
                encodings.insert(encodings.begin(), "LGR");
-       if (mustProvide("textcyr"))
+       if (mustProvide("textcyr")
+           && find(encodings.begin(), encodings.end(), "T2A") == encodings.end())
                encodings.insert(encodings.begin(), "T2A");
 
        LanguageList::const_iterator it  = UsedLanguages_.begin();