我正在使用 Tufte 类,并试图对我的页面上的浮动元素分布(包括 Tufte 的引用和脚注实现)进行一些常规控制。如果不进行干预,我偶尔会遇到浮动元素之间的冲突,以及浮动元素超出页面底部的情况。我已经能够消除以下冲突:
\let\oldfoot\footnote \renewcommand{\footnote}[1]{\oldfoot{#1\medskip{}}}
\let\oldcap\caption \renewcommand{\caption}[1]{\oldcap{#1\medskip{}}}
但仍然会有浮动元素超出页面底部,尽管边缘空间充足,我也尝试过类似
\renewcommand{\topfraction}{0.9}
\renewcommand{\bottomfraction}{0.2}
\setcounter{topnumber}{4}
\setcounter{bottomnumber}{1}
\setcounter{totalnumber}{5}
是否存在通用的、文档范围的设置或重新定义,我可以使用它们将边距中的浮动元素“向上”重新分配到那里充足的可用空间中?
任何具有以下结构的文档
\documentclass[]{tufte-handout}
\title{This is just the title}
\begin{document}
%Enough text to put a "here" sidetone near the bottom of the page
\footnote{Some text that gets close to the bottom of the page.}
%A bit of text
\footnote{Another good-sized chunk of text}
\end{document}
会导致边缘内容溢出页面,例如:
\documentclass[]{tufte-handout}
\title{This is just the title}
\begin{document}
I'm using Tufte classes and am trying to gain some general control over the distribution of floats (including Tufte's implementation of citations and footnotes) on my pages. Without intervening, I get occasional collisions between floats, as well as floats that run off the bottom of the page. I've been able to eliminate collisions with things like. I'm using Tufte classes and am trying to gain some general control over the distribution of floats (including Tufte's implementation of citations and footnotes) on my pages. Without intervening, I get occasional collisions between floats, as well as floats that run off the bottom of the page. I've been able to eliminate collisions with things likeI'm using Tufte classes and am trying to gain some general control over the distribution of floats (including Tufte's implementation of citations and footnotes) on my pages. Without intervening, I get occasional collisions between floats, as well as floats that run off the bottom of the page. I've been able to eliminate collisions with things likeI'm using Tufte classes and am trying to gain some general control over the distribution of floats (including Tufte's implementation of citations and footnotes) on my pages. Without intervening, I get occasional collisions between floats, as well as floats that run off the bottom of the page. I've been able to eliminate collisions with things like\footnote{I'm using Tufte classes and am trying to gain some general control over the distribution of floats (including Tufte's implementation of citations and footnotes) on my pages. Without intervening, I get occasional collisions between floats, as well as floats that run off the bottom of the page. I've been able to eliminate collisions with things like}
I'm using Tufte classes and am trying to gain some general control over the distribution of floats (including Tufte's implementation of citations and footnotes) on my pages. Without intervening, I get occasional collisions between floats, as well as floats that run off the bottom of the page. I've been able to eliminate collisions with things likeI'm using Tufte classes and am trying to gain some general control over the distribution of floats (including Tufte's implementation of citations and footnotes) on my pages. Without intervening, I get occasional collisions between floats, as well as floats that run off the bottom of the page. I've been able to eliminate collisions with things likeI'm using Tufte classes and am trying to gain some general control over the distribution of floats (including Tufte's implementation of citations and footnotes) on my pages. Without intervening, I get occasional collisions between floats, as well as floats that run off the bottom of the page. I've been able to eliminate collisions with things likeI'm using Tufte classes and am trying to gain some general cotes) on my pages. Without intervening, I get occasional collisions between floats, as well as floats that run off the bottom of the page. I've been able to eliminate collisions with things likeI'm using Tufte classes and am trying to gain some general control over the distribution of floats (including Tufte's implementation of citations and footnotes) on my pages. Without intervening, I get occasional\footnote{I'm using Tufte classes and am trying to gain some general control over the distribution of floats (including Tufte's implementation of citations and footnotes) on my pages. Without intervening, I get occasional collisions between floats, as well as floats that run off the bottom of the page. I've been able to eliminate collisions with things like} collisions between floats, as well as floats that run off the bottom of the page. I've been able to eliminate collisions with things like\footnote{I'm using Tufte classes and am trying to gain some general control over the distribution of floats (including Tufte's implementation of citations and footnotes) on my pages. Without intervening, I get occasional collisions between floats, as well as floats that run off the bottom of the page. I've been able to eliminate collisions with things like}
I'm using Tufte classes and am trying to gain some general control over the distribution of floats (including Tufte's implementation of citations and footnotes) on my pages. Without intervening, I get occasional collisions between floats, as well as floats that run off the bottom of the page. I've been able to eliminate collisions with things likeI'm using Tufte classes and am trying to gain some general control over the distribution of floats (including Tufte's implementation of citations and footnotes) on my pages. Without intervening, I get occasional collisio
More body text.
\end{document}
以下是产生边缘材料冲突的典型页面:
\documentclass[]{tufte-handout}
\usepackage{amsmath}
\begin{document}
Some text in front of some math:%
\footnote{The team also relied on images that amateur astronomers had been gathering of a large, transient storm called the South Equatorial Disturbance. This visual record dates back to 1999, when members of the community spotted the most recent recurrence of the storm just south of Jupiter's equator. Analysis of these images revealed the dynamics of this storm and its impact on the chevrons. The team now thinks this storm, together with the Great Red Spot, accounts for many of the differences noted between the jet streams and Rossby waves on the two sides of Jupiter's equator.%
}
\begin{align}
a & \approx0\tag{B1}\label{D:B1}\\
b & \approx0\tag{B2}\label{D:B2}\\
c & \approx1\tag{B3}\label{D:B3}
\end{align}
Some additional text %
\footnote{Some other text that should not be colliding with the text above.%
}which allows him to take The team also relied on images that amateur astronomers had been gathering of a large, transient storm called the South Equatorial Disturbance. This visual record dates back to 1999, when members of the community spotted the most recent recurrence of the storm just south of Jupiter's equator. Analysis of these images revealed the dynamics of this storm and its impact on the chevrons. The team now thinks this storm, together with the Great Red Spot, accounts for many of the differences noted between the jet streams and Rossby waves on the two sides of Jupiter's equator.Like Earth, Jupiter has several fast-moving jet streams that circle the globe. Earth's strongest and best known jet streams are those near the north and south poles; as these winds blow west to east, they take the scenic route, wandering north and south. What sets these jet streams on their meandering paths -- and sometimes makes them blast Florida and other warm places with frigid air -- are their encounters with slow-moving waves in Earth's atmosphere, called Rossby waves.Crucial to the study was the complementary information that the team was able to retrieve from the detailed spacecraft images and the more complete visual record provided by amateur astronomers. The team also relied on images that amateur astronomers had been gathering of a large, transient storm called the South Equatorial Disturbance. This visual record dates back to 1999, when members of the community spotted the most recent recurrence of the storm just south of Jupiter's equator. Analysis of these images revealed the dynamics of this storm and its impact on the chevrons. The team now thinks this storm, together with the Great Red Spot, accounts for many of the differences noted between the jet streams and Rossby waves on the two sides of Jupiter's equator.
For example, the high resolution of the spacecraft images made it possible to establish the top speed of the jet stream's wind, and then the amateur astronomers involved in the study looked through the ground-based images to find variations in the wind speed.%
\footnote{I will elaborate on some consequences of this particular scenario later.%
} For all of these reasons we can no longer take the ``observer density'' of an average simulation,
\[
\frac{a}{b}
\]
More text here that says nothing but is just to fill space:%
\footnote{An additional note.%
}
\[
\frac{a}{b}
\]
\end{document}
答案1
浮动内容本身(图形、表格、列表等)不应超出页面。遗憾的是,标题有时会超出页面末尾。原因是我们欺骗 LaTeX,使其认为标题的高度为 0 pt,这样它就可以使正文与浮动内容的底部很好地对齐,并使标题沿页边向下流动。
有几种不同的选项可用于重新定位旁注、标题和边距浮动。
旁注可以采用可选的垂直偏移参数。负值会将旁注向上移至页面顶部;正值会将旁注向下移至页面底部。(有关详细信息,请参阅样本书第 22 页。)
\sidenote[][-3\baselineskip}{My sidenote text...} % moves the sidenote up three lines
边距浮动使用相同的偏移参数:
\begin{marginfigure}[1.0in]% moves the margin figure down 1 inch
% ...
\end{marginfigure}
标题可以与浮动内容在顶部或底部对齐(第 25 页):
\begin{figure}[t]
\includegraphics{mypic}
\setfloatalignment{t}% forces caption to be aligned with the top of the float contents
\caption{This figure is at the top of the page.}
\end{figure}
标题也可以按照与旁注相同的方式偏移(第 23 至 24 页):
\caption[][-5\baselineskip]{This caption is moved up by five lines.}
通常,我会先编写整个文档,将浮动元素放置在源代码中的逻辑位置。作为编辑过程的最后步骤之一(校对和安排所有文本后),我会手动调整浮动元素、标题、旁注和其他边注的位置。
t
我首先通过指定所需的浮点位置说明符( ,,,,,)b
来调整浮点位置,然后在文件中移动浮点代码,直到 LaTeX 将其定位到我想要的位置h
。p
!
调整完浮动后,我将调整标题对齐方式(使用\setfloatalignment
)。我将所有标题顶部对齐,但页面底部的浮动除外 - 我将那些标题底部对齐。
最后,我将对与页面底部重叠或超出页面底部的任何标题、旁注、边注、边距浮动等添加手动偏移。