# [tex4ht] Detecting TeX4ht

William F Hammond hammond at csc.albany.edu
Wed Oct 10 19:16:57 CEST 2012

Denis Bitouzé <dbitouze at wanadoo.fr> writes:

> Le mardi 09/10/12 à 00h59,
> karl at freefriends.org (Karl Berry) a écrit :
>
>> Hi Denis,
>
> Hi Karl,
>
>> > [...]
>>
>> Sorry for the late reply.  I just wanted to chime in that I also have
>> always used \ifx\HCode.
>
> OK, thanks.
>
>> Although I understand and even agree with Eitan's response in
>> principle (to use configuration files), in practice it is just too
>> much trouble. And configuration files are barely documented at all,
>> as far as I know.
>
> I agree.

As a supporter of the concept of portability for documents, i.e., the
idea that documents (in whatever source form that is equivalent to an
sgml document type) should be amenable for processing by different engines,
I think that ultimately one should insist on Eitan's approach.

As an example, in the context of outputs with mathml I manage the
questions of (a) whether MathJax is embedded in tex4ht output (under a
call to to "mk4ht xhmlatex"), (b) whether to generate an xhtml+mathml
file, or (c) whether to generate an html5 file using simple
configuration files.  It's easy enough to provide short shell scripts
to reduce these to simple command names.

But, yes, the documentation is not adequate.  We should do something
about that.  (I might do it myself if I knew more about configuration
files.)

-- Bill