]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetSpace.cpp
Recent LaTeX includes all math and text spaces
[features.git] / src / insets / InsetSpace.cpp
index 60db460aa233882da1777834dc208ec2c2947c15..1b1193d63bd966953bec977e9c400a9b769bf7f3 100644 (file)
@@ -861,6 +861,13 @@ docstring InsetSpace::xhtml(XMLStream & xs, OutputParams const &) const
 
 void InsetSpace::validate(LaTeXFeatures & features) const
 {
+       if (features.isAvailable("LaTeX-2020/10/01"))
+               // As of this version, the LaTeX kernel
+               // includes all spaces.
+               return;
+
+       // In earlier versions, we require amsmath
+       // for some text and math spaces
        if ((params_.kind == InsetSpaceParams::NEGMEDIUM
             || params_.kind == InsetSpaceParams::NEGTHICK)
            || (!params_.math