4

I'm using tex4ht, or more specifically htxelatex, to convert a rather large xelatex file to HTML but I noticed that all my footnotes are turned into separate HTML files. Is there a way to tell the program that I want to place the footnotes in the same file as the main text?

To illustrate the problem, I have the following MWE (which I named httest.tex):

\documentclass{article}
\begin{document}
    test\footnote{footnotetext}
\end{document}

This produces two files: httest.html containing

text1

and httest2.html containing

1footnotetext

I want it to produce a single file named httest.html that contains

text1

1footnotetext

1
  • 1
    Regarding the superscript: the StackExchange sites support a limited subset of html tags, among which <sup></sup> and <sub></sub> for superscript and subscript.
    – Marijn
    Nov 26, 2020 at 11:58

1 Answer 1

7

Sure, you can achieve what you want using the fn-in option:

make4ht -x httest "fn-in"

I would use make4ht instead of htxelatex, as it has much more features and fixes some issues.

This is the rendered HTML:

enter image description here

You must log in to answer this question.

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