居中脚注

居中脚注

我希望我的脚注居中,但找不到有关此内容的任何文献。这是 MWE。

\documentclass[lettersize,14pt,twoside,openright]{memoir}
\usepackage[symbol,perpage]{footmisc}
\makeatletter %makes the footnote mark bigger
\renewcommand{\@makefnmark}{\hbox{\textsuperscript{\large{\@thefnmark}}}}
\makeatother
\renewcommand\footnoterule{\rule{\linewidth}{0pt}}
\DefineFNsymbols*{safestar}{{$*$}{\textdagger}{\textdaggerdbl}{\textsection}
{\textparagraph}{\textbardbl}{$**$}{\textdagger\textdagger}
{\textdaggerdbl\textdaggerdbl}{\textsection\textsection}
{\textparagraph\textparagraph}{\textbardbl\textbardbl}}
\setfnsymbol{safestar}
\begin{document}
This is a line of text.\footnote{This is a footnote that should be centered.}
\end{document} 

我正在使用 LuaLaTeX 进行编译,但我认为这并不重要。

答案1

\documentclass[lettersize,14pt,twoside,openright]{memoir}
\usepackage[symbol,perpage]{footmisc}
\makeatletter %makes the footnote mark bigger
\renewcommand{\@makefnmark}{\hbox{\textsuperscript{\large{\@thefnmark}}}}
\long\def\@footnotetext#1{\insert\footins{%
    \reset@font\footnotesize
    \interlinepenalty\interfootnotelinepenalty
    \splittopskip\footnotesep
    \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
    \hsize\columnwidth \@parboxrestore
    \protected@edef\@currentlabel{%
       \csname p@footnote\endcsname\@thefnmark}%
    \color@begingroup\centering
      \@makefntext{%
        \rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}%
    \color@endgroup}}%

\makeatother
\renewcommand\footnoterule{\rule{\linewidth}{0pt}}
\DefineFNsymbols*{safestar}{{$*$}{\textdagger}{\textdaggerdbl}{\textsection}
{\textparagraph}{\textbardbl}{$**$}{\textdagger\textdagger}
{\textdaggerdbl\textdaggerdbl}{\textsection\textsection}
{\textparagraph\textparagraph}{\textbardbl\textbardbl}}
\setfnsymbol{safestar}
\begin{document}
This is a line of text.\footnote{This is a footnote that should be centered.}
\end{document}

使用简单的环境会更容易,myfootnote因为您没有脚注规则。

答案2

将此内容添加到序言中:

\newcommand{\cfootnote}[1]{\footnote{\centering #1}}

然后只需使用\cfootnote命令即可。实际上,您仍然可以使用这两个命令,并且\cfootnotes会居中显示,而常规则\footnotes不会。

相关内容