]> git.lyx.org Git - lyx.git/commitdiff
Recent LaTeX includes all math and text spaces
authorJuergen Spitzmueller <spitz@lyx.org>
Thu, 3 Dec 2020 09:48:14 +0000 (10:48 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Thu, 3 Dec 2020 09:49:18 +0000 (10:49 +0100)
amsmath no longer required here.

lib/chkconfig.ltx
src/insets/InsetSpace.cpp

index d2cb624b46608a22de452d9bc05ea97c190a389f..33ff0fa2a90adac521618ed3e90576ad9b94f349 100644 (file)
 %%% Crucial versions
 % This one introduces path encoding changes
 \TestLaTeXVersion{2019/10/01}
+% This introduces all math and text spaces
+% previously only available via amsmath
+\TestLaTeXVersion{2020/10/01}
 
 %%% And now, the list of available languages
 % The trick is to know that \the\everyjob contains something like
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