dginev / ar5iv

A web service offering HTML5 articles from arXiv.org as converted with latexml
https://ar5iv.org
MIT License
783 stars 20 forks source link

Improve article 2307.10426 (subfigure arrangement) #378

Open mjyb16 opened 1 year ago

mjyb16 commented 1 year ago

Exact location of issue

Section 4 of this link, where the link points to the graph with item # S4.F7.2.g1

Problem details

The three graphs are not aligned or sized correctly, unlike in the PDF. See the same graphs in the PDF here (figure 7).

dginev commented 1 year ago

Thank you for the report @mjyb16 , this is timely as we are just revisting the {subfigure} implementation in latexml.

I'm excerpting the TeX source for the figure in question here:

\begin{figure}
    % To include a figure from a file named example.*
    % Allowable file formats are eps or ps if compiling using latex
    % or pdf, png, jpg if compiling using pdflatex
 \begin{subfigure}{.5\textwidth}
  \hspace*{-0.01\columnwidth}
  \includegraphics[width = 0.8\columnwidth]{red_dist.pdf}
  \vspace*{-0.135\columnwidth}
\end{subfigure}
\begin{subfigure}{.5\textwidth}
  \hspace*{0.7\columnwidth}
  \includegraphics[width = 0.649\columnwidth, angle = -90]{stellar.pdf}
\end{subfigure}
\begin{subfigure}{.5\textwidth}
  \vspace*{-0.652\columnwidth}
  \hspace*{-0.01\columnwidth}
  \includegraphics[width = 0.8\columnwidth]{mass_red.pdf}
\end{subfigure}
    \vspace*{-0.05\columnwidth}
    \caption{1-Mpc total stellar mass vs photo-$z$ for galaxy clusters found by the CluMPR algorithm in the DESI Legacy Survey imaging. Cluster stellar masses have been background-subtracted and corrected for incompleteness with Stellar Mass Correction Factor. The top histogram shows the redshift distribution of CluMPR clusters with the redshift distributions of \citet{2021ApJS..253...56Z} (black) and redMaPPer (red) overplotted. The right side histogram shows the stellar mass distribution of CluMPR clusters.}
    \label{fig:mass_red}
\end{figure}