summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/bidi/biditufte-book.cls
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/bidi/biditufte-book.cls')
-rw-r--r--Master/texmf-dist/tex/latex/bidi/biditufte-book.cls83
1 files changed, 83 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/bidi/biditufte-book.cls b/Master/texmf-dist/tex/latex/bidi/biditufte-book.cls
new file mode 100644
index 00000000000..398dd530730
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/bidi/biditufte-book.cls
@@ -0,0 +1,83 @@
+%%
+%% This is file `biditufte-book.cls',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `biditufte-book.cls')
+%%
+%% ______________________________________
+%% Copyright © 2009–2013 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\NeedsTeXFormat{LaTeX2e}[1994/06/01]
+\ProvidesClass{biditufte-book}[2011/06/18 v0.1 biditufte-book class]
+\DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}
+\DeclareOption*{\PassOptionsToClass{\CurrentOption}{bidituftefloat}}
+\DeclareOption*{\PassOptionsToClass{\CurrentOption}{bidituftetoc}}
+\DeclareOption*{\PassOptionsToClass{\CurrentOption}{bidituftehyperref}}
+\DeclareOption*{\PassOptionsToClass{\CurrentOption}{bidituftetitle}}
+\ProcessOptions\relax
+\LoadClass{book}
+\RequirePackage{bidituftefloat}
+\RequirePackage{bidituftesidenote}
+\RequirePackage{bidituftetoc}
+\RequirePackage{bidituftegeneralstructure}
+\RequirePackage{bidituftehyperref}
+\RequirePackage{bidituftetitle}
+%%
+%%
+\renewcommand\frontmatter{%
+ \cleardoublepage%
+ \@mainmatterfalse%
+ \pagenumbering{arabic}%
+ %\pagestyle{plain}%
+ \fancyhf{}%
+ \ifthenelse{\boolean{@bidituftefloat@twoside}}%
+ {\fancyhead[LE,RO]{\thepage}}%
+ {\fancyhead[RE,RO]{\thepage}}%
+}
+%%
+\renewcommand\mainmatter{%
+ \cleardoublepage%
+ \@mainmattertrue%
+ \fancyhf{}%
+ \ifthenelse{\boolean{@bidituftefloat@twoside}}%
+ {\renewcommand{\chaptermark}[1]{\markboth{##1}{}}%
+ \fancyhead[LE]{\thepage\quad\smallcaps{\newlinetospace{\plaintitle}}}% book title
+ \fancyhead[RO]{\smallcaps{\newlinetospace{\leftmark}}\quad\thepage}}% chapter title
+ {\fancyhead[RE,RO]{\smallcaps{\newlinetospace{\plaintitle}}\quad\thepage}}% book title
+}
+%%
+\renewcommand\backmatter{%
+ \if@openright%
+ \cleardoublepage%
+ \else%
+ \clearpage%
+ \fi%
+ \@mainmatterfalse%
+}
+%%
+\setcounter{tocdepth}{0}
+\AtBeginDocument{%
+\IfFileExists{biditufte-book.cfg}
+ {\input{biditufte-book.cfg}
+ \ClassInfo{biditufte-book}{Loading biditufte-book configuration file \@gobble}}
+ {}%
+}
+%%
+%% Copyright © 2009–2013 Vafa Khalighi <vafa[dot]kgh[at]gmail[dot]com>
+%%
+%% It may be distributed and/or modified under the LaTeX Project Public License,
+%% version 1.3c or higher (your choice). The latest version of
+%% this license is at: http://www.latex-project.org/lppl.txt
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `biditufte-book.cls'.