# Small formatting issue with captions in float package #898

Closed
opened this issue Dec 6, 2017 · 2 comments
Labels
Milestone

### evoludolab commented Dec 6, 2017

 In my .tex file I define a new float environment using ``````\floatstyle{plain} \newfloat{simulation}{ht}{los}[chapter] \floatname{simulation}{\bfseries Interactive lab} `````` This yields the expected output from latex for the caption: However, when converting to XHTML with lateXML the caption is formatted as Note that there are two small, related problems: first, the colon is missing after the numbers and second the entire caption is set in bold instead of only `floatname` plus the counters. It seems like lateXML is dropping a couple of closing characters after the counters and prematurely continues processing the rest of the caption. This should be easy to fix but unfortunately I did not succeed so far.
added the label Dec 6, 2017

### dginev commented Dec 6, 2017 • edited

 Thanks for the report! Seems like a quick fix for `float.sty.ltxml`
added the label Dec 6, 2017
added this to the LaTeXML-0.8.3 milestone Dec 6, 2017

### brucemiller commented Jan 31, 2018

 Well, it should have been easy... but in any case is fixed now. Thanks for the report!