Просмотр исходного кода

* 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 лет назад
Родитель
Сommit
73849e199e
3 измененных файлов: 39 добавлений и 45 удалений
  1. Двоичные данные
      sample-book.pdf
  2. Двоичные данные
      sample-handout.pdf
  3. +39
    -45
      tufte-common.sty

Двоичные данные
sample-book.pdf Просмотреть файл


Двоичные данные
sample-handout.pdf Просмотреть файл


+ 39
- 45
tufte-common.sty Просмотреть файл

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


\newsavebox{\@tufte@marginfigbox} \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 % Margin table environment
\newsavebox{\@tufte@margintablebox} \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} \newenvironment{fullwidth}
{\ifthenelse{\boolean{@tufte@symmetric}} {\ifthenelse{\boolean{@tufte@symmetric}}
{\ifthenelse{\boolean{@tufte@changepage}}{\begin{adjustwidth*}{}{-\@tufte@overhang}}{\begin{adjustwidth}[]{}{-\@tufte@overhang}}} {\ifthenelse{\boolean{@tufte@changepage}}{\begin{adjustwidth*}{}{-\@tufte@overhang}}{\begin{adjustwidth}[]{}{-\@tufte@overhang}}}
{\begin{adjustwidth}{}{-\@tufte@overhang}}
{\begin{adjustwidth}{}{-\@tufte@overhang}}%
} }
{\end{adjustwidth}} {\end{adjustwidth}}


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


\newcommand{\maketitlepage}[0]{% \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%
} }


%% %%


Загрузка…
Отмена
Сохранить