]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeXFeatures.C
layout file converter for layout files in old format
[lyx.git] / src / LaTeXFeatures.C
index 144f98a2891906b483a8a1f7da55d24f31649184..4bf391479ceca3ff925df5f4ccfac540e6341df6 100644 (file)
@@ -238,7 +238,6 @@ char const * simplefeatures[] = {
        "varioref",
        "prettyref",
        "float",
-       "wasysym",
        "dvipost",
        "fancybox",
        "calc",
@@ -275,6 +274,11 @@ string const LaTeXFeatures::getPackages() const
                packages << "\\usepackage{amsmath}\n";
        }
 
+       // wasysym is a simple feature, but it must be after amsmath if both
+       // are used
+       if (isRequired("wasysym"))
+               packages << "\\usepackage{wasysym}\n";
+
        // color.sty
        if (isRequired("color")) {
                if (params_.graphicsDriver == "default")