arXiv / html_feedback

Supports a student project developing a UI for feedback on arXiv articles rendered as html.
MIT License
17 stars 3 forks source link

Table Figure Label Positioned Incorrectly #1849

Open siddMahen opened 1 month ago

siddMahen commented 1 month ago

Description

The figure caption "Table 2" appears overlayed atop the table, rather than below it.

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

Screenshot 2024-08-04 at 4 49 18 PM

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

Choose One

Internal issue ID

a579bf47-a5d1-4ab9-8414-f787f0b19133

Paper URL

https://arxiv.org/html/2310.17837v3

Browser

Firefox/128.0

Device Type

Macbook Air

github-actions[bot] commented 1 month ago

Hello @siddMahen, thanks for the issue report! We are reviewing your report and will address it as soon as possible.

dginev commented 1 month ago

Thank you for the report. LaTeXML's support for \captionof positioning is currently rather basic, and in this case mistakenly triggers subfigure support.

I am extracting the source of the problem for future developer reference:

\begin{figure}[h!]
\begin{tabular}{| c | c | c |c|c| c|}
% content omitted for brevity
\end{tabular}
\captionof{table}{}
\label{fig:1}
\end{figure}