URL: <https://puszcza.gnu.org.ua/bugs/?641>
Summary: adding \usepackage{subcaption} makes tex4ht not correctly align caption below image in graphics Project: tex4ht Submitted by: nma123 Submitted on: Sun Nov 10 18:26:46 2024 Category: None Priority: 5 - Normal Severity: 5 - Normal Status: None Privacy: Public Assigned to: None Originator Email: Open/Closed: Open Discussion Lock: Any _______________________________________________________ Details: Screen shots at https://tex.stackexchange.com/questions/730525/adding-usepackagesubcaption-makes-tex4ht-not-correctly-align-caption-below-im This MWE ---------------------------- \documentclass[12pt]{book} \usepackage{graphicx} \usepackage{framed} \newcommand{\addImage}[4] { \begin{figure} \centering \begin{framed} \includegraphics[width=#2\textwidth]{#3}\caption{#4} \end{framed} \end{figure} }% \usepackage{subcaption} \begin{document} \addImage{1}{0.3}{example-image-a}{Phase line diagram} \end{document} ------------------- Compiled with lualatex, gives correct output, with caption below the image enter image description here But compiled with tex4ht using the command make4ht -ulm default -a debug A.tex 'mathjax,htm' gives this enter image description here Removing \usepackage{subcaption} from the code, now tex4ht gives correct output enter image description here Is there a workaround for tex4ht? TL 2024, updated 3 days ago. _______________________________________________________ Reply to this item at: <https://puszcza.gnu.org.ua/bugs/?641> _______________________________________________ Message sent via/by Puszcza <https://puszcza.gnu.org.ua/>