[tex4ht] [bug #508] Error after loading hyperref from a class file

Ulrich Müller puszcza-hackers at gnu.org.ua
Tue Apr 27 11:11:34 CEST 2021


URL:
  <http://puszcza.gnu.org.ua/bugs/?508>

                 Summary: Error after loading hyperref from a class file
                 Project: tex4ht
            Submitted by: ulm
            Submitted on: Tue Apr 27 12:11:34 2021
                Category: None
                Priority: 5 - Normal
                Severity: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

When loading the hyperref package from a class file, I get the following error
when the first \label is encountered:

! Argument of \strip at prefix has an extra }.
<inserted text> 
                \par 
l.3 \label{foo}

To reproduce, run "mk4ht xhlatex bug" with the attached bug.tex and
bugclass.cls. The full log file is attached too.

I see this problem with TeX Live 2021 but not with 2020.

As a workaround, I postpone loading of hyperref:
\g at addto@macro\@documentclasshook{\RequirePackage{hyperref}}
So looks like load order matters.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tue Apr 27 12:11:34 2021  Name: bug.tex  Size: 74B   By: ulm

<http://puszcza.gnu.org.ua/bugs/download.php?file_id=408>
-------------------------------------------------------
Date: Tue Apr 27 12:11:34 2021  Name: bugclass.cls  Size: 96B   By: ulm

<http://puszcza.gnu.org.ua/bugs/download.php?file_id=409>
-------------------------------------------------------
Date: Tue Apr 27 12:11:34 2021  Name: bug.log  Size: 20kB   By: ulm

<http://puszcza.gnu.org.ua/bugs/download.php?file_id=410>

    _______________________________________________________

Reply to this item at:

  <http://puszcza.gnu.org.ua/bugs/?508>

_______________________________________________
  Message sent via/by Puszcza
  http://puszcza.gnu.org.ua/



More information about the tex4ht mailing list.