]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeXFeatures.C
add missing writeNormal() methods to some insets
[lyx.git] / src / LaTeXFeatures.C
index d24614d4611231cdafbe4122cbd923c74afe498a..0f4d8dd2faad20570f8f4022233fcc8f5a5cb473 100644 (file)
@@ -155,10 +155,7 @@ string const LaTeXFeatures::getPackages() const
                
        // makeidx.sty
        if (makeidx) {
-               if (! tclass.provides(LyXTextClass::makeidx)
-                   && params.language->babel() != "french") // french provides
-                                                            // \index !
-                       // French should not be hardcoded. (Lgb)
+               if (! tclass.provides(LyXTextClass::makeidx))
                        packages << "\\usepackage{makeidx}\n";
                packages << "\\makeindex\n";
        }
@@ -378,6 +375,20 @@ string const LaTeXFeatures::getTClassPreamble() const
 }      
 
 
+string const LaTeXFeatures::getLyXSGMLEntities() const
+{
+       // Definition of entities used in the document that are LyX related.
+       ostringstream entities;
+
+       if (lyxarrow) {
+               entities << "<!ENTITY lyxarrow \"-&gt;\">"
+                        << '\n';
+       }
+
+       return entities.str().c_str();
+}
+
+
 string const LaTeXFeatures::getIncludedFiles(string const & fname) const
 {
        ostringstream sgmlpreamble;