
다음 MWE
\documentclass{article}
\usepackage{titlesec}
\usepackage{footnotebackref}
\begin{document}
\section{Whatever\protect\footnote{Problematic footnote}}
\end{document}
titlesec
및 패키지 가 모두 로드되면 오류가 발생합니다 footnotebackref
(그 중 하나라도 제거되면 예상대로 작동합니다). 나는 \footnotemark
and 을 사용해 보았지만 \footnotetext
아무 소용이 없었습니다. 무슨 일이 일어나고 있고 어떻게 해결할 수 있는지에 대한 아이디어가 있습니까? (머리에 각주를 사용하는 것이 바람직하지 않다는 것은 알지만 어쨌든...)
답변1
수행원\footnotemark 및 \footnotetext와 함께 footnotebackref 패키지를 사용하는 방법은 무엇입니까?, 해결책은 다음 재정의를 사용하여 \footnotemark
및 를 사용하는 것입니다.\footnotetext
\makeatletter
\LetLtxMacro{\BHFN@Old@footnotemark}{\@footnotemark}
\renewcommand*{\@footnotemark}{%
\refstepcounter{BackrefHyperFootnoteCounter}%
\xdef\BackrefFootnoteTag{bhfn:\theBackrefHyperFootnoteCounter}%
\label{\BackrefFootnoteTag}%
\BHFN@Old@footnotemark
}
\makeatother
\protect
( 하나 는 또한 \footnotemark
). MWE 완료:
\documentclass{article}
\usepackage{titlesec}
\usepackage{footnotebackref}
\makeatletter
\LetLtxMacro{\BHFN@Old@footnotemark}{\@footnotemark}
\renewcommand*{\@footnotemark}{%
\refstepcounter{BackrefHyperFootnoteCounter}%
\xdef\BackrefFootnoteTag{bhfn:\theBackrefHyperFootnoteCounter}%
\label{\BackrefFootnoteTag}%
\BHFN@Old@footnotemark
}
\makeatother
\begin{document}
\section{Whatever\protect\footnotemark}
\footnotetext{Problematic footnote}
\end{document}