
동일한 각주를 다른 줄에서 참조해야 합니다. 수업을 이용하고 있습니다 scrbook
. 나는 읽었다동일한 각주에 대해 다른 위치 참조다음과 같은 방법으로 시도했습니다.
처음으로 참조합니다 \footnote{\label{footnote}text}
.
두 번째로 참조 \footref{footnote}
.
그러나 다음과 같은 결과가 나옵니다. "각주 번호" 대신 숫자만 표시하는 방법을 두 번째로 제안해 주실 분 계신가요? 감사합니다.
업데이트: 최소한의 작업 예
\documentclass{scrbook}\begin{document}
\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
\newlength{\abc}
\settowidth{\abc}{\space}
\AtBeginDocument{%
\addto\extrasenglish{
\renewcommand{\equationautorefname}{\hspace{-\abc}}
\renewcommand{\sectionautorefname}{sec.\negthinspace}
\renewcommand{\subsectionautorefname}{sec.\negthinspace}
\renewcommand{\subsubsectionautorefname}{sec.\negthinspace}
\renewcommand{\figureautorefname}{Fig.\negthinspace}
\renewcommand{\tableautorefname}{Tab.\negthinspace}
}
}
\usepackage[figure]{hypcap}
First time referencing\footnote{\label{footnote}text}.
Second time referencing\footref{footnote}.
\end{document}
답변1
\label
각주가 처음 나타날 때 단순히 \ref
각주에 대한 참고용으로 만 사용하는 것에 대해 생각해 보셨나요 ?
\documentclass{scrbook}
\begin{document}
This is the text and reference to footnote.\footnote{\label{fn}Text of footnote.}
Need to make reference again here to the same text of a previous footnote.\textsuperscript{\ref{fn}}
\end{document}
답변2
scrbook
에 대해서는 나름의 생각이 있는 것 같습니다 \footref
. 다음과 같은 자신만의 정의를 사용하세요.
% footrefprob.tex SE 640730
\documentclass{scrbook}
\renewcommand{\footref}[1]{\textsuperscript{\ref{#1}}}
\begin{document}
First time referencing\footnote{\label{footnote}text}.
Second time referencing\footref{footnote}.
\end{document}
Your MWE, below, had several problems. Did you actually compile it?
\documentclass{scrbook}\begin{document}
\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
\newlength{\abc}
\settowidth{\abc}{\space}
\AtBeginDocument{%
\addto\extrasenglish{
\renewcommand{\equationautorefname}{\hspace{-\abc}}
\renewcommand{\sectionautorefname}{sec.\negthinspace}
\renewcommand{\subsectionautorefname}{sec.\negthinspace}
\renewcommand{\subsubsectionautorefname}{sec.\negthinspace}
\renewcommand{\figureautorefname}{Fig.\negthinspace}
\renewcommand{\tableautorefname}{Tab.\negthinspace}
}
}
\usepackage[figure]{hypcap}
First time referencing\footnote{\label{footnote}text}.
Second time referencing\footref{footnote}.
\end{document}
클래스 ( 및 memoir
상위 집합 )에는 원하는 것을 수행하는 매크로가 있는데, 이것이 제가 생각했던 일반적인 욕구였습니다.book
report
\footref