Skip to content

Conversation

utkuokur
Copy link

@utkuokur utkuokur commented Oct 3, 2025

This PR updates the hard-coded LaTeX format date in
lib/LaTeXML/Engine/latex_base.pool.ltxml:

  • DefMacroI('\fmtversion', undef, '2018/12/01');
  • DefMacroI('\fmtversion', undef, '2021/06/01');

Rationale:

  • The memoir class (and some other modern packages) require at least LaTeX format 2021/06/01.

  • With the previous value (2018/12/01), LaTeXML fails immediately with:

    Class memoir Error: Your LaTeX release is too old.
    The memoir class requires at LaTeX format from at least 2021/06/01 onwards.

  • After applying this patch locally, I was able to successfully process documents using memoir with LaTeXML.

This should unblock users of memoir and other classes that check \fmtversion.

Notes:
While running make test, I observed 3 failing subtests in t/81_babel.t.
However, the same failures occur when testing against the current master branch, so they appear unrelated to this change.

Copy link
Collaborator

@dginev dginev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is fine by me, thanks.

But curious if Bruce has some thoughts about the broader impact of that flag, for example if it affects our "make formats" target.

@xworld21
Copy link
Contributor

xworld21 commented Oct 3, 2025

Format 2020 includes stuff like \NewDocumentCommand which LaTeXML does not implement directly, so it would break LaTeX3 (e.g. xparse would not load correctly). Rather, does make formats update \fmtversion?

@utkuokur utkuokur closed this Oct 3, 2025
@utkuokur
Copy link
Author

utkuokur commented Oct 3, 2025

The pull request failed the test. I will retry with a partial solution instead of a global change.

@dginev
Copy link
Collaborator

dginev commented Oct 4, 2025

@utkuokur your PR was healthy, the failed test was due to CI bitrot (fixed in PR #2653 )

@dginev dginev reopened this Oct 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants