# [tex4ht] controlling output suffix with xhmlatex

Sun Feb 20 02:29:29 CET 2011

On 20/02/11 1:56 AM, William F Hammond wrote:
>
> Greetings,
>
> I've not written here before.
>
> Question.  When I use xhmlatex to generate xhtml+mathml from, say,
> foo.tex the final output is given the filename foo.html.
>
> Is there a way to force it to be given the filename foo.xhtml?
> I would expect the suffix to be a command line option for "t4ht".
> At the moment I'm not even seeing why mzlatex outputs foo.xml
> rather than foo.html.

You might kindly create a small .cfg file in the following fashion:

%--------- test.cfg ----------

\Configure{ext}{xhtml}

\Preamble{html,xhtml}

\begin{document}

\EndPreamble

%--------- end of test.cfg --------

Please invoke tex4ht in the following manner:

xhmlatex foo "test"

Best regards
--