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

Tables and latex symbols don't appear correctly #482

Open Kiguli opened 7 months ago

Kiguli commented 7 months ago

Description

Table doesn't display correctly, also symbols like hat over the variables appears quite weirdly.

(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

138a666d-bfa1-4603-badc-c86da1dcab7d

Paper URL

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

Browser

Chrome/121.0.0.0

Device Type

Desktop

github-actions[bot] commented 7 months ago

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

Kiguli commented 7 months ago

Here is a screenshot:

image

chrisjcameron commented 7 months ago

The table is rotated and the caption is cut off. I assume the rotation is intentional and the cutoff is the issue?

The hat display is partially browser-dependent and Chrome has the most issues.

Kiguli commented 7 months ago

Yes, the rotation is intentional as it could fit on one page landscape but was too wide for the page in portrait, the issue is that the table is now only partially visible. Thanks

html-feedback-bot[bot] commented 7 months ago

Location in document: id6.id1

Selected HTML: data:text/html;charset=utf-8,%3Cspan%20class%3D%22ltx_text%20ltx_font_sansserif%20ltx_font_bold%22%20id%3D%22id6.id1%22%20style%3D%22font-size%3A173%25%3B%22%3EIMPaCT%3C%2Fspan%3E%3Cspan%20class%3D%22ltx_text%22%20id%3D%22id7.id2%22%20style%3D%22font-size%3A173%25%3B%22%3E%3A%20%3Cspan%20class%3D%22ltx_text%20ltx_font_bold%20ltx_framed_underline%22%20id%3D%22id7.id2.1%22%3EI%3C%2Fspan%3Enterval%20%3Cspan%20class%3D%22ltx_text%20ltx_font_bold%20ltx_framed_underline%22%20id%3D%22id7.id2.2%22%3EM%3C%2Fspan%3EDP%20%3Cspan%20class%3D%22ltx_text%20ltx_font_bold%20ltx_framed_underline%22%20id%3D%22id7.id2.3%22%3EPa%3C%2Fspan%3Erallel%20Construction%20for%20%3Cspan%20class%3D%22ltx_text%20ltx_font_bold%20ltx_framed_underline%22%20id%3D%22id7.id2.4%22%3EC%3C%2Fspan%3Eontroller%20Synthesis%20of%20Large-Scale%20S%3Cspan%20class%3D%22ltx_text%20ltx_font_bold%20ltx_framed_underline%22%20id%3D%22id7.id2.5%22%3ET%3C%2Fspan%3Eochastic%20Systems%3C%2Fspan%3E

dginev commented 7 months ago

the rotation is intentional

While the rotation was certainly intentional in the PDF, and latexml preserves the information to HTML to stay faithful, I think these cases should be disabled via CSS in the web views, as there is no easy way to actually rotate the page and view the content in a browser. On a mobile device with auto-rotate enabled this is particularly frustrating, as the table will keep flipping when one tilts their phone, never aligning with the orientation. One needs to disable auto-rotate to get anywhere.

A bit of that kind of CSS is already in place in ar5iv, but seemingly that rule doesn't activate here, maybe a specificity constraint: https://github.com/dginev/ar5iv-css/blob/897ae527cf90a64a397c5f08bae9533ecf1ee052/css/ar5iv.css#L1585-L1589

Also worth noting: if left in their usual orientation, such wide tables currently require a horizontal scrollbar, as we don't have any grid reflow strategy (yet?) in latexml.

The math rendering issue with the vertical bars is a known+reported chromium bug with MathML Core, and also ties into https://github.com/brucemiller/LaTeXML/issues/2330