bugtex4ht - Bugs: bug #622, error with \footnote mark in...

 
 
Show feedback again

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

bug #622: error with \footnote mark in \section*

Submitted by:  Ulrike Fischer <u_fischer>
Submitted on:  Sun Feb 25 23:15:54 2024  
 
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Mon Feb 26 12:03:26 2024, comment #1:

Hi Ulrike, thanks for the report. The problem here is that TeX4ht writes all section titles to the .4tc file. It uses \protected@edef internally, which fails with \footnotemark.

\footnotemark is redefined by TeX4ht, using \HLet. The resulting command is not robust, but we can make it robust using \MakeRobust. Is that a safe solution?

Michal Hoftich <michal_h21>
Project Member
Sun Feb 25 23:15:54 2024, original submission:

The following document works fine with pdflatex but errors with make4ht:

~~~~
\documentclass{article}
\begin{document}
\section*{abc\footnotemark}
\end{document}
~~~~

~~~~
! Use of \o:@xfootnotemark: doesn't match its definition.
\@ifnextchar ...eserved@d =#1\def \reserved@a {#2}
\def \reserved@b {#3}\futu...
l.178 \section*{abc\footnotemark}
~~~~

(Note that this uses a starred section, with an unstarred \section it would error in pdflatex too).

Ulrike Fischer <u_fischer>

 

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 michal_h21 (Posted a comment)
  • -unavailable- added by u_fischer (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):

     

     

    No Changes Have Been Made to This Item
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup+gray