In my customization layer for CLM, I've shrunk figures from latex-images down to 48%. This revealed that centering is not actually working for these things. In the HTML <object> element that contains the svg images, there is style=margin:auto;, written as inline CSS. This is how many things would be centered with CSS, but apparently does nothing to an <object>.
In the ambient <figure>, we have class="figure-like". I added text-align:center to this class in my local CSS layer, and it successfully centers the object.
In my customization layer for CLM, I've shrunk figures from latex-images down to 48%. This revealed that centering is not actually working for these things. In the HTML
<object>
element that contains the svg images, there isstyle=margin:auto;
, written as inline CSS. This is how many things would be centered with CSS, but apparently does nothing to an<object>
.In the ambient
<figure>
, we haveclass="figure-like"
. I addedtext-align:center
to this class in my local CSS layer, and it successfully centers the object.