Browse Source

* Added a `bidi' package option that loads the `bidi' package. The `bidi'

option allows for the use of bi-directional text.  This package must be
  loaded prior to our sienote/footnote/cite changes.  


git-svn-id: https://tufte-latex.googlecode.com/svn/trunk@79 516e2f36-ce3a-0410-bea4-1d4a03f5df72
master
Kevin M. Godby 17 years ago
parent
commit
20d1b98d27
1 changed files with 14 additions and 3 deletions
  1. +14
    -3
      tufte-common.sty

+ 14
- 3
tufte-common.sty View File

@@ -81,9 +81,7 @@
% `twoside' option -- alternates running heads % `twoside' option -- alternates running heads


\newboolean{@tufte@twoside} \newboolean{@tufte@twoside}
\DeclareOption{twoside}{
\setboolean{@tufte@twoside}{true}
}
\DeclareOption{twoside}{\setboolean{@tufte@twoside}{true}}


%% %%
% `notoc' option -- suppresses the Tufte-style table of contents % `notoc' option -- suppresses the Tufte-style table of contents
@@ -100,6 +98,12 @@
\newboolean{@tufte@justified} \newboolean{@tufte@justified}
\DeclareOption{justified}{\setboolean{@tufte@justified}{true}} \DeclareOption{justified}{\setboolean{@tufte@justified}{true}}


%%
% `bidi' option -- loads the bidi package for bi-directional text

\newboolean{@tufte@loadbidi}
\DeclareOption{bidi}{\setboolean{@tufte@loadbidi}{true}}
\DeclareOption{nobidi}{\setboolean{@tufte@loadbibi}{false}}


% FIXME: should probably specify options not supported like Mittelbach's aipproc.cls % FIXME: should probably specify options not supported like Mittelbach's aipproc.cls


@@ -410,6 +414,12 @@


\RequirePackage{setspace} \RequirePackage{setspace}


%%
% Load the bidi package if instructed to do so. This package must be loaded
% prior to our redefining the \footnote and \cite commands.

\ifthenelse{\boolean{@tufte@loadbidi}}{\RequirePackage{bidi}}{}



%% %%
% Citations should go in the margin as sidenotes % Citations should go in the margin as sidenotes
@@ -528,6 +538,7 @@
\marginpar{% \marginpar{%
\vspace*{#1}% \vspace*{#1}%
\def\baselinestretch {\setspace@singlespace}% \def\baselinestretch {\setspace@singlespace}%
\ifthenelse{\boolean{@tufte@loadbidi}}{\if@rl@footnote\@rltrue\else\@rlfalse\fi}{}%
\reset@font\footnotesize% \reset@font\footnotesize%
\protected@edef\@currentlabel{% \protected@edef\@currentlabel{%
\csname p@footnote\endcsname\@thefnmark% \csname p@footnote\endcsname\@thefnmark%


Loading…
Cancel
Save