Bladeren bron

* Fixes issue 19: The latest version of the caption package issued a warning

about our marginfigures and margintables.  Thanks, for the patch,  Andy!
* Addresses issue 22: Andy reported that some whitespace was introduced by the
  current \maketitlepage command.  Will have Andy confirm.


git-svn-id: https://tufte-latex.googlecode.com/svn/trunk@84 516e2f36-ce3a-0410-bea4-1d4a03f5df72
master
Kevin M. Godby 17 jaren geleden
bovenliggende
commit
73849e199e
3 gewijzigde bestanden met toevoegingen van 39 en 45 verwijderingen
  1. BIN
      sample-book.pdf
  2. BIN
      sample-handout.pdf
  3. +39
    -45
      tufte-common.sty

BIN
sample-book.pdf Bestand weergeven


BIN
sample-handout.pdf Bestand weergeven


+ 39
- 45
tufte-common.sty Bestand weergeven

@@ -698,37 +698,37 @@
% Margin figure environment

\newsavebox{\@tufte@marginfigbox}
\newenvironment{marginfigure}[1]
[-1.2ex]
{\FloatBarrier% process all floats before this point so the figure numbers stay in order.
\begin{lrbox}{\@tufte@marginfigbox}
\begin{minipage}{\marginparwidth}
\@tufte@marginfont
\def\@captype{figure}
\vspace*{#1}
\@tufte@justification
}
{\end{minipage}%
\end{lrbox}%
\marginpar{\usebox{\@tufte@marginfigbox}}}
\newenvironment{marginfigure}[1][-1.2ex]
{\FloatBarrier% process all floats before this point so the figure numbers stay in order.
\begin{lrbox}{\@tufte@marginfigbox}%
\begin{minipage}{\marginparwidth}%
\captionsetup{type=figure}%
\@tufte@marginfont%
\def\@captype{figure}%
\vspace*{#1}%
\@tufte@justification%
}
{\end{minipage}%
\end{lrbox}%
\marginpar{\usebox{\@tufte@marginfigbox}}}


%%
% Margin table environment
\newsavebox{\@tufte@margintablebox}
\newenvironment{margintable}[1]
[-1.2ex]
{\FloatBarrier% process all floats before this point so the figure numbers stay in order.
\begin{lrbox}{\@tufte@margintablebox}
\begin{minipage}{\marginparwidth}
\@tufte@marginfont
\def\@captype{table}
\vspace*{#1}
\@tufte@justification
}
{\end{minipage}%
\end{lrbox}%
\marginpar{\usebox{\@tufte@margintablebox}}}
\newenvironment{margintable}[1][-1.2ex]
{\FloatBarrier% process all floats before this point so the figure numbers stay in order.
\begin{lrbox}{\@tufte@margintablebox}%
\begin{minipage}{\marginparwidth}%
\captionsetup{type=table}%
\@tufte@marginfont%
\def\@captype{table}%
\vspace*{#1}%
\@tufte@justification%
}
{\end{minipage}%
\end{lrbox}%
\marginpar{\usebox{\@tufte@margintablebox}}}


%%
@@ -767,7 +767,7 @@
\newenvironment{fullwidth}
{\ifthenelse{\boolean{@tufte@symmetric}}
{\ifthenelse{\boolean{@tufte@changepage}}{\begin{adjustwidth*}{}{-\@tufte@overhang}}{\begin{adjustwidth}[]{}{-\@tufte@overhang}}}
{\begin{adjustwidth}{}{-\@tufte@overhang}}
{\begin{adjustwidth}{}{-\@tufte@overhang}}%
}
{\end{adjustwidth}}

@@ -920,25 +920,19 @@
% Produces a full title page

\newcommand{\maketitlepage}[0]{%
\cleardoublepage
{
\sffamily
\begin{fullwidth}
\par\noindent\fontsize{18}{18}\selectfont\textcolor{darkgray}{\allcaps{\thanklessauthor}}
\end{fullwidth}

\vspace{11.5pc}
\begin{fullwidth}
\par\noindent\fontsize{36}{36}\selectfont\textcolor{darkgray}{\allcaps{\thanklesstitle}}
\end{fullwidth}

\vfill
\begin{fullwidth}
\par\noindent\fontsize{14}{14}\selectfont\allcaps{\thanklesspublisher}
\end{fullwidth}
\cleardoublepage%
{%
\sffamily%
\begin{fullwidth}%
\fontsize{18}{20}\selectfont\par\noindent\textcolor{darkgray}{\allcaps{\thanklessauthor}}%
\vspace{11.5pc}%
\fontsize{36}{40}\selectfont\par\noindent\textcolor{darkgray}{\allcaps{\thanklesstitle}}%
\vfill%
\fontsize{14}{16}\selectfont\par\noindent\allcaps{\thanklesspublisher}%
\end{fullwidth}%
}
\thispagestyle{empty}
\clearpage
\thispagestyle{empty}%
\clearpage%
}

%%


Laden…
Annuleren
Opslaan