summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/xelatex/bidi/bidi-doc-preamble.ltx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-01-16 22:46:02 +0000
committerKarl Berry <karl@freefriends.org>2018-01-16 22:46:02 +0000
commitc1940873407987b1fc01c8e71f35aa506689d8e6 (patch)
tree7064de6483c54291df28c9405ef12d55cf5199d8 /Master/texmf-dist/source/xelatex/bidi/bidi-doc-preamble.ltx
parentd247f68d697aab3f9e101cda6a8cdf9538862f99 (diff)
bidi (16jan18)
git-svn-id: svn://tug.org/texlive/trunk@46336 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/xelatex/bidi/bidi-doc-preamble.ltx')
-rw-r--r--Master/texmf-dist/source/xelatex/bidi/bidi-doc-preamble.ltx95
1 files changed, 95 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/xelatex/bidi/bidi-doc-preamble.ltx b/Master/texmf-dist/source/xelatex/bidi/bidi-doc-preamble.ltx
new file mode 100644
index 00000000000..1e16d8f6361
--- /dev/null
+++ b/Master/texmf-dist/source/xelatex/bidi/bidi-doc-preamble.ltx
@@ -0,0 +1,95 @@
+\usepackage{docmute}
+\usepackage{fontspec}
+\setmainfont[Ligatures=TeX,Numbers=OldStyle]{Minion Pro}
+\setsansfont[Ligatures=TeX,Numbers=OldStyle]{Myriad Pro}
+\usepackage{calc}
+\usepackage{pifont}
+\usepackage{bbding}
+\usepackage{bidicode}
+\usepackage{microtype}
+\definecolor{bidiblue}{rgb}{0.1,0.2,0.8}
+\usepackage[numbered]{hypdoc}
+\hypersetup{%
+ pdfauthor={Vafa Khalighi <persian-tex@tug.org>},%
+ linkcolor=bidiblue,%
+ urlcolor=bidiblue,%
+ citecolor=bidiblue%
+}
+\setlength\columnseprule{.4pt}
+\newcommand\XeTeX{Xe\TeX}
+\newcommand\XeLaTeX{Xe\LaTeX}
+\makeatletter
+\pdfstringdefDisableCommands{%
+\renewcommand\Lcs[1]{\textbackslash#1}
+}
+\renewcommand\tableofcontents{\relax
+ \begin{multicols}{2}[\section*{\contentsname}]\small
+ \@starttoc{toc}\relax
+ \end{multicols}}
+\newbox\bidilogobox
+\sbox{\bidilogobox}{\includegraphics[height=0.5in,keepaspectratio=true]{bidi-logo}}
+\def\ps@docheadings{%
+ \let\@oddhead\@empty
+ \def\@oddfoot{\parbox{\textwidth}{\hfill\leftmark\quad\thepage\qquad\raisebox{-0.2in}{\usebox\bidilogobox}}}%
+ \let\@mkboth\markboth
+ \def\sectionmark##1{%
+ \markboth {%
+ ##1}{}}}
+\def\@part[#1]#2{%
+ \ifnum \c@secnumdepth >\m@ne
+ \refstepcounter{part}%
+ \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
+ \else
+ \addcontentsline{toc}{part}{#1}%
+ \fi
+ {\parindent \z@ \raggedright
+ \interlinepenalty \@M
+ \normalfont
+ \ifnum \c@secnumdepth >\m@ne
+ \Large\bfseries\color{blue!65!black} \partname\nobreakspace\thepart
+ \par\nobreak
+ \fi
+ \huge \bfseries #2%
+ \markboth{}{}\par}%
+ \nobreak
+ \vskip 3ex
+ \@afterheading}
+\def\@spart#1{%
+ {\parindent \z@ \raggedright
+ \interlinepenalty \@M
+ \normalfont
+ \huge \bfseries\color{blue!65!black} #1\par}%
+ \nobreak
+ \vskip 3ex
+ \@afterheading}
+\renewcommand\section{\@startsection {section}{1}{\z@}%
+ {-3.5ex \@plus -1ex \@minus -.2ex}%
+ {2.3ex \@plus.2ex}%
+ {\normalfont\Large\bfseries\color{blue!65!black}}}
+\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
+ {-3.25ex\@plus -1ex \@minus -.2ex}%
+ {1.5ex \@plus .2ex}%
+ {\normalfont\large\bfseries\color{blue!65!black}}}
+\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
+ {-3.25ex\@plus -1ex \@minus -.2ex}%
+ {1.5ex \@plus .2ex}%
+ {\normalfont\normalsize\bfseries\color{blue!65!black}}}
+\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
+ {3.25ex \@plus1ex \@minus.2ex}%
+ {-1em}%
+ {\normalfont\normalsize\bfseries\color{blue!65!black}}}
+\renewcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
+ {3.25ex \@plus1ex \@minus .2ex}%
+ {-1em}%
+ {\normalfont\normalsize\bfseries\color{blue!65!black}}}
+\makeatother
+\pagestyle{docheadings}
+\newcounter{local}
+\renewcommand\theenumi{\protect\setcounter{local}%
+ {201+\the\value{enumi}}\protect\ding{\value{local}}}
+\renewcommand\labelenumi{\theenumi}
+\renewcommand\labelitemi{\HandRight}
+\renewcommand\labelitemii{\HandRightUp}
+\renewcommand\labelitemiii{\HandCuffRight}
+\renewcommand\labelitemiv{\HandPencilLeft}
+\renewcommand\partname{Part} \ No newline at end of file