TeX - LaTeX Asked on March 24, 2021
I need to refer multiple times in the text to the same footnote with hyperref
support. This can be achieved using the cleveref
package, as explained in this answer. My problem is that I would also like to use symbols instead of numbers as footnote markers. I tried to follow the suggestions given in the first two answers to this this question, but the code did not compile.
Here is a minimal working example. I would like to use an asterisk in place of the number 1. Can anybody help me, please?
documentclass[12pt]{article}
usepackage{hyperref}
usepackage{cleveref}
crefformat{footnote}{#2footnotemark[#1]#3}
begin{document}
Here I have a footnotefootnote{label{first}Footnote text.}.
Here I have the same footnotecref{first}.
end{document}
footnotemark expects a number in the optional argument. You could use simply textsuperscript:
documentclass[a4paper,12pt]{amsart}
usepackage{hyperref}
usepackage{cleveref}
crefformat{footnote}{#2textsuperscript{normalfont #1}#3}
renewcommand*{thefootnote}{fnsymbol{footnote}}
begin{document}
Here I have a footnotefootnote{label{first}Footnote text.}.
Here I have the same footnotecref{first}.
end{document}
Answered by Ulrike Fischer on March 24, 2021
You can do it all with footmisc
, no need for cleveref
:
documentclass[12pt]{amsart}
usepackage[symbol*]{footmisc}
usepackage[hidelinks]{hyperref}
begin{document}
Here I have a footnotefootnote{label{first}Footnote text.}.
Here I have the same footnotefootref{first}.
end{document}
Answered by DG' on March 24, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP