bugtex4ht - Bugs: bug #451, r666 breaks pgfmanual

Show feedback again

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

bug #451: r666 breaks pgfmanual

Submitted by:  Henri Menke <hmenke>
Submitted on:  Sun Mar 1 02:24:20 2020  
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

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

Thu Apr 16 20:48:06 2020, comment #13:

discussing the spam question separately. closing.

Karl Berry <karl>
Project Administrator
Wed Apr 15 22:31:11 2020, comment #12:

Gmail displays a following warning:

Be careful with this message

This may be a spoofed message. The message claims to have been sent from your account, but Gmail couldn’t verify the actual source. Avoid clicking links or replying with sensitive information, unless you are sure you actually sent this message. (No need to reset your password, the real sender does not actually have access to your account!)

Does that help?

Michal Hoftich <michal_h21>
Project Member
Wed Apr 15 22:27:48 2020, comment #11:

Thanks Karl. I will post details about the Gmail warning in the next message.

Michal Hoftich <michal_h21>
Project Member
Wed Apr 15 22:11:35 2020, comment #10:

I pushed those changes to TL for tonight.

Re spam, do (either of) you have a particular change in mind? Is there something specific in these warnings you are seeing? I cannot randomly guess what to do to pacify gmail, if it's possible at all.

Karl Berry <karl>
Project Administrator
Wed Apr 15 22:04:19 2020, comment #9:

Ah, I can see it. We patch the \tikzexternalize command before it had been loaded using \usetikzlibrary{external}. I've fixed that in the TeX4ht sources.

With this change and few changes in the .cfg file in TikZ repository, I was able to compile the manual.

Regargind the span warning - yes, I get them too. Is it possible to fix that, Karl?

Michal Hoftich <michal_h21>
Project Member
Wed Apr 15 09:03:32 2020, comment #8:

Also this platform constantly shows me errors, that my messages to this bugtracker are spam.

Henri Menke <hmenke>
Wed Apr 15 09:01:23 2020, comment #7:

Dear Michal,

Thanks for checking. I have also installed a minimal TL2020 in a container and can no longer reproduce. So I went ahead and dropped all the caches in the CI, but now I just get a different error:


Henri Menke <hmenke>
Wed Apr 15 08:26:05 2020, comment #6:

Hi Henri,

I've just installed TL 2020 and your example compiles correctly for me. So maybe the regression had been fixed already? I guess TL version used in you CI uses slightly older version of LaTeX kernel and it will be fixed in the following updates.

Michal Hoftich <michal_h21>
Project Member
Wed Apr 15 07:17:21 2020, comment #5:

Hi Henri,

thanks for the report. This document compiles correctly for me, but I am still on TL 2019. I guess that this is caused by some change in LaTeX kernel that was introduced in the latest releases. I will install TL 2020 and try to find what happened.


Michal Hoftich <michal_h21>
Project Member
Wed Apr 15 05:33:15 2020, comment #4:

I don't know whether this has been fixed but now with TeX Live 2020 an even simpler document immediately fails.
This crashes with
I'm sorry, but tex4ht has become completely unusable with TikZ recently and I might have to drop support for it if it continues to fail my CI.

Henri Menke <hmenke>
Mon Mar 2 07:59:14 2020, comment #3:

I've found the issue. We patch the `\usetikzlibrary` in `usepackage.4ht` for a better externalization support. I changed the following lines to get it work:

- \use:tikzlibrary{#1}%
- \find:externalize#1external\@nil%

Michal Hoftich <michal_h21>
Project Member
Sun Mar 1 21:34:48 2020, comment #2:

I was able to construct a minimal example. This typesets correctly with latex, but causes a stack overflow with make4ht.

Henri Menke <hmenke>
Sun Mar 1 21:23:36 2020, comment #1:

Do you have a smaller example? I can test the pgfmanual tomorrow, but the following sample that loads the positioning library compiles without compilation errors for me:

It doesn't produce correct SVG though, it needs the alternative TikZ driver that is commented out.

The discussion why we patched the `\@onefilewithoptions` command can be found here: https://puszcza.gnu.org.ua/bugs/?448 and here: https://github.com/latex3/latex2e/issues/280

Michal Hoftich <michal_h21>
Project Member
Sun Mar 1 02:24:20 2020, original submission:

Generating the pgfmanual for tex4ht started failing recently with the error:

! TeX capacity exceeded, sorry [input stack size=5000].
\use:tikzlibrary #1->\use:tikzlibrary {#1
}\find:externalize #1external\@nil
l.32 \usetikzlibrary{positioning}

I traced this error back to r666 of tex4ht. Manually reverting the change, i.e. adding this code to the preamble removes the error.

\catcode`\:=11 \catcode`\@=11

Henri Menke <hmenke>


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 (Posted a comment)
  • -unavailable- added by hmenke (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
    Thu Apr 16 20:48:06 2020karlOpen/ClosedOpen=>Closed
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup+gray