Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small formatting issue with captions in float package #898

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

Comments

@evoludolab
Copy link

@evoludolab 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:
tex
However, when converting to XHTML with lateXML the caption is formatted as
xml
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.

@dginev dginev added the bug label Dec 6, 2017
@dginev

This comment has been minimized.

Copy link
Collaborator

@dginev dginev commented Dec 6, 2017

Thanks for the report! Seems like a quick fix for float.sty.ltxml

@dginev dginev added the packages label Dec 6, 2017
@dginev dginev added this to the LaTeXML-0.8.3 milestone Dec 6, 2017
@brucemiller

This comment has been minimized.

Copy link
Owner

@brucemiller brucemiller commented Jan 31, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.