amsthm package: Environment names not used in \ref's
- Dominant language
- No language data
- Stars
- 42
- Forks
- 40
- PR merge metrics
- No merged PRs in 30d
Description
### Description
I've noticed the issue in this paper: https://arxiv.org/html/2508.18475v1
In the PDF, we find, in the Introduction (second pargraph) the sentence: "(Definition 3 contains the precise formulation.)"
In the HTML, this is given as "3 contains the precise formulation.", i.e., the word "Definition" is omitted.
The same happens further down in the text in all other occurances of "Definition", "Lemma" or the like.
It seems that this happens whenever an environment is used that has been created with `\newtheorem` (presumably from package `amsthm`)
### (Optional:) Please add any files, screenshots, or other information here.
_No response_
### (Required) What is this issue most closely related to? Select one.
Choose One
### Internal issue ID
86011aae-fba0-40f6-89f6-ce9a5a49a482
### Paper URL
https://arxiv.org/html/2508.18475v1
### Browser
Firefox/144.0
### Device Type
Desktop
Contributor guide
Research direction
Start by reproducing the linked paper and compare the PDF and HTML references for environments created with \newtheorem, including Definition and Lemma. Trace the HTML rendering path that handles amsthm environment names and cross-references; the issue is done when those names appear in generated \ref text.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- latex
- Domain
- web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100