[tex4ht] Compilation fails with `program' package

Michal Hoftich michal.h21 at gmail.com
Mon Feb 22 08:41:01 CET 2016


Hi all,

it seems that I replied only to Denis by mistake, I will post my reply
also here for a future reference.

----

Ty to save the following code as `program.4ht`:

    \ConfigureEnv{program}{\noindent\EndP\Picture*{}}{\EndPicture}{}{}

It will convert `program` environment as picture.

----

this obviously isn't a clean solution, some proper support is needed.

Best regards,
Michal

On Fri, Feb 19, 2016 at 4:29 PM, Denis Bitouzé <dbitouze at wanadoo.fr> wrote:
> Hi,
>
> the following MCE:
>
> --8<---------------cut here---------------start------------->8---
> \documentclass{article}
> \usepackage{program}
> \begin{document}
> \begin{program}
>   Foo
> \end{program}
> \end{document}
> --8<---------------cut here---------------end--------------->8---
>
> compiles like a charm with `pdflatex' but, with `htlatex', it fails with
> the following error:
>
>   ┌────
>   │ ! Undefined control sequence.
>   │ \gt:tab ...terassignment \gt:tb \tmp:cnt =\ln:tab
>   │                                                   \space 0//
>   └────
>
> All the best.
> --
> Denis
>



More information about the tex4ht mailing list