
私は以下の MWE を使用しましたTestdocument.tex
:
\documentclass[11pt,a4paper]{report}
\usepackage[cmintegrals,cmbraces]{newtxmath}
\usepackage{ebgaramond-maths}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{tex4ebook}
\providecommand\phantomsection{}
\ifdefined\HCode
\usepackage[xindy,noautomatic]{imakeidx}
\else
\usepackage{imakeidx}
\fi
\makeindex[intoc=false,columns=1,noautomatic,title=Alphabetisches Verzeichnis]
\ifdefined\HCode
\usepackage[hyperindex=true,
pdfauthor={Autor},
pdftitle={Titel},
pdfkeywords={Philosophy}]{hyperref}
\else\fi
\usepackage[sortlocale=auto,bibstyle=authoryear,citestyle=authortitle-ticomp]{biblatex}
\addbibresource{Bibliographie.bib}
\usepackage{endnotes}
\let\footnote=\endnote
\begin{document}
"`Ein zitierter Satz eines Autors."'\footcite{AG1986}
\nocite{AG1987}
\clearpage
\theendnotes
\clearpage
\defbibnote{BibVorwort}{Erläuterung zum Literaturverzeichnis.}
\defbibheading{TestBib}{%
\chapter*{\scshape #1}\thispagestyle{empty}%
\ifdefined\HCode\else\addcontentsline{toc}{chapter}{Literatur}\fi}
\printbibliography[title=Literatur,prenote=BibVorwort,heading=TestBib]
\end{document}
次のエラー メッセージを無視した場合にのみ、epub ファイルに正しい出力が生成されます。
Package biblatex Warning: Patching footnotes failed.
(biblatex) Footnote detection will not work.
! Package biblatex Error: Patching 'endnotes' package failed.
See the biblatex package documentation for explanation.
Type H <return> for immediate help.
...
l.41 \begin{document}
同じ正しい出力を取得しながらエラーを修正する方法を知りたいです。どうすればいいか知っている人はいますか?
アップデート1:
ファイルはsample.tex
次のように最小化されます。
\documentclass[11pt,a4paper]{report}
\usepackage[cmintegrals,cmbraces]{newtxmath}
\usepackage{ebgaramond-maths}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{tex4ebook}
\ifdefined\HCode
\usepackage[hyperindex=true,
pdfauthor={Autor},
pdftitle={Titel},
pdfkeywords={Philosophy}]{hyperref}
\else\fi
\usepackage[sortlocale=auto,bibstyle=authoryear,citestyle=authortitle-ticomp]{biblatex}
\addbibresource{biblatex-examples.bib}
\usepackage{endnotes}
\let\footnote=\endnote
\begin{document}
"`Ein zitierter Satz eines Autors."'\footcite{sigfridsson}
\clearpage
\theendnotes
\clearpage
\printbibliography
\end{document}
ファイルはmyconfig.cfg
次のとおりです。
\Preamble{xhtml}
\begin{document}
\Configure{DocumentLanguage}{de}
\EndPreamble
その結果、上記のエラー メッセージは引き続き表示されますが、ハイパーリンクが作成され、epub ファイルは正しいように見えます。
更新 2: これは Testdocument.tex のさらに短縮されたコードです (これはTestdocument.log
のファイルに対応しますgist.github.com
。下記を参照してください)
\documentclass[11pt,a4paper]{report}
\usepackage{ebgaramond-maths}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{tex4ebook}
\usepackage[sortlocale=auto,bibstyle=authoryear,citestyle=authortitle-ticomp]{biblatex}
\addbibresource{biblatex-examples.bib}
\usepackage{endnotes}
\let\footnote=\endnote
\begin{document}
"`Ein zitierter Satz eines Autors."'\footcite{sigfridsson}
\theendnotes
\printbibliography
\end{document}
答え1
コメントに答えが隠されています。簡単に言うと次のようになります。
TeX Live 2023 の最新バージョンがリリースされるまで数日待ってからインストールし、再度試してみました。すると、指摘されていた問題が解決しました。