问题描述
问题是关于在使用 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}