[tex4ht] [bug #591] adding \fbox around \includegraphics makes it lose the centering when using tex4ht

Nasser M. Abbasi puszcza-hackers at gnu.org.ua
Sat Dec 31 00:14:21 CET 2022


                 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



reference and screen shots at


In tex4ht, when doing


The image comes out centered. But when adding fbox, the images no longer is


I was not sure if this is by design or if it should remain centered. It does
remain centered in pdf. Here is MWE



\caption{Phase plot}


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:


  Message sent via/by Puszcza

More information about the tex4ht mailing list.