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

latex2html conversion does not respect size in includegraphics #1334

Open darinernst opened 4 months ago

darinernst commented 4 months ago

Description

I have icons for ORCIDs similar to journals, by the author names. I have specified the sizes to be 1 em in height. This works fine in pdflatex, but latex2html includes the icons as full-size png's. Also, there is no bibliography showing up, while it works fine everywhere else. I have included a .bbl file, but not explicitly. If I include the .bbl file explicitly, I get a double bibliography in the pdf.

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

Screen Shot 2024-05-26 at 1 30 01 PM Screen Shot 2024-05-26 at 1 31 56 PM

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

Figures

Internal issue ID

bb3163aa-1265-4d9d-a4ae-fd1ef39381ce

Paper URL

https://services.arxiv.org/html/submission/5621749/view

Browser

Firefox/126.0

Device Type

Desktop

github-actions[bot] commented 4 months ago

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

darinernst commented 4 months ago

\newcommand\orcid[1]{\href{https://orcid.org/#1}{\includegraphics[height=0.8em]{orcid.png}}}

\begin{document} \titlespacing{\section}{0pt}{6pt}{6pt}

\title{Broadening of the Divertor Heat Flux Profile in High Confinement Tokamak Fusion Plasmas with Edge Pedestals Limited by Turbulence in DIII-D}

\author{D. R. Ernst\href{https://orcid.org/0000-0002-9577-2809}{\includegraphics[height=0.8em]{orcid.png}}} \affiliation{Massachusetts Institute of Technology, Cambridge, Massachusetts 02139, USA} \email{dernst@psfc.mit.edu}

\author{A.~Bortolon\orcid{0000-0002-0094-0209}} \affiliation{Princeton University Plasma Physics Laboratory, Princeton, New Jersey 08840, USA} \author{C.~S.~Chang\orcid{0000-0002-3346-5731}} \affiliation{Princeton University Plasma Physics Laboratory, Princeton, New Jersey 08840, USA} \author{S.~Ku\orcid{0000-0002-9964-1208}} \affiliation{Princeton University Plasma Physics Laboratory, Princeton, New Jersey 08840, USA}

dginev commented 4 months ago

Thank you for the report. This is a jarring bug from the experimental CSS for figure image sizing, apologies. The solution would be to deactivate those rules in .ltx_authors and other frontmatter contexts.

It is also a good occasion which reminded me the CSS components from ar5iv are yet to be endowed with a dedicated test suite. For example, via selenium assertions based on getComputedStyle(element).

brucemiller commented 4 months ago

Or, since little random images can appear in many situations, even math, perhaps better would be to only apply such figure layout tricks when you're convinced you're dealing with a figure (or table?)