Browse Source

* Converted some inadvertant tabs to spaces.

* Moved the running head overhang code to \AtBeginDocument so that it executes after the lengths have been calculated.


git-svn-id: https://tufte-latex.googlecode.com/svn/trunk@104 516e2f36-ce3a-0410-bea4-1d4a03f5df72
master
Kevin M. Godby 16 years ago
parent
commit
b14b839314
1 changed files with 9 additions and 7 deletions
  1. +9
    -7
      tufte-common.sty

+ 9
- 7
tufte-common.sty View File

@@ -327,7 +327,7 @@
%%
% Compute lengths used for full-width displays

\newlength{\@tufte@overhang}
\newlength{\@tufte@overhang}% used by the fullwidth environment and the running heads
\newlength{\@tufte@fullwidth}
\newlength{\@tufte@caption@fill}

@@ -926,8 +926,8 @@
\begin{fullwidth}%
\begin{minipage}[\floatalignment]{\linewidth}%
\ifthenelse{\boolean{@tufte@float@star}}%
{\@tufte@float@fullwidth{\@tufte@figure@box}{\@tufte@caption@box}}%
{\@tufte@float@textwidth{\@tufte@figure@box}{\@tufte@caption@box}}%
{\@tufte@float@fullwidth{\@tufte@figure@box}{\@tufte@caption@box}}%
{\@tufte@float@textwidth{\@tufte@figure@box}{\@tufte@caption@box}}%
\end{minipage}%
\end{fullwidth}%
\@tufte@orig@endfloat%
@@ -959,7 +959,7 @@
{% place caption above figure
\ifthenelse{\NOT\boolean{@tufte@symmetric}\OR\boolean{@tufte@float@recto}}%
{\hfill\smash{\usebox{#2}}\par\usebox{#1}}% caption on the right
{\smash{\usebox{#2}\hfill}\par\usebox{#1}}% caption on the left
{\smash{\usebox{#2}\hfill}\par\usebox{#1}}% caption on the left
}%
{% place caption below figure
\ifthenelse{\NOT\boolean{@tufte@symmetric}\OR\boolean{@tufte@float@recto}}%
@@ -1076,9 +1076,11 @@

% Set the header/footer width to be the body text block plus the margin
% note area.
\ifthenelse{\boolean{@tufte@symmetric}}
{\fancyhfoffset[LE,RO]{\@tufte@overhang}}
{\fancyhfoffset[RE,RO]{\@tufte@overhang}}
\AtBeginDocument{%
\ifthenelse{\boolean{@tufte@symmetric}}
{\fancyhfoffset[LE,RO]{\@tufte@overhang}}
{\fancyhfoffset[RE,RO]{\@tufte@overhang}}
}

% The running heads/feet don't have rules
\renewcommand{\headrulewidth}{0pt}


Loading…
Cancel
Save