tex4ebook: 제목이나 저자에 대한 각주가 있는 경우 깨진 전자책 생성

tex4ebook: 제목이나 저자에 대한 각주가 있는 경우 깨진 전자책 생성

MWE:

\documentclass{article}

\begin{document}
\title{Hello}%\footnote{Just a test}}
\author{Somebody\footnote{Anonymous.}}
\date{}
\maketitle
\end{document}

오류가 발생하면서 컴파일됩니다

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.

생성된 epub 파일이 손상되었습니다.

해결 방법이 있나요? 아니면 이것은 실제로 비표준입니까?

답변1

Epub 파일에는 content.opf파일에 일부 메타데이터가 포함되어 있습니다. 예를 들어 저자와 제목은 일반 텍스트 형식으로 표시되어야 합니다. 추가 마크업을 생성할 수 있는 매크로는 @authorresp에서 다시 정의해야 합니다. @title구성:

\Preamble{xhtml}
\makeatletter
\Configure{@author}{\let\footnote\@gobble}
\makeatother
\begin{document}
\EndPreamble

이 구성은 \footnote하나의 인수를 먹고 아무것도 인쇄하지 않도록 재정의합니다. 이 변경 사항은 OPF 파일에만 있으므로 각주는 문서에서 계속 작동합니다.

관련 정보