ソースを参照

* Added [nohyper] documentclass option that suppresses loading of the hyperref

package.  Fixes issue 26.


git-svn-id: https://tufte-latex.googlecode.com/svn/trunk@99 516e2f36-ce3a-0410-bea4-1d4a03f5df72
master
Kevin M. Godby 17年前
親
コミット
5c07f74422
5個のファイルの変更、21行の追加、12行の削除
  1. バイナリ
      sample-book.pdf
  2. +0
    -2
      sample-book.tex
  3. バイナリ
      sample-handout.pdf
  4. +1
    -1
      sample-handout.tex
  5. +20
    -9
      tufte-common.sty

バイナリ
sample-book.pdf ファイルの表示


+ 0
- 2
sample-book.tex ファイルの表示

@@ -727,8 +727,6 @@ option will revert to \LaTeX's \textsc{toc} design.
\index{class options|)} \index{class options|)}




\chapter{Debug Stuff}



%% %%
% The back matter contains appendices, bibliographies, indices, glossaries, etc. % The back matter contains appendices, bibliographies, indices, glossaries, etc.


バイナリ
sample-handout.pdf ファイルの表示


+ 1
- 1
sample-handout.tex ファイルの表示

@@ -65,7 +65,7 @@ This style provides \textsc{a}- and \textsc{b}-heads (that is,
\Verb|\section| and \Verb|\subsection|), demonstrated above. \Verb|\section| and \Verb|\subsection|), demonstrated above.


If you need more than two levels of section headings, you'll have to define If you need more than two levels of section headings, you'll have to define
them yourself at the moment;\sidenote{See see ``\nameref{sec:defining-sections}'' on
them yourself at the moment;\sidenote{See the ``\nameref{sec:defining-sections}'' on
page~\pageref{sec:defining-sections} for help with defining more heading page~\pageref{sec:defining-sections} for help with defining more heading
levels.} there are no pre-defined styles for anything below a levels.} there are no pre-defined styles for anything below a
\Verb|\subsection|. As Bringhurst points out in \textit{The Elements of \Verb|\subsection|. As Bringhurst points out in \textit{The Elements of


+ 20
- 9
tufte-common.sty ファイルの表示

@@ -105,6 +105,14 @@
\DeclareOption{bidi}{\setboolean{@tufte@loadbidi}{true}} \DeclareOption{bidi}{\setboolean{@tufte@loadbidi}{true}}
\DeclareOption{nobidi}{\setboolean{@tufte@loadbibi}{false}} \DeclareOption{nobidi}{\setboolean{@tufte@loadbibi}{false}}


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

\newboolean{@tufte@loadhyper}
\setboolean{@tufte@loadhyper}{true}
\DeclareOption{hyper}{\setboolean{@tufte@loadhyper}{true}}
\DeclareOption{nohyper}{\setboolean{@tufte@loadhyper}{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


\DeclareOption*{\PassOptionsToClass{\CurrentOption}{\@tufte@class}} \DeclareOption*{\PassOptionsToClass{\CurrentOption}{\@tufte@class}}
@@ -149,13 +157,16 @@
%% %%
% Load the `hyperref' package. We will set more options later. % Load the `hyperref' package. We will set more options later.
% TODO Set nice defaults for hyperref options % TODO Set nice defaults for hyperref options
\ifthenelse{\boolean{@tufte@xetex}}
{\RequirePackage[hyperfootnotes=false,xetex]{hyperref}}
{\RequirePackage[hyperfootnotes=false]{hyperref}}

\hypersetup{%
pdfborder = {0 0 0},
bookmarksdepth = section,
\ifthenelse{\boolean{@tufte@loadhyper}}{%
\ifthenelse{\boolean{@tufte@xetex}}
{\RequirePackage[xetex]{hyperref}}
{\RequirePackage{hyperref}}
\hypersetup{%
pdfborder = {0 0 0},
bookmarksdepth = section,
hyperfootnotes=false,
}%
}{%
} }


%% %%
@@ -359,7 +370,7 @@
\ifthenelse{\isempty{#1}}% \ifthenelse{\isempty{#1}}%
{\renewcommand{\plaintitle}{\thanklesstitle}}% use thankless title {\renewcommand{\plaintitle}{\thanklesstitle}}% use thankless title
{\renewcommand{\plaintitle}{#1}}% use provided plain-text title {\renewcommand{\plaintitle}{#1}}% use provided plain-text title
\hypersetup{pdftitle={\plaintitle}}% set the PDF metadata title
\ifthenelse{\boolean{@tufte@loadhyper}}{\hypersetup{pdftitle={\plaintitle}}}{}% set the PDF metadata title
} }


\def\@author{}% default author is empty (suppresses LaTeX's ``no author'' warning) \def\@author{}% default author is empty (suppresses LaTeX's ``no author'' warning)
@@ -373,7 +384,7 @@
\ifthenelse{\isempty{#1}} \ifthenelse{\isempty{#1}}
{\renewcommand{\plainauthor}{\thanklessauthor}}% use thankless author {\renewcommand{\plainauthor}{\thanklessauthor}}% use thankless author
{\renewcommand{\plainauthor}{#1}}% use provided plain-text author {\renewcommand{\plainauthor}{#1}}% use provided plain-text author
\hypersetup{pdfauthor={\plainauthor}}% set the PDF metadata author
\ifthenelse{\boolean{@tufte@loadhyper}}{\hypersetup{pdfauthor={\plainauthor}}}{}% set the PDF metadata author
} }


\renewcommand*{\date}[1]{% \renewcommand*{\date}[1]{%


読み込み中…
キャンセル
保存