## tex4ht - 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 Submitted on: Thu Jul 23 13:24:20 2020 Category: None Priority: 5 - Normal Severity: 5 - Normal Status: None Privacy: Public Assigned to: None Open/Closed: Open

Wed Mar 23 21:41:54 2022, comment #9:

I am posting this just as a reminder that new features are coming to LaTeX: https://www.latex-project.org//news/2022/03/21/latex-dev-2022-1/

Some notable changes:

- new handling of utf-8 characters in PDFLaTeX
- new interface for declaring document metadata

Ad characters: I've tested some basic accents used in Czech, and it seems that it works well. So I hope that nothing breaks in this regard.

Ad metadata: this could be useful for getting metadata that are required by some XML formats, as well as for HTML

Michal Hoftich <michal_h21>
Sun Jan 24 17: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>
Tue Oct 6 20: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>
Tue Sep 22 13: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>
Tue Sep 22 12: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>
Wed Sep 2 21: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>
Wed Sep 2 19: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>
Wed Jul 29 07: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>
Tue Jul 28 13: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>
Thu Jul 23 13: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>

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