After playing around with tex4ebook
, I've noticed that italic and bold in footnotes don't work correctly if fontspec
package is loaded. It applies the bold/italic, but the text is no longer footnote size, and is instead larger than the rest of the footnote text. If fontspec
is not loaded, then the italic and bold text in the footnotes are sized correctly. I'm using lualatex. MWE:
\documentclass{scrbook}
\usepackage{fontspec}
\begin{document}
Some text here. \footnote{This footnote is \textit{italic} and \textbf{bold}}.
\end{document}
With a simple config file:
\Preamble{xhtml,svg,no-cut}
\begin{document}
\EndPreamble
Does anyone have any ideas to get around this? Ultimately, I want to embed a latin script font into my ebook, but the ebook has some small bits of text from other alphabets, which, for my standard tex pdf, I have used new fontspec families to print. For tex4ebook I think the recommended solution for multilingual ebooks is fontspec (https://www.kodymirus.cz/tex4ht-doc/Configurations.html#unicode), but I have the above fontspec problem, so I need to solve one of these problems.
As an aside, I am not sure how embedding a font that doesn't cover all unicode letters used (i.e. my book is multilingual) will work in tex4ebook in Lualatex, if anyone has any advice on that too.
Thanks very much!