如何将脚注编号更改为非上标

如何将脚注编号更改为非上标

我有几乎感谢 footmisc 包,我的脚注格式完全符合我的要求。但是使用悬挂脚注时,注释上标有超出行高的数字有点烦人(当标记位于注释文本旁边时,可能需要进行区分)。

我正在尝试弄清楚如何 (1) 将注释标记放在普通脚注文本中,可能使用“1.”样式,或者 (2) 将标记向下移动,使其不上标多于线路。有什么建议吗?

示例代码:

\documentclass[11pt,oneside]{book}
\usepackage[letterpaper]{geometry}

\usepackage{setspace}

\renewcommand{\footnotesize}{\small}        % 10pt footnotes in 11pt doc instead of 9pt

\usepackage[hang,flushmargin,splitrule,multiple]{footmisc}

\setlength{\footnotemargin}{1.5em}      % Between marker and text
\setlength{\skip\footins}{1\baselineskip}       % Between main text and note rule
\setlength{\footnotesep}{\skip\footins}     % Between footnotes [= previous]

\renewcommand{\hangfootparskip}{0pt}
\renewcommand{\hangfootparindent}{1.5em}


\doublespacing
\parskip=0pt

\usepackage{lipsum}

\begin{document}
Lorem ipsum ...\footnote{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis. 

Curabitur dictum gravida mauris. Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna. Donec vehicula augue eu neque. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Mauris ut leo. Cras viverra metus rhoncus sem. Nulla et lectus vestibulum urna fringilla ultrices. Phasellus eu tellus sit amet tortor gravida placerat. }

\end{document}

示例输出:

示例图像

答案1

我认为,在正文中您仍然想要一个上标脚注标记。

这是一个可以解决问题的补丁\@makefntext。我没有尝试检查是否有任何副作用。请注意,我稍微更改了一些长度设置,以适应我的个人喜好。

\documentclass[11pt,oneside]{book}
\usepackage[letterpaper]{geometry}

\usepackage{setspace}

\renewcommand{\footnotesize}{\small} % 10pt footnotes in 11pt doc instead of 9pt

\usepackage[hang, flushmargin,splitrule,multiple]{footmisc}
\usepackage{etoolbox}

\makeatletter%%
\patchcmd{\@makefntext}{%
\ifFN@hangfoot
\bgroup}%
{%
\ifFN@hangfoot
\bgroup\def\@makefnmark{\rlap{\normalfont\@thefnmark.}}}{}{}%
% %%%
\patchcmd{\@makefntext}{%
\ifdim\footnotemargin>\z@
\hb@xt@ \footnotemargin{\hss\@makefnmark}}%
{%
\ifdim\footnotemargin>\z@
\hb@xt@ \footnotemargin{\@makefnmark\hss}}{}{}%
\makeatother

\setlength{\footnotemargin}{1.25em} % Between marker and text
\setlength{\skip\footins}{1\baselineskip} % Between main text and note rule
\setlength{\footnotesep}{\skip\footins} % Between footnotes [= previous]

\renewcommand{\hangfootparskip}{0pt}
\renewcommand{\hangfootparindent}{1em}

\doublespacing
\parskip=0pt

\usepackage{lipsum}

\begin{document}

Lorem ipsum...\footnote{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis.

Curabitur dictum gravida mauris. Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna. Donec vehicula augue eu neque. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Mauris ut leo. Cras viverra metus rhoncus sem. Nulla et lectus vestibulum urna fringilla ultrices. Phasellus eu tellus sit amet tortor gravida placerat. }

\end{document} 

在此处输入图片描述

答案2

我认为这就是您要找的。无需使用 hang 作为选项。

\makeatletter%%
\newcommand\@mymakefnmark{\normalfont\@thefnmark.\hfill}
\renewcommand\@makefntext[1]{%
    \parindent 1em%
    \noindent
    \hb@[email protected]{\hss\@mymakefnmark}\RaggedRight#1}

\makeatother

相关内容