Pārlūkot izejas kodu

* 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
master
Kevin M. Godby pirms 18 gadiem
vecāks
revīzija
da570bd820
1 mainītis faili ar 8 papildinājumiem un 6 dzēšanām
  1. +8
    -6
      tufte-handout.cls

+ 8
- 6
tufte-handout.cls Parādīt failu

@@ -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


Notiek ielāde…
Atcelt
Saglabāt