更改 \thanks note 的首行缩进

更改 \thanks note 的首行缩进

我想\thanks将注释的第一行缩进改为1em,但是搜索之后article.clslatex.ltx似乎无法弄清楚缩进在哪里指定。

\documentclass{article}
\makeatletter
\renewcommand\@makefntext[1]{%
  \parindent1em%
  \@thefnmark.\ #1}
\makeatother
\title{Lorem ipsum\thanks{Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.}}
\author{Fredrik P}
\begin{document}
  \maketitle

  Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
  tempor incididunt ut labore et dolore magna aliqua.\footnote{Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.}
\end{document}

输出摘录

答案1

这些脚注的定义见\maketitle(感谢,约翰!),所以我们需要进行编辑\maketitle。我使用 来进行etoolbox编辑\patchcmd

\documentclass{article}
\makeatletter
\renewcommand\@makefntext[1]{%
  \parindent1em%
  \@thefnmark.\ #1}
\makeatother
\usepackage{etoolbox}
\makeatletter
\patchcmd{\maketitle}{\hb@[email protected]}{\hb@[email protected]}{}{}
\makeatother
\title{Lorem ipsum\thanks{Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.}}
\author{Fredrik P}
\begin{document}
  \maketitle

  Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
  tempor incididunt ut labore et dolore magna aliqua.\footnote{Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.}
\end{document}

如果您碰巧使用hyperref,请注意所做hyperref的事情\maketitle,然后您要么\maketitle在加载之前进行编辑hyperref,要么进行编辑,\HyOrg@maketitle这是副本。hyperref\maketitle

相关内容