感谢尾注的改变

感谢尾注的改变

我想将前言的感谢脚注转换为尾注。

\documentclass{article}
\usepackage[nopar]{lipsum}
\usepackage{endnotes}
\author{%
  Abraham Lincoln%
  \thanks{1600 Pennsylvania Ave., Washington, D.C.}%
  \thanks{Deceased}%
}
\title{First Inaugural Address}
\begin{document}
\maketitle
\lipsum[1]\footnote{This is not really Latin.} \lipsum[2]\footnote{Nor is it Lincoln.} 
\lipsum[3]
\end{document}

答案1

如果您需要 的全部功能\thanks,并且多个作者用不同的符号表示,那么这种方法是可行的。

如果您只需要一位作者,并且不需要符号,那么您只需\let\thanks\endnote

\documentclass{article}
\usepackage[nopar]{lipsum}

\usepackage{endnotes}
\let\footnote\endnote % convert \footnotes to \endnotes

% Set up the symbols used in \thanks 
% Copied directly from LaTeX \@fnsymbol
\newcommand{\ensymbol}[1]{%
    \ensuremath{\ifcase#1\or *\or \dagger\or \ddagger\or 
    \mathsection\or \mathparagraph\or \|\or **\or \dagger\dagger 
    \or \ddagger\ddagger \else\@ctrerr\fi}%
}

% Redefine thanks as an endnote using symbols instead of numbers
\renewcommand{\thanks}[1]{%
    \renewcommand{\theendnote}{\ensymbol{\value{endnote}}}%
    \endnote{#1}%
}

% Redefine \maketitle so that it resets the endnote counter after the
% \thanks notes
\let\oldmaketitle\maketitle
\renewcommand{\maketitle}{%
    \oldmaketitle
    \setcounter{endnote}{0}%
}

\author{%
    Abraham Lincoln%
    \thanks{1600 Pennsylvania Ave., Washington, D.C.}%
    \thanks{Deceased}%
}
\title{First Inaugural Address}

\begin{document}
\maketitle

\lipsum[1]\footnote{This is not really Latin.}
\lipsum[2]\footnote{Nor is it Lincoln.}
\lipsum[3]

\theendnotes

\end{document}

在此处输入图片描述

相关内容