arXiv / arXiv/html_feedback

LaTeXML fails to parse `\qty` macro from `siunitx` package

Open
#6,624 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
42
Forks
40
PR merge metrics
No merged PRs in 30d

Description

### Description

The LaTeXML converter seems to fail to parse the \qty macro from the siunitx package correctly. For example, a valid expression like \qty{1.6}{\giga\hertz} is rendered incorrectly as " \giga " in the HTML version, stripping away the first argument (the numeric value). It also occasionally outputs internal error strings like [quantity-product = ... ].

### (Optional:) Please add any files, screenshots, or other information here.

_No response_

### (Required) What is this issue most closely related to? Select one.

Formula

### Internal issue ID

752fe6e6-c6b5-4e0b-a559-7c7e9b9d685b

### Paper URL

https://arxiv.org/html/2606.13010v1

### Browser

Chrome/149.0.0.0

### Device Type

Desktop

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the \qty{1.6}{\giga\hertz} conversion from the linked paper and inspect the LaTeXML handling of the siunitx macro. Done means the HTML preserves both the numeric value and unit, without emitting internal strings such as [quantity-product = ... ].

Written by the indexing model from the issue text.

Assessment

Tech stack
latex
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.