I'm working on a document that has been published only as a PDF file until now. To utilize some of PDF's features, it uses the packages
pdftex and commands like
But soon that document shall be available in both PDF an HTML format. I figured out I can use
tex4ht to convert it, but it seems that this tool is not compatible with the special pdf features and packages. Once I remove them, it works.
Removing the pdf stuff, converting to html and then putting it in again manually is not an option (This is an evolving document that has been worked on for over 10 years by a large number of contributors and is still edited by several people, so we rely on an automated build process using
Is there any way similar to conditional compilation to ignore some
\usepackage directives on some of the make runs, or do you have any other hint on how to do this?