代码

代码

使用 LyX。虽然我可以删除后续页面上脚注的缩进,但\usepackage[flushmargin]{footmisc}第一个脚注(真的非常感谢)包含地址信息仍保持缩进。正在寻找解决方法。

梅威瑟:

\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage[flushmargin]{footmisc}
\usepackage[english]{babel}
\begin{document}

\title{TITLE}
\author{NAME
\thanks{ADDRESS}\\ EMAIL}

\maketitle

Text

\end{document}

答案1

无需任何附加包,您可以尝试在序言中添加以下几行:

\usepackage{etoolbox}
\makeatletter
\patchcmd{\maketitle}{\@makefntext}{\fakecommand}{}{}
\patchcmd{\maketitle}{\rlap}{\hbox}{}{}
\patchcmd{\@maketitle}{\@author}{\hspace*{5pt}\@author}{}{}
\makeatother

平均能量损失

\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage[flushmargin]{footmisc}
\usepackage[english]{babel}

\usepackage{etoolbox}
\makeatletter
\patchcmd{\maketitle}{\@makefntext}{\fakecommand}{}{}
\patchcmd{\maketitle}{\rlap}{\hbox}{}{}
\patchcmd{\@maketitle}{\@author}{\hspace*{5pt}\@author}{}{}
\makeatother

\begin{document}

\title{TITLE}
\author{NAME
\thanks{very very very very very very very very very very very very very very
very very very very very very very very very very very very very very very very
very very very very very very very very very very very very very very very very
very very very very very very very very very very very very very long ADDRESS}\\ EMAIL}

\maketitle

Text\footnote{very very very very very very very very very very very very very
very very very very very very very very very very very very very very very very
very very very very very very very very very very very very very very very very
very very very very very very very very very very very very very very long text}

\end{document} 

输出:

在此处输入图片描述

解释

该命令\maketitle重新定义了排版脚注的命令,因此我们恢复了此行为。

\patchcmd我们修补(通过来自的命令etoolbox)该\maketitle命令以便不重新定义\@makefntext(我们让它定义一个新的假命令\@makefntext):

\patchcmd{\maketitle}{\@makefntext}{\fakecommand}{}{}

正常脚注的命令\@makefnmark定义为

\def\@makefnmark{\hbox{\@textsuperscript{\normalfont\@thefnmark}}}

\maketitle将其重新定义为

\def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}

正如您所见,\hbox被替换为\rlap,因此我们再次修补\maketitle以恢复此状态:

\patchcmd{\maketitle}{\rlap}{\hbox}{}{}

最后我们进行修补\@maketitle,以便将作者打印在正确的位置(5pt如果不合适,请进行调整)

\patchcmd{\@maketitle}{\@author}{\hspace*{5pt}\@author}{}{}

答案2

标题中的脚注与正文中的脚注排版不同。要删除标题中脚注的缩进,可以使用包titling

代码

\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage[flushmargin]{footmisc}
\usepackage[english]{babel}

\usepackage{titling}
\setlength{\thanksmarkwidth}{0pt}
\thanksfootextra{\hspace*{-1em}}{}
\setlength{\thanksmargin}{0em}

\begin{document}

\title{TITLE}
\author{NAME
\thanks{Footnote in title Footnote in title Footnote in title Footnote in title Footnote in title Footnote in title Footnote in title Footnote in title Footnote in title Footnote in title Footnote in title}\\ EMAIL}

\maketitle

Text\footnote{Footnote in main body}

\end{document}

输出

在此处输入图片描述

相关内容