6

I want to generate HTML from LaTeX by TeX4ht (from TeX Live 2022). This is my MWE.tex:

\documentclass{scrbook} 
\begin{document}
    This is paragraph 1.\footnote{This is a footnote.}
    
    This is paragraph 2.
\end{document}

I want to obtain in-line footnotes and therefore I executed the following command:

$ make4ht MWE.tex "fn-in"

The result:

There is only one paragraph.

I got only one paragraph.

If I use the standard book document class instead of the KOMA-script scrbook class, I get the desired result of two paragraphs:

There are two paragraphs.

How can I get two paragraphs with the KOMA-script document class? Is this a bug in TeX4ht?

1
  • Because there are no problems without fn-in and also no problems using lwarp instead of TeX4ht, I think this is indeed a TeX4ht bug and should be reported.
    – cabohah
    Commented Apr 8, 2023 at 9:20

1 Answer 1

5

This is caused by the fact that paragraphs need to be handled in footnotes, and for some reason, the next paragraph is ignored when you use scrbook. I've fixed this issue in TeX4ht sources, you can fix it now with this config file:

\Preamble{xhtml}
\catcode`\:=11
\append:def\c:footnotetext{\ShowPar}
\catcode`\:=12
\begin{document}
\EndPreamble

It explicitly tells TeX4ht to show the next paragraph after footnote. With this change, everything seems OK:

enter image description here

1
  • That works perfectly. Thanks a lot!
    – texrob
    Commented Apr 9, 2023 at 12:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .