6

The following example, taken from Adding more than one author with different affiliation and saved as example.tex, compiles well with pdflatex example.tex.

\documentclass[11pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{authblk}

\title{More than one Author with different Affiliations}
\author[1]{Author A\thanks{[email protected]}}
\author[1]{Author B\thanks{[email protected]}}
\author[1]{Author C\thanks{[email protected]}}
\author[2]{Author D\thanks{[email protected]}}
\author[2]{Author E\thanks{[email protected]}}
\affil[1]{Department of Computer Science, \LaTeX\ University}
\affil[2]{Department of Mechanical Engineering, \LaTeX\ University}

\renewcommand\Authands{ and }

\begin{document}
  \maketitle
\end{document}

But with mk4ht oolatex example.tex I get three times the error message "! Illegal parameter number in definition of \@author." and not the desired output file.

1
  • I think the reason for this is that mk4ht doesn't understand the authblk package. After all mk4ht doesn't support most packages.
    – honi
    May 12, 2016 at 3:20

1 Answer 1

3

authblk redefines standard LaTeX commands, such as \maketitle and \author. As these commands are redefined by tex4ht as well, it is not surprise that they clash each other. The fix is easy in this case. Save the following code as authblk.4ht:

\def\maketitle{\bgroup%
  \AB@maketitle%
\egroup}

\endinput

This fixes \maketitle definition provided by authblk and your can be compiled without errors.

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .