]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/tex2lyx.cpp
Fix bug #8422.
[lyx.git] / src / tex2lyx / tex2lyx.cpp
index ceb4e92ed3d0cad4ce5e7069bdc33eb645fd253f..ea20561f080cdbf3f14ce73eeb298e2d6e1b0077 100644 (file)
@@ -446,6 +446,13 @@ bool checkModule(string const & name, bool command)
 }
 
 
+bool isProvided(string const & name)
+{
+       // This works only for features that are named like the LaTeX packages
+       return textclass.provides(name) || preamble.isPackageUsed(name);
+}
+
+
 bool noweb_mode = false;
 bool pdflatex = false;
 bool xetex = false;