I am not able to compile this tex document
\documentclass{scrartcl}
% \documentclass{article}
\begin{document}
hello
\end{document}
with htlatex. I am able to do this using pdflatex. If I choose article (see 2nd line) as documentclass, everything is fine. However, I'd like to have pdfs using scrartcl. How can I switch between documentclasses dependent on the compiler I use?
\RequirePackage{ifpdf}\documentclass{\ifpdf scrartcl\else article\fi}
\usepackage{scrbase}
witharticle
class. That way, you have everything fromscrartcl
available.