微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

如何在尾注中指定字体?

如何解决如何在尾注中指定字体?

问题是关于在使用 pagenote 包时在 'report' 和 'memoir' 文档类中格式化尾注字体。

在以下最小示例中,\footnotesize{} 命令在使用 \footnote 时按预期执行:脚注按要求位于 16pt。当尾注与 \pagenote 一起使用时,尾注在 memoir 和 report 环境中都按预期显示,但在这两种情况下都使用正文字体。

实际上,问题是如何创建类似 \endnotesize{} 的东西?

\documentclass[a4paper,12pt,openany]{memoir}

% set the font size in the footnotes
\makeatother
\renewcommand{\footnotesize}{\fontsize{16pt}{16pt}\selectfont}

\usepackage{pagenote}
\makepagenote
\renewcommand*{\notedivision}{\chapter*{\notesname}}

\let\footnote\pagenote  % toggle endnotes instead of footnotes

\begin{document}
\chapter{}
Here is the main text of the article\footnote{The first footnote in 16pt}
To clarify the situation a second footnote helps\footnote{The second footnote also 16pts}

%\printnotes            % needed for report style
\printpagenotes         % needed for memoir style

\end{document}    

  

在这个例子中,如果使用\printnotes 而不是'\printpagenotes','memoir' 可以被'report' 代替。通过注释掉“\let\footnote\pagenote”这一行,脚注代替尾注出现。在 \footnote 模式下,此示例提供 16pt 脚注。

我的工作环境是 TexWorks 中的 pdfLatex。

解决方法

对于 memoir 类,您可以像这样重新定义 \prenotetext\postnotetext 宏:

\documentclass[a4paper,12pt,openany]{memoir}

% set the font size in the footnotes
\makeatother
\renewcommand\prenotetext{\begingroup\fontsize{16pt}{16pt}\selectfont}
\renewcommand\postnotetext{\endgroup}

\usepackage{pagenote}
\makepagenote
\renewcommand*{\notedivision}{\chapter*{\notesname}}

\let\footnote\pagenote  % toggle endnotes instead of footnotes

\begin{document}
\chapter{}
Here is the main text of the article\footnote{The first footnote in 16pt}
To clarify the situation a second footnote helps\footnote{The second footnote also 16pts}

%\printnotes            % needed for report style
\printpagenotes         % needed for memoir style

\end{document}    

  

对于 report 类:

\documentclass[a4paper,openany]{report}

% set the font size in the footnotes
\makeatother


\usepackage{pagenote}
\makepagenote
\renewcommand*{\notedivision}{\chapter*{\notesname}}

   
\renewcommand{\prenoteinnotes}{\par\fontsize{16pt}{16pt}\selectfont\noindent}
\renewcommand{\postnoteinnotes}{\par}


\let\footnote\pagenote  % toggle endnotes instead of footnotes

\begin{document}
\chapter{}
Here is the main text of the article\footnote{The first footnote in 16pt}
To clarify the situation a second footnote helps\footnote{The second footnote also 16pts}

\printnotes            % needed for report style
%\printpagenotes         % needed for memoir style

\end{document}    

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。