TransWikia.com

tex4ht place maintext and footnote in the same file

TeX - LaTeX Asked on August 7, 2021

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}
    testfootnote{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

One Answer

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

Correct answer by michal.h21 on August 7, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP