bugtex4ht - Bugs: bug #403, tex4ht fails with scrartcl class...

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #403: tex4ht fails with scrartcl class when defining \rm command. Argument of \popthree has an extra

Submitted by:  Nasser M. Abbasi <nma123>
Submitted on:  Sat Oct 20 17:04:41 2018  
 
Category: NonePriority: 5 - Normal
Severity: 3 - MinorStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Sat Oct 20 22:48:23 2018, comment #2:

michal updated tex4ht (r435) and i updated tl (r48958).
hope it flies ...

Karl Berry <karl>
Project Administrator
Sat Oct 20 18:11:06 2018, comment #1:

tex4ht patches the old font commands in the code for basic classes. configuration for scrartcl class duplicates this code, otherwise the compilation fails.

I don't really understand this patching in the first place, I cannot see any difference when it is removed, other than that Nasser's code can compile without error. It seems like a really old hack that isn't useful any more. I've removed the patching from the .4ht files, but kept them in the sources, so it can be returned back if it causes any issues.

Michal Hoftich <michal_h21>
Project Member
Sat Oct 20 17:04:41 2018, original submission:

Posted at

https://tex.stackexchange.com/questions/455994/tex4ht-fails-with-scrartcl-class-when-defining-rm-command-argument-of-popthre

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

---------------------
\documentclass[11pt]{scrartcl}%{article}
\DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}

\begin{document}
test
\end{document}
------------------

Now

------------------
make4ht -ulm draft foo.tex
....
(/usr/local/texlive/2018/texmf-dist/tex/generic/tex4ht/html5.4ht))
(/usr/local/texlive/2018/texmf-dist/tex/generic/tex4ht/scrartcl.4ht
! Argument of \popthree has an extra }.
<inserted text>
\par
l.33 \:temp{rm}
?
------------------------

I also tried

\documentclass[11pt,enabledeprecatedfontcommands]{scrartcl}

But make4ht still gave same error.

Nasser M. Abbasi <nma123>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by karl (Posted a comment)
  • -unavailable- added by michal_h21 (Posted a comment)
  • -unavailable- added by nma123 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    1 latest change follows.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat Oct 20 22:48:23 2018karlOpen/ClosedOpen=>Closed
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup+gray