我正在使用 memoir 和 awesomebox,但在边距的脚注方面遇到了问题。
最初它们出现在框后,而不是旁边。所以我添加了
\usepackage{footnote}
\makesavenoteenv{tabular}
就像建议的那样如何在 awesomebox 中获取脚注?但现在它们出现在(或多或少)正确的位置但没有被包装:
我使用的代码是:
\tipbox{
\wireshark\ will only export the fields defined to it as
columns\footnote{As far as I've been able to ascertain.}: Figure~\vref{fig:wiresharkmain} shows the ones I'm currently using and Figure~\vref{fig:wiresharkpreferences} shows their definitions, should you wish to use them.
Exporting is started from the menu option
\command{File \rightarrow\ Export Packet Dissections \rightarrow\ As CSV\ldots}
and may take a few minutes for very large captures. Figure~\vref{fig:csvoutput-wireshark} shows a sample of its structure.
}
序言部分包含以下内容:
\usepackage{awesomebox}
\let\Huge\LARGE
\setlength{\aweboxrulewidth}{1pt}
\colorlet{abimportant}{IBMBlue80}
\definecolor{abvrulecolor}{RGB}{36,42,36}
\renewcommand{\tipbox}[1]{%
\awesomebox{\aweboxrulewidth}{\abIconLightBulb}{abimportant}{#1}}
...
\renewcommand*{\sidefootform}{\raggedright}
\setlength{\footmarkwidth}{-0.2em}
\setlength{\footmarksep}{-0.2em}
\setlength{\footparindent}{0em}
\renewcommand{\foottextfont}{\raggedright\footnotesize}
...
\usepackage{footnote}
\makesavenoteenv{tabular}
以下是 MWE:
\documentclass[final,twoside,openright,showtrims,10pt]{memoir} %
\usepackage{awesomebox}
%\usepackage{footnote}
%\makesavenoteenv{tabular}
\begin{document}
\footnotesinmargin
\chapter{Title}
Lorem ipsum dolor sit amet, consectetur adipiscing elit
\footnote{Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.},
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
\notebox{
Lorem ipsum dolor sit amet, consectetur adipiscing elit
\footnote{Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. },
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
}
\end{document}
它与我的完整文档的症状略有不同,因为构建结果显示“Float(s) lost. \end{document}”并且脚注完全丢失。添加注释掉的行会出现上述行为: