From da570bd820caca5d7e4cc3c89a77e0cb216e0786 Mon Sep 17 00:00:00 2001 From: "Kevin M. Godby" Date: Mon, 25 Feb 2008 02:23:04 +0000 Subject: [PATCH] * Fixed the sidenote marks (numbers). They'll now be set in-line with the sidenote (instead of hanging or being set in their own box surrounded by extraneous whitespace). git-svn-id: https://tufte-latex.googlecode.com/svn/trunk@43 516e2f36-ce3a-0410-bea4-1d4a03f5df72 --- tufte-handout.cls | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/tufte-handout.cls b/tufte-handout.cls index e365f69..2f7fdbb 100644 --- a/tufte-handout.cls +++ b/tufte-handout.cls @@ -144,15 +144,17 @@ % Transform existing \footnotes into \sidenotes % Sidenote: ``Where God meant footnotes to go.'' ---Tufte -\RequirePackage[side,multiple,marginal]{footmisc} -\setlength{\footnotemargin}{0.8em} +\RequirePackage[side,multiple]{footmisc} \newcommand{\footnotelayout}{\@tufteh@marginfont\@tufteh@raggedright} -\let\sidenote\footnote -% Set the footnote mark (adjacent to the footnote) in the same typeface as the footenote itself. -\def\@makefnmark{\hbox{\@textsuperscript{\@tufteh@marginfont\tiny\@thefnmark}}} +% Override footmisc's definition to set the sidenote marks (numbers) inside the +% sidenote's text block. +\long\def\@makefntext#1{\@textsuperscript{\@tufteh@marginfont\tiny\@thefnmark}\,\footnotelayout#1} + +% Set the in-text footnote mark in the same typeface as the body text itself. +\def\@makefnmark{\hbox{\@textsuperscript{\normalfont\scriptsize\@thefnmark}}} -% TODO: Automatically determine the \footnotemargin value based on the width of the footnote mark. +\let\sidenote\footnote %% % Sidenote without the footnote mark