mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 11:16:55 +00:00
Recent LaTeX includes all math and text spaces
amsmath no longer required here.
This commit is contained in:
parent
7b6bb23b87
commit
de2be5bdaa
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user