bugtex4ht - Bugs: bug #477, Support for new LaTeX hook...

Show feedback again

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

bug #477: Support for new LaTeX hook management

Submitted by:  Michal Hoftich <michal_h21>
Submitted on:  Thu Jul 23 16:24:20 2020  
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

(Jump to the original submission Jump to the original submission)

Sun Jan 24 19:12:04 2021, comment #8:

I've found that we are missing support for \AddToHook{env/name/before} and other hooks for environments. I've just fixed that in the sources.

Michal Hoftich <michal_h21>
Project Member
Tue Oct 6 23:23:10 2020, comment #7:

The big update of LaTeX kernel is now in TeX Live. It seems that it didn't broke TeX4ht, which is nice :)

Here are the news: https://www.latex-project.org/news/latex2e-news/ltnews32.pdf

Michal Hoftich <michal_h21>
Project Member
Tue Sep 22 16:28:57 2020, comment #6:

It seems that patching depended on exact definition of \@textsuperscript and \@textsubscript in LaTeX core. I don't know why, probably for some historical reasons. I've removed the conditions and it seems to work in LaTeX-dev and normal LaTeX without issues.

Michal Hoftich <michal_h21>
Project Member
Tue Sep 22 15:47:08 2020, comment #5:

It seems that also \textsuperscript and \textsubscript is missing in LaTeX-dev. Respectivelly that we need to patch different macros.

Michal Hoftich <michal_h21>
Project Member
Thu Sep 3 00:29:05 2020, comment #4:

It might be worth asking the latexers for advice. Maybe they have some idea of how to profile. Since tex4ht didn't change (I presume), the slowdown in latex is surely not desirable from their point of view either.

Also, maybe try running just one of the latex invocations, instead of the whole make4ht or htlatex sequence. That seems like what would be needed to debug, anyway.

Karl Berry <karl>
Project Administrator
Wed Sep 2 22:38:44 2020, comment #3:

I've installed the new LaTeX-dev update and found that the use of Fontspec in a document caused fatal error. It was just necessary to remove \RequirePackage{expl3} from usepackage-fontspec.4ht and it works again.

One thing I noticed is that the compilation is much slower with LaTeX-dev. My simple test document went from 4 seconds to almost 8 :/

Michal Hoftich <michal_h21>
Project Member
Wed Jul 29 10:58:20 2020, comment #2:

We will also need to support new hooks in environment handling and probably others. It should be handled before hooks are added to the main LaTeX kernel.

Michal Hoftich <michal_h21>
Project Member
Tue Jul 28 16:16:38 2020, comment #1:

I've updated TeX4ht sources for the upcoming changes. I want to thank Frank Mittelbach for help and suggestions, it would take me much longer to find the solution.

In the future, we will need to adapt more TeX4ht functionality for the new hook system, especially the LaTeX environment handling.

Michal Hoftich <michal_h21>
Project Member
Thu Jul 23 16:24:20 2020, original submission:

The development version of LaTeX changes some internal code related to the hook management. It will be more adjustable, but it can break older code. As you may suspect, it breaks TeX4ht.

See this thread for details: https://listserv.uni-heidelberg.de/cgi-bin/wa?A2=LATEX-L;88a2d211.2007&S=

I think we identified the issues, thanks to Joseph Wright and Frank Mittelbach. I've already found fixes, but we will make more tests and try to identify the potential issues with the new implementation.

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):



    2 latest changes follow.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed Jul 29 10:58:20 2020michal_h21Open/ClosedClosed=>Open
    Tue Jul 28 16:16:38 2020michal_h21Open/ClosedOpen=>Closed
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup+gray