Angus Leeming wrote:

> My question: Is there a way to wrap these two definitions inside
>         if (<compiling with tex4ht --- htlatex, actually>)
>                 \newenvironment{mypicture}{\Picture*{}}{\EndPicture}
>         else
>                 \newenvironment{mypicture}{}{}
> 
> so I don't need to edit my preamble before launching the compiler?

KOMA-Script has the command
\ifpdfoutput{do this}{else do this}
which checks if pdflatex is used (with pdfoutput, since pdflatex can also
produce dvi).
The ifpdf package does something similar IMHO.

Perhaps this can be an inspiration?

Regards,
J�rgen


Reply via email to