Browse Source

* Using the 'placeins' package to disallow floats to float beyond the

current section or subsection.
* New package requirement: placeins


git-svn-id: https://tufte-latex.googlecode.com/svn/trunk@45 516e2f36-ce3a-0410-bea4-1d4a03f5df72
master
Kevin M. Godby 18 years ago
parent
commit
a2b538a285
1 changed files with 11 additions and 2 deletions
  1. +11
    -2
      tufte-handout.cls

+ 11
- 2
tufte-handout.cls View File

@@ -176,12 +176,20 @@
% TODO: Combine sequences of citations so that 2,3,4,6 becomes 2-4,6
% but be careful of hypperref interaction


%%
% The placeins package provides the \FloatBarrier command. This forces
% LaTeX to place all of the floats before proceeding. We'll use this to
% keep the float (figure and table) numbers in sequence.
\RequirePackage{placeins}

%%
% Margin figure

\newcommand{\marginfigure}[2]%
[-1.2ex]%
{\marginpar{\@tufteh@marginfont
{\FloatBarrier% process all floats before this point so the figure numbers stay in order.
\marginpar{\@tufteh@marginfont
\def\@captype{figure}
\vspace*{#1}
\@tufteh@raggedright #2}}
@@ -193,7 +201,8 @@

\newcommand{\margintable}[2]%
[-1.2ex]%
{\marginpar{\@tufteh@marginfont
{\FloatBarrier% process all floats before this point so the table numbers stay in order.
\marginpar{\@tufteh@marginfont
\def\@captype{table}
\vspace*{#1}
\@tufteh@raggedright #2}}


Loading…
Cancel
Save