Selaa lähdekoodia

* Added the \TufteRecalculate command which recalculates the width of the

fullwidth environment, caption/sidenote widths, etc.  This should be used
  when you've changed the margins or other dimensions of the page layout (using
  \geometry).  It's automatically called at the end of the preamble, so you
  should have to call it manually.  


git-svn-id: https://tufte-latex.googlecode.com/svn/trunk@103 516e2f36-ce3a-0410-bea4-1d4a03f5df72
master
Kevin M. Godby 16 vuotta sitten
vanhempi
commit
8060810cf2
3 muutettua tiedostoa jossa 15 lisäystä ja 11 poistoa
  1. BIN
      sample-book.pdf
  2. BIN
      sample-handout.pdf
  3. +15
    -11
      tufte-common.sty

BIN
sample-book.pdf Näytä tiedosto


BIN
sample-handout.pdf Näytä tiedosto


+ 15
- 11
tufte-common.sty Näytä tiedosto

@@ -106,7 +106,7 @@
\DeclareOption{nobidi}{\setboolean{@tufte@loadbibi}{false}} \DeclareOption{nobidi}{\setboolean{@tufte@loadbibi}{false}}


%% %%
% `nohyper' option -- loads the bidi package for bi-directional text
% `nohyper' option -- suppresses loading of the hyperref package


\newboolean{@tufte@loadhyper} \newboolean{@tufte@loadhyper}
\setboolean{@tufte@loadhyper}{true} \setboolean{@tufte@loadhyper}{true}
@@ -324,22 +324,26 @@
}% }%
} }


%%
% Compute lengths used for full-width displays % Compute lengths used for full-width displays


\newlength{\@tufte@overhang} \newlength{\@tufte@overhang}
\setlength{\@tufte@overhang}{\marginparwidth}
\addtolength{\@tufte@overhang}{\marginparsep}

\newlength{\@tufte@fullwidth} \newlength{\@tufte@fullwidth}
\setlength{\@tufte@fullwidth}{\textwidth}
\addtolength{\@tufte@fullwidth}{\marginparsep}
\addtolength{\@tufte@fullwidth}{\marginparwidth}

\newlength{\@tufte@caption@fill} \newlength{\@tufte@caption@fill}
\setlength{\@tufte@caption@fill}{\textwidth}
\addtolength{\@tufte@caption@fill}{\marginparsep}


\newcommand{\TufteRecalculate}{%
\setlength{\@tufte@overhang}{\marginparwidth}
\addtolength{\@tufte@overhang}{\marginparsep}

\setlength{\@tufte@fullwidth}{\textwidth}
\addtolength{\@tufte@fullwidth}{\marginparsep}
\addtolength{\@tufte@fullwidth}{\marginparwidth}

\setlength{\@tufte@caption@fill}{\textwidth}
\addtolength{\@tufte@caption@fill}{\marginparsep}
}

\AtBeginDocument{\TufteRecalculate}


%% %%
% Modified \title, \author, and \date commands. These store the % Modified \title, \author, and \date commands. These store the


Loading…
Peruuta
Tallenna