
저는 현재 Latex와 Biber를 사용하여 전자책을 작업하고 있습니다. 각주에 사용하는 패키지는 package입니다 biblatex-chicago
.
예를 들어 단락의 각주에 성공적으로 연결할 수 있지만 실제 각주를 클릭하고 원래 위치로 돌아가서 역참조를 만들 수 있기를 원합니다. 유사한 주제와 관련된 다른 게시물 중 일부를 보았지만 각주를 작성하는 데 biblatex-chicago
사용하는 패키지 와 작동하는 것으로 보이는 게시물은 없습니다.\autocite
MWE
\documentclass[10pt, letterpaper]{book}
\usepackage{palatino}
\usepackage[notes,backend=biber]{biblatex-chicago}
\addbibresource{mweBib.bib}
\usepackage{footnotebackref}
\usepackage{tocloft}
\renewcommand{\cftchapleader}{\cftdotfill{\cftdotsep}}
\date{} \let\cleardoublepage\clearpage
\usepackage{hyperref}
\usepackage{color}
\hypersetup{colorlinks=true, linkcolor=blue, linktoc=all}
\begin{document}
This is a test for footnotebackref.\autocite[100]{test}
\printbibliography
\end{document}
내 문제를 분명히 밝혔기를 바랍니다. 어떤 도움이라도 대단히 감사하겠습니다!
답변1
biblatex-chicago
정말 그 덕분이다.footnotebackref
패키지작동하지 않습니다. 에서 biblatex-chicago.sty
우리는
\renewcommand\@makefntext[1]{% Provides in-line footnote marks
\setlength\parindent{1em}%
\noindent
\makebox[2.3em][r]{\@thefnmark.\,\,}#1}
이는 memoir
문서가 아닌 클래스를 로드할 때마다 실행됩니다. 불행하게도 footnotebackref
이 매크로는 수정할 수 없으므로 직접 수정해야 합니다.
아래 코드는 로드할 필요도 없으며 footnotebackref
, 가장 중요한 측면은 몇 줄의 코드로 구현할 수 있습니다.footnotebackref
패키지/홀레의 대답하이퍼참조를 사용한 각주 역참조장황하게)
\newcounter{BackrefHyperFootnoteCounter}
\makeatletter
\pretocmd{\footnote}
{\refstepcounter{BackrefHyperFootnoteCounter}%
\edef\BackrefFootnoteTag{bhfn:\theBackrefHyperFootnoteCounter}%
\label{\BackrefFootnoteTag}}
{}{}
\renewcommand\@makefntext[1]{% Provides in-line footnote marks
\setlength\parindent{1em}%
\noindent
\makebox[2.3em][r]{\hyperref[\BackrefFootnoteTag]{\@thefnmark}.\,\,}#1}
\makeatother
마지막 줄에서는 biblatex-chicago
각주에 대한 링크를 포함하도록 의 매크로를 수정합니다.
MWE
\documentclass[10pt, letterpaper]{book}
\usepackage{palatino}
\usepackage[notes,backend=biber]{biblatex-chicago}
\usepackage{hyperref}
\addbibresource{biblatex-examples.bib}
\newcounter{BackrefHyperFootnoteCounter}
\makeatletter
\pretocmd{\footnote}
{\refstepcounter{BackrefHyperFootnoteCounter}%
\edef\BackrefFootnoteTag{bhfn:\theBackrefHyperFootnoteCounter}%
\label{\BackrefFootnoteTag}}
{}{}
\renewcommand\@makefntext[1]{% Provides in-line footnote marks
\setlength\parindent{1em}%
\noindent
\makebox[2.3em][r]{\hyperref[\BackrefFootnoteTag]{\@thefnmark}.\,\,}#1}
\makeatother
\begin{document}
This is a test for footnotebackref.\autocite[100]{wilde}
\printbibliography
\end{document}