
Usei o seguinte MWE no 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}
Ele fornece uma saída correta no arquivo epub, somente se eu ignorar a seguinte mensagem de erro:
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}
Gostaria de saber como posso corrigir o erro obtendo a mesma saída correta. Alguém sabe o que fazer?
Atualização 1:
O sample.tex
arquivo parece minimizado assim:
\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}
O myconfig.cfg
arquivo é o seguinte:
\Preamble{xhtml}
\begin{document}
\Configure{DocumentLanguage}{de}
\EndPreamble
Como resultado, ainda há a mensagem de erro acima, mas o arquivo epub parece correto com os hiperlinks criados.
Atualização 2: Este é o código ainda mais reduzido para Testdocument.tex (que corresponde ao Testdocument.log
arquivo em gist.github.com
, veja abaixo)
\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}
Responder1
Nos comentários a resposta está oculta. Resumindo aqui:
Esperei alguns dias pela versão mais recente do TeX Live 2023, instalei e tentei novamente. Resolveu o problema abordado.