Recent LaTeX includes all math and text spaces

amsmath no longer required here.
This commit is contained in:
Juergen Spitzmueller 2020-12-03 10:48:14 +01:00
parent 7b6bb23b87
commit de2be5bdaa
2 changed files with 10 additions and 0 deletions

View File

@ -232,6 +232,9 @@
%%% Crucial versions %%% Crucial versions
% This one introduces path encoding changes % This one introduces path encoding changes
\TestLaTeXVersion{2019/10/01} \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 %%% And now, the list of available languages
% The trick is to know that \the\everyjob contains something like % The trick is to know that \the\everyjob contains something like

View File

@ -861,6 +861,13 @@ docstring InsetSpace::xhtml(XMLStream & xs, OutputParams const &) const
void InsetSpace::validate(LaTeXFeatures & features) 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 if ((params_.kind == InsetSpaceParams::NEGMEDIUM
|| params_.kind == InsetSpaceParams::NEGTHICK) || params_.kind == InsetSpaceParams::NEGTHICK)
|| (!params_.math || (!params_.math