arXiv / arXiv/html_feedback

Dummy `\subfloat` lead to dangling labels

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

Description

### Description

I have a figure that includes multiple panels in a single PDF (whereby the figure already includes the labels (a), (b), ...). To still use sub-referencing, I include a dummy `\subfloat`. E.g.:
```tex
\begin{figure}[htp]
\subfloat{\label{fig:panel-a}}
\subfloat{\label{fig:panel-b}}
% ...
\centering
\includegraphics[width=\linewidth]{full_figures.pdf}
\end{figure}
```

However, this leads to dangling (a), (b), ... in the html rendering.

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

_No response_

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

References

### Internal issue ID

automatic submit failed; submitted manually

### Paper URL

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

### Browser

Safari Version 17.0 (19616.1.27.211.1)

### Device Type

macOS 14.0 (23A344)

Contributor guide

Open the contributing guide

Research direction

No implementation files or tests are identified. Start by reproducing the reported LaTeX example with dummy \subfloat labels and inspect the generated HTML for the dangling markers. Done means sub-references remain usable without rendering unwanted (a), (b), and later labels.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, latex
Domain
web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.