From 6882bc922c13f16fd5d8c11564a3ddaf9dab4f62 Mon Sep 17 00:00:00 2001 From: "Kevin M. Godby" Date: Tue, 18 Aug 2009 01:27:30 +0000 Subject: [PATCH] * Fixed a spacing issue with the floats. (Thanks, Dan!) More work on floats and captions to follow. * Added instructions for compiling the sample book. git-svn-id: https://tufte-latex.googlecode.com/svn/trunk@117 516e2f36-ce3a-0410-bea4-1d4a03f5df72 --- README.txt | 15 +++++++++++++-- tufte-common.def | 16 ++++++++++------ 2 files changed, 23 insertions(+), 8 deletions(-) diff --git a/README.txt b/README.txt index b065531..99640e6 100644 --- a/README.txt +++ b/README.txt @@ -5,7 +5,7 @@ produce Tufte-style handouts, reports, and notes. == Quick Start -Try typesetting sample.tex with the following sequence +Try typesetting sample-handout.tex with the following sequence of commands, pdflatex sample-handout @@ -15,6 +15,17 @@ of commands, The result should look like sample-handout.pdf. +The sample book can be compiled with the following: + + pdflatex sample-book + bibtex sample-book + texindy --language english sample-book.idx + # or makeindex sample-book.idx + pdflatex sample-book + pdflatex sample-book + pdflatex sample-book + + == Troubleshooting If you encounter errors of the form, @@ -64,7 +75,7 @@ The following packages are optional and will be automatically used if installed: == Bugs/Features/Support For kudos, feature requests, patches, or support requests that you -feel are /particular/ to this Tufte LaTeX package, i.e. not a general +feel are /particular/ to this Tufte-LaTeX package, i.e., not a general LaTeX issue, please use this project's issue tracker available at http://tufte-latex.googlecode.com diff --git a/tufte-common.def b/tufte-common.def index 8457131..a2584ef 100644 --- a/tufte-common.def +++ b/tufte-common.def @@ -975,14 +975,18 @@ \newcommand{\@tufte@float@textwidth}[2]{% \ifthenelse{\NOT\boolean{@tufte@symmetric}\OR\boolean{@tufte@float@recto}}{% % asymmetric or page is odd, so caption is on the right - \usebox{#1}% - \hspace{\marginparsep}% - \smash{\usebox{#2}}% + \hbox{% + \usebox{#1}% + \hspace{\marginparsep}% + \smash{\usebox{#2}}% + }% }{% % symmetric pages and page is even, so caption is on the left - \strut\smash{\usebox{#2}}% - \hspace{\marginparsep}% - \usebox{#1}% + \hbox{% + \smash{\usebox{#2}}% + \hspace{\marginparsep}% + \usebox{#1}% + }% }% }