commit de2be5bdaafe7703289bc16c7b41d0ee35502dbb
Author: Juergen Spitzmueller <[email protected]>
Date:   Thu Dec 3 10:48:14 2020 +0100

    Recent LaTeX includes all math and text spaces
    
    amsmath no longer required here.
---
 lib/chkconfig.ltx         |    3 +++
 src/insets/InsetSpace.cpp |    7 +++++++
 2 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/lib/chkconfig.ltx b/lib/chkconfig.ltx
index d2cb624..33ff0fa 100644
--- a/lib/chkconfig.ltx
+++ b/lib/chkconfig.ltx
@@ -232,6 +232,9 @@
 %%% 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
diff --git a/src/insets/InsetSpace.cpp b/src/insets/InsetSpace.cpp
index 60db460..1b1193d 100644
--- a/src/insets/InsetSpace.cpp
+++ b/src/insets/InsetSpace.cpp
@@ -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
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to