
나는 다음 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의 최신 버전이 나올 때까지 며칠 기다렸다가 설치하고 다시 시도했습니다. 해결된 문제를 해결했습니다.