From de2be5bdaafe7703289bc16c7b41d0ee35502dbb Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Thu, 3 Dec 2020 10:48:14 +0100 Subject: [PATCH] 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(+) diff --git a/lib/chkconfig.ltx b/lib/chkconfig.ltx index d2cb624b46..33ff0fa2a9 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 60db460aa2..1b1193d63b 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 -- 2.39.2