bugtex4ht - Bugs: bug #510, Error with hyperref and \include

 
 
Show feedback again

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

bug #510: Error with hyperref and \include

Submitted by:  Ulrich Müller <ulm>
Submitted on:  Wed Apr 28 10:49:49 2021  
 
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Fri Aug 13 20:13:46 2021, comment #1:

Sorry for the late reply. I couldn't find the issue for a long time, but it turned out that the real issue is that tex4ht.sty is active only after the document class is processed.

Thanks to the new LaTeX hook system, it is now possible to hook code before class is loaded. With this change, TeX4ht can fix hyperref required in a class. The change is now available in the development version of make4ht.

Michal Hoftich <michal_h21>
Project Member
Wed Apr 28 10:49:49 2021, original submission:

As in bug #508, I load hyperref from a class file. Additionally, the main file uses \include to include a separate file.

This results in the following error:

! Extra \else.
\@include ...ediate \closeout \@partaux \fi \else
\deadcycles \z@ \@nameuse ...
l.3 \include{buginclude}

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

I am using r59007 from the texlive repository:
https://www.tug.org/svn/texlive?view=revision&revision=59007

Ulrich Müller <ulm>

 

Attached Files
file #415:  buginclude.aux added by ulm (555B - application/octet-stream)
file #413:  bugclass.cls added by ulm (96B - text/x-tex)
file #414:  bug.log added by ulm (20kB - text/x-log)
file #411:  bug.tex added by ulm (78B - text/x-tex)
file #412:  buginclude.tex added by ulm (22B - text/x-tex)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by michal_h21 (Posted a comment)
  • -unavailable- added by ulm (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):

     

     

    6 latest changes follow.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon Sep 27 12:33:48 2021michal_h21Open/ClosedOpen=>Closed
    Wed Apr 28 11:37:39 2021ulmAttached File-=>Added buginclude.aux, #415
    Wed Apr 28 10:49:50 2021ulmAttached File-=>Added bugclass.cls, #413
      Attached File-=>Added bug.log, #414
    Wed Apr 28 10:49:49 2021ulmAttached File-=>Added bug.tex, #411
      Attached File-=>Added buginclude.tex, #412
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup+gray