arXiv / html_feedback

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

table incorecctly formatted #2069

Open mario-koddenbrock opened 1 month ago

mario-koddenbrock commented 1 month ago

Description

the titles are not above the correct columns

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

No response

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

Choose One

Internal issue ID

5a06e494-6eea-49d4-88ba-a02c08881721

Paper URL

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

Browser

Chrome/128.0.0.0

Device Type

Desktop

html-feedback-bot[bot] commented 1 month ago

Location in document: S5.T1.42.40.40.40.41.3

Selected HTML: μ𝜇\muitalic_μ-Bench Perception (Coarse-Grained) Perception (Fine-Grained) Cognition (Reasoning)

github-actions[bot] commented 1 month ago

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

mario-koddenbrock commented 1 month ago

This is the orignal PDF view: Bildschirmfoto 2024-09-10 um 10 23 37

This is the HTML view: Bildschirmfoto 2024-09-10 um 10 20 40

It seems that the HTML version does not support multicolums properly

dginev commented 1 month ago

Attaching the TeX source here for reference. This is a current latexml limitation where {adjustbox} can lead to synthesizing <span>-based inline tabulars, instead of regular HTML <table>.

And multicolumns don't work well on the span-based variant.

    \begin{adjustbox}{width=\textwidth}
    \begin{tabular}{c c c c c c}
        \toprule 
        \rowcolor{gray!10} \multicolumn{6}{c}{$\mu$-Bench} \\
        \midrule
        \midrule
        \multicolumn{2}{c}{Perception (Coarse-Grained)} & \multicolumn{2}{c}{ Perception (Fine-Grained)} & \multicolumn{2}{c}{Cognition (Reasoning) } \\
        \midrule
        Model & Accuracy ($\pm$ CI) & Model & Accuracy ($\pm$ CI) & Model & Accuracy ($\pm$ CI) \\
        \midrule 
        \midrule
        \GPT{62.68}{0.35} & \GPT{51.73}{0.82} & \GPT{62.00}{9.00} \\
        \COGVLM{52.05}{0.35} & \BIOMEDCLIP{34.65}{0.75} & \QWENVLM{41.00}{10.00} \\
        \QWENVLM{49.85}{0.35} & \CONCH{33.64}{0.72} & \COGVLM{41.00}{10.00} \\
        \BIOMEDCLIP{47.57}{0.34} & \ALIGN{31.9}{0.72} & \OPENCLIP{38.33}{8.33} \\
        \ALIGN{40.7}{0.34} & \CLIP{30.09}{0.71} & \ALIGN{31.00}{9.00} \\
        \OPENCLIP{36.34}{0.33} & \OPENCLIP{29.36}{0.69} & \CLIP{28.00}{9.00} \\
        \PALIGEMMA{36.29}{0.33} & \COGVLM{28.18}{0.70} & \PALIGEMMA{25.00}{8.00} \\
        \CLIP{35.41}{0.34} & \QUILTCLIP{27.85}{0.69} & \BIOMEDCLIP{25.00}{8.00} \\
        \PLIP{31.11}{0.32} & \QWENVLM{27.81}{0.70} & \CONCH{18.00}{7.00} \\
        \CONCH{27.84}{0.31} & \PLIP{25.49}{0.68} & \RANDOM{17.00}{7.00} \\

        \QUILTCLIP{26.58}{0.31} & \PALIGEMMA{21.29}{0.64} & \PLIP{17.00}{7.00} \\
        \RANDOM{18.34}{0.27} & \RANDOM{19.13}{0.60} & \QUILTCLIP{13.00}{6.00} \\
        \bottomrule
    \end{tabular}
    \end{adjustbox}