bugtex4ht - Bugs: bug #448, Package patching in the document...

Show feedback again

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

bug #448: Package patching in the document preamble is broken

Submitted by:  Michal Hoftich <michal_h21>
Submitted on:  Mon Feb 17 20:23:48 2020  
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Wed Feb 19 08:56:28 2020, comment #5:

Thanks, Karl. It is also necessary to update tex4ht.sty, as it provides definition of \:AtEndOfPackage.

Michal Hoftich <michal_h21>
Project Member
Wed Feb 19 02:19:49 2020, comment #4:

committed, i think. tl r53841. let me know if i should have done more than usepackage.4ht and usepackage-fontspec.4ht.

Karl Berry <karl>
Project Administrator
Tue Feb 18 14:17:20 2020, comment #3:

It seems to work, so I think you can commit it :) thanks :)

Michal Hoftich <michal_h21>
Project Member
Mon Feb 17 22:59:51 2020, comment #2:

ok, waiting for your command :). thanks for all this.

Karl Berry <karl>
Project Administrator
Mon Feb 17 22:53:28 2020, comment #1:

I've added a possible solution to the sources. I need to test it a bit more, so maybe we should wait before we update TL.

Michal Hoftich <michal_h21>
Project Member
Mon Feb 17 20:23:48 2020, original submission:

I've found that the mechanism we use for package patching in the preamble (using usepackage.4ht) is broken due to changes in the LaTeX kernel. This means that document compilation fails when you use Fontspec font selection commands now, for instance. I've reported this issue on LaTeX issue tracker:


The report contains more information and code samples.

It seems that it cannot be fixed, as the change was done due to another bug. So we will need to find a workaround. Ulrike Fisher suggested to use the Filehooks package, which seems to work, so I hope that I will be able to come with a fix soon.

Michal Hoftich <michal_h21>
Project Member


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 (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
    Wed Feb 19 02:19:49 2020karlOpen/ClosedOpen=>Closed
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup+gray