
MWE:
\documentclass{article}
\begin{document}
\title{Hello}%\footnote{Just a test}}
\author{Somebody\footnote{Anonymous.}}
\date{}
\maketitle
\end{document}
Se compila con errores.
line 13 column 1 - Error: unexpected </manifest> in <dc:title>
line 21 column 1 - Error: unexpected </package> in <dc:title>
This document has errors that must be fixed before
using HTML Tidy to generate a tidied up version.
y el archivo epub generado está roto.
¿Alguna solución? ¿O esto de hecho no es estándar?
Respuesta1
El archivo Epub contiene algunos metadatos en el content.opf
archivo. Por ejemplo, el autor y el título deben estar presentes en formato de texto sin formato. Cualquier macro que pueda producir algún marcado adicional debe redefinirse en un archivo @author
, resp. @title
configuración:
\Preamble{xhtml}
\makeatletter
\Configure{@author}{\let\footnote\@gobble}
\makeatother
\begin{document}
\EndPreamble
Esta configuración se redefine \footnote
para comer un argumento y no imprimir nada. Este cambio está presente sólo en el archivo OPF, por lo que la nota al pie seguirá funcionando en el documento.