brucemiller / LaTeXML

LaTeXML: a TeX and LaTeX to XML/HTML/ePub/MathML translator.
http://dlmf.nist.gov/LaTeXML/
Other
942 stars 101 forks source link

figure distortion #2392

Open CaseyMiller opened 2 months ago

CaseyMiller commented 2 months ago

Figures become distorted. The example shows spheres in pane a becoming distorted to ellipsoids. Figure files attached and the source is

\documentclass[11pt]{article}

% Graphics support \usepackage{graphicx} \usepackage{subcaption}

\begin{document}

\begin{figure}[t] \centering \begin{subfigure}[b]{0.33\linewidth} \includegraphics[width=\linewidth]{BCC.png} \caption{} \end{subfigure} \begin{subfigure}[b]{0.35\linewidth} \includegraphics[width=\linewidth]{BCE.png} \caption{} \end{subfigure} \begin{subfigure}[b]{0.3\linewidth} \includegraphics[width=\linewidth]{PSF_25S.png} \caption{} \end{subfigure} \ \begin{subfigure}[b]{0.4\linewidth} \includegraphics[width=\linewidth]{PEF_25E.png} \caption{} \end{subfigure} \begin{subfigure}[b]{0.4\linewidth} \includegraphics[width=\linewidth]{PSF_1000S.png} \caption{} \end{subfigure} \caption{Figure example.} \label{fig:ex2} \end{figure}

\end{document} BCC BCE PEF_25E PSF_25S PSF_1000S

dginev commented 2 months ago

@CaseyMiller could you attach the produced HTML here? LaTeXML should be keeping source PNG assets as-is, so this may be related to the final CSS and flexbox setup for subfigures.

CaseyMiller commented 2 months ago

From: Deyan Ginev @.> Sent: Tuesday, August 13, 2024 8:12 AM To: brucemiller/LaTeXML @.> Cc: Miller, Cass T @.>; Mention @.> Subject: Re: [brucemiller/LaTeXML] figure distortion (Issue #2392)

You don't often get email from @.**@.>. Learn why this is importanthttps://aka.ms/LearnAboutSenderIdentification

@CaseyMillerhttps://github.com/CaseyMiller could you attach the produced HTML here? LaTeXML should be keeping source PNG assets as-is, so this may be related to the final CSS and flexbox setup for subfigures.

— Reply to this email directly, view it on GitHubhttps://github.com/brucemiller/LaTeXML/issues/2392#issuecomment-2286098020, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABNUB5R4O44TCIAYUEHKECLZRHZXPAVCNFSM6AAAAABMODKZGGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOBWGA4TQMBSGA. You are receiving this because you were mentioned.Message ID: @.**@.>>