タイトル内の複数段落の脚注

タイトル内の複数段落の脚注

脚注がなぜ機能しないのか分かりません。 なしでも機能します\par

\documentclass[a4paper, 12pt]{article}

\title{title%
\footnote{
    para1\par
    para2
}%
}
\author{author}

\begin{document}
\maketitle
text
\end{document}

答え1

動作しない理由については以下を参照してください:常に \def ではなく \long\def を使用しないのはなぜですか?

したがって、これを修正するには、を からに再定義して\title、段落区切りを許可します。\thankslatex.ltx\long

\makeatletter
\long\def\title#1{\gdef\@title{#1}}
\long\def\thanks#1{%
  \footnotemark
  \protected@xdef\@thanks{%
    \@thanks\protect\footnotetext[\the\c@footnote]{#1}}}
\makeatother

しかし、より簡単なオプションは、エラー チェックを回避する別のマクロとして脚注テキストを定義することです。

\documentclass[a4paper, 12pt]{article}

\def\titlefootnotetext{para1\par para2}

\title{title\thanks{\titlefootnotetext}}
\author{author}

\begin{document}
\maketitle
text
\end{document}

関連情報