我正在使用 tcolorbox 创建无数脚注,将数学定义放在页面底部。重点是它们应该醒目且易读,但又不能太大以至于占据页面的一半,而现在它们就是这样做的,因为空间太大了。
我不确定哪些间距设置存在问题:带有枚举的设置、正文的标准 LateX 间距、标准脚注间距设置或 tcolorbox 设置。
看看框和下一个脚注之间的间距有多大,没有任何间隔;当然,两个框之间的间距更糟。我对正文中文本/框的自动间距没有意见,但脚注中 1 英寸的间隔有点荒谬。
有人能帮我把这些脚注弄得更紧凑吗?非常感谢!
梅威瑟:
\documentclass{article}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{calrsfs}
\usepackage{mathrsfs}
\usepackage{mathtools}
\usepackage{parskip}
\usepackage{tcolorbox}
\usepackage{graphicx}
\tcbuselibrary{breakable}
\newtcolorbox{myquote}{colback=yellow!20!white,colframe=yellow!75!black,grow to right by=-10mm,grow to left by=-10mm,boxsep=0pt,breakable}
\makeatletter
\newcommand{\blockquote}[1]{ \begin{myquote} #1 \end{myquote} }
\newcommand\blfootnote[1]{%
\begingroup
\renewcommand\thefootnote{}\footnote{ \begin{myquote} #1 \end{myquote}}%
\addtocounter{footnote}{-1}%
\endgroup
}
\begin{document}
Furthermore, as per the usual assumptions,
\nobreakdash
\blfootnote{usual assumptions - \begin{enumerate} \item The filtration is complete. \item The filtration is right-continuous.\end{enumerate}}
\nobreakdash
we assume that our filtration is complete, i.e. that $\mathcal{F}=\mathcal{F}^{\mathbb{P}}$ (that the sigma-algebra $\mathcal{F}$ is complete
\nobreakdash
\blfootnote{\textbf{\textit{complete}} $\sigma-$algebra with respect to measure $\mathbb{P}$ - a $\sigma-$algebra which contains \textit{all} $\mathbb{P}-$null sets, i.e. all sets $A$ such that $\mathbb{P}(A)=0$, and all sets $B$ such that $B \subset A$ and $\mathbb{P}(A)=0$.}
\nobreakdash
with respect to the probability measure $\mathbb{P}$), and that $\mathcal{F}_{t_0}$ contains all sets of measure zero in $\mathcal{F}$.
We also impose the second of the two usual assumptions: that the filtration $(\mathcal{F}_t)_{t \in \mathbb{T}}$ is right-continuous, in other words that:
\blockquote{$$\mathcal{F}_t=\mathcal{F}_{t^+}:=\bigcap\limits_{u>t}\mathcal{F_u}\quad \text{for all times }t $$}
Look how big the space between the box and the next footnote is without any breaks; it is of course even worse between two boxes. I have no problem with automatic spacing for text/boxes in the body, but 1 inch breaks in the footnotes are somewhat ridiculous.
\section[The Pathwise Integral]{The Pathwise Integral: The Naive Approach}
Here we essentially use normal integration for deterministic functions\footnote{In what follows, we assume the reader is familiar with Lebesgue-Stieltjes integration for (deterministic) Borel-measurable real-valued functions.} to define "stochastic" integrals on a path-by-path basis.
\end{document}
在我的计算机上安装 TexStudio 和 MacTex 后,MWE 看起来是什么样的:
答案1
尽管我上面评论了这样做是否可取,但如果我需要这样做,我会做以下更改,以保留对输出的一定程度的手动控制:
\newtcolorbox{myquote}[1][10]{colback=yellow!20!white, colframe=yellow!75!black, grow to right by=-10mm,grow to left by=-10mm,boxsep=0pt,breakable,
% this is the change: set beforeafter skip to 10pt by default
beforeafter skip=#1pt
}
和
\newcommand\blfootnote[2][-6pt]{%
\begingroup
\renewcommand\thefootnote{}\footnote{%
% optional argument currently set to "-6pt"
\vspace*{#1pt}
\begin{myquote}
#2
\end{myquote}}%
\addtocounter{footnote}{-1}%
\endgroup
}
然后使用:
\blfootnote[-10]{...text...}% sets the negative vskip to -10pt for this "footnote"
因此,默认情况下会发生以下情况:
\documentclass{article}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{calrsfs}
\usepackage{mathrsfs}
\usepackage{mathtools}
\usepackage{parskip}
\usepackage{tcolorbox}
\usepackage{graphicx}
\tcbuselibrary{breakable}
\newtcolorbox{myquote}[1][10]{colback=yellow!20!white,colframe=yellow!75!black,grow to right by=-10mm,grow to left by=-10mm,boxsep=0pt, breakable,
beforeafter skip=#1pt
}
\newcommand{\blockquote}[1]{ \begin{myquote} #1 \end{myquote} }
\newcommand\blfootnote[2][-6]{%
\begingroup
\renewcommand\thefootnote{}%
\footnote{%
\vspace*{#1pt}
\begin{myquote}[0]
#2
\end{myquote}}%
\addtocounter{footnote}{-1}%
\endgroup
}
\begin{document}
Furthermore, as per the usual assumptions,
\nobreakdash
\blfootnote{usual assumptions - \begin{enumerate} \item The filtration is complete. \item The filtration is right-continuous.\end{enumerate}}
\nobreakdash
we assume that our filtration is complete, i.e. that $\mathcal{F}=\mathcal{F}^{\mathbb{P}}$ (that the sigma-algebra $\mathcal{F}$ is complete
\nobreakdash
\blfootnote{\textbf{\textit{complete}} $\sigma-$algebra with respect to measure $\mathbb{P}$ - a $\sigma-$algebra which contains \textit{all} $\mathbb{P}-$null sets, i.e. all sets $A$ such that $\mathbb{P}(A)=0$, and all sets $B$ such that $B \subset A$ and $\mathbb{P}(A)=0$.}
\nobreakdash
with respect to the probability measure $\mathbb{P}$), and that $\mathcal{F}_{t_0}$ contains all sets of measure zero in $\mathcal{F}$.
We also impose the second of the two usual assumptions: that the filtration $(\mathcal{F}_t)_{t \in \mathbb{T}}$ is right-continuous, in other words that:
\blockquote{$$\mathcal{F}_t=\mathcal{F}_{t^+}:=\bigcap\limits_{u>t}\mathcal{F_u}\quad \text{for all times }t $$}
Look how big the space between the box and the next footnote is without any breaks; it is of course even worse between two boxes. I have no problem with automatic spacing for text/boxes in the body, but 1 inch breaks in the footnotes are somewhat ridiculous.
\section[The Pathwise Integral]{The Pathwise Integral: The Naive Approach}
Here we essentially use normal integration for deterministic functions\footnote{In what follows, we assume the reader is familiar with Lebesgue-Stieltjes integration for (deterministic) Borel-measurable real-valued functions.} to define ``stochastic'' integrals on a path-by-path basis.
\end{document}