arXiv / arXiv/html_feedback

Math rendering wrong

Open
#5,575 1 comment 0 reactions 0 assignees View on GitHub
bug formula latexml latexml-oxide styles
Dominant language
No language data
Stars
42
Forks
40
PR merge metrics
No merged PRs in 30d

Description

### Description

Latex code for equation:
```latex
\begin{equation}
\SearchOut = \argmax_{a_1^S \in \textrm{hyps}}
\mathopen{\Big(}
\log p_{\textrm{ASR}}(a_1^S \mid x_1^T)
+ \lambda_{\textrm{DLM}} \cdot \log p_{\textrm{DLM}}(a_1^S \mid \hat{a}_1^{\hat{S}})
- \lambda_{\textrm{prior}} \cdot \log p_{\textrm{prior}}(a_1^S)
\mathclose{\Big)}
\label{eq:dsr-decoding}
\end{equation}
```
And before, we have:
```latex
\makeatletter
\newcommand{\oset}[3][0ex]{%
\mathrel{\mathop{#3}\limits^{
\vbox to#1{\kern-2\ex@
\hbox{$\scriptstyle#2$}\vss}}}}
\makeatother
\newcommand{\SearchOut}{{\oset{*}{a}}_1^{\oset{*}{S}}}
```

In the HTML rendering, for this equation, it shows `*`, and then `*^S` on two separate lines before the equation itself.

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

Image

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

Formula

### Internal issue ID

960d157c-8ec4-4722-b27b-c7d3a29c06c2

### Paper URL

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

### Browser

Chrome/143.0.0.0

### Device Type

Desktop

Contributor guide

Open the contributing guide

Research direction

Reproduce the reported HTML rendering using the LaTeX equation and the preceding custom \oset and \SearchOut definitions from the issue. Inspect how this formula is rendered in Chrome and compare it with the intended equation; done means the stray asterisks and separate *^S lines no longer appear before the equation.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, latex
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.