Inline code rendered at near-zero font size in HTML output due to `\smaller` macro
- Dominant language
- No language data
- Stars
- 42
- Forks
- 40
- PR merge metrics
- No merged PRs in 30d
Description
### Description
In the HTML rendering on arXiv, inline code produced via a custom LaTeX command becomes effectively unreadable due to extreme font-size reduction.
The LaTeX source defines:
```
\newcommand*{\myfont}{\fontfamily{cmtt}\smaller\selectfont}
\DeclareTextFontCommand{\code}{\myfont}
\code{unreadable text here}
```
The rendered inline code is reduced to an extremely small font size (effectively a thin line), making the content unreadable in the HTML version.
### (Optional:) Please add any files, screenshots, or other information here.
_No response_
### (Required) What is this issue most closely related to? Select one.
Other
### Internal issue ID
5495a3b4-eae9-4849-b86b-73dc7387088d
### Paper URL
https://arxiv.org/html/2601.10572v1
### Browser
Chrome/147.0.0.0
### Device Type
Desktop
Contributor guide
Research direction
Start by reproducing the reported LaTeX example with \myfont, \code, and \smaller against the HTML rendering for paper 2601.10572v1. Compare the generated inline-code output with the source and determine what behavior should prevent the text from becoming unreadable; done means the example renders at a readable size.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- latex
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100