URL: <http://puszcza.gnu.org.ua/bugs/?591>
Summary: adding \fbox around \includegraphics makes it lose the centering when using tex4ht Project: tex4ht Submitted by: nma123 Submitted on: Fri Dec 30 23:14:21 2022 Category: None Priority: 5 - Normal Severity: 5 - Normal Status: None Privacy: Public Assigned to: None Originator Email: Open/Closed: Open Discussion Lock: Any _______________________________________________________ Details: reference and screen shots at https://tex.stackexchange.com/questions/670174/why-adding-fbox-around-includegraphics-makes-it-lose-the-centering-when-using In tex4ht, when doing \centering \includegraphics[width=0.6\textwidth]{example-image-a} The image comes out centered. But when adding fbox, the images no longer is centered \centering \fbox{\includegraphics[width=0.6\textwidth]{example-image-a}} I was not sure if this is by design or if it should remain centered. It does remain centered in pdf. Here is MWE --------------------------- \documentclass{article} \usepackage{amsmath} \usepackage{graphicx} \usepackage{hyperref} \begin{document} \begin{figure} \centering \includegraphics[width=0.6\textwidth]{example-image-a} \caption{Phase plot} \end{figure} \end{document} ---------------------- Compiled using make4ht -ulm default -a debug foo.tex 'mathjax,htm' gives image centered ok. (btw, I never figured out how to make TL testimages show up as the true image on my system with tex4ht. They always show as PIC, but using actual image I have, same problem show up). Now when adding \fbox{....} around the includegraphics here is the result enter image description here But in PDF, it remains centered even when adding \fbox enter image description here TL 2022 on Linux. Updated as of 12/29/2022 _______________________________________________________ Reply to this item at: <http://puszcza.gnu.org.ua/bugs/?591> _______________________________________________ Message sent via/by Puszcza http://puszcza.gnu.org.ua/