You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thankfully firstaid seems to make amsthm and cleveref usable in many circumstances, allowing tagging experiments on existing documents.
Here's a particular combination that currently won't compile (on MacTeX, TeX Live 2024, both pdfTeX and LuaTeX, LaTeX2e 2024-11-01, L3 layer 2024-11-02, nor under pdflatex-dev or lualatex-dev, LaTeX2e 2025-06-01 pre-release-1 2024-12-18 branch, L3 layer 2024-12-09):
Quick notes (since I'm also interested in this combination of packages):
the same compilation error happens for me without the \label
using lualatex-dev (develop 2024-12-19 branch), I get a different error:
! LaTeX template Error: The instance '\l__block_block_instance_tl -\int_use:N
(template) \g_block_nesting_depth_int ' of type 'block' is
(template) unknown.
when cleveref is loaded after amsthm it overwrites the new tagging code for the theorems and so breaks tagging. Try what happens if you load it before amsthm, it is probably easier to solve whatever problem arisethere.
Or consider to use e.g. zref-clever instead of cleveref. cleveref contains so many patches that is is quite hard to make it fully tagging compatible.
Thankfully
firstaid
seems to makeamsthm
andcleveref
usable in many circumstances, allowing tagging experiments on existing documents.Here's a particular combination that currently won't compile (on MacTeX, TeX Live 2024, both pdfTeX and LuaTeX, LaTeX2e 2024-11-01, L3 layer 2024-11-02, nor under
pdflatex-dev
orlualatex-dev
, LaTeX2e 2025-06-01 pre-release-1 2024-12-18 branch, L3 layer 2024-12-09):Key ingredients:
amsthm
before loadingcleveref
(as instructed incleverref
documentation)cleveref
before calling\newtheorem
(as instructed incleverref
documentation)\label
with that theorem typeError goes away with any one of the following (undesirable) changes:
\DocumentMetadata
line\usepackage{amsthm}
line\usepackage{cleveref}
line\usepackage{amsthm}
and\usepackage{cleveref}
proposition
its own counter:\newtheorem{proposition}{Proposition}[section]
\usepackage{cleveref}
below the various\newtheorem
The text was updated successfully, but these errors were encountered: