Does anyone know which .4ht file is used for generating figure HTML output?

The candidates I think are

html4.4ht:\NewConfigure{figure}{2} tugboat.4ht:\NewConfigure{figure}{2} fig4tex.4ht

1 Answer 1


figure environment isn't configured using \Configure{figure}, but with \ConfigureEnv{figure}. It must be configured for each output format supported by tex4ht, so which one is used depends on the output format. If you use html, then configuration from html4.4ht is used:

   {\:xhtml{\IgnorePar\EndP}\HCode{<hr class="figure"\xml:empty><div
    \bgroup \Configure{float}{\ShowPar}{}{}%
  • tex.stackexchange.com/questions/187246/…
    – daemondave
    Commented Nov 4, 2014 at 17:36
  • the above link was also useful for the :xhtml tag in .cfg file.
    – daemondave
    Commented Nov 4, 2014 at 17:36
  • @daemondave I thought I saw similar question recently, now I know why :)
    – michal.h21
    Commented Nov 4, 2014 at 17:53
  • @michak.h21 I wanted to customize HTML rendering of figure environment by tex4ht and I inserted a modified version of this code in my custom configuration file: \ConfigureEnv{figure} {\IgnorePar\EndP\HCode{<div class="figure">}% \bgroup \Configure{float}{\ShowPar}{}{}% } {\egroup \IgnorePar\EndP\HCode{</div>}\ShowPar \par} {}{} . Since it seems to work, I'd like to know if this is the right way to do it.
    – mmj
    Commented Sep 9, 2016 at 11:58
  • 1
    @mmj it seems fine to me :)
    – michal.h21
    Commented Sep 9, 2016 at 12:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .