
Necesito referirme a la misma nota a pie de página en diferentes líneas. Estoy usando scrbook
clase. Yo leoHacer referencia a diferentes lugares en la misma nota al pie.y lo intenté de la siguiente manera:
Primera referencia \footnote{\label{footnote}text}
.
Referencia por segunda vez \footref{footnote}
.
Pero da el siguiente resultado. ¿Alguien podría sugerir por segunda vez hacer referencia a cómo mostrar solo el número en lugar del "número de nota a pie de página"? Gracias.
Actualización: ejemplo de trabajo mínimo
\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}
Respuesta1
¿Ha pensado en simplemente utilizar \label
la primera vez que aparece la nota al pie y \ref
hacer referencia a la nota al pie?
\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}
Respuesta2
Parece que scrbook
tiene su propia idea al respecto \footref
. Utilice su propia definición como
% 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}
La memoir
clase (un superconjunto de book
y report
) tiene una \footref
macro que hace lo que quieres, que es lo que pensé que era el deseo general.