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

Subfigures were misaligned #1365

Open ggluo opened 3 months ago

ggluo commented 3 months ago

Description

Subfigures were misaligned

(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

d65e0c41-1eff-4f4e-9be5-18160b5ebd79

Paper URL

https://arxiv.org/html/2405.14327v2

Browser

Chrome/125.0.0.0

Device Type

Desktop

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

Location in document: S3.F5.2.3.1.1.1

Selected HTML:

(a) (b)
Refer to caption Refer to caption

Figure 5: E: equispaced, R: random. (a): PSNR and (b): NRMSE of the images reconstructed from the twelve-times undersampled k-space data using the autoregressive diffusion model (AID) and the standard diffusion model (Guide). PSNR higher is better, and NRMSE lower is better.
github-actions[bot] commented 3 months ago

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

dginev commented 3 months ago

Diagnostic comment:

Both Figure 4 and Figure 5 here are realized via figures-of-tabulars.

For Figure 4, the images in the table cells have (experimental) CSS allowing to auto-fill the available space (width:auto; height:auto;), but that does not preserve their mutually relative sizing: the left panel grows too high, while the right one shrinks to be too narrow. Removing the auto-sizing entirely shows that latexml had correctly preserved enough of the original sizing information. If we had a way to preserve the relative img sizing while still allowing some auto growth into the available space, the situation would improve. Maybe percent-based width/height sizing would be a better direction of improvement...

For figure 5, an ::after CSS rule originally meant for regular tabulars leads to the slight vertical misalignment. Ideally that rule can be avoided in this kind of image container structure.

Source snippet:

\begin{figure}[htbp]
  \centering
  \begin{tabular}{c@{\hskip 1pt}c}
    \sffamily (a) & \sffamily(b)\\
    \includegraphics[width=0.234\textwidth]{fig1_b.pdf}  
    &
    \includegraphics[width=0.766\textwidth]{fig1_frame.pdf}  
  \end{tabular}

  \caption{(a): The folded single-coil...}
  \label{fig:single}
\end{figure}