我使用自定义边距,这样我就可以在右边距中包含图片,并在页脚中包含参考资料。我希望页脚跨越正文和边距的线宽。
这是我的最小示例:
\documentclass[10pt,letterpaper]{article}
\usepackage[left=36pt,right=233.28pt,top=2cm,bottom=2cm, marginparwidth=66mm]{geometry}
\usepackage{marginnote}
\usepackage{lipsum}
\begin{document}
\section{A title goes here}
\lipsum[1-2]
\marginnote{\footnotesize An image goes here in the right margin.}
\lipsum[1-2]\footnote{A footnote goes here in the footer and should stretch right across the page to include the right margin.}
\end{document}
我曾在 Google 上搜索过 \footnotewidth,但没有任何结果。
谢谢
答案1
\documentclass[10pt,letterpaper]{article}
\usepackage[left=36pt,right=233.28pt,top=2cm,bottom=2cm, marginparwidth=66mm]{geometry}
\usepackage{marginnote}
\usepackage{lipsum}
\begin{document}
\section{A title goes here}
\lipsum[1-2]
\marginnote{\footnotesize An image goes here in the right margin.}
\lipsum[1-2]\footnote{\hsize=\dimexpr\columnwidth+\marginparsep+\marginparwidth\relax
A footnote goes here in the footer and should stretch right across the page to include the right margin.}
\end{document}
答案2
这里,我在每个脚注里都加了一个负数\rightskip
。实际值是-\marginparsep-\marginparwidth
。
\documentclass[10pt,letterpaper]{article}
\usepackage[left=36pt,right=233.28pt,top=2cm,bottom=2cm, marginparwidth=66mm]{geometry}
\usepackage{marginnote}
\usepackage{lipsum}
\let\svfootnote\footnote
\def\footnote#1{\svfootnote{\rightskip\dimexpr
-\marginparsep-\marginparwidth #1}}
\begin{document}
\section{A title goes here}
\lipsum[1-2]
\marginnote{\footnotesize An image goes here in the right margin. Adding
i i i i more to test margination. An image goes here in the right margin.
Adding more to test margination. An image goes here in the right margin.
Adding more to test margination. }
\lipsum[1]\footnote{A footnote goes here in the footer and should stretch right across the page to include the right margin. Adding a bit more
to check the margination.}
\lipsum[2]\footnote{Testing another footnote.}
\end{document}
答案3
您可以使用 LaTeX 框来获得更多宽度。请注意,我使用的是\rlap
将框的宽度设置为 0 的方法。这只是为了避免出现“框过满”警告。这有点不合时宜,但嘿,这是 LaTeX。
\newcommand{\widefootnote}[1]{%
\footnote{\rlap{\parbox{\dimexpr\paperwidth-72pt\relax}{#1}}}%
}
现在使用\widefootnote
而不是\footnote
。或者你可以这样做
\let\oldfootnote\footnote
\renewcommand{\footnote}[1]{%
\oldfootnote{\rlap{\parbox{\dimexpr\paperwidth-72pt\relax}{#1}}}%
}
\footnote
并到处使用。