This MWE compiles OK with lualatex and pdflatex but fails with tex4ht. Why? And this happens only when using scrartcl and not with article.




 make4ht -ulm draft foo.tex
! Argument of \popthree has an extra }.
<inserted text>
l.33 \:temp{rm}

I also tried


But make4ht still gave same error.

Is there a workaround other than using article? I need to use \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm} for other things.

Using TL 2018


Try the following version of scrartcl.4ht file:

% scrartcl.4ht (2015-02-07-15:56), generated from tex4ht-4ht.tex
% Copyright 1999-2009 Eitan M. Gurari
% Copyright 2009-2015 TeX Users Group
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
% version 1.3c of this license or (at your option) any
% later version. The latest version of this license is in
%   http://www.latex-project.org/lppl.txt
% and version 1.3c or later is part of all distributions
% of LaTeX version 2005/12/01 or later.
% This work has the LPPL maintenance status "maintained".
% The Current Maintainer of this work
% is the TeX4ht Project <http://tug.org/tex4ht>.
% If you modify this program, changing the
% version identification would be appreciated.
\immediate\write-1{version 2015-02-07-15:56}


\input article.4ht


This version just defines old font commands and includes article.4ht file, where they are patched again. It seems that the patching of these commands in article.4ht is unnecessary and it should be safe to remove it. I need to investigate it more, but it looks like a really old hack.

| improve this answer | |
  • Thanks, it worked. Hope this fix will make it eventually to official source code for TL. – Nasser Oct 20 '18 at 17:55
  • @Nasser yes, I am just fixing that, so it shouldn't take too long – michal.h21 Oct 20 '18 at 18:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.