]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetExternal.cpp
* src/insets/InsetExternal.cpp (validate):
[features.git] / src / insets / InsetExternal.cpp
index ea2c0c41767df2ee1d309efba77a8230b750be1e..6de1fec99f531a559e732fece702982522c9bd84 100644 (file)
@@ -838,8 +838,17 @@ void InsetExternal::validate(LaTeXFeatures & features) const
        }
        external::Template::Formats::const_iterator cit =
                et.formats.find(format);
-       if (cit == et.formats.end())
-               return;
+
+       if (cit == et.formats.end()) {
+               // If the template has not specified a PDFLaTeX output,
+               // we try the LaTeX format.
+               if (format == "PDFLaTeX") {
+                       cit = et.formats.find("LaTeX");
+                       if (cit == et.formats.end())
+                               return;
+               } else
+                       return;
+       }
 
        // FIXME: We don't need that always
        features.require("lyxdot");