summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-10-11 00:15:03 +0000
committerKarl Berry <karl@freefriends.org>2010-10-11 00:15:03 +0000
commitea0ac2d1bc725a9e159c3709bc8e775d77dc65bd (patch)
tree3a5d0fc88ff32f76f3c6e0bba488d0251b4213bd /Master/texmf-dist
parente8dde3fdf371b3f9c7443830b0613ad123cc735b (diff)
bidi update (10oct10)
git-svn-id: svn://tug.org/texlive/trunk@20046 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/latex/bidi/README79
-rw-r--r--Master/texmf-dist/doc/latex/bidi/bidi-doc.pdfbin144521 -> 0 bytes
-rw-r--r--Master/texmf-dist/doc/latex/bidi/bidi-doc.tex653
-rw-r--r--Master/texmf-dist/doc/latex/bidi/bidi.pdfbin0 -> 1503004 bytes
-rw-r--r--Master/texmf-dist/doc/latex/bidi/bidisample2e.tex1
-rw-r--r--Master/texmf-dist/doc/latex/bidi/bidismall2e.tex3
-rw-r--r--Master/texmf-dist/doc/latex/bidi/presentation-sample.tex2
-rw-r--r--Master/texmf-dist/doc/latex/bidi/test-arydshln.tex2
-rw-r--r--Master/texmf-dist/doc/latex/bidi/test-brochure.tex138
-rw-r--r--Master/texmf-dist/doc/latex/bidi/test-color.tex5
-rw-r--r--Master/texmf-dist/doc/latex/bidi/test3-wrapfig.tex2
-rw-r--r--Master/texmf-dist/source/latex/bidi/bidi.dtx11623
-rw-r--r--Master/texmf-dist/source/latex/bidi/bidi.ins247
-rw-r--r--Master/texmf-dist/tex/latex/bidi/amsart-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/amsbook-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/amsmath-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/amsthm-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/array-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/article-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/artikel1-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/artikel2-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/artikel3-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/arydshln-xetex-bidi.def76
-rwxr-xr-x[-rw-r--r--]Master/texmf-dist/tex/latex/bidi/bibitem.pdf (renamed from Master/texmf-dist/doc/latex/bidi/bibitem.pdf)bin2936 -> 2936 bytes
-rw-r--r--Master/texmf-dist/tex/latex/bidi/bidi.sty83
-rw-r--r--Master/texmf-dist/tex/latex/bidi/bidi.tex80
-rw-r--r--Master/texmf-dist/tex/latex/bidi/bidi2in1.sty77
-rw-r--r--Master/texmf-dist/tex/latex/bidi/bidicode.sty143
-rw-r--r--Master/texmf-dist/tex/latex/bidi/bidiftnxtra.sty76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/bidimoderncv.cls77
-rw-r--r--Master/texmf-dist/tex/latex/bidi/bidipoem.sty76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/bidipresentation.cls77
-rw-r--r--Master/texmf-dist/tex/latex/bidi/boek-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/boek3-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/book-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/bookest-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/breqn-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/caption-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/color-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/colortbl-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/cvthemebidicasual.sty77
-rw-r--r--Master/texmf-dist/tex/latex/bidi/cvthemebidiclassic.sty77
-rw-r--r--Master/texmf-dist/tex/latex/bidi/draftwatermark-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/extarticle-xetex-bidi.def83
-rw-r--r--Master/texmf-dist/tex/latex/bidi/extbook-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/extletter-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/extreport-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/fancyhdr-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/fleqn-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/flowfram-xetex-bidi.def78
-rw-r--r--Master/texmf-dist/tex/latex/bidi/footnote-luatex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/footnote-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/graphicx-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/hyperref-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/leqno-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/letter-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/listings-xetex-bidi.def78
-rw-r--r--Master/texmf-dist/tex/latex/bidi/loadingorder-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/longtable-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/luatex-bidi.def77
-rw-r--r--Master/texmf-dist/tex/latex/bidi/memoir-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/minitoc-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/multicol-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/pdfpages-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/pgf-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/plain-luatex-bidi.def78
-rw-r--r--Master/texmf-dist/tex/latex/bidi/plain-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/pstricks-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/quotchap-xetex-bidi.def80
-rw-r--r--Master/texmf-dist/tex/latex/bidi/ragged2e-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/rapport1-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/rapport3-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/refrep-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/report-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/scrartcl-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/scrbook-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/scrlettr-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/scrreprt-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/stabular-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/subfigure-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/tabls-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/tabulary-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/tikz-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/titlesec-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/titletoc-xetex-bidi.def80
-rw-r--r--Master/texmf-dist/tex/latex/bidi/tocbibind-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/tocloft-xetex-bidi.def81
-rw-r--r--Master/texmf-dist/tex/latex/bidi/tocstyle-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/wrapfig-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/xcolor-xetex-bidi.def76
-rw-r--r--Master/texmf-dist/tex/latex/bidi/xetex-bidi.def104
-rw-r--r--Master/texmf-dist/tex/latex/bidi/xltxtra-xetex-bidi.def76
92 files changed, 17518 insertions, 1303 deletions
diff --git a/Master/texmf-dist/doc/latex/bidi/README b/Master/texmf-dist/doc/latex/bidi/README
index cfa28022a4b..07d61a98e39 100644
--- a/Master/texmf-dist/doc/latex/bidi/README
+++ b/Master/texmf-dist/doc/latex/bidi/README
@@ -1,19 +1,80 @@
-_________________
+___________________
The bidi package
-v1.1.4c
+v1.1.5a
This package provides a convenient interface for typesetting
bidirectional texts in Plain TeX and LaTeX.
-This version fixes all the bugs that were present in v1.1.4b.
+This version fixes all the bugs that were present in v1.1.4c.
-Note: The image ctg.jpg is in public domain (a public domain
-artwork from iranpoliticsclub.net) and taken from
+Note: The image ctg.jpg is in public domain (a public domain
+artwork from iranpoliticsclub.net) and taken from
http://iranpoliticsclub.net/culture-language/PIY/images/Cyrus%20The%20Great%20face.jpg
-______________
+___________________
Vafa Khalighi
-vafakh84@gmail.com
+vafakhlgh@gmail.com
-Copyright 2007-2010
-Distributed under the LaTeX Project Public License
+Copyright © 2007–2010
+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.
+
+In addition to the terms of LPPL any distributed version
+(unchanged or modified) of bidi has to keep the statement
+about the moral obligation for using bidi. In case of major
+changes where this would not be appropriate the author of the
+changed version should contact the copyright holder.
+
+Moral obligation for using bidi:
+____________________________________
+
+Users of bidi who wish to include or use bidi or a modified
+version in a proprietary and commercially market product are asked
+under certain conditions (see below) for the payment of a license
+fee. The size of this fee is to be determined, in each instance,
+by the commercial user, depending on his/her judgment of the value of
+bidi for his/her product.
+
+The conditions for this are as follows:
+
+The producer of a proprietary and commercially market product
+that involves typesetting using bidi is asked to determine
+the value of a license fee for using bidi if
+
+ - the product is a document and the producer has decided to
+ include bidi to typeset (parts of) the document or has
+ directed the author of the document to include bidi (for
+ example, by providing a class file to be used by the author)
+
+ - the product is a LaTeX class or package that includes bidi
+
+There is no moral obligation in case
+
+ - the product is a document but producer has not directed
+ the author to include bidi (in that case the moral obligation
+ lies with the author of the document)
+
+ - the product does not involve typesetting, e.g., consists, for
+ example, of distributing bidi and its documentation.
+
+ - the product is not proprietary, i.e., is made available as free
+ software itself (which doesn't prohibit its commercial marketing)
+
+ - bidi is used for non-commercial purposes
+
+Determinating a license fee might result in a license fee of zero
+(i.e., no payment) in case a producer has determined that the use
+of bidi has no enhancing effect on the product. This is a
+plausible scenario, i.e., in the above two cases the producer is
+only asked to evaluate the value of bidi for the product
+not for the payment of a license fee per se (which might or might
+not follow from this evaluation).
+
+ The license fee, if any, can be payed to the author of
+ the program who can be contacted at
+
+ vafakhlgh@gmail.com
diff --git a/Master/texmf-dist/doc/latex/bidi/bidi-doc.pdf b/Master/texmf-dist/doc/latex/bidi/bidi-doc.pdf
deleted file mode 100644
index 2cabf2e0263..00000000000
--- a/Master/texmf-dist/doc/latex/bidi/bidi-doc.pdf
+++ /dev/null
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/bidi/bidi-doc.tex b/Master/texmf-dist/doc/latex/bidi/bidi-doc.tex
deleted file mode 100644
index 7c5a9f76670..00000000000
--- a/Master/texmf-dist/doc/latex/bidi/bidi-doc.tex
+++ /dev/null
@@ -1,653 +0,0 @@
-\documentclass{artikel3}
-\usepackage{graphicx,wrapfig}
-\usepackage{calc}
-\usepackage{pifont}
-\usepackage{bbding}
-\usepackage[colorlinks=true,linkcolor=mybrown,urlcolor=mygreen]{hyperref}
-\usepackage{bidicode}
-\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}
-\definecolor{mybrown}{rgb}{.6,0,0}
-\definecolor{mygreen}{rgb}{0,.43,0}
-\definecolor{Orange}{rgb}{1,.4,.2}
-\newcommand\XeTeX{Xe\TeX}
-\newcommand\XeLaTeX{Xe\LaTeX}
-\newcommand\LuaTeX{Lua\TeX}
-\newcommand\LuaLaTeX{Lua\LaTeX}
-\makeatletter
-\makeatletter
-\pdfstringdefDisableCommands{%
-\renewcommand\Lcs[1]{\textbackslash#1}
-}
-\makeatother\makeatother
-\title{The \textsf{bidi} Package\\ \href{http://bitbucket.org/vafa/bidi}{\texttt{http://bitbucket.org/vafa/bidi}}}
-\author{Vafa Khalighi\\ \href{mailto:vafakh84@gmail.com}{\texttt{vafakh84@gmail.com}}}
-\date{Version 1.1.4c}
-\begin{document}
-\maketitle
-\part*{Dedication}
-\textit{We dedicate the \textsf{bidi} package to our \textbf{father}, \textbf{Cyrus The Great}.}
-\textbf{Cyrus the Great} (c. 600 BC or 576 BC – December 530 BC), also known as \textbf{Cyrus II} or \textbf{Cyrus of Persia}, was the first Zoroastrian Persian emperor. He was the founder of the Persian Empire under the Achaemenid dynasty.
-
-\begin{wrapfigure}{l}{0.5\textwidth}
-\centering
-\fbox{\includegraphics{ctg}}
- \caption{Portrait of Cyrus The Great}
-\end{wrapfigure}
-
-It was under his own rule that the empire embraced all previous civilized states of the ancient Near East, expanded vastly and eventually conquered most of Southwest Asia and much of Central Asia, from Egypt and the Hellespont in the west to the Indus River in the east, to create the largest empire the world had yet seen.
-
-The reign of Cyrus lasted 29 to 31 years. Cyrus built his empire by fighting and conquering first the Median Empire, then the Lydian Empire and the Neo-Babylonian Empire. Either before or after Babylon, he led an expedition into central Asia, which resulted in major campaigns that brought ``into subjection every nation without exception." Cyrus did not venture into Egypt, as he himself died in battle, fighting the Massagetae along the Syr Darya in December 530 BC. He was succeeded by his son, Cambyses II, who managed to add to the empire by conquering Egypt, Nubia, and Cyrenaica during his short rule.
-
-As a military leader, Cyrus left a legacy on the art of leadership and decision making, and he attributed his success to ``Diversity in counsel, unity in command.'' Cyrus the Great respected the customs and religions of the lands he conquered. It is said that in universal history, the role of the Achaemenid empire founded by Cyrus lies in its very successful model for centralized administration and establishing a government working to the advantage and profit of its subjects. In fact, the administration of the empire through satraps and the vital principle of forming a government at Pasargadae were the work of Cyrus. Aside from his own nation, Iran, Cyrus also left a lasting legacy on Jewish religion (through his Edict of Restoration), human rights, politics, and military strategy, as well as on both Eastern and Western civilizations.
-\tableofcontents
-\part{User Guide}
-\section{Introduction}
-\textsf{bidi} provides a convenient interface for typesetting bidirectional texts in plain \TeX\ and \LaTeX.
-
-The \textsf{bidi} package at the moment only works with \XeTeX\ engine, but we will support other \TeX\ engines as well in the future.
-\subsection{\textsf{bidi} Info On The Terminal and In The Log File}
-If you use \textsf{bidi} package to write any input \TeX\ document, and then run \texttt{xelatex} on your document, \textsf{bidi} writes some information about itself to the terminal and to the log file. The information is something like:
-\begin{lstlisting}[numbers=none,backgroundcolor=\color{skugga}]
-bidi package (Support for bidirectional typesetting in plain TeX and LaTeX)
-Description: A convenient interface for typesetting bidirectional texts
-in plain TeX and LaTeX. The package includes adaptations for use
-with many other commonly-used packages.
-Copyright (c) 2009-2010 Vafa Khalighi
-v1.1.4c, <commit 80>, 2010/08/01
-License: LaTeX Project Public License, version 1.3c or higher (your choice)
-Home: http://bitbucket.org/vafa/bidi
-Location on CTAN: /macros/latex/contrib/bidi
-\end{lstlisting}
-\section{Basics}
-\subsection{Loading The Package}
-You can load the package in the ordinary way;
-\begin{BDef}
-\Lcs{usepackage}\OptArgs\Largb{bidi}
-\end{BDef}
-Where \texttt{options} of the package are explained later in \autoref{options}.
-
-When loading the package, it is important to know that:
-\begin{enumerate}
-\item \textsf{bidi} should be the last package that you load, because otherwise you are certainly going to overwrite \textsf{bidi}'s definitions and consequently, you will not get the expected output.
-\item In fact, \textsf{bidi} makes sure that some specific packages are loaded before \textsf{bidi}; these are those packages that \textsf{bidi} modifies them for bidirectional typesetting.
-
-If you load \textsf{bidi} before any of these packages, then you will get an error saying that you should load \textsf{bidi} as your last package.
-
-For instance, consider the following minimal example:
-\begin{lstlisting}
-\documentclass{minimal}
-\usepackage{bidi}
-\usepackage{graphicx}
-\begin{document}
-This is just a test.
-\end{document}
-\end{lstlisting}
-Where \textsf{graphicx} is loaded after \textsf{bidi}. If you run \texttt{xelatex} on this document, you will get an error which looks like this:
-\begin{lstlisting}[numbers=none,backgroundcolor=\color{skugga}]
-! Package bidi Error: Oops! you have loaded package graphicx after bidi package
-. Please load package graphicx before bidi package, and then try to run xelatex
- on your document again.
-
-See the bidi package documentation for explanation.
-Type H <return> for immediate help.
- ...
-
-l.4 \begin{document}
-
-?
-
-\end{lstlisting}
-\end{enumerate}
-\subsection{Commands for Version number, Mercurial commit number and Date of The Package}
-\begin{BDef}
-\Lcs{bidiversion}\quad\Lcs{bidicommit}\quad\Lcs{bididate}
-\end{BDef}
-\begin{itemize}
-\item \Lcs{bidiversion} gives the current version of the package.
-\item \Lcs{bidicommit} gives the current Mercurial commit number of the package.
-\item \Lcs{bididate} gives the current date of the package.
-\end{itemize}
-\begin{lstlisting}[morekeywords={bidiversion,bidicommit,bididate}]
-\documentclass{article}
-\usepackage{bidi}
-\begin{document}
-This is typeset by \textsf{bidi} package, \bidiversion, \bidicommit, \bididate.
-\end{document}
-\end{lstlisting}
-\subsection{Options of The Package\label{options}}
-There are two options, namely \texttt{RTLdocument} and \texttt{rldocument}, which are essentialy equivalent. If you pass any of these options to the package, you will be typesetting a document containing mainly RTL texts with some LTR texts. These options activate \Lcs{setRTL} (explained in \autoref{PSC}), \Lcs{RTLdblcol} (explained in \autoref{twocolumn}) and \Lcs{autofootnoterule} (explained in \autoref{footnoterule}).
-
-It is clear that if you do not pass any of these options to the package, you will be typesetting a document containing mainly LTR texts with some RTL texts.
-\subsection{Paragraph Switching Commands\label{PSC}}
-\begin{BDef}
-\Lcs{setLTR}\quad\Lcs{setLR}\quad\Lcs{unsetRL}\quad\Lcs{unsetRTL}\\
-\Lcs{setRTL}\quad\Lcs{setRL}\quad\Lcs{unsetLTR}
-\end{BDef}
-\begin{itemize}
-\item With any of the commands in the first row, you can typeset LTR paragraphs.
-\item With any of the commands in the second row, you can typeset RTL paragraphs.
-\end{itemize}
-\begin{lstlisting}
-\documentclass{article}
-\usepackage{bidi}
-\begin{document}
-\setRTL%
-Anyone who reads Old and Middle English literary texts will be
- familiar with the mid-brown volumes of the EETS, with the symbol
- of Alfred's jewel embossed on the front cover.
-
-\setLTR% Notice the blank line before \setLTR
-Anyone who reads Old and Middle English literary texts will be
- familiar with the mid-brown volumes of the EETS, with the symbol
- of Alfred's jewel embossed on the front cover.
-\end{document}
-\end{lstlisting}
-\subsection{Pargraph Switching Environments}
-\begin{BDef}
-\LBEG{LTR}\quad\Larga{text}\quad\LEND{LTR}\\
-\LBEG{RTL}\quad\Larga{text}\quad\LEND{RTL}
-\end{BDef}
-\begin{itemize}
-\item With \texttt{LTR} environment, you can typeset LTR paragraphs.
-\item With \texttt{RTL} environment, you can typeset RTL paragraphs.
-\end{itemize}
-\begin{lstlisting}
-\documentclass{article}
-\usepackage{bidi}
-\begin{document}
-\begin{RTL}
-Anyone who reads Old and Middle English literary texts will be familiar
- with the mid-brown volumes of the EETS, with the symbol
- of Alfred's jewel embossed on the front cover.
-\begin{LTR}
-Anyone who reads Old and Middle English literary texts will be familiar
- with the mid-brown volumes of the EETS, with the symbol
- of Alfred's jewel embossed on the front cover.
-\end{LTR}
-And we are still typesetting RTL.
-\end{RTL}
-\end{document}
-\end{lstlisting}
-\subsection{Typesetting Short LTR and RTL Texts}
-\begin{BDef}
-\Lcs{LRE}\Largb{\Larga{text}}\quad\Lcs{LR}\Largb{\Larga{text}}\\
-\Lcs{RLE}\Largb{\Larga{text}}\quad\Lcs{RL}\Largb{\Larga{text}}
-\end{BDef}
-\begin{itemize}
-\item With any of the commands in the first row, you can typeset short LTR text inside RTL paragraphs.
-\item With any of the commands in the second row, you can typeset short RTL text inside LTR paragraphs.
-\end{itemize}
-\begin{lstlisting}
-\begin{document}
-\begin{RTL}
-Anyone who reads Old and Middle English \LRE{Short LTR text} literary texts will be familiar
- with the mid-brown volumes of the EETS, with the symbol
- of Alfred's jewel embossed on the front cover.
-\begin{LTR}
-Anyone who reads Old and Middle English \RLE{Short RTL text} literary texts will be familiar
- with the mid-brown volumes of the EETS, with the symbol
- of Alfred's jewel embossed on the front cover.
-\end{LTR}
-\end{RTL}
-\end{document}
-\end{lstlisting}
-\subsection{Footnotes}
-\begin{BDef}
-\Lcs{footnote}\OptArg{num}\Largb{\Larga{text}}\quad\Lcs{LTRfootnote}\OptArg{num}\Largb{\Larga{text}}\quad\Lcs{RTLfootnote}\OptArg{num}\Largb{\Larga{text}}\\
-\Lcs{setfootnoteRL}\quad\Lcs{setfootnoteLR}\quad\Lcs{unsetfootnoteRL}\\
-\Lcs{thanks}\Largb{\Larga{text}}\quad\Lcs{LTRthanks}\Largb{\Larga{text}}\quad\Lcs{RTLthanks}\Largb{\Larga{text}}
-\end{BDef}
-\begin{itemize}
-\item \Lcs{footnote} in RTL mode produces an RTL footnote while in LTR mode it produces an LTR footnote.
-\item \Lcs{LTRfootnote} will always produce an LTR footnote, independent on the current mode.
-\item \Lcs{RTLfootnote} will always produce an RTL footnote, independent on the current mode.
-\item Specifying a \Lcs{setfootnoteRL} command anywhere will make \Lcs{footnote} produce an RTL footnote.
-\item Specifying either a \Lcs{setfootnoteLR} or an \Lcs{unsetfootnoteRL} command anywhere will make \Lcs{footnote} produce an LTR footnote.
-\item \Lcs{thanks} (to be used only inside \Lcs{author} or \Lcs{title} argument) in RTL mode produces an RTL footnote while in LTR mode it produces an LTR footnote.
-\item \Lcs{LTRthanks} (to be used only inside \Lcs{author} or \Lcs{title} argument) will always produce an LTR footnote, independent on the current mode.
-\item \Lcs{RTLthanks} (to be used only inside \Lcs{author} or \Lcs{title} argument) will always produce an RTL footnote, independent on the current mode.
-\end{itemize}
-\begin{BDef}
-\Lcs{footnotetext}\OptArg{num}\Largb{\Larga{text}}\quad\Lcs{LTRfootnotetext}\OptArg{num}\Largb{\Larga{text}}\\
-\Lcs{RTLfootnotetext}\OptArg{num}\Largb{\Larga{text}}
-\end{BDef}
-\begin{itemize}
-\item \Lcs{footnotetext} used in conjunction with \Lcs{footnotemark}, in RTL mode produces an RTL footnote while in LTR mode it produces an LTR footnote.
-\item \Lcs{LTRfootnotetext} used in conjunction with \Lcs{footnotemark}, will always produce an LTR footnote, independent on the current mode.
-\item \Lcs{RTLfootnotetext} used in conjunction with \Lcs{footnotemark}, will always produce an RTL footnote, independent on the current mode.
-\end{itemize}
-\subsubsection{Footnote Rule\label{footnoterule}}
-The behavior of footnote rules can also be controlled.
-\begin{BDef}
-\Lcs{autofootnoterule}\quad\Lcs{rightfootnoterule}\quad\Lcs{leftfootnoterule}\\
-\Lcs{LRfootnoterule}\quad\Lcs{textwidthfootnoterule}
-\end{BDef}
-\begin{itemize}
-\item \Lcs{autofootnoterule} will draw the footnote rule right or left aligned based on the direction of the first footnote following the rule (i.e., put in the current page).
-\item \Lcs{rightfootnoterule} will put footnote rule on the right-hand side.
-\item \Lcs{leftfootnoterule} or \Lcs{LRfootnoterule} will put footnote rule on the left-hand side.
-\item \Lcs{textwidthfootnoterule} will draw the footnote rule with a width equal to \Lcs{textwidth}.
-\end{itemize}
-\subsection{Two Column Typesetting\label{twocolumn}}
-\begin{BDef}
-\Lcs{RTLdblcol}\quad\Lcs{LTRdblcol}
-\end{BDef}
-If you pass the \texttt{twocolumn} option to the class file and if the main direction of the document is RTL, then you get RTL two column and if the main direction of the document is LTR, then you get LTR two column. In addition, \Lcs{RTLdblcol} allows you to have RTL two column typesetting and \Lcs{LTRdblcol} allows you to have LTR two column typesetting as the options of the class file.
-\subsection{RTL cases}
-\begin{BDef}
-\Lcs{rcases}\Largb{\Lcs{text}\Largb{\Larga{brach1}}\Lcs{cr}\Lcs{text}\Largb{\Larga{brach2}}\Lcs{cr}%
-\Lcs{text}\Largb{\Larga{brach3}}\ldots}\\
-\Lcs{text}\Largb{\Larga{main}}
-\end{BDef}
-\Lcs{rcases} is defined in bidi for typesetting RTL cases. \Lcs{text} is defined in \textsf{amsmath} package, so this means that you need to load \textsf{amsmath} package too.
-\begin{lstlisting}[morekeywords={rcases,text}]
-\documentclass{article}
-\usepackage{amsmath}
-\usepackage{bidi}
-\begin{document}
-\setRTL
-\[\rcases{\text{men}\cr\text{women}}
-\text{Humans Beings}
-\]
-\end{document}
-\end{lstlisting}
-\subsection{Typesetting Logos}
-\begin{BDef}
-\Lcs{XeTeX}\quad\Lcs{XeLaTeX}
-\end{BDef}
-\textsf{bidi} defines \XeTeX\ and \XeLaTeX\ logos and in addition, it makes sure that logos, \TeX, \LaTeX, \LaTeXe\ are typeset LTR.
-\subsection{Separation Mark}
-\begin{BDef}
-\Lcs{SepMark}\Largb{\Larga{mark}}\quad\Lcs{@SepMark}
-\end{BDef}
-Generally in Standard \LaTeX, dot is used for separation between section numbers, equation numbers any anything else which needs to be seperated. You can use \Lcs{SepMark} to use any other mark as the seperation mark instead a dot.
-\begin{lstlisting}[morekeywords={SepMark,subsection,subsubsection}]
-\documentclass{article}
-\usepackage{bidi}
-\SepMark{-}
-\begin{document}
-\section{First}
-\subsection{Second}
-\subsubsection{Third}
-\end{document}
-\end{lstlisting}
-
-If you decide to change the numbering of chapters, sections, subsections, equations, figures and \ldots, you should either load \textsf{amsmath} package and use \Lcs{numberwithin} macro to do this or do the ordinary way, but instead dot write \Lcs{@SepMark}. Using dot instead \Lcs{@SepMark} will certainly make trouble.
-
-\begin{lstlisting}[morekeywords={theequation,thesection,SepMark}]
-\documentclass{article}
-\usepackage{bidi}
-\SepMark{-}
-\makeatletter
-\renewcommand\theequation{\thesection\@SepMark\@arabic\c@equation}
-\makeatother
-\begin{document}
-\section{First}
-\begin{equation}
-x^2+y^2=z^2
-\end{equation}
-\end{document}
-\end{lstlisting}
-\subsection{\Lcs{raggedright}, \Lcs{raggedleft} commands, \texttt{flushleft} and \texttt{flushright} Environments}
-\Lcs{raggedright} command and \texttt{flushleft} environment put the text on the left hand side and \Lcs{raggedleft} command and \texttt{flushright} environment put the text on the right hand side, independent on the current mode.
-\subsection{Primitive-like commands}
-\begin{BDef}
-\Lcs{hboxR}\quad\Lcs{hboxL}\quad\Lcs{vboxR}\quad\Lcs{vboxL}
-\end{BDef}
-\begin{itemize}
-\item The syntax of \Lcs{hboxR} is exatly the same as the syntax of \Lcs{hbox}, but its contents is always typeset RTL.
-\item The syntax of \Lcs{hboxL} is exatly the same as the syntax of \Lcs{hbox}, but its contents is always typeset LTR.
-\item The syntax of \Lcs{vboxR} is exatly the same as the syntax of \Lcs{vbox}, but its contents is always typeset RTL.
-\item The syntax of \Lcs{vboxL} is exatly the same as the syntax of \Lcs{vbox}, but its contents is always typeset LTR.
-\end{itemize}
-\subsection{Something To know about \Lcs{hbox}}
-If you enable RTL typesetting and typeset an horizontal box at the beginning of the document:
-\begin{lstlisting}
-\documentclass{article}
-\usepackage{bidi}
-\setRTL
-\begin{document}
-\hbox{This is a Test}
-\end{document}
-\end{lstlisting}
-You see that even you have used \Lcs{setRTL}, the horizontal box appears LTR (It appears on the left hand side and its content is typeset left to right). This is because when \TeX{} starts, it is in the vertical mode so if you need to have that \Lcs{hbox} appear RTL, then write \Lcs{leavevmode} before \Lcs{hbox}:
-\begin{lstlisting}
-\documentclass{article}
-\usepackage{bidi}
-\setRTL
-\begin{document}
-\leavevmode\hbox{This is a Test}
-\end{document}
-\end{lstlisting}\subsection{\Lcs{bidillap} and \Lcs{bidirlap} Commands}
-In RTL mode, \Lcs{llap} and \Lcs{rlap} do oposite things. Since these two macros are used in a lot of classes and packages, instead modifying these two macros, we have created two new macros \Lcs{bidillap} and \Lcs{bidirlap} which give logical results.
-\subsection{\textsf{LTRitems} and \textsf{RTLitems} Environments}
-If you typeset an \textsf{itemize}, or an \textsf{enumerate}, or a \textsf{description} environment where all \Lcs{item}s are one directional, you have no problem at all as shown below:
-\begin{lstlisting}
-\documentclass{article}
-\begin{document}
-Anyone who reads Old and Middle English literary texts will be familiar with the mid-brown volumes of the EETS, with the symbol of Alfred's
-\begin{enumerate}
-\item Anyone who reads Old and Middle English literary texts will be familiar with the mid-brown volumes of the EETS, with the symbol of Alfred's
-\item Anyone who reads Old and Middle English literary texts will be familiar with the mid-brown volumes of the EETS, with the symbol of Alfred's
-\end{enumerate}
-\end{document}
-\end{lstlisting}
-However if the above example becomes bidirectional, as shown below:
-\begin{lstlisting}
-\documentclass{article}
-\usepackage{bidi}
-\begin{document}
-Anyone who reads Old and Middle English literary texts will be familiar with the mid-brown volumes of the EETS, with the symbol of Alfred's
-\begin{enumerate}
-\item Anyone who reads Old and Middle English literary texts will be familiar with the mid-brown volumes of the EETS, with the symbol of Alfred's
-\setRTL
-\item Anyone who reads Old and Middle English literary texts will be familiar with the mid-brown volumes of the EETS, with the symbol of Alfred's
-\end{enumerate}
-\end{document}
-\end{lstlisting}
-Then some people may argue that this typographically does not look promising. For this purpose, \textsf{RTLitems} environment is provided which has the following syntax:
-\begin{BDef}
-\LBEG{RTLitems}\OptArg{length}\\
-\quad\Lcs{item} \Larga{text}\\
-\quad\ldots\\
-\LEND{RTLitems}
-\end{BDef}
-Where \OptArg{length} is optional and if you do not give it, the value of \Lcs{rightskip} will be equal to the value of \Lcs{labelwidth}\(+\)\Lcs{labelsep} by default and if you give this optional length, then the value of \Lcs{rightskip} will be equal to the value of \Lcs{labelwidth}\(+\)\Larg{given length}. Thus by using the \textsf{RTLitems} environment, the previous example will look like the following:
-\begin{lstlisting}
-\documentclass{article}
-\usepackage{bidi}
-\begin{document}
-Anyone who reads Old and Middle English literary texts will be familiar with the mid-brown volumes of the EETS, with the symbol of Alfred's
-\begin{enumerate}
-\item Anyone who reads Old and Middle English literary texts will be familiar with the mid-brown volumes of the EETS, with the symbol of Alfred's
-\begin{RTLitems}
-\item Anyone who reads Old and Middle English literary texts will be familiar with the mid-brown volumes of the EETS, with the symbol of Alfred's
-\end{RTLitems}
-\end{enumerate}
-\end{document}
-\end{lstlisting}
-Similarly, \textsf{LTRitems} environment is defined which has the following syntax:
-\begin{BDef}
-\LBEG{LTRitems}\OptArg{length}\\
-\quad\Lcs{item} \Larga{text}\\
-\quad\ldots\\
-\LEND{LTRitems}
-\end{BDef}
-Where \OptArg{length} is optional and if you do not give it, the value of \Lcs{leftskip} will be equal to the value of \Lcs{labelwidth}\(+\)\Lcs{labelsep} by default and if you give this optional length, then the value of \Lcs{leftskip} will be equal to the value of \Lcs{labelwidth}\(+\)\Larg{given length}.
-\subsection{\Lcs{setLTRbibitems}, \Lcs{setRTLbibitems}, and \Lcs{setdefaultbibitems} commands}
-\begin{BDef}
-\Lcs{setLTRbibitems}\quad\Lcs{setRTLbibitems}\quad\Lcs{setdefaultbibitems}
-\end{BDef}
-\begin{itemize}
-\item If your whole \textsf{thebibliography} environment is inside RTL mode, but all your \Lcs{bibitem}s are LTR and you actually want to have \Lcs{bibname} to appear on the RHS, you can use \Lcs{setLTRbibitems} command before \textsf{thebibliography} environment.
-\item If your whole \textsf{thebibliography} environment is inside LTR mode, but all your \Lcs{bibitem}s are RTL and you actually want to have \Lcs{bibname} to appear on the LHS, you can use \Lcs{setRTLbibitems} command before \textsf{thebibliography} environment.
-\item \Lcs{setdefaultbibitems} is the default, when your \Lcs{bibitems} are a mixture of LTR and RTL and it does not matter what mode (LTR or RTL) your \textsf{thebibliography} environment is in. Please note that you do not have to use \Lcs{setdefaultbibitems} command in this case at all.
-
-Consider an example that your \textsf{thebibliography} environment is inside LTR mode and you have, say two \Lcs{bibitem}s. The first \Lcs{bibitem} is LTR and the second \Lcs{bibitem} is RTL. One could typeset this senario as shown below:
-\begin{lstlisting}
-\documentclass{article}
-\usepackage{bidi}
-\begin{document}
-\begin{thebibliography}{99}
-\bibitem This is the first bibitem which is LTR.
-\begin{RTLitems}
-\bibitem This is the second bibitem which is RTL.
-\end{RTLitems}
-\end{thebibliography}
-\end{document}
-\end{lstlisting}
-\end{itemize}
-
-\subsection{Typesetting margin par}
-By default, in RTL mode, \Lcs{marginpar} appears on LHS and its content is typeset RTL and in LTR mode, \Lcs{marginpar} appears on RHS and its content is typeset LTR. In addition, the three following commands are provided:
-\begin{BDef}
-\Lcs{setRTLmarginpar}\quad\Lcs{setLTRmarginpar}\quad\Lcs{setdefaultmarginpar}
-\end{BDef}
-\begin{itemize}
-\item \Lcs{setRTLmarginpar} always makes \Lcs{marginpar} to appear on LHS and the content of \Lcs{marginpar} is typeset RTL (this is independent of the current mode).
-\item \Lcs{setLTRmarginpar} always makes \Lcs{marginpar} to appear on RHS and the content of \Lcs{marginpar} is typeset LTR (this is independent of the current mode).
-\item \Lcs{setdefaultmarginpar} gives the default behaviour of \Lcs{marginpar} as described above.
-\end{itemize}
-\subsection{Typesetting of Headers and Footers}
-If the main direction of the document is RTL, then headers and footers are typeset RTL and if the main direction of the document is LTR, then headers and footers are typeset LTR.
-\subsection{Tabular Typesetting}
-In RTL mode, tabular are typeset RTL and in LTR mode, tabular are typeset LTR.
-\subsection{Equation Numbers}
-For \texttt{reqno}, equation numbers are on the right hand side and for \texttt{leqno}, equation numbers are on the left hand side, independent on the current mode.
-\section{Support For Various Packages and Classes}
-The \textsf{bidi} package supports \textsf{amsmath}, \textsf{amsthm}, \textsf{array}, \textsf{arydshln}, \textsf{breqn}, \textsf{caption}, \textsf{color}, \textsf{colortbl}, \textsf{draftwatermark}, \textsf{fancyhdr}, \textsf{flowfram}, \textsf{graphicx}, \textsf{hyperref}, \textsf{listings}, \textsf{minitoc}, \textsf{multicol}, \textsf{pdfpages}, \textsf{pstricks}, \textsf{quotchap}, \textsf{ragged2e}, \textsf{stabular}, \textsf{subfig}, \textsf{subfigure}, \textsf{supertabular}, \textsf{xtab}, \textsf{tabls}, \textsf{tabulary}, \textsf{PGF \&\ TIKZ}, \textsf{tocbibind}, \textsf{tocloft}, \textsf{tocstyle}, \textsf{wrapfig}, \textsf{xcolor}, \textsf{xltxtra} packages, \textsf{amsart}, \textsf{amsbook}, \textsf{artikel1}, \textsf{artikel2}, \textsf{artikel3}, \textsf{extarticle}, \textsf{standrad article}, \textsf{boek}, \textsf{boek3}, \textsf{standard book}, \textsf{bookest}, \textsf{extbook}, \textsf{extletter}, \textsf{scrlettr},\textsf{standard letter}, \textsf{memoir}, \textsf{extreport}, \textsf{rapport1}, \textsf{rapport3}, \textsf{refrep}, \textsf{standard report}, \textsf{scartcl}, \textsf{scrbook}, \textsf{scrreprt} classes and any other packages and classes that relies on these packages and classes. This means, you can use all these packages and classes in addition to other packages and classes that rely on these packages and classes and use their functionality fully for your bidirectional documents.
-
-We now give some details that you should know about the supported packages or classes.
-\subsection{Color}
-You can use \textsf{color} and \textsf{xcolor} packages to typeset texts in colours and colour boxes produced by \Lcs{colorbox} and \Lcs{fcolorbox} commands. Please note that your Coloured text should not span more than a line, if your text spans more than a line, you will be in trouble which means your whole document, page or paragraph may be coloured. If your texts spans more than a line, then you should use \textsf{xecolour} package.
-
-Also if you are going to use \Lcs{color} command to colour the text at the beginning of a paragraph, then you should have \Lcs{leavevmode} before \Lcs{color} command.
-
-For having coloured tabular, you can use \textsf{colortbl} package.
-\subsection{Hyperref}
-The \textsf{hyperref} package works fine with bidirectional documents if and only if, your link will not span more than a line. If your link spans more than a line, then your whole document, or page or paragraph may be linked.
-
-
-\subsection{\textsf{flowfram} Package}
-You can use \textsf{flowfram} package for your bidirectional documents. Please note that \textsf{flowfram} package provides support for bidirectional column typesetting, for details, see its manual.
-\subsection{Multicolumn Typesetting}
-In the previous versions of \textsf{bidi} package, it was recommended that you need to use \textsf{fmultico} package instead the original \textsf{multicol} package for RTL multicolumn typesetting. This is not the case any more and you should not use buggy \textsf{fmultico} package any more. Simply load the original \textsf{multicol} package before loading \textsf{bidi}. \textsf{bidi} now supports \textsf{multicol} package and you can typeset bidirectional multi columns.
-
-In addition, you also can use \textsf{vwcol} package for variable width bidirectional column typesetting.
-\section{Extra \textsf{bidi} Packages and Classes}
-\subsection{The Issue of Footnote}
-In standard \LaTeX\, you can not use footnotes inside \Lcs{chapter}, \Lcs{part}, \Lcs{section}, \Lcs{subsection}, \Lcs{subsection} and any other section-like commands, \Lcs{caption} and tabular environment.
-
-\textsf{bidi} package provides \textsf{bidiftnxtra} package that solves the issue of footnote in standard \LaTeX. \textsf{bidiftnxtra} package should be loaded after \textsf{bidi} package.
-\subsection{Typesetting Poems}
-The \textsf{bidi} package provides \textsf{bidipoem} package for typesetting Persian poems. It provides four environments, \texttt{traditionalpoem}, \texttt{modernpoem} and starred version of these. In the starred version of these environments you do not need to type {\ttfamily\symbol{92}\symbol{92}} and that is the only difference with the normal version of the environments. The \texttt{traditionalpoem} environment and its starred version are also useful for typesetting Classic Arabic poetry, in fact this package may also be useful for other RTL languages.
-
-When using \textsf{bidipoem} package, at least you need to run \texttt{xelatex} twice on your document. In fact, if you run \texttt{xelatex} just once on your document, you get a message saying ``Unjustified poem. Rerun \texttt{XeLaTeX} to get poem right''.
-
-When you typeset your poems, you might get underfull \Lcs{hbox} messages. This is absolutely normal and if you want to get rid of these underfull \Lcs{hbox} messages, then you would need to use Kashida.
-
-If you need to change the default distance between two verses, you can do just that by:
-\begin{BDef}
-\Lcs{renewcommand}\Lcs{poemcolsepskip}\Largb{\Larga{length}}
-\end{BDef}
-\begin{BDef}
-\LBEG{traditionalpoem}\\
-\Larga{verse1}\texttt{\&}\Larga{verse2}{\ttfamily\symbol{92}\symbol{92}}\\
-\Larga{verse3}\texttt{\&}\Larga{verse4}{\ttfamily\symbol{92}\symbol{92}}\\
-\ldots\\
-\LEND{traditionalpoem}
-\end{BDef}
-\begin{BDef}
-\LBEG{traditionalpoem*}\\
-\Larga{verse1}\texttt{\&}\Larga{verse2}\\
-\Larga{verse3}\texttt{\&}\Larga{verse4}\\
-\ldots\\
-\LEND{traditionalpoem*}
-\end{BDef}
-\subsection{Typesetting Resum\'e}
-The \textsf{bidi} package provides \textsf{bidimoderncv}\footnote{This class is the modified version of \textsf{moderncv} class.} class for typesetting resum\'es. There are two examples, namely \texttt{test-casualcv.tex} and \texttt{test-classiccv.tex}, in the \textsf{doc} folder than you can look and learn how you can use it.
-\subsection{Print Two Pages On A Single Page}
-\textsf{bidi} package provides \textsf{bidi2in1} package for printing two pages on a single (landscape) A4 page. Page numbers appear on the included pages, and not on the landscape 'container' page.
-
-\subsection{Producing Presentations}
-At the moment, there is only one class that you can prepare your presentations
-with.
-
-\subsubsection{\textsf{bidipresentation} Class}
-\textsf{bidipresentation} is a simple class for presentations to be shown on
-screen or beamer. It is derived from \LaTeX's article class. The “virtual paper
-size” of documents produced by this class: width=128mm, height=96mm.
-\textsf{bidipresentation} requires that the \textsf{fancyhdr} and \textsf{geometry} packages
-are available on the system. Enhancements to the \textsf{bidipresentation}
-class are easily made available by other packages, these include slides with
-a background from a bitmap (\textsf{eso-pic} package).
-
-\paragraph{Usage:}
-The class is used with
-\begin{BDef}
-\Lcs{documentclass}\OptArgs\Largb{bidipresentation}
-\end{BDef}
- Options of the article class are also available to \textsf{bidipresentation}, e. g.
- 10pt, 11pt, 12pt for selection of font size. However, not all options of the
- article class will be appropriate for a presentation class, e. g. twocolumn.
-
-A simple example document:
-\begin{lstlisting}[morekeywords={AddToShipoutPicture,includegraphics,distance}]
- \documentclass[12pt]{bidipresentation}
- \usepackage{eso-pic}
- \usepackage[RTLdocument]{bidi}
- \pagestyle{pres}
- \AddToShipoutPicture{
- \includegraphics{gradient2.png}
-}
- \begin{document}
- \begin{titlepage}
-\centering
- \distance{1}
- {
-\Huge \bfseries Title of the presentation \par
-}
- \vspace{1.3ex} \large
- Author\\[2ex]Institution
- \distance{2}
- \end{titlepage}
- \begin{plainslide}[Title of Page]
-The first page
-\end{plainslide}
-\begin{rawslide}
-The second page
- \end{rawslide}
-\end{document}
-\end{lstlisting}
-The title page can be created within the \texttt{titlepage} environment, the \Lcs{maketitle}
-command is not available. Slides may be created with the \texttt{plainslide} environment, you may add the title of the slide with the optional parameter. The
-contents of the slide are centered vertically. Another environment generating a slide is \texttt{rawslide}: slides are written without title, contents are not
-vertically centered.
-
-The \Lcs{distance}\Largb{\Larga{number}} command allows to introduce vertical space into
-slides constructed with the \texttt{rawslide} and \texttt{titlepage} environments. You should
-use pairs of \Lcs{distance}\Largb{} commands with numbers indicating the relative
-height of empty space, see the titlepage in the example above.
-
-Pictures can be included with the \Lcs{includegraphics} command of the \textsf{graphicx} package. Please be aware that the dimensions of the pages are 128mm $\times$
-96mm and therefore included graphics are scaled appropriately.
-
-\paragraph{Enhancements to \textsf{bidipresentation}:}
-
-\subparagraph{Fill background of a presentation with bitmaps:}
-\textsf{eso-pic} package allows you to paint the background with a picture:
-\begin{lstlisting}[morekeywords={AddToShipoutPicture,includegraphics}]
-\usepackage{eso-pic}
-...
-\AddToShipoutPicture{
-\includegraphics{gradient2.png}
-}
-\end{lstlisting}
-\Lcs{AddToShipoutPicture}\Largb{} puts the picture on every page, \Lcs{AddToShipoutPicture*}\Largb{}
-puts it on to the current page, \Lcs{ClearShipoutPicture} clears the background
-beginning with the current page. Details of \textsf{eso-pic}’s commands can be
-found in its own documentation.
-
-
-
-\section{Some Useful Internal Macros}
-There are some useful internal macros that might be helpful for you. This section, explains all these useful internals.
-\subsection{RTL Conditional}
-\begin{BDef}
-\Lcs{if@RTL}
-\end{BDef}
-\Lcs{if@RTL} conditional is true inside RTL mode and it is false in LTR mode.
-\subsection{Main RTL Conditional}
-\begin{BDef}
-\Lcs{if@RTLmain}
-\end{BDef}
-If the main direction of the document is RTL, \Lcs{if@RTLmain} is true and if the main direction of the document is LTR, \Lcs{if@RTLmain} is false.
-\subsection{Latin Conditional}
-\begin{BDef}
-\Lcs{if@Latin}
-\end{BDef}
-\Lcs{if@Latin} inside any environment that uses Latin font is true and inside any environment that uses RTL font is false.
-\subsection{Tags Internal Macro}
-\begin{BDef}
-\Lcs{@iftagsloaded}\Largb{\Larga{tags name}}\Largb{\Larga{do thing(s) if the tag is loaded}}\\
-\Largb{\Larga{do thing(s) if the tag is not loaded}}
-\end{BDef}
-As you can see, the syntax of \Lcs{@iftagsloaded} is exactly the same as the syntax of \Lcs{@ifpackageloaded} and \Lcs{@ifclassloaded}. By tags, we mean things like \texttt{leqno} or \texttt{reqno}. Please note that in the argument \Larga{tags name}, the extension \texttt{clo} should not be given.
-\subsection{Definition File Loaded Internal Macro}
-\begin{BDef}
-\Lcs{@ifdefinitionfileloaded}\Largb{\Larga{definition file name}}\\
-\Largb{\Larga{do thing(s) if the definition file is loaded}}\\
-\Largb{\Larga{do thing(s) if the definition file is not loaded}}
-\end{BDef}
-As you can see, the syntax of \Lcs{@ifdefinitionfileloaded} is exactly the same as the syntax of \Lcs{@ifpackageloaded} and \Lcs{@ifclassloaded}. By definition file, we mean things like \texttt{hyperref-bidi.def} or \texttt{wrapfig-bidi.def}. Please note that in the argument \Larga{definition file name}, the extension \texttt{def} should not be given.
-\subsection{Tabular Conditional}
-\begin{BDef}
-\Lcs{if@RTLtab}
-\end{BDef}
-If the tabular is typeset RTL, \Lcs{if@RTLtab} is true and if the tabular is typeset LTR, \Lcs{if@RTLtab} is false.
-\subsection{Footnote Conditional}
-\begin{BDef}
-\Lcs{if@RTL@footnote}
-\end{BDef}
-When footnotes are typeset RTL, \Lcs{if@RTL@footnote} is true and when footnotes are typeset LTR, \Lcs{if@RTL@footnote} is false.
-\subsection{Direction Ensuring Macros}
-\begin{BDef}
-\Lcs{@ensure@RTL}\Largb{\Larga{text}}\quad\Lcs{@ensure@RL}\Largb{\Larga{text}}\quad\Lcs{@ensure@LTR}\Largb{\Larga{text}}\\
-\Lcs{@ensure@LR}\Largb{\Larga{text}}\quad
-\Lcs{@ensure@dir}\Largb{\Larga{text}}\quad\Lcs{@ensure@maindir}\Largb{\Larga{text}}
-\end{BDef}
-\begin{itemize}
-\item \Lcs{@ensure@RTL} and \Lcs{@ensure@RL} internals make sure that \Larga{text} is always typeset RTL, independent on the current mode.
-\item \Lcs{@ensure@LTR} and \Lcs{@ensure@LR} internals make sure that \Larga{text} is always typeset LTR, independent on the current mode.
-\item \Lcs{@ensure@dir} and \Lcs{@ensure@maindir} if used in RTL mode, they put \Larga{text} inside \Lcs{RLE} and if used in LTR mode, they put the text as it is.
-\end{itemize}
-\subsection{Reset Direction Macro}
-\begin{BDef}
-\Lcs{save@dir}\quad\Lcs{saved@@dir}\quad\Lcs{reset@dir}
-\end{BDef}
-\begin{itemize}
-\item \Lcs{save@dir}, if the direction of typesetting is RTL, defines \Lcs{saved@@dir} to be RTL and if the direction of typesetting is LTR, defines \Lcs{saved@@dir} to be LTR.
-\item \Lcs{reset@dir}, if \Lcs{saved@@dir} is defined as RTL, inserts \Lcs{setRTL} otherwise, if \Lcs{saved@@dir} is defined as LTR, inserts \Lcs{setLTR}, otherwise does nothing.
-\end{itemize}
-%\part{Implementation}
-%In this section, we describe the implementation of bidi package in whole.
-%\lstset{firstnumber=last}
-%\lstset{language=[LaTeX]Tex,
-% keywordstyle=\color{mygreen},
-% basicstyle=\normalfont\ttfamily,
-% commentstyle=\color{blue}\ttfamily,
-% stringstyle=\rmfamily,
-% numbers=none,
-% numberstyle=\scriptsize,
-% stepnumber=5,
-% numbersep=8pt,
-% showstringspaces=false,
-% breaklines=true,
-% frameround=ftff,
-% frame=none,
-% backgroundcolor=\color{white}
-%}
-%\lstset{numbers=left,
-% numberstyle=\scriptsize,
-% stepnumber=1,
-% numbersep=8pt
-%}
-%\lstset{morekeywords={bididate,bidiversion,bidicommit}}
-%\section{File \textsf{bidi.sty}}
-%\begin{lstlisting}[firstnumber=1]
-%\NeedsTeXFormat{LaTeX2e}
-%\end{lstlisting}
-%Here we define the date, version number and commit number of the package.
-%\begin{lstlisting}
-%\def\bididate{2010/07/25}
-%\def\bidiversion{v1.1.0}
-%\def\bidicommit{commit 44}
-%\end{lstlisting}
-\end{document}
diff --git a/Master/texmf-dist/doc/latex/bidi/bidi.pdf b/Master/texmf-dist/doc/latex/bidi/bidi.pdf
new file mode 100644
index 00000000000..ad0fd2b146d
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/bidi/bidi.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/bidi/bidisample2e.tex b/Master/texmf-dist/doc/latex/bidi/bidisample2e.tex
index 4f791ead282..b05e6488567 100644
--- a/Master/texmf-dist/doc/latex/bidi/bidisample2e.tex
+++ b/Master/texmf-dist/doc/latex/bidi/bidisample2e.tex
@@ -1,4 +1,3 @@
-
\documentclass{article} % Specifies the document class
\usepackage[RTLdocument]{bidi}
% The preamble begins here.
diff --git a/Master/texmf-dist/doc/latex/bidi/bidismall2e.tex b/Master/texmf-dist/doc/latex/bidi/bidismall2e.tex
index 16a02e49240..ea4c975d485 100644
--- a/Master/texmf-dist/doc/latex/bidi/bidismall2e.tex
+++ b/Master/texmf-dist/doc/latex/bidi/bidismall2e.tex
@@ -1,6 +1,3 @@
-
-
-
\documentclass{article} % Your input file must contain these two lines
\usepackage[RTLdocument]{bidi}
\begin{document} % plus the \end{document} command at the end.
diff --git a/Master/texmf-dist/doc/latex/bidi/presentation-sample.tex b/Master/texmf-dist/doc/latex/bidi/presentation-sample.tex
index e562e9d83e9..c82e05fc44b 100644
--- a/Master/texmf-dist/doc/latex/bidi/presentation-sample.tex
+++ b/Master/texmf-dist/doc/latex/bidi/presentation-sample.tex
@@ -4,7 +4,6 @@
\usepackage[RTLdocument]{bidi}
\pagestyle{pres}
-
\begin{document}
\begin{titlepage}
\distance{1}
@@ -45,4 +44,3 @@
\end{rawslide}
\end{document}
-
diff --git a/Master/texmf-dist/doc/latex/bidi/test-arydshln.tex b/Master/texmf-dist/doc/latex/bidi/test-arydshln.tex
index a19c6994bd1..c6b7cc8029f 100644
--- a/Master/texmf-dist/doc/latex/bidi/test-arydshln.tex
+++ b/Master/texmf-dist/doc/latex/bidi/test-arydshln.tex
@@ -24,4 +24,4 @@ AAA&BBB&CCC\\\cdashline{1-2}[.4pt/1pt]
\end{tabular}
\end{center}
\end{RTL}
-\end{document} \ No newline at end of file
+\end{document}
diff --git a/Master/texmf-dist/doc/latex/bidi/test-brochure.tex b/Master/texmf-dist/doc/latex/bidi/test-brochure.tex
index 3066e0e4b41..f37b160a726 100644
--- a/Master/texmf-dist/doc/latex/bidi/test-brochure.tex
+++ b/Master/texmf-dist/doc/latex/bidi/test-brochure.tex
@@ -6,60 +6,43 @@
\usepackage[colorlinks,setpagesize=false]{hyperref}
\usepackage[RTLdocument]{bidi}
-% adjust \textheight so that it is an integer multiple of
-% \baselineskip
\adjustheight{\textheight}
-% set up pagelayout. One column for title page
-% two columns for the rest.
\onecolumninarea[1,2]{0.6\textwidth}{\textheight}{0.4\textwidth}{0pt}
\twocolumninarea[>2]{0.6\textwidth}{\textheight}{0.4\textwidth}{0pt}
-% Set up dynamic frame on the left. This is where
-% the headings will go.
\newdynamicframe{0.4\textwidth}{\textheight}{0pt}{0pt}[left]
-% put the chapter headings in this frame
\dfchaphead*{left}
-% Modify the default style
\renewcommand{\DFchapterstyle}[1]{%
\raggedright\Huge\slshape\MakeUppercase{#1}\par}
-% Make static frames for background (only for page 1)
\vtwotone[1]{0.6\paperwidth}{[cmyk]{0.65,0.13,0,0}}{backleft}%
{0.4\paperwidth}{[cmyk]{0.94,0.54,0,0}}{backright}
-% Make a border along the top of each page
\vtwotonetop{1cm}{0.6\paperwidth}{[cmyk]{0.65,0.13,0,0}}{topleft}%
{0.4\paperwidth}{[cmyk]{0.94,0.54,0,0}}{topright}
-% make a static frame for the logo
\newstaticframe{0.2\textwidth}{0.25\textheight}{0pt}{0pt}[logo]
-% empty page style, because I am going to make my own
\pagestyle{empty}
-% Each new chapter sets \thispagestyle{\chapterfirstpagestyle}, change this empty as well
-\renewcommand{\chapterfirstpagestyle}{empty}
+\renewcommand{\chapterfirstpagestyle}{empty}
-% Now make a frame in which to put my own customized footer
\newdynamicframe[>1]{\textwidth}{\headheight}{0pt}{-\footskip}[footer]
-% set the contents of the frame:
\setdynamiccontents*{footer}{%
School of Computing Sciences, University of East Anglia\hfill
http://www.cmp.uea.ac.uk/\hfill
page \thepage\ of \pageref*{lastpage}}
-
\newcommand{\env}[1]{\texttt{#1}}
\newcommand{\cmdname}[1]{\texttt{\symbol{92}#1}}
\newcommand{\meta}[1]{\textnormal{\textless\textit{#1}\textgreater}}
\begin{document}
-% not a very interesting logo
\setstaticcontents*{logo}{\sffamily{\Huge\slshape FLF} Flowfram}
{\noindent
@@ -68,19 +51,18 @@ page \thepage\ of \pageref*{lastpage}}
\noindent\large\MakeUppercase{Nicola Talbot}\\
}
-
\chapter{Introduction}
The \textsl{flowfram} package is designed to enable you to create
-frames in a document such that the
-contents of the \env{document} environment flow from one
-frame to the next in the order that they were defined.
+frames in a document such that the
+contents of the \env{document} environment flow from one
+frame to the next in the order that they were defined.
This is useful for creating posters
-or magazines or any other form of document that does not
+or magazines or any other form of document that does not
conform to the standard one or two column layout.
This is a modified version of the manual for the \textsl{flowfram} package.
-It is intended to illustrated what can be done. See the full
+It is intended to illustrated what can be done. See the full
manual (ffuserguide.pdf) for
a comprehensive description, as some parts of this document
may now be out of date.
@@ -93,8 +75,8 @@ This is column~\thedisplayedframe.
The main type of frame is the flow frame. This is described on
column~\ref{flow:flowframe} on page~\pageref{flow:flowframe}.
The order used to draw the contents of each frame on the page
-is described in column~\ref{flow:stacking} on
-page~\pageref{flow:stacking}. Floats are describe in
+is described in column~\ref{flow:stacking} on
+page~\pageref{flow:stacking}. Floats are describe in
column~\ref{flow:floats} on page~\pageref{flow:floats}.
\chapter{Setting up Frames}
@@ -102,16 +84,16 @@ column~\ref{flow:floats} on page~\pageref{flow:floats}.
This is column~\thedisplayedframe.
The \textsl{flowfram} package provides three types of frame:
-{flow frames}, {static
+{flow frames}, {static
frames} and {dynamic frames}.
\section*{Flow Frames}
\labelflow{flow:flowframe}
The flow frame is the principle type of frame.
-The text of the \env{document} environment will flow from
-one frame to the next in order of definition. Each
-flow frame has an associated width, height,
+The text of the \env{document} environment will flow from
+one frame to the next in order of definition. Each
+flow frame has an associated width, height,
position on the page, and optionally a border.
It is recommended that all the flow frames in a document
@@ -119,7 +101,7 @@ have the same width, otherwise problems may occur
when a paragraph spans to flow frames of unequal
widths. This is because \TeX's output routine does not
register the change in \cmdname{hsize} until it reaches
-a paragraph break. If it is absolutely necessary for
+a paragraph break. If it is absolutely necessary for
flow frames to have unequal widths, judicious use of
\cmdname{framebreak} is required.
@@ -128,14 +110,14 @@ flow frames to have unequal widths, judicious use of
A static frame is a rectangular area in which text neither
flows into, nor flows out of. The contents must be set
explicitly, and once set, the contents of the static frame will
-remain the same on each page until it is explicitly
-changed. Thus, a static frame can be used, for example, to make
+remain the same on each page until it is explicitly
+changed. Thus, a static frame can be used, for example, to make
a company logo appear in the same place on every page.
\section*{Dynamic Frames}
A dynamic frame is similar to a static frame, but its contents
-are re-typeset on each page. (A static frame stores its
+are re-typeset on each page. (A static frame stores its
contents in a savebox, whereas a dynamic frame stores its
contents in a macro).
@@ -144,14 +126,14 @@ This is column~\thedisplayedframe.
\chapter{Frame Attributes}
\label{sec:modattr}
-Once you have defined the {flow frames}, {static frames} and
-{dynamic frames}, their attributes can be changed.
-The three types of frame mostly have the
+Once you have defined the {flow frames}, {static frames} and
+{dynamic frames}, their attributes can be changed.
+The three types of frame mostly have the
same set of attributes, but some are specific to a certain type.
The available attributes are as follows
(\textsuperscript{\textbf{F}} indicates the key is
-only available for {flow frames},
-\textsuperscript{\textbf{S}} indicates the key is only available
+only available for {flow frames},
+\textsuperscript{\textbf{S}} indicates the key is only available
for {static frames}
and \textsuperscript{\textbf{D}} indicates the key
is only available for {dynamic frames}):
@@ -165,40 +147,40 @@ is only available for {dynamic frames}):
\item[y=\meta{length}]\mbox{}\par The y-coordinate of the frame.
-\item[border=\meta{style}]\mbox{}\par The style of the border around the
+\item[border=\meta{style}]\mbox{}\par The style of the border around the
frame, this can take the values: \texttt{none} (no border),
-\texttt{plain} (plain border) or the name of a \LaTeX\
-frame making command without the preceding backslash.
+\texttt{plain} (plain border) or the name of a \LaTeX\
+frame making command without the preceding backslash.
The value \texttt{fbox} is equivalent to \texttt{plain}.
-\item[offset=\meta{offset}]\mbox{}\par The border offset, if it is a
+\item[offset=\meta{offset}]\mbox{}\par The border offset, if it is a
user-defined border. This is the distance from the outer
edge of the left hand border to the left edge of the
bounding box of the text inside the border. The \textsl{flowfram}
-package is able to compute the border for
-known frame making commands.
-If you define your own frame making command, you may need to
-specify the offset explicitly, or the frames
+package is able to compute the border for
+known frame making commands.
+If you define your own frame making command, you may need to
+specify the offset explicitly, or the frames
may end up shifted to the right or left.
\item[bordercolor=\meta{colour}]\mbox{}\par The colour of the border
if you are using a standard frame making command.
The colour can either be specified as, e.g.\ \texttt{green},
-or including the colour model, for example
+or including the colour model, for example
\verb/[rgb]{0,1,0}/.
-\item[textcolor=\meta{colour}]\mbox{}\par The text colour for that
-frame. Again, the colour can either be specified as,
-e.g.\ \texttt{green}, or including the colour model,
+\item[textcolor=\meta{colour}]\mbox{}\par The text colour for that
+frame. Again, the colour can either be specified as,
+e.g.\ \texttt{green}, or including the colour model,
for example \verb/[rgb]{0,1,0}/.
-\item[pages=\meta{page list}]\mbox{}\par The {list of
+\item[pages=\meta{page list}]\mbox{}\par The {list of
pages} for which the frame
should appear. This can either have the values: \texttt{all},
-\texttt{even}, \texttt{odd} or \texttt{none} (the latter
+\texttt{even}, \texttt{odd} or \texttt{none} (the latter
removes the frame from that point on---useful if you
-have multiple pages with the same number), or it can be a
-comma-separated list of single pages, or
+have multiple pages with the same number), or it can be a
+comma-separated list of single pages, or
{page ranges}.
\item[margin=\meta{side}\textsuperscript{F}]\mbox{}\par The side of
@@ -210,13 +192,13 @@ is set, the static frame will be cleared at the start of the
next page.
\item[style=\meta{cmd}\textsuperscript{D}]\mbox{}\par This should be
-the name of a command \emph{without} the preceding backslash,
-to be applied to the contents of the specified dynamic frame.
+the name of a command \emph{without} the preceding backslash,
+to be applied to the contents of the specified dynamic frame.
The command may either be a declaration, for example \verb/style=large/
which will set the contents of all the dynamic frames in a
large font, or it can be a command that takes a single argument,
for example \verb/style=textbf/
-which will make the text for all the dynamic frames come out in
+which will make the text for all the dynamic frames come out in
bold. To unset a style, do \verb/style=none/.
\end{description}
@@ -228,17 +210,17 @@ bold. To unset a style, do \verb/style=none/.
The \textsl{flowfram} package has the package option \texttt{draft}
which will draw the {bounding boxes} for
each frame defined. At the bottom right of each
-bounding box (except for the bounding box denoting the
+bounding box (except for the bounding box denoting the
typeblock), a marker will be shown to indictate the type
of frame, its IDN and its IDL.
You can see the layout for the current page (irrespective of
whether or not the \texttt{draft} option has been set) using
-the command:\newline
+the command:\newline
\cmdname{flowframeshowlayout}
The headers and footers will appear as usual (but will not
-be shown in draft mode), according to the format given by
+be shown in draft mode), according to the format given by
\cmdname{pagestyle}.
\section*{Frame Stacking Order}
@@ -260,43 +242,43 @@ package option has been used.
\end{enumerate}
This ordering can be used to determine if you want something
-to overlay or underlay everything else on the page.
+to overlay or underlay everything else on the page.
\section*{Prematurely Ending a Flow Frame}
You can force text to move immediately to the next defined
flow frame using one of the standard \LaTeX\ page breaking commands
which work in an analogous way to the way they
-work in standard two column mode.
+work in standard two column mode.
The command \cmdname{framebreak} is provided for situations
where a paragraph spans two flow frames
-of different widths, as \TeX's output routine does not
-adjust to the new value of \cmdname{hsize} until the last
-paragraph of the previous frame has ended. As a
+of different widths, as \TeX's output routine does not
+adjust to the new value of \cmdname{hsize} until the last
+paragraph of the previous frame has ended. As a
result, the end of the paragraph at the beginning of the new
flow frame retains the width of the previous flow frame.
-If you want to start a new page, rather than simply move to the
+If you want to start a new page, rather than simply move to the
next frame, use the command\newline
\cmdname{finishthispage}.
\section*{Floats}
\labelflow{flow:floats}
-Since floats (such as figures and tables) can only go in
+Since floats (such as figures and tables) can only go in
{flow frames}, this package provides
-the additional environments:
-\env{staticfigure} and
+the additional environments:
+\env{staticfigure} and
\env{statictable} which can be used in static frames
and dynamic frames. Unlike their \env{figure} and
\env{table} counterparts, they are fixed in place, and
-so do not take an optional placement specifier. The
-\cmdname{caption} and \cmdname{label} commands can
+so do not take an optional placement specifier. The
+\cmdname{caption} and \cmdname{label} commands can
be used within \env{staticfigure} and \env{statictable} as
usual.
-The standard \env{figure} and \env{table} commands will
+The standard \env{figure} and \env{table} commands will
behave as usual in the flow frames, but their starred versions,
\env{figure*} and \env{table*} behave no differently
from \env{figure} and \env{table}.
@@ -306,13 +288,13 @@ from \env{figure} and \env{table}.
The following macros can be changed using\linebreak \cmdname{renewcommand}:
\begin{itemize}
-\item \cmdname{setffdraftcolor}
+\item \cmdname{setffdraftcolor}
This sets the colour of the bounding box
when it is displayed in draft mode.
-\item
-\cmdname{setffdrafttypeblockcolor}
+\item
+\cmdname{setffdrafttypeblockcolor}
This sets the colour of
the bounding box of the typeblock when it is displayed
@@ -320,7 +302,7 @@ in draft mode.
\item \cmdname{fflabelfont}
-This sets the font size for the bounding box markers in
+This sets the font size for the bounding box markers in
draft mode.
\end{itemize}
@@ -337,7 +319,7 @@ bounding box at which to place the bounding box marker.
\item \cmdname{flowframesep}
This is the gap between the text of the frame and
-its border, for the standard border types.
+its border, for the standard border types.
\item \cmdname{flowframerule}
diff --git a/Master/texmf-dist/doc/latex/bidi/test-color.tex b/Master/texmf-dist/doc/latex/bidi/test-color.tex
index f2a9dcd7395..a7156706564 100644
--- a/Master/texmf-dist/doc/latex/bidi/test-color.tex
+++ b/Master/texmf-dist/doc/latex/bidi/test-color.tex
@@ -36,9 +36,4 @@
\bigskip
حالا نوبت جعبه‌های رنگی است یعنی مثلاً \colorbox{red}{{\color{white}سلام}} و \fcolorbox{yellow}{red}{{\color{white}این یک متن داخل جعبه رنگی است که کمی طولانی است}}
-
-
-
-
-
\end{document}
diff --git a/Master/texmf-dist/doc/latex/bidi/test3-wrapfig.tex b/Master/texmf-dist/doc/latex/bidi/test3-wrapfig.tex
index 4a61ff65f76..8d648fc4b13 100644
--- a/Master/texmf-dist/doc/latex/bidi/test3-wrapfig.tex
+++ b/Master/texmf-dist/doc/latex/bidi/test3-wrapfig.tex
@@ -7,7 +7,6 @@
\section{LTR}
\subsection*{Wrapfig test}
-
Gulls are birds in the family Laridae. They are most closely
related to the terns (family Sternidae), auks and skimmers,
and more distantly to the waders. Most gulls belong to the
@@ -44,7 +43,6 @@ Others rely on kleptoparasitism to get their food.
\setRTL
\subsection*{Wrapfig test}
-
Gulls are birds in the family Laridae. They are most closely
related to the terns (family Sternidae), auks and skimmers,
and more distantly to the waders. Most gulls belong to the
diff --git a/Master/texmf-dist/source/latex/bidi/bidi.dtx b/Master/texmf-dist/source/latex/bidi/bidi.dtx
new file mode 100644
index 00000000000..98f70687764
--- /dev/null
+++ b/Master/texmf-dist/source/latex/bidi/bidi.dtx
@@ -0,0 +1,11623 @@
+% \iffalse
+%<*internal>
+\iffalse
+%</internal>
+%<*readme>
+___________________
+The bidi package
+v1.1.5a
+
+This package provides a convenient interface for typesetting
+bidirectional texts in Plain TeX and LaTeX.
+
+This version fixes all the bugs that were present in v1.1.4c.
+
+Note: The image ctg.jpg is in public domain (a public domain
+artwork from iranpoliticsclub.net) and taken from
+http://iranpoliticsclub.net/culture-language/PIY/images/Cyrus%20The%20Great%20face.jpg
+
+___________________
+Vafa Khalighi
+vafakhlgh@gmail.com
+
+Copyright © 2007–2010
+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.
+
+In addition to the terms of LPPL any distributed version
+(unchanged or modified) of bidi has to keep the statement
+about the moral obligation for using bidi. In case of major
+changes where this would not be appropriate the author of the
+changed version should contact the copyright holder.
+
+
+
+Moral obligation for using bidi:
+____________________________________
+
+Users of bidi who wish to include or use bidi or a modified
+version in a proprietary and commercially market product are asked
+under certain conditions (see below) for the payment of a license
+fee. The size of this fee is to be determined, in each instance,
+by the commercial user, depending on his/her judgment of the value of
+bidi for his/her product.
+
+
+The conditions for this are as follows:
+
+The producer of a proprietary and commercially market product
+that involves typesetting using bidi is asked to determine
+the value of a license fee for using bidi if
+
+ - the product is a document and the producer has decided to
+ include bidi to typeset (parts of) the document or has
+ directed the author of the document to include bidi (for
+ example, by providing a class file to be used by the author)
+
+ - the product is a LaTeX class or package that includes bidi
+
+
+There is no moral obligation in case
+
+ - the product is a document but producer has not directed
+ the author to include bidi (in that case the moral obligation
+ lies with the author of the document)
+
+ - the product does not involve typesetting, e.g., consists, for
+ example, of distributing bidi and its documentation.
+
+ - the product is not proprietary, i.e., is made available as free
+ software itself (which doesn't prohibit its commercial marketing)
+
+ - bidi is used for non-commercial purposes
+
+
+Determinating a license fee might result in a license fee of zero
+(i.e., no payment) in case a producer has determined that the use
+of bidi has no enhancing effect on the product. This is a
+plausible scenario, i.e., in the above two cases the producer is
+only asked to evaluate the value of bidi for the product
+not for the payment of a license fee per se (which might or might
+not follow from this evaluation).
+
+ The license fee, if any, can be payed to the author of
+ the program who can be contacted at
+
+ vafakhlgh@gmail.com
+%</readme>
+%<*internal>
+\fi
+\begingroup
+%</internal>
+%<*batchfile>
+\input docstrip.tex
+\keepsilent
+\preamble
+
+ ______________________________________
+ Copyright © 2009–2010 Vafa Khalighi
+
+ License information appended.
+
+
+\endpreamble
+\postamble
+
+Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.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.
+
+In addition to the terms of LPPL any distributed version
+(unchanged or modified) of bidi has to keep the statement
+about the moral obligation for using bidi. In case of major
+changes where this would not be appropriate the author of the
+changed version should contact the copyright holder.
+
+
+
+Moral obligation for using bidi:
+____________________________________
+
+Users of bidi who wish to include or use bidi or a modified
+version in a proprietary and commercially market product are asked
+under certain conditions (see below) for the payment of a license
+fee. The size of this fee is to be determined, in each instance,
+by the commercial user, depending on his/her judgment of the value of
+bidi for his/her product.
+
+
+The conditions for this are as follows:
+
+The producer of a proprietary and commercially market product
+that involves typesetting using bidi is asked to determine
+the value of a license fee for using bidi if
+
+ - the product is a document and the producer has decided to
+ include bidi to typeset (parts of) the document or has
+ directed the author of the document to include bidi (for
+ example, by providing a class file to be used by the author)
+
+ - the product is a LaTeX class or package that includes bidi
+
+
+There is no moral obligation in case
+
+ - the product is a document but producer has not directed
+ the author to include bidi (in that case the moral obligation
+ lies with the author of the document)
+
+ - the product does not involve typesetting, e.g., consists, for
+ example, of distributing bidi and its documentation.
+
+ - the product is not proprietary, i.e., is made available as free
+ software itself (which doesn't prohibit its commercial marketing)
+
+ - bidi is used for non-commercial purposes
+
+
+Determinating a license fee might result in a license fee of zero
+(i.e., no payment) in case a producer has determined that the use
+of bidi has no enhancing effect on the product. This is a
+plausible scenario, i.e., in the above two cases the producer is
+only asked to evaluate the value of bidi for the product
+not for the payment of a license fee per se (which might or might
+not follow from this evaluation).
+
+ The license fee, if any, can be payed to the author of
+ the program who can be contacted at
+
+ vafakhlgh@gmail.com
+
+
+
+\endpostamble
+\askforoverwritefalse
+\generate{\file{amsart-xetex-bidi.def}{\from{\jobname.dtx}{amsart-xetex-bidi.def}}}
+\generate{\file{amsbook-xetex-bidi.def}{\from{\jobname.dtx}{amsbook-xetex-bidi.def}}}
+\generate{\file{amsmath-xetex-bidi.def}{\from{\jobname.dtx}{amsmath-xetex-bidi.def}}}
+\generate{\file{amsthm-xetex-bidi.def}{\from{\jobname.dtx}{amsthm-xetex-bidi.def}}}
+\generate{\file{array-xetex-bidi.def}{\from{\jobname.dtx}{array-xetex-bidi.def}}}
+\generate{\file{article-xetex-bidi.def}{\from{\jobname.dtx}{article-xetex-bidi.def}}}
+\generate{\file{artikel1-xetex-bidi.def}{\from{\jobname.dtx}{artikel1-xetex-bidi.def}}}
+\generate{\file{artikel2-xetex-bidi.def}{\from{\jobname.dtx}{artikel2-xetex-bidi.def}}}
+\generate{\file{artikel3-xetex-bidi.def}{\from{\jobname.dtx}{artikel3-xetex-bidi.def}}}
+\generate{\file{arydshln-xetex-bidi.def}{\from{\jobname.dtx}{arydshln-xetex-bidi.def}}}
+\generate{\file{bidi.sty}{\from{\jobname.dtx}{bidi.sty}}}
+\generate{\file{bidi.tex}{\from{\jobname.dtx}{bidi.tex}}}
+\generate{\file{bidi2in1.sty}{\from{\jobname.dtx}{bidi2in1.sty}}}
+\generate{\file{bidicode.sty}{\from{\jobname.dtx}{bidicode.sty}}}
+\generate{\file{bidiftnxtra.sty}{\from{\jobname.dtx}{bidiftnxtra.sty}}}
+\generate{\file{bidimoderncv.cls}{\from{\jobname.dtx}{bidimoderncv.cls}}}
+\generate{\file{bidipoem.sty}{\from{\jobname.dtx}{bidipoem.sty}}}
+\generate{\file{bidipresentation.cls}{\from{\jobname.dtx}{bidipresentation.cls}}}
+\generate{\file{boek3-xetex-bidi.def}{\from{\jobname.dtx}{boek3-xetex-bidi.def}}}
+\generate{\file{boek-xetex-bidi.def}{\from{\jobname.dtx}{boek-xetex-bidi.def}}}
+\generate{\file{bookest-xetex-bidi.def}{\from{\jobname.dtx}{bookest-xetex-bidi.def}}}
+\generate{\file{book-xetex-bidi.def}{\from{\jobname.dtx}{book-xetex-bidi.def}}}
+\generate{\file{breqn-xetex-bidi.def}{\from{\jobname.dtx}{breqn-xetex-bidi.def}}}
+\generate{\file{caption-xetex-bidi.def}{\from{\jobname.dtx}{caption-xetex-bidi.def}}}
+\generate{\file{colortbl-xetex-bidi.def}{\from{\jobname.dtx}{colortbl-xetex-bidi.def}}}
+\generate{\file{color-xetex-bidi.def}{\from{\jobname.dtx}{color-xetex-bidi.def}}}
+\generate{\file{cvthemebidicasual.sty}{\from{\jobname.dtx}{cvthemebidicasual.sty}}}
+\generate{\file{cvthemebidiclassic.sty}{\from{\jobname.dtx}{cvthemebidiclassic.sty}}}
+\generate{\file{draftwatermark-xetex-bidi.def}{\from{\jobname.dtx}{draftwatermark-xetex-bidi.def}}}
+\generate{\file{extarticle-xetex-bidi.def}{\from{\jobname.dtx}{extarticle-xetex-bidi.def}}}
+\generate{\file{extbook-xetex-bidi.def}{\from{\jobname.dtx}{extbook-xetex-bidi.def}}}
+\generate{\file{extletter-xetex-bidi.def}{\from{\jobname.dtx}{extletter-xetex-bidi.def}}}
+\generate{\file{extreport-xetex-bidi.def}{\from{\jobname.dtx}{extreport-xetex-bidi.def}}}
+\generate{\file{fancyhdr-xetex-bidi.def}{\from{\jobname.dtx}{fancyhdr-xetex-bidi.def}}}
+\generate{\file{fleqn-xetex-bidi.def}{\from{\jobname.dtx}{fleqn-xetex-bidi.def}}}
+\generate{\file{flowfram-xetex-bidi.def}{\from{\jobname.dtx}{flowfram-xetex-bidi.def}}}
+\generate{\file{footnote-luatex-bidi.def}{\from{\jobname.dtx}{footnote-luatex-bidi.def}}}
+\generate{\file{footnote-xetex-bidi.def}{\from{\jobname.dtx}{footnote-xetex-bidi.def}}}
+\generate{\file{graphicx-xetex-bidi.def}{\from{\jobname.dtx}{graphicx-xetex-bidi.def}}}
+\generate{\file{hyperref-xetex-bidi.def}{\from{\jobname.dtx}{hyperref-xetex-bidi.def}}}
+\generate{\file{leqno-xetex-bidi.def}{\from{\jobname.dtx}{leqno-xetex-bidi.def}}}
+\generate{\file{letter-xetex-bidi.def}{\from{\jobname.dtx}{letter-xetex-bidi.def}}}
+\generate{\file{listings-xetex-bidi.def}{\from{\jobname.dtx}{listings-xetex-bidi.def}}}
+\generate{\file{loadingorder-bidi.def}{\from{\jobname.dtx}{loadingorder-bidi.def}}}
+\generate{\file{longtable-xetex-bidi.def}{\from{\jobname.dtx}{longtable-xetex-bidi.def}}}
+\generate{\file{luatex-bidi.def}{\from{\jobname.dtx}{luatex-bidi.def}}}
+\generate{\file{memoir-xetex-bidi.def}{\from{\jobname.dtx}{memoir-xetex-bidi.def}}}
+\generate{\file{minitoc-xetex-bidi.def}{\from{\jobname.dtx}{minitoc-xetex-bidi.def}}}
+\generate{\file{multicol-xetex-bidi.def}{\from{\jobname.dtx}{multicol-xetex-bidi.def}}}
+\generate{\file{pdfpages-xetex-bidi.def}{\from{\jobname.dtx}{pdfpages-xetex-bidi.def}}}
+\generate{\file{pgf-xetex-bidi.def}{\from{\jobname.dtx}{pgf-xetex-bidi.def}}}
+\generate{\file{plain-luatex-bidi.def}{\from{\jobname.dtx}{plain-luatex-bidi.def}}}
+\generate{\file{plain-xetex-bidi.def}{\from{\jobname.dtx}{plain-xetex-bidi.def}}}
+\generate{\file{pstricks-xetex-bidi.def}{\from{\jobname.dtx}{pstricks-xetex-bidi.def}}}
+\generate{\file{quotchap-xetex-bidi.def}{\from{\jobname.dtx}{quotchap-xetex-bidi.def}}}
+\generate{\file{ragged2e-xetex-bidi.def}{\from{\jobname.dtx}{ragged2e-xetex-bidi.def}}}
+\generate{\file{rapport1-xetex-bidi.def}{\from{\jobname.dtx}{rapport1-xetex-bidi.def}}}
+\generate{\file{rapport3-xetex-bidi.def}{\from{\jobname.dtx}{rapport3-xetex-bidi.def}}}
+\generate{\file{refrep-xetex-bidi.def}{\from{\jobname.dtx}{refrep-xetex-bidi.def}}}
+\generate{\file{report-xetex-bidi.def}{\from{\jobname.dtx}{report-xetex-bidi.def}}}
+\generate{\file{scrartcl-xetex-bidi.def}{\from{\jobname.dtx}{scrartcl-xetex-bidi.def}}}
+\generate{\file{scrbook-xetex-bidi.def}{\from{\jobname.dtx}{scrbook-xetex-bidi.def}}}
+\generate{\file{scrlettr-xetex-bidi.def}{\from{\jobname.dtx}{scrlettr-xetex-bidi.def}}}
+\generate{\file{scrreprt-xetex-bidi.def}{\from{\jobname.dtx}{scrreprt-xetex-bidi.def}}}
+\generate{\file{stabular-xetex-bidi.def}{\from{\jobname.dtx}{stabular-xetex-bidi.def}}}
+\generate{\file{subfigure-xetex-bidi.def}{\from{\jobname.dtx}{subfigure-xetex-bidi.def}}}
+\generate{\file{tabls-xetex-bidi.def}{\from{\jobname.dtx}{tabls-xetex-bidi.def}}}
+\generate{\file{tabulary-xetex-bidi.def}{\from{\jobname.dtx}{tabulary-xetex-bidi.def}}}
+\generate{\file{tikz-xetex-bidi.def}{\from{\jobname.dtx}{tikz-xetex-bidi.def}}}
+\generate{\file{titlesec-xetex-bidi.def}{\from{\jobname.dtx}{titlesec-xetex-bidi.def}}}
+\generate{\file{titletoc-xetex-bidi.def}{\from{\jobname.dtx}{titletoc-xetex-bidi.def}}}
+\generate{\file{tocbibind-xetex-bidi.def}{\from{\jobname.dtx}{tocbibind-xetex-bidi.def}}}
+\generate{\file{tocloft-xetex-bidi.def}{\from{\jobname.dtx}{tocloft-xetex-bidi.def}}}
+\generate{\file{tocstyle-xetex-bidi.def}{\from{\jobname.dtx}{tocstyle-xetex-bidi.def}}}
+\generate{\file{wrapfig-xetex-bidi.def}{\from{\jobname.dtx}{wrapfig-xetex-bidi.def}}}
+\generate{\file{xcolor-xetex-bidi.def}{\from{\jobname.dtx}{xcolor-xetex-bidi.def}}}
+\generate{\file{xetex-bidi.def}{\from{\jobname.dtx}{xetex-bidi.def}}}
+\generate{\file{xltxtra-xetex-bidi.def}{\from{\jobname.dtx}{xltxtra-xetex-bidi.def}}}
+%</batchfile>
+%<batchfile>\endbatchfile
+%<*internal>
+\generate{\file{\jobname.ins}{\from{\jobname.dtx}{batchfile}}}
+\nopreamble\nopostamble
+\generate{\file{README.txt}{\from{\jobname.dtx}{readme}}}
+\generate{\file{bidisample2e.tex}{\from{\jobname.dtx}{bidisample2e.tex}}}
+\generate{\file{bidismall2e.tex}{\from{\jobname.dtx}{bidismall2e.tex}}}
+\generate{\file{presentation-sample.tex}{\from{\jobname.dtx}{presentation-sample.tex}}}
+\generate{\file{test1-colortbl.tex}{\from{\jobname.dtx}{test1-colortbl.tex}}}
+\generate{\file{test1-wrapfig.tex}{\from{\jobname.dtx}{test1-wrapfig.tex}}}
+\generate{\file{test2-colortbl.tex}{\from{\jobname.dtx}{test2-colortbl.tex}}}
+\generate{\file{test2-wrapfig.tex}{\from{\jobname.dtx}{test2-wrapfig.tex}}}
+\generate{\file{test3-wrapfig.tex}{\from{\jobname.dtx}{test3-wrapfig.tex}}}
+\generate{\file{test-arydshln.tex}{\from{\jobname.dtx}{test-arydshln.tex}}}
+\generate{\file{test-bidi.tex}{\from{\jobname.dtx}{test-bidi.tex}}}
+\generate{\file{test-brochure.tex}{\from{\jobname.dtx}{test-brochure.tex}}}
+\generate{\file{test-casualcv.tex}{\from{\jobname.dtx}{test-casualcv.tex}}}
+\generate{\file{test-classiccv.tex}{\from{\jobname.dtx}{test-classiccv.tex}}}
+\generate{\file{test-color.tex}{\from{\jobname.dtx}{test-color.tex}}}
+\generate{\file{test-supertabular.tex}{\from{\jobname.dtx}{test-supertabular.tex}}}
+\generate{\file{test-tabular.tex}{\from{\jobname.dtx}{test-tabular.tex}}}
+\generate{\file{test-tabularx.tex}{\from{\jobname.dtx}{test-tabularx.tex}}}
+\generate{\file{test-tabulary.tex}{\from{\jobname.dtx}{test-tabulary.tex}}}
+\endgroup
+\immediate\write18{mv README.txt README}
+\immediate\write18{makeindex -s gind.ist -o \jobname.ind \jobname.idx}
+\immediate\write18{makeindex -s gglo.ist -o \jobname.gls \jobname.glo}
+%</internal>
+%
+%<*driver>
+\documentclass{ltxdoc}
+\usepackage{graphicx,wrapfig}
+\usepackage{calc}
+\usepackage{pifont}
+\usepackage{bbding}
+\usepackage{bidicode}
+\usepackage[numbered]{hypdoc}
+\definecolor{bidiblue}{rgb}{0.1,0.2,0.8}
+\hypersetup{linkcolor=bidiblue,urlcolor=bidiblue,citecolor=bidiblue}
+\setlength\columnseprule{.4pt}
+\newcommand\XeTeX{Xe\TeX}
+\newcommand\XeLaTeX{Xe\LaTeX}
+\makeatletter
+\@addtoreset{CodelineNo}{subsection}
+\pdfstringdefDisableCommands{%
+\renewcommand\Lcs[1]{\textbackslash#1}
+}
+\renewcommand\tableofcontents{\relax
+ \begin{multicols}{2}[\section*{\contentsname}]\small
+ \@starttoc{toc}\relax
+ \end{multicols}}
+\makeatother
+\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}
+\EnableCrossrefs
+\CodelineIndex
+\RecordChanges
+%\OnlyDescription
+\begin{document}
+ \DocInput{\jobname.dtx}
+ \PrintIndex
+ \PrintChanges
+\end{document}
+%</driver>
+%
+%
+% \fi
+%
+% \GetFileInfo{\jobname.sty}
+% \CheckSum{0}
+% \makeatletter
+% \changes{v1.1.5a}{2010/09/13}{Update the documentation.}
+% \title{The \textsf{bidi} package\\ \href{http://bitbucket.org/vafa/bidi}{\texttt{http://bitbucket.org/vafa/bidi}}}
+% \author{\textsc{Vafa Khalighi}\\ \href{mailto:vafakhlgh@gmail.com}{\texttt{vafakhlgh@gmail.com}}}
+% \date{\today \qquad v1.1.5a}
+%
+% \maketitle
+%\section{Dedication}
+%\textit{We dedicate the \textsf{bidi} package to our \textbf{father}, \textbf{Cyrus The Great}.}
+%\textbf{Cyrus the Great} (c. 600 BC or 576 BC – December 530 BC), also known as \textbf{Cyrus II} or \textbf{Cyrus of Persia}, was the first Zoroastrian Persian emperor. He was the founder of the Persian Empire under the Achaemenid dynasty.
+%
+%\begin{wrapfigure}{l}{0.5\textwidth}
+%\centering
+%\fbox{\includegraphics{ctg}}
+% \caption{Portrait of Cyrus The Great}
+%\end{wrapfigure}
+%
+%It was under his own rule that the empire embraced all previous civilized states of the ancient Near East, expanded vastly and eventually conquered most of Southwest Asia and much of Central Asia, from Egypt and the Hellespont in the west to the Indus River in the east, to create the largest empire the world had yet seen.
+%
+%The reign of Cyrus lasted 29 to 31 years. Cyrus built his empire by fighting and conquering first the Median Empire, then the Lydian Empire and the Neo-Babylonian Empire. Either before or after Babylon, he led an expedition into central Asia, which resulted in major campaigns that brought ``into subjection every nation without exception." Cyrus did not venture into Egypt, as he himself died in battle, fighting the Massagetae along the Syr Darya in December 530 BC. He was succeeded by his son, Cambyses II, who managed to add to the empire by conquering Egypt, Nubia, and Cyrenaica during his short rule.
+%
+%As a military leader, Cyrus left a legacy on the art of leadership and decision making, and he attributed his success to ``Diversity in counsel, unity in command.'' Cyrus the Great respected the customs and religions of the lands he conquered. It is said that in universal history, the role of the Achaemenid empire founded by Cyrus lies in its very successful model for centralized administration and establishing a government working to the advantage and profit of its subjects. In fact, the administration of the empire through satraps and the vital principle of forming a government at Pasargadae were the work of Cyrus. Aside from his own nation, Iran, Cyrus also left a lasting legacy on Jewish religion (through his Edict of Restoration), human rights, politics, and military strategy, as well as on both Eastern and Western civilizations.
+% \tableofcontents
+%\section{Introduction}
+%\textsf{bidi} provides a convenient interface for typesetting bidirectional texts in plain \TeX\ and \LaTeX.
+%
+%The \textsf{bidi} package at the moment only works with \XeTeX\ engine, but we will support other \TeX\ engines as well in the future.
+%\subsection{\textsf{bidi} Info On The Terminal and In The Log File}
+%If you use \textsf{bidi} package to write any input \TeX\ document, and then run \texttt{xelatex} on your document, \textsf{bidi} writes some information about itself to the terminal and to the log file. The information is something like:
+%\begin{lstlisting}[backgroundcolor=\color{blue!20}]
+%bidi package (Support for bidirectional typesetting in plain TeX and LaTeX)
+%Description: A convenient interface for typesetting bidirectional texts
+%in plain TeX and LaTeX. The package includes adaptations for use
+%with many other commonly-used packages.
+%Copyright (c) 2009-2010 Vafa Khalighi
+%v1.1.5a, <commit 98>, 2010/09/28
+%License: LaTeX Project Public License, version 1.3c or higher (your choice)
+%Home: http://bitbucket.org/vafa/bidi
+%Location on CTAN: /macros/latex/contrib/bidi
+%\end{lstlisting}
+%\section{Basics}
+%\subsection{Loading The Package}
+%You can load the package in the ordinary way;
+%\begin{BDef}
+%\Lcs{usepackage}\OptArgs\Largb{bidi}
+%\end{BDef}
+%Where \texttt{options} of the package are explained later in \autoref{options}.
+%
+%When loading the package, it is important to know that:
+%\begin{enumerate}
+%\item \textsf{bidi} should be the last package that you load, because otherwise you are certainly going to overwrite \textsf{bidi}'s definitions and consequently, you will not get the expected output.
+%\item In fact, \textsf{bidi} makes sure that some specific packages are loaded before \textsf{bidi}; these are those packages that \textsf{bidi} modifies them for bidirectional typesetting.
+%
+%If you load \textsf{bidi} before any of these packages, then you will get an error saying that you should load \textsf{bidi} as your last package.
+%
+%For instance, consider the following minimal example:
+%\begin{lstlisting}
+%\documentclass{minimal}
+%\usepackage{bidi}
+%\usepackage{graphicx}
+%\begin{document}
+%This is just a test.
+%\end{document}
+%\end{lstlisting}
+%Where \textsf{graphicx} is loaded after \textsf{bidi}. If you run \texttt{xelatex} on this document, you will get an error which looks like this:
+%\begin{lstlisting}[backgroundcolor=\color{blue!20}]
+%! Package bidi Error: Oops! you have loaded package graphicx after bidi package
+%. Please load package graphicx before bidi package, and then try to run xelatex
+% on your document again.
+%
+%See the bidi package documentation for explanation.
+%Type H <return> for immediate help.
+% ...
+%
+%l.4 \begin{document}
+%
+%?
+%
+%\end{lstlisting}
+%\end{enumerate}
+%\subsection{Commands for Version number, Mercurial commit number and Date of The Package}
+%\begin{BDef}
+%\Lcs{bidiversion}\quad\Lcs{bidicommit}\quad\Lcs{bididate}
+%\end{BDef}
+%\begin{itemize}
+%\item \Lcs{bidiversion} gives the current version of the package.
+%\item \Lcs{bidicommit} gives the current Mercurial commit number of the package.
+%\item \Lcs{bididate} gives the current date of the package.
+%\end{itemize}
+%\begin{lstlisting}
+%\documentclass{article}
+%\usepackage{bidi}
+%\begin{document}
+%This is typeset by \textsf{bidi} package, \bidiversion, \bidicommit, \bididate.
+%\end{document}
+%\end{lstlisting}
+%\subsection{Options of The Package\label{options}}
+%There are two options, namely \texttt{RTLdocument} and \texttt{rldocument}, which are essentialy equivalent. If you pass any of these options to the package, you will be typesetting a document containing mainly RTL texts with some LTR texts. These options activate \Lcs{setRTL} (explained in \autoref{PSC}), \Lcs{RTLdblcol} (explained in \autoref{twocolumn}) and \Lcs{autofootnoterule} (explained in \autoref{footnoterule}).
+%
+%It is clear that if you do not pass any of these options to the package, you will be typesetting a document containing mainly LTR texts with some RTL texts.
+%\subsection{Paragraph Switching Commands\label{PSC}}
+%\begin{BDef}
+%\Lcs{setLTR}\quad\Lcs{setLR}\quad\Lcs{unsetRL}\quad\Lcs{unsetRTL}\\
+%\Lcs{setRTL}\quad\Lcs{setRL}\quad\Lcs{unsetLTR}
+%\end{BDef}
+%\begin{itemize}
+%\item With any of the commands in the first row, you can typeset LTR paragraphs.
+%\item With any of the commands in the second row, you can typeset RTL paragraphs.
+%\end{itemize}
+%\begin{lstlisting}[morekeywords={newfontfamily,Parsifont}]
+%\documentclass{article}
+%\usepackage{fontspec}
+%\newfontfamily\Parsifont[Script=Arabic]{Yas}
+%\usepackage{bidi}
+%\begin{document}
+%\setRTL%
+%Anyone who reads Old and Middle English literary texts will be
+% familiar with the mid-brown volumes of the EETS, with the symbol
+% of Alfred's jewel embossed on the front cover.
+%
+%\setLTR% Notice the blank line before \setLTR
+%Anyone who reads Old and Middle English literary texts will be
+% familiar with the mid-brown volumes of the EETS, with the symbol
+% of Alfred's jewel embossed on the front cover.
+%\end{document}
+%\end{lstlisting}
+%\subsection{Pargraph Switching Environments}
+%\begin{BDef}
+%\LBEG{LTR}\quad\Larga{text}\quad\LEND{LTR}\\
+%\LBEG{RTL}\quad\Larga{text}\quad\LEND{RTL}
+%\end{BDef}
+%\begin{itemize}
+%\item With \texttt{LTR} environment, you can typeset LTR paragraphs.
+%\item With \texttt{RTL} environment, you can typeset RTL paragraphs.
+%\end{itemize}
+%\begin{lstlisting}
+%\documentclass{article}
+%\usepackage{bidi}
+%\begin{document}
+%\begin{RTL}
+%Anyone who reads Old and Middle English literary texts will be familiar
+% with the mid-brown volumes of the EETS, with the symbol
+% of Alfred's jewel embossed on the front cover.
+%\begin{LTR}
+%Anyone who reads Old and Middle English literary texts will be familiar
+% with the mid-brown volumes of the EETS, with the symbol
+% of Alfred's jewel embossed on the front cover.
+%\end{LTR}
+%And we are still typesetting RTL.
+%\end{RTL}
+%\end{document}
+%\end{lstlisting}
+%\subsection{Typesetting Short LTR and RTL Texts}
+%\begin{BDef}
+%\Lcs{LRE}\Largb{\Larga{text}}\quad\Lcs{LR}\Largb{\Larga{text}}\\
+%\Lcs{RLE}\Largb{\Larga{text}}\quad\Lcs{RL}\Largb{\Larga{text}}
+%\end{BDef}
+%\begin{itemize}
+%\item With any of the commands in the first row, you can typeset short LTR text inside RTL paragraphs.
+%\item With any of the commands in the second row, you can typeset short RTL text inside LTR paragraphs.
+%\end{itemize}
+%\begin{lstlisting}
+%\begin{document}
+%\begin{RTL}
+%Anyone who reads Old and Middle English \LRE{Short LTR text} literary texts will be familiar
+% with the mid-brown volumes of the EETS, with the symbol
+% of Alfred's jewel embossed on the front cover.
+%\begin{LTR}
+%Anyone who reads Old and Middle English \RLE{Short RTL text} literary texts will be familiar
+% with the mid-brown volumes of the EETS, with the symbol
+% of Alfred's jewel embossed on the front cover.
+%\end{LTR}
+%\end{RTL}
+%\end{document}
+%\end{lstlisting}
+%\subsection{Footnotes}
+%\begin{BDef}
+%\Lcs{footnote}\OptArg{num}\Largb{\Larga{text}}\quad\Lcs{LTRfootnote}\OptArg{num}\Largb{\Larga{text}}\quad\Lcs{RTLfootnote}\OptArg{num}\Largb{\Larga{text}}\\
+%\Lcs{setfootnoteRL}\quad\Lcs{setfootnoteLR}\quad\Lcs{unsetfootnoteRL}\\
+%\Lcs{thanks}\Largb{\Larga{text}}\quad\Lcs{LTRthanks}\Largb{\Larga{text}}\quad\Lcs{RTLthanks}\Largb{\Larga{text}}
+%\end{BDef}
+%\begin{itemize}
+%\item \Lcs{footnote} in RTL mode produces an RTL footnote while in LTR mode it produces an LTR footnote.
+%\item \Lcs{LTRfootnote} will always produce an LTR footnote, independent on the current mode.
+%\item \Lcs{RTLfootnote} will always produce an RTL footnote, independent on the current mode.
+%\item Specifying a \Lcs{setfootnoteRL} command anywhere will make \Lcs{footnote} produce an RTL footnote.
+%\item Specifying either a \Lcs{setfootnoteLR} or an \Lcs{unsetfootnoteRL} command anywhere will make \Lcs{footnote} produce an LTR footnote.
+%\item \Lcs{thanks} (to be used only inside \Lcs{author} or \Lcs{title} argument) in RTL mode produces an RTL footnote while in LTR mode it produces an LTR footnote.
+%\item \Lcs{LTRthanks} (to be used only inside \Lcs{author} or \Lcs{title} argument) will always produce an LTR footnote, independent on the current mode.
+%\item \Lcs{RTLthanks} (to be used only inside \Lcs{author} or \Lcs{title} argument) will always produce an RTL footnote, independent on the current mode.
+%\end{itemize}
+%\begin{BDef}
+%\Lcs{footnotetext}\OptArg{num}\Largb{\Larga{text}}\quad\Lcs{LTRfootnotetext}\OptArg{num}\Largb{\Larga{text}}\\
+%\Lcs{RTLfootnotetext}\OptArg{num}\Largb{\Larga{text}}
+%\end{BDef}
+%\begin{itemize}
+%\item \Lcs{footnotetext} used in conjunction with \Lcs{footnotemark}, in RTL mode produces an RTL footnote while in LTR mode it produces an LTR footnote.
+%\item \Lcs{LTRfootnotetext} used in conjunction with \Lcs{footnotemark}, will always produce an LTR footnote, independent on the current mode.
+%\item \Lcs{RTLfootnotetext} used in conjunction with \Lcs{footnotemark}, will always produce an RTL footnote, independent on the current mode.
+%\end{itemize}
+%\subsubsection{Footnote Rule\label{footnoterule}}
+%The behavior of footnote rules can also be controlled.
+%\begin{BDef}
+%\Lcs{autofootnoterule}\quad\Lcs{rightfootnoterule}\quad\Lcs{leftfootnoterule}\\
+%\Lcs{LRfootnoterule}\quad\Lcs{textwidthfootnoterule}
+%\end{BDef}
+%\begin{itemize}
+%\item \Lcs{autofootnoterule} will draw the footnote rule right or left aligned based on the direction of the first footnote following the rule (i.e., put in the current page).
+%\item \Lcs{rightfootnoterule} will put footnote rule on the right-hand side.
+%\item \Lcs{leftfootnoterule} or \Lcs{LRfootnoterule} will put footnote rule on the left-hand side.
+%\item \Lcs{textwidthfootnoterule} will draw the footnote rule with a width equal to \Lcs{textwidth}.
+%\end{itemize}
+%\subsection{Two Column Typesetting\label{twocolumn}}
+%\begin{BDef}
+%\Lcs{RTLdblcol}\quad\Lcs{LTRdblcol}
+%\end{BDef}
+%If you pass the \texttt{twocolumn} option to the class file and if the main direction of the document is RTL, then you get RTL two column and if the main direction of the document is LTR, then you get LTR two column. In addition, \Lcs{RTLdblcol} allows you to have RTL two column typesetting and \Lcs{LTRdblcol} allows you to have LTR two column typesetting as the options of the class file.
+%\subsection{RTL cases}
+%\begin{BDef}
+%\Lcs{rcases}\Largb{\Lcs{text}\Largb{\Larga{brach1}}\Lcs{cr}\Lcs{text}\Largb{\Larga{brach2}}\Lcs{cr}%
+%\Lcs{text}\Largb{\Larga{brach3}}\ldots}\\
+%\Lcs{text}\Largb{\Larga{main}}
+%\end{BDef}
+%\Lcs{rcases} is defined in bidi for typesetting RTL cases. \Lcs{text} is defined in \textsf{amsmath} package, so this means that you need to load \textsf{amsmath} package too.
+%\begin{lstlisting}[morekeywords={rcases,text}]
+%\documentclass{article}
+%\usepackage{amsmath}
+%\usepackage{bidi}
+%\begin{document}
+%\setRTL
+%\[\rcases{\text{men}\cr\text{women}}
+%\text{Humans Beings}
+%\]
+%\end{document}
+%\end{lstlisting}
+%\subsection{Typesetting Logos}
+%\begin{BDef}
+%\Lcs{XeTeX}\quad\Lcs{XeLaTeX}
+%\end{BDef}
+%\textsf{bidi} defines \XeTeX\ and \XeLaTeX\ logos and in addition, it makes sure that logos, \TeX, \LaTeX, \LaTeXe\ are typeset LTR.
+%\subsection{Separation Mark}
+%\begin{BDef}
+%\Lcs{SepMark}\Largb{\Larga{mark}}\quad\Lcs{@SepMark}
+%\end{BDef}
+%Generally in Standard \LaTeX, dot is used for separation between section numbers, equation numbers any anything else which needs to be seperated. You can use \Lcs{SepMark} to use any other mark as the seperation mark instead a dot.
+%\begin{lstlisting}[morekeywords={SepMark,subsection,subsubsection}]
+%\documentclass{article}
+%\usepackage{bidi}
+%\SepMark{-}
+%\begin{document}
+%\section{First}
+%\subsection{Second}
+%\subsubsection{Third}
+%\end{document}
+%\end{lstlisting}
+%
+%If you decide to change the numbering of chapters, sections, subsections, equations, figures and \ldots, you should either load \textsf{amsmath} package and use \Lcs{numberwithin} macro to do this or do the ordinary way, but instead dot write \Lcs{@SepMark}. Using dot instead \Lcs{@SepMark} will certainly make trouble.
+%
+%\begin{lstlisting}[morekeywords={theequation,thesection,SepMark}]
+%\documentclass{article}
+%\usepackage{bidi}
+%\SepMark{-}
+%\makeatletter
+%\renewcommand\theequation{\thesection\@SepMark\@arabic\c@equation}
+%\makeatother
+%\begin{document}
+%\section{First}
+%\begin{equation}
+%x^2+y^2=z^2
+%\end{equation}
+%\end{document}
+%\end{lstlisting}
+%\subsection{\Lcs{raggedright}, \Lcs{raggedleft} commands, \texttt{flushleft} and \texttt{flushright} Environments}
+%\Lcs{raggedright} command and \texttt{flushleft} environment put the text on the left hand side and \Lcs{raggedleft} command and \texttt{flushright} environment put the text on the right hand side, independent on the current mode.
+%\subsection{Primitive-like commands}
+%\begin{BDef}
+%\Lcs{hboxR}\quad\Lcs{hboxL}\quad\Lcs{vboxR}\quad\Lcs{vboxL}
+%\end{BDef}
+%\begin{itemize}
+%\item The syntax of \Lcs{hboxR} is exatly the same as the syntax of \Lcs{hbox}, but its contents is always typeset RTL.
+%\item The syntax of \Lcs{hboxL} is exatly the same as the syntax of \Lcs{hbox}, but its contents is always typeset LTR.
+%\item The syntax of \Lcs{vboxR} is exatly the same as the syntax of \Lcs{vbox}, but its contents is always typeset RTL.
+%\item The syntax of \Lcs{vboxL} is exatly the same as the syntax of \Lcs{vbox}, but its contents is always typeset LTR.
+%\end{itemize}
+%\subsection{Something To know about \Lcs{hbox}}
+%If you enable RTL typesetting and typeset an horizontal box at the beginning of the document:
+%\begin{lstlisting}
+%\documentclass{article}
+%\usepackage{bidi}
+%\setRTL
+%\begin{document}
+%\hbox{This is a Test}
+%\end{document}
+%\end{lstlisting}
+%You see that even you have used \Lcs{setRTL}, the horizontal box appears LTR (It appears on the left hand side and its content is typeset left to right). This is because when \TeX{} starts, it is in the vertical mode so if you need to have that \Lcs{hbox} appear RTL, then write \Lcs{leavevmode} before \Lcs{hbox}:
+%\begin{lstlisting}
+%\documentclass{article}
+%\usepackage{bidi}
+%\setRTL
+%\begin{document}
+%\leavevmode\hbox{This is a Test}
+%\end{document}
+%\end{lstlisting}\subsection{\Lcs{bidillap} and \Lcs{bidirlap} Commands}
+%In RTL mode, \Lcs{llap} and \Lcs{rlap} do oposite things. Since these two macros are used in a lot of classes and packages, instead modifying these two macros, we have created two new macros \Lcs{bidillap} and \Lcs{bidirlap} which give logical results.
+%\subsection{\textsf{LTRitems} and \textsf{RTLitems} Environments}
+%If you typeset an \textsf{itemize}, or an \textsf{enumerate}, or a \textsf{description} environment where all \Lcs{item}s are one directional, you have no problem at all as shown below:
+%\begin{lstlisting}
+%\documentclass{article}
+%\begin{document}
+%Anyone who reads Old and Middle English literary texts will be familiar with the mid-brown volumes of the EETS, with the symbol of Alfred's
+%\begin{enumerate}
+%\item Anyone who reads Old and Middle English literary texts will be familiar with the mid-brown volumes of the EETS, with the symbol of Alfred's
+%\item Anyone who reads Old and Middle English literary texts will be familiar with the mid-brown volumes of the EETS, with the symbol of Alfred's
+%\end{enumerate}
+%\end{document}
+%\end{lstlisting}
+%However if the above example becomes bidirectional, as shown below:
+%\begin{lstlisting}
+%\documentclass{article}
+%\usepackage{bidi}
+%\begin{document}
+%Anyone who reads Old and Middle English literary texts will be familiar with the mid-brown volumes of the EETS, with the symbol of Alfred's
+%\begin{enumerate}
+%\item Anyone who reads Old and Middle English literary texts will be familiar with the mid-brown volumes of the EETS, with the symbol of Alfred's
+%\setRTL
+%\item Anyone who reads Old and Middle English literary texts will be familiar with the mid-brown volumes of the EETS, with the symbol of Alfred's
+%\end{enumerate}
+%\end{document}
+%\end{lstlisting}
+%Then some people may argue that this typographically does not look promising. For this purpose, \textsf{RTLitems} environment is provided which has the following syntax:
+%\begin{BDef}
+%\LBEG{RTLitems}\OptArg{length}\\
+%\quad\Lcs{item} \Larga{text}\\
+%\quad\ldots\\
+%\LEND{RTLitems}
+%\end{BDef}
+%Where \OptArg{length} is optional and if you do not give it, the value of \Lcs{rightskip} will be equal to the value of \Lcs{labelwidth}\(+\)\Lcs{labelsep} by default and if you give this optional length, then the value of \Lcs{rightskip} will be equal to the value of \Lcs{labelwidth}\(+\)\Larg{given length}. Thus by using the \textsf{RTLitems} environment, the previous example will look like the following:
+%\begin{lstlisting}
+%\documentclass{article}
+%\usepackage{bidi}
+%\begin{document}
+%Anyone who reads Old and Middle English literary texts will be familiar with the mid-brown volumes of the EETS, with the symbol of Alfred's
+%\begin{enumerate}
+%\item Anyone who reads Old and Middle English literary texts will be familiar with the mid-brown volumes of the EETS, with the symbol of Alfred's
+%\begin{RTLitems}
+%\item Anyone who reads Old and Middle English literary texts will be familiar with the mid-brown volumes of the EETS, with the symbol of Alfred's
+%\end{RTLitems}
+%\end{enumerate}
+%\end{document}
+%\end{lstlisting}
+%Similarly, \textsf{LTRitems} environment is defined which has the following syntax:
+%\begin{BDef}
+%\LBEG{LTRitems}\OptArg{length}\\
+%\quad\Lcs{item} \Larga{text}\\
+%\quad\ldots\\
+%\LEND{LTRitems}
+%\end{BDef}
+%Where \OptArg{length} is optional and if you do not give it, the value of \Lcs{leftskip} will be equal to the value of \Lcs{labelwidth}\(+\)\Lcs{labelsep} by default and if you give this optional length, then the value of \Lcs{leftskip} will be equal to the value of \Lcs{labelwidth}\(+\)\Larg{given length}.
+%\subsection{\Lcs{setLTRbibitems}, \Lcs{setRTLbibitems}, and \Lcs{setdefaultbibitems} commands}
+%\begin{BDef}
+%\Lcs{setLTRbibitems}\quad\Lcs{setRTLbibitems}\quad\Lcs{setdefaultbibitems}
+%\end{BDef}
+%\begin{itemize}
+%\item If your whole \textsf{thebibliography} environment is inside RTL mode, but all your \Lcs{bibitem}s are LTR and you actually want to have \Lcs{bibname} to appear on the RHS, you can use \Lcs{setLTRbibitems} command before \textsf{thebibliography} environment.
+%\item If your whole \textsf{thebibliography} environment is inside LTR mode, but all your \Lcs{bibitem}s are RTL and you actually want to have \Lcs{bibname} to appear on the LHS, you can use \Lcs{setRTLbibitems} command before \textsf{thebibliography} environment.
+%\item \Lcs{setdefaultbibitems} is the default, when your \Lcs{bibitems} are a mixture of LTR and RTL and it does not matter what mode (LTR or RTL) your \textsf{thebibliography} environment is in. Please note that you do not have to use \Lcs{setdefaultbibitems} command in this case at all.
+%
+%Consider an example that your \textsf{thebibliography} environment is inside LTR mode and you have, say two \Lcs{bibitem}s. The first \Lcs{bibitem} is LTR and the second \Lcs{bibitem} is RTL. One could typeset this senario as shown below:
+%\begin{lstlisting}
+%\documentclass{article}
+%\usepackage{bidi}
+%\begin{document}
+%\begin{thebibliography}{99}
+%\bibitem This is the first bibitem which is LTR.
+%\begin{RTLitems}
+%\bibitem This is the second bibitem which is RTL.
+%\end{RTLitems}
+%\end{thebibliography}
+%\end{document}
+%\end{lstlisting}
+%\end{itemize}
+%
+%\subsection{Typesetting margin par}
+%By default, in RTL mode, \Lcs{marginpar} appears on LHS and its content is typeset RTL and in LTR mode, \Lcs{marginpar} appears on RHS and its content is typeset LTR. In addition, the three following commands are provided:
+%\begin{BDef}
+%\Lcs{setRTLmarginpar}\quad\Lcs{setLTRmarginpar}\quad\Lcs{setdefaultmarginpar}
+%\end{BDef}
+%\begin{itemize}
+%\item \Lcs{setRTLmarginpar} always makes \Lcs{marginpar} to appear on LHS and the content of \Lcs{marginpar} is typeset RTL (this is independent of the current mode).
+%\item \Lcs{setLTRmarginpar} always makes \Lcs{marginpar} to appear on RHS and the content of \Lcs{marginpar} is typeset LTR (this is independent of the current mode).
+%\item \Lcs{setdefaultmarginpar} gives the default behaviour of \Lcs{marginpar} as described above.
+%\end{itemize}
+%\subsection{Typesetting of Headers and Footers}
+%If the main direction of the document is RTL, then headers and footers are typeset RTL and if the main direction of the document is LTR, then headers and footers are typeset LTR.
+%\subsection{Tabular Typesetting}
+%In RTL mode, tabular are typeset RTL and in LTR mode, tabular are typeset LTR.
+%\subsection{Equation Numbers}
+%For \texttt{reqno}, equation numbers are on the right hand side and for \texttt{leqno}, equation numbers are on the left hand side, independent on the current mode.
+%\section{Support For Various Packages and Classes}
+%The \textsf{bidi} package supports \textsf{amsmath}, \textsf{amsthm}, \textsf{array}, \textsf{arydshln}, \textsf{breqn}, \textsf{caption}, \textsf{color}, \textsf{colortbl}, \textsf{draftwatermark}, \textsf{fancyhdr}, \textsf{flowfram}, \textsf{graphicx}, \textsf{hyperref}, \textsf{listings}, \textsf{minitoc}, \textsf{multicol}, \textsf{pdfpages}, \textsf{pstricks}, \textsf{quotchap}, \textsf{ragged2e}, \textsf{stabular}, \textsf{subfig}, \textsf{subfigure}, \textsf{supertabular}, \textsf{xtab}, \textsf{tabls}, \textsf{tabulary}, \textsf{PGF \&\ TIKZ}, \textsf{tocbibind}, \textsf{tocloft}, \textsf{tocstyle}, \textsf{wrapfig}, \textsf{xcolor}, \textsf{xltxtra} packages, \textsf{amsart}, \textsf{amsbook}, \textsf{artikel1}, \textsf{artikel2}, \textsf{artikel3}, \textsf{extarticle}, \textsf{standrad article}, \textsf{boek}, \textsf{boek3}, \textsf{standard book}, \textsf{bookest}, \textsf{extbook}, \textsf{extletter}, \textsf{scrlettr},\textsf{standard letter}, \textsf{memoir}, \textsf{extreport}, \textsf{rapport1}, \textsf{rapport3}, \textsf{refrep}, \textsf{standard report}, \textsf{scartcl}, \textsf{scrbook}, \textsf{scrreprt} classes and any other packages and classes that relies on these packages and classes. This means, you can use all these packages and classes in addition to other packages and classes that rely on these packages and classes and use their functionality fully for your bidirectional documents.
+%
+%We now give some details that you should know about the supported packages or classes.
+%\subsection{Color}
+%You can use \textsf{color} and \textsf{xcolor} packages to typeset texts in colours and colour boxes produced by \Lcs{colorbox} and \Lcs{fcolorbox} commands. Please note that your Coloured text should not span more than a line, if your text spans more than a line, you will be in trouble which means your whole document, page or paragraph may be coloured. If your texts spans more than a line, then you should use \textsf{xecolour} package.
+%
+%Also if you are going to use \Lcs{color} command to colour the text at the beginning of a paragraph, then you should have \Lcs{leavevmode} before \Lcs{color} command.
+%
+%For having coloured tabular, you can use \textsf{colortbl} package.
+%\subsection{Hyperref}
+%The \textsf{hyperref} package works fine with bidirectional documents if and only if, your link will not span more than a line. If your link spans more than a line, then your whole document, or page or paragraph may be linked.
+%
+%
+%\subsection{\textsf{flowfram} Package}
+%You can use \textsf{flowfram} package for your bidirectional documents. Please note that \textsf{flowfram} package provides support for bidirectional column typesetting, for details, see its manual.
+%\subsection{Multicolumn Typesetting}
+%In the previous versions of \textsf{bidi} package, it was recommended that you need to use \textsf{fmultico} package instead the original \textsf{multicol} package for RTL multicolumn typesetting. This is not the case any more and you should not use buggy \textsf{fmultico} package any more. Simply load the original \textsf{multicol} package before loading \textsf{bidi}. \textsf{bidi} now supports \textsf{multicol} package and you can typeset bidirectional multi columns.
+%
+%In addition, you also can use \textsf{vwcol} package for variable width bidirectional column typesetting.
+%\section{Extra \textsf{bidi} Packages and Classes}
+%\subsection{The Issue of Footnote}
+%In standard \LaTeX\, you can not use footnotes inside \Lcs{chapter}, \Lcs{part}, \Lcs{section}, \Lcs{subsection}, \Lcs{subsection} and any other section-like commands, \Lcs{caption} and tabular environment.
+%
+%\textsf{bidi} package provides \textsf{bidiftnxtra} package that solves the issue of footnote in standard \LaTeX. \textsf{bidiftnxtra} package should be loaded after \textsf{bidi} package.
+%\subsection{Typesetting Poems}
+%The \textsf{bidi} package provides \textsf{bidipoem} package for typesetting Persian poems. It provides four environments, \texttt{traditionalpoem}, \texttt{modernpoem} and starred version of these. In the starred version of these environments you do not need to type {\ttfamily\symbol{92}\symbol{92}} and that is the only difference with the normal version of the environments. The \texttt{traditionalpoem} environment and its starred version are also useful for typesetting Classic Arabic poetry, in fact this package may also be useful for other RTL languages.
+%
+%When using \textsf{bidipoem} package, at least you need to run \texttt{xelatex} twice on your document. In fact, if you run \texttt{xelatex} just once on your document, you get a message saying ``Unjustified poem. Rerun \texttt{XeLaTeX} to get poem right''.
+%
+%When you typeset your poems, you might get underfull \Lcs{hbox} messages. This is absolutely normal and if you want to get rid of these underfull \Lcs{hbox} messages, then you would need to use Kashida.
+%
+%If you need to change the default distance between two verses, you can do just that by:
+%\begin{BDef}
+%\Lcs{renewcommand}\Lcs{poemcolsepskip}\Largb{\Larga{length}}
+%\end{BDef}
+%\begin{BDef}
+%\LBEG{traditionalpoem}\\
+%\Larga{verse1}\texttt{\&}\Larga{verse2}{\ttfamily\symbol{92}\symbol{92}}\\
+%\Larga{verse3}\texttt{\&}\Larga{verse4}{\ttfamily\symbol{92}\symbol{92}}\\
+%\ldots\\
+%\LEND{traditionalpoem}
+%\end{BDef}
+%\begin{BDef}
+%\LBEG{traditionalpoem*}\\
+%\Larga{verse1}\texttt{\&}\Larga{verse2}\\
+%\Larga{verse3}\texttt{\&}\Larga{verse4}\\
+%\ldots\\
+%\LEND{traditionalpoem*}
+%\end{BDef}
+%\subsection{Typesetting Resum\'e}
+%The \textsf{bidi} package provides \textsf{bidimoderncv}\footnote{This class is the modified version of \textsf{moderncv} class.} class for typesetting resum\'es. There are two examples, namely \texttt{test-casualcv.tex} and \texttt{test-classiccv.tex}, in the \textsf{doc} folder than you can look and learn how you can use it.
+%\subsection{Print Two Pages On A Single Page}
+%\textsf{bidi} package provides \textsf{bidi2in1} package for printing two pages on a single (landscape) A4 page. Page numbers appear on the included pages, and not on the landscape 'container' page.
+%
+%\subsection{Producing Presentations}
+%At the moment, there is only one class that you can prepare your presentations
+%with.
+%
+%\subsubsection{\textsf{bidipresentation} Class}
+%\textsf{bidipresentation} is a simple class for presentations to be shown on
+%screen or beamer. It is derived from \LaTeX's article class. The “virtual paper
+%size” of documents produced by this class: width=128mm, height=96mm.
+%\textsf{bidipresentation} requires that the \textsf{fancyhdr} and \textsf{geometry} packages
+%are available on the system. Enhancements to the \textsf{bidipresentation}
+%class are easily made available by other packages, these include slides with
+%a background from a bitmap (\textsf{eso-pic} package).
+%
+%\paragraph{Usage:}
+%The class is used with
+%\begin{BDef}
+%\Lcs{documentclass}\OptArgs\Largb{bidipresentation}
+%\end{BDef}
+% Options of the article class are also available to \textsf{bidipresentation}, e. g.
+% 10pt, 11pt, 12pt for selection of font size. However, not all options of the
+% article class will be appropriate for a presentation class, e. g. twocolumn.
+%
+%A simple example document:
+%\begin{lstlisting}[morekeywords={AddToShipoutPicture,includegraphics,distance}]
+% \documentclass[12pt]{bidipresentation}
+% \usepackage{eso-pic}
+% \usepackage[RTLdocument]{bidi}
+% \pagestyle{pres}
+% \AddToShipoutPicture{
+% \includegraphics{gradient2.png}
+%}
+% \begin{document}
+% \begin{titlepage}
+%\centering
+% \distance{1}
+% {
+%\Huge \bfseries Title of the presentation \par
+%}
+% \vspace{1.3ex} \large
+% Author\\[2ex]Institution
+% \distance{2}
+% \end{titlepage}
+% \begin{plainslide}[Title of Page]
+%The first page
+%\end{plainslide}
+%\begin{rawslide}
+%The second page
+% \end{rawslide}
+%\end{document}
+%\end{lstlisting}
+%The title page can be created within the \texttt{titlepage} environment, the \Lcs{maketitle}
+%command is not available. Slides may be created with the \texttt{plainslide} environment, you may add the title of the slide with the optional parameter. The
+%contents of the slide are centered vertically. Another environment generating a slide is \texttt{rawslide}: slides are written without title, contents are not
+%vertically centered.
+%
+%The \Lcs{distance}\Largb{\Larga{number}} command allows to introduce vertical space into
+%slides constructed with the \texttt{rawslide} and \texttt{titlepage} environments. You should
+%use pairs of \Lcs{distance}\Largb{} commands with numbers indicating the relative
+%height of empty space, see the titlepage in the example above.
+%
+%Pictures can be included with the \Lcs{includegraphics} command of the \textsf{graphicx} package. Please be aware that the dimensions of the pages are 128mm $\times$
+%96mm and therefore included graphics are scaled appropriately.
+%
+%\paragraph{Enhancements to \textsf{bidipresentation}:}
+%
+%\subparagraph{Fill background of a presentation with bitmaps:}
+%\textsf{eso-pic} package allows you to paint the background with a picture:
+%\begin{lstlisting}[morekeywords={AddToShipoutPicture,includegraphics}]
+%\usepackage{eso-pic}
+%...
+%\AddToShipoutPicture{
+%\includegraphics{gradient2.png}
+%}
+%\end{lstlisting}
+%\Lcs{AddToShipoutPicture}\Largb{} puts the picture on every page, \Lcs{AddToShipoutPicture*}\Largb{}
+%puts it on to the current page, \Lcs{ClearShipoutPicture} clears the background
+%beginning with the current page. Details of \textsf{eso-pic}’s commands can be
+%found in its own documentation.
+%
+%
+%
+%\section{Some Useful Internal Macros}
+%There are some useful internal macros that might be helpful for you. This section, explains all these useful internals.
+%\subsection{RTL Conditional}
+%\begin{BDef}
+%\Lcs{if@RTL}
+%\end{BDef}
+%\Lcs{if@RTL} conditional is true inside RTL mode and it is false in LTR mode.
+%\subsection{Main RTL Conditional}
+%\begin{BDef}
+%\Lcs{if@RTLmain}
+%\end{BDef}
+%If the main direction of the document is RTL, \Lcs{if@RTLmain} is true and if the main direction of the document is LTR, \Lcs{if@RTLmain} is false.
+%\subsection{Latin Conditional}
+%\begin{BDef}
+%\Lcs{if@Latin}
+%\end{BDef}
+%\Lcs{if@Latin} inside any environment that uses Latin font is true and inside any environment that uses RTL font is false.
+%\subsection{Tags Internal Macro}
+%\begin{BDef}
+%\Lcs{@iftagsloaded}\Largb{\Larga{tags name}}\Largb{\Larga{do thing(s) if the tag is loaded}}\\
+%\Largb{\Larga{do thing(s) if the tag is not loaded}}
+%\end{BDef}
+%As you can see, the syntax of \Lcs{@iftagsloaded} is exactly the same as the syntax of \Lcs{@ifpackageloaded} and \Lcs{@ifclassloaded}. By tags, we mean things like \texttt{leqno} or \texttt{reqno}. Please note that in the argument \Larga{tags name}, the extension \texttt{clo} should not be given.
+%\subsection{Definition File Loaded Internal Macro}
+%\begin{BDef}
+%\Lcs{@ifdefinitionfileloaded}\Largb{\Larga{definition file name}}\\
+%\Largb{\Larga{do thing(s) if the definition file is loaded}}\\
+%\Largb{\Larga{do thing(s) if the definition file is not loaded}}
+%\end{BDef}
+%As you can see, the syntax of \Lcs{@ifdefinitionfileloaded} is exactly the same as the syntax of \Lcs{@ifpackageloaded} and \Lcs{@ifclassloaded}. By definition file, we mean things like \texttt{hyperref-bidi.def} or \texttt{wrapfig-bidi.def}. Please note that in the argument \Larga{definition file name}, the extension \texttt{def} should not be given.
+%\subsection{Tabular Conditional}
+%\begin{BDef}
+%\Lcs{if@RTLtab}
+%\end{BDef}
+%If the tabular is typeset RTL, \Lcs{if@RTLtab} is true and if the tabular is typeset LTR, \Lcs{if@RTLtab} is false.
+%\subsection{Footnote Conditional}
+%\begin{BDef}
+%\Lcs{if@RTL@footnote}
+%\end{BDef}
+%When footnotes are typeset RTL, \Lcs{if@RTL@footnote} is true and when footnotes are typeset LTR, \Lcs{if@RTL@footnote} is false.
+%\subsection{Direction Ensuring Macros}
+%\begin{BDef}
+%\Lcs{@ensure@RTL}\Largb{\Larga{text}}\quad\Lcs{@ensure@RL}\Largb{\Larga{text}}\quad\Lcs{@ensure@LTR}\Largb{\Larga{text}}\\
+%\Lcs{@ensure@LR}\Largb{\Larga{text}}\quad
+%\Lcs{@ensure@dir}\Largb{\Larga{text}}\quad\Lcs{@ensure@maindir}\Largb{\Larga{text}}
+%\end{BDef}
+%\begin{itemize}
+%\item \Lcs{@ensure@RTL} and \Lcs{@ensure@RL} internals make sure that \Larga{text} is always typeset RTL, independent on the current mode.
+%\item \Lcs{@ensure@LTR} and \Lcs{@ensure@LR} internals make sure that \Larga{text} is always typeset LTR, independent on the current mode.
+%\item \Lcs{@ensure@dir} and \Lcs{@ensure@maindir} if used in RTL mode, they put \Larga{text} inside \Lcs{RLE} and if used in LTR mode, they put the text as it is.
+%\end{itemize}
+%\subsection{Reset Direction Macro}
+%\begin{BDef}
+%\Lcs{save@dir}\quad\Lcs{saved@@dir}\quad\Lcs{reset@dir}
+%\end{BDef}
+%\begin{itemize}
+%\item \Lcs{save@dir}, if the direction of typesetting is RTL, defines \Lcs{saved@@dir} to be RTL and if the direction of typesetting is LTR, defines \Lcs{saved@@dir} to be LTR.
+%\item \Lcs{reset@dir}, if \Lcs{saved@@dir} is defined as RTL, inserts \Lcs{setRTL} otherwise, if \Lcs{saved@@dir} is defined as LTR, inserts \Lcs{setLTR}, otherwise does nothing.
+%\end{itemize}
+%
+% \StopEventually{}
+%
+% \section{\textsf{\jobname} implementation}
+% \subsection{\textsf{amsart-xetex-bidi.def}}
+%\iffalse
+%<*amsart-xetex-bidi.def>
+%\fi
+%
+%
+%
+% \begin{macrocode}
+\ProvidesFile{amsart-xetex-bidi.def}[2010/07/25 v0.5 bidi adaptations for amsart class for XeTeX engine]
+\def\@tocline#1#2#3#4#5#6#7{\relax
+ \ifnum #1>\c@tocdepth % then omit
+ \else
+ \par \addpenalty\@secpenalty\addvspace{#2}%
+ \begingroup \hyphenpenalty\@M
+ \@ifempty{#4}{%
+ \@tempdima\csname r@tocindent\number#1\endcsname\relax
+ }{%
+ \@tempdima#4\relax
+ }%
+ \parindent\z@ \if@RTL\rightskip\else\leftskip\fi#3\relax \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima\relax
+ \if@RTL\leftskip\else\rightskip\fi\@pnumwidth plus4em \parfillskip-\@pnumwidth
+ #5\leavevmode\hskip-\@tempdima #6\nobreak\relax
+ \hfil\hbox to\@pnumwidth{\@tocpagenum{#7}}\par
+ \nobreak
+ \endgroup
+ \fi}
+\renewcommand\thesubsection {\thesection\@SepMark\arabic{subsection}}
+\renewcommand\thesubsubsection {\thesubsection \@SepMark\arabic{subsubsection}}
+\renewcommand\theparagraph {\thesubsubsection\@SepMark\arabic{paragraph}}
+\renewcommand\thesubparagraph {\theparagraph\@SepMark\arabic{subparagraph}}
+\def\part{\@startsection{part}{0}%
+ \z@{\linespacing\@plus\linespacing}{.5\linespacing}%
+ {\normalfont\bfseries\if@RTL\raggedleft\else\raggedright\fi}}
+\def\right@footnote{%
+ \hbox to \columnwidth
+ {\beginR \vbox{\kern-.4\p@
+ \hrule\@width 5pc\kern11\p@\kern-\footnotesep}\hfil\endR}}
+\def\left@footnote{\kern-.4\p@
+ \hrule\@width 5pc\kern11\p@\kern-\footnotesep}
+\long\def\@footnotetext#1{%
+ \begingroup
+ \setbox\footins
+ \vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi\reset@font\footnotesize
+ \interlinepenalty\interfootnotelinepenalty
+ \splittopskip\footnotesep
+ \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
+ \hsize\columnwidth \@parboxrestore \parindent\normalparindent \sloppy
+ \bidi@footnotetext@dir{#1}%
+ \protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext
+ {\rule{\z@}{\footnotesep}\ignorespaces#1\unskip\strut\par}}%
+ \bidi@footnotetext@after
+ \insert\footins{\unvbox\footins}%
+ \endgroup}
+\long\def\@RTLfootnotetext#1{%
+ \begingroup
+ \setbox\footins
+ \vbox{\@RTLtrue\reset@font\footnotesize
+ \interlinepenalty\interfootnotelinepenalty
+ \splittopskip\footnotesep
+ \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
+ \hsize\columnwidth \@parboxrestore \parindent\normalparindent \sloppy
+ \bidi@footnotetext@dir{#1}%
+ \protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext
+ {\rule{\z@}{\footnotesep}\ignorespaces #1\unskip\strut\par}}%
+ \bidi@footnotetext@after
+ \insert\footins{\unvbox\footins}%
+ \endgroup}
+\long\def\@LTRfootnotetext#1{%
+ \begingroup
+ \setbox\footins
+ \vbox{\@RTLfalse\reset@font\footnotesize
+ \interlinepenalty\interfootnotelinepenalty
+ \splittopskip\footnotesep
+ \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
+ \hsize\columnwidth \@parboxrestore \parindent\normalparindent \sloppy
+ \bidi@footnotetext@dir{#1}%
+ \protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext
+ {\rule{\z@}{\footnotesep}\ignorespaces #1\unskip\strut\par}}%
+ \bidi@footnotetext@after
+ \insert\footins{\unvbox\footins}%
+ \endgroup}
+\renewenvironment{thebibliography}[1]{%
+ \@bibtitlestyle
+ \normalfont\bibliofont\labelsep .5em\relax
+ \renewcommand\theenumiv{\arabic{enumiv}}\let\p@enumiv\@empty
+ \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
+ \list{\@biblabel{\theenumiv}}{\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth \advance\leftmargin\labelsep
+ \usecounter{enumiv}}%
+ \sloppy \clubpenalty\@M \widowpenalty\clubpenalty
+ \sfcode`\.=\@m
+}{%
+ \def\@noitemerr{\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist
+}
+% \end{macrocode}
+%
+%\iffalse
+%</amsart-xetex-bidi.def>
+%<*amsbook-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{amsbook-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{amsbook-xetex-bidi.def}[2010/07/25 v0.7 bidi adaptations for amsbook class for XeTeX engine]
+\def\@tocline#1#2#3#4#5#6#7{\relax
+ \ifnum #1>\c@tocdepth % then omit
+ \else
+ \par \addpenalty\@secpenalty\addvspace{#2}%
+ \begingroup \hyphenpenalty\@M
+ \@ifempty{#4}{%
+ \@tempdima\csname r@tocindent\number#1\endcsname\relax
+ }{%
+ \@tempdima#4\relax
+ }%
+ \parindent\z@ \if@RTL\rightskip\else\leftskip\fi#3\relax \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima\relax
+ \if@RTL\leftskip\else\rightskip\fi\@pnumwidth plus4em \parfillskip-\@pnumwidth
+ #5\leavevmode\hskip-\@tempdima #6\nobreak\relax
+ \hfil\hbox to\@pnumwidth{\@tocpagenum{#7}}\par
+ \nobreak
+ \endgroup
+ \fi}
+\renewcommand\thesubsection {\thesection\@SepMark\arabic{subsection}}
+\renewcommand\thesubsubsection {\thesubsection \@SepMark\arabic{subsubsection}}
+\renewcommand\theparagraph {\thesubsubsection\@SepMark\arabic{paragraph}}
+\renewcommand\thesubparagraph {\theparagraph\@SepMark\arabic{subparagraph}}
+\def\theindex{\@restonecoltrue\if@twocolumn\@restonecolfalse\fi
+ \columnseprule\z@ \columnsep 35\p@
+ \@indextitlestyle
+ \thispagestyle{plain}%
+ \let\item\@idxitem
+ \parindent\z@ \parskip\z@\@plus.3\p@\relax
+ \if@RTL\raggedleft\else\raggedright\fi
+ \hyphenpenalty\@M
+ \footnotesize}
+\def\right@footnote{%
+ \hbox to \columnwidth
+ {\beginR \vbox{\kern-.4\p@
+ \hrule\@width 5pc\kern11\p@\kern-\footnotesep}\hfil\endR}}
+\def\left@footnote{\kern-.4\p@
+ \hrule\@width 5pc\kern11\p@\kern-\footnotesep}
+\long\def\@footnotetext#1{%
+ \begingroup
+ \setbox\footins
+ \vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi\reset@font\footnotesize
+ \interlinepenalty\interfootnotelinepenalty
+ \splittopskip\footnotesep
+ \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
+ \hsize\columnwidth \@parboxrestore \parindent\normalparindent \sloppy
+ \bidi@footnotetext@dir{#1}%
+ \protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext
+ {\rule{\z@}{\footnotesep}\ignorespaces#1\unskip\strut\par}}%
+ \bidi@footnotetext@after
+ \insert\footins{\unvbox\footins}%
+ \endgroup}
+\long\def\@RTLfootnotetext#1{%
+ \begingroup
+ \setbox\footins
+ \vbox{\@RTLtrue\reset@font\footnotesize
+ \interlinepenalty\interfootnotelinepenalty
+ \splittopskip\footnotesep
+ \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
+ \hsize\columnwidth \@parboxrestore \parindent\normalparindent \sloppy
+ \bidi@footnotetext@dir{#1}%
+ \protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext
+ {\rule{\z@}{\footnotesep}\ignorespaces #1\unskip\strut\par}}%
+ \bidi@footnotetext@after
+ \insert\footins{\unvbox\footins}%
+ \endgroup}
+\long\def\@LTRfootnotetext#1{%
+ \begingroup
+ \setbox\footins
+ \vbox{\@RTLfalse\reset@font\footnotesize
+ \interlinepenalty\interfootnotelinepenalty
+ \splittopskip\footnotesep
+ \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
+ \hsize\columnwidth \@parboxrestore \parindent\normalparindent \sloppy
+ \bidi@footnotetext@dir{#1}%
+ \protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext
+ {\rule{\z@}{\footnotesep}\ignorespaces #1\unskip\strut\par}}%
+ \bidi@footnotetext@after
+ \insert\footins{\unvbox\footins}%
+ \endgroup}
+\renewenvironment{thebibliography}[1]{%
+ \@bibtitlestyle
+ \normalfont\bibliofont\labelsep .5em\relax
+ \renewcommand\theenumiv{\arabic{enumiv}}\let\p@enumiv\@empty
+ \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
+ \list{\@biblabel{\theenumiv}}{\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth \advance\leftmargin\labelsep
+ \usecounter{enumiv}}%
+ \sloppy \clubpenalty\@M \widowpenalty\clubpenalty
+ \sfcode`\.=\@m
+}{%
+ \def\@noitemerr{\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist
+}
+\def\@makechapterhead#1{\global\topskip 7.5pc\relax
+ \begingroup
+ \fontsize{\@xivpt}{18}\bfseries\centering
+ \ifnum\c@secnumdepth>\m@ne
+ \leavevmode \hskip-\if@RTL\rightskip\else\leftskip\fi
+ \rlap{\vbox to\z@{\vss
+ \centerline{\normalsize\mdseries
+ \uppercase\@xp{\chaptername}\enspace\thechapter}
+ \vskip 3pc}}\hskip\if@RTL\rightskip\else\leftskip\fi\fi
+ #1\par \endgroup
+ \skip@34\p@ \advance\skip@-\normalbaselineskip
+ \vskip\skip@ }
+% \end{macrocode}
+% \iffalse
+%</amsbook-xetex-bidi.def>
+%<*amsmath-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{amsmath-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{amsmath-xetex-bidi.def}[2010/07/25 v0.2 bidi adaptations for amsmath package for XeTeX engine]
+\everydisplay\@xp{\the\everydisplay \@displaytrue}
+\renewcommand{\numberwithin}[3][\arabic]{%
+ \@ifundefined{c@#2}{\@nocounterr{#2}}{%
+ \@ifundefined{c@#3}{\@nocnterr{#3}}{%
+ \@addtoreset{#2}{#3}%
+ \@xp\xdef\csname the#2\endcsname{%
+ \@xp\@nx\csname the#3\endcsname \@SepMark\@nx#1{#2}}}}%
+}
+\def\tagform@#1{\maketag@@@{\if@RTL\beginR\fi(\ignorespaces#1\unskip\@@italiccorr)\if@RTL\endR\fi}}
+\renewcommand{\eqref}[1]{\beginL\textup{\tagform@{\ref{#1}}}\endL}
+\let\@@text=\text
+\def\text#1{\@@text{\if@RTL\beginR\fi#1\if@RTL\endR\fi}}
+\DeclareRobustCommand{\[}{\begin{equation*}}
+\DeclareRobustCommand{\]}{\end{equation*}}
+% \end{macrocode}
+% \iffalse
+%</amsmath-xetex-bidi.def>
+%<*amsthm-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{amsthm-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{amsthm-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for amsthm package for XeTeX engine]
+\def\@thmcountersep{\@SepMark}
+% \end{macrocode}
+% \iffalse
+%</amsthm-xetex-bidi.def>
+%<*array-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{array-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{array-xetex-bidi.def}[2010/08/01 v0.2b bidi adaptations for array package for XeTeX engine]
+\def\@testpach{\@chclass
+ \ifnum \@lastchclass=6 \@ne \@chnum \@ne \else
+ \ifnum \@lastchclass=7 5 \else
+ \ifnum \@lastchclass=8 \tw@ \else
+ \ifnum \@lastchclass=9 \thr@@
+ \else \z@
+ \ifnum \@lastchclass = 10 \else
+ \edef\@nextchar{\expandafter\string\@nextchar}%
+ \@chnum
+ \if \@nextchar c\z@ \else
+ \if \@nextchar \if@RTLtab r\else l\fi\@ne \else
+ \if \@nextchar \if@RTLtab l\else r\fi\tw@ \else
+ \z@ \@chclass
+ \if\@nextchar |\@ne \else
+ \if \@nextchar !6 \else
+ \if \@nextchar @7 \else
+ \if \@nextchar <8 \else
+ \if \@nextchar >9 \else
+ 10
+ \@chnum
+ \if \@nextchar m\thr@@\else
+ \if \@nextchar p4 \else
+ \if \@nextchar b5 \else
+ \z@ \@chclass \z@ \@preamerr \z@ \fi \fi \fi \fi
+ \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi}
+\def\@tabular{\if@RTL\@RTLtabtrue\fi%
+ \leavevmode
+ \hbox \bgroup\if@RTLtab\beginR \fi $\col@sep\tabcolsep \let\d@llarbegin\begingroup
+ \let\d@llarend\endgroup
+ \@tabarray}
+\def\endtabular{\endarray $\if@RTLtab\endR\fi\egroup\@RTLtabfalse}
+\expandafter\let\csname endtabular*\endcsname=\endtabular
+\def\@array[#1]#2{%
+ \@tempdima \ht \strutbox
+ \advance \@tempdima by\extrarowheight
+ \setbox \@arstrutbox \hbox{\vrule
+ \@height \arraystretch \@tempdima
+ \@depth \arraystretch \dp \strutbox
+ \@width \z@}%
+ \begingroup
+ \@mkpream{#2}%
+ \xdef\@preamble{\noexpand \ialign \@halignto
+ \bgroup \@arstrut \@preamble
+ \tabskip \z@ \cr}%
+ \endgroup
+ \@arrayleft
+ \if #1t\vtop \else \if#1b\vbox \else \vcenter \fi \fi
+ \bgroup
+ \let \@sharp ##\let \protect \relax
+ \lineskip \z@
+ \baselineskip \z@
+ \m@th
+ \let\\\@arraycr \let\tabularnewline\\\let\par\@empty \if@RTLtab\hbox\bgroup\beginR\vbox\bgroup\fi\@preamble}
+\def\@tabarray{\@ifnextchar[{\@array}{\@array[c]}}
+\def\endarray{\crcr \egroup\if@RTLtab\egroup\endR\egroup\fi \egroup \@arrayright \gdef\@preamble{}}
+% \end{macrocode}
+% \iffalse
+%</array-xetex-bidi.def>
+%<*article-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{article-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{article-xetex-bidi.def}[2010/07/25 v0.4 bidi adaptations for standard article class for XeTeX engine]
+\if@titlepage
+ \renewcommand\maketitle{\begin{titlepage}%
+ \let\footnotesize\small
+ \let\right@footnote\relax
+ \let\left@footnote\relax
+ \let\textwidth@footnote\relax
+ \let \footnote \thanks
+ \let \LTRfootnote \LTRthanks
+ \let \RTLfootnote \RTLthanks
+ \null\vfil
+ \vskip 60\p@
+ \begin{center}%
+ {\LARGE \@title \par}%
+ \vskip 3em%
+ {\large
+ \lineskip .75em%
+ \begin{tabular}[t]{c}%
+ \@author
+ \end{tabular}\par}%
+ \vskip 1.5em%
+ {\large \@date \par}% % Set date in \large size.
+ \end{center}\par
+ \@thanks
+ \vfil\null
+ \end{titlepage}%
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\LTRthanks\relax
+ \global\let\RTLthanks\relax
+ \global\let\maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@date\@empty
+ \global\let\@title\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}
+\else
+\renewcommand\maketitle{\par
+ \begingroup
+ \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
+ \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
+ \long\def\@makefntext##1{\parindent 1em\noindent
+ \hb@xt@1.8em{%
+ \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
+ \if@twocolumn
+ \ifnum \col@number=\@ne
+ \@maketitle
+ \else
+ \twocolumn[\@maketitle]%
+ \fi
+ \else
+ \newpage
+ \global\@topnum\z@ % Prevents figures from going at top of page.
+ \@maketitle
+ \fi
+ \thispagestyle{plain}\@thanks
+ \endgroup
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\LTRthanks\relax
+ \global\let\RTLthanks\relax
+ \global\let\maketitle\relax
+ \global\let\@maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@date\@empty
+ \global\let\@title\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}
+\def\@maketitle{%
+ \newpage
+ \null
+ \vskip 2em%
+ \begin{center}%
+ \let \footnote \thanks
+ \let \LTRfootnote \LTRthanks
+ \let \RTLfootnote \RTLthanks
+ {\LARGE \@title \par}%
+ \vskip 1.5em%
+ {\large
+ \lineskip .5em%
+ \begin{tabular}[t]{c}%
+ \@author
+ \end{tabular}\par}%
+ \vskip 1em%
+ {\large \@date}%
+ \end{center}%
+ \par
+ \vskip 1.5em}
+\fi
+\renewcommand*\l@part[2]{%
+ \ifnum \c@tocdepth >-2\relax
+ \addpenalty\@secpenalty
+ \addvspace{2.25em \@plus\p@}%
+ \setlength\@tempdima{3em}%
+ \begingroup
+ \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
+ \parfillskip -\@pnumwidth
+ {\leavevmode
+ \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
+ \nobreak
+ \if@compatibility
+ \global\@nobreaktrue
+ \everypar{\global\@nobreakfalse\everypar{}}%
+ \fi
+ \endgroup
+ \fi}
+\renewcommand*\l@section[2]{%
+ \ifnum \c@tocdepth >\z@
+ \addpenalty\@secpenalty
+ \addvspace{1.0em \@plus\p@}%
+ \setlength\@tempdima{1.5em}%
+ \begingroup
+ \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
+ \parfillskip -\@pnumwidth
+ \leavevmode \bfseries
+ \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
+ \hskip -\if@RTL\rightskip\else\leftskip\fi
+ #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
+ \endgroup
+ \fi}
+\renewcommand\left@footnote{%
+ \kern-3\p@
+ \hrule\@width.4\columnwidth
+ \kern2.6\p@}
+\renewcommand\right@footnote{%
+ \hbox to \columnwidth
+ {\beginR \vbox{%
+ \kern-3\p@
+ \hrule\@width.4\columnwidth
+ \kern2.6\p@}\hfil\endR}}
+\renewcommand\thesubsection {\thesection\@SepMark\@arabic\c@subsection}
+\renewcommand\thesubsubsection{\thesubsection\@SepMark\@arabic\c@subsubsection}
+\renewcommand\theparagraph {\thesubsubsection\@SepMark\@arabic\c@paragraph}
+\renewcommand\thesubparagraph {\theparagraph\@SepMark\@arabic\c@subparagraph}
+\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@ \if@RTL\raggedleft\else\raggedright\fi
+ \interlinepenalty \@M
+ \normalfont
+ \ifnum \c@secnumdepth >\m@ne
+ \Large\bfseries \partname\nobreakspace\thepart
+ \par\nobreak
+ \fi
+ \huge \bfseries #2%
+ \markboth{}{}\par}%
+ \nobreak
+ \vskip 3ex
+ \@afterheading}
+\renewenvironment{thebibliography}[1]
+ {\section*{\refname}%
+ \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
+ \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
+ \list{\@biblabel{\@arabic\c@enumiv}}%
+ {\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \usecounter{enumiv}%
+ \let\p@enumiv\@empty
+ \renewcommand\theenumiv{\@arabic\c@enumiv}}%
+ \sloppy
+ \clubpenalty4000
+ \@clubpenalty \clubpenalty
+ \widowpenalty4000%
+ \sfcode`\.\@m}
+ {\def\@noitemerr
+ {\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist}
+% \end{macrocode}
+% \iffalse
+%</article-xetex-bidi.def>
+%<*artikel1-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{artikel1-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{artikel1-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for artikel1 class for XeTeX engine]
+\renewcommand*\head@style{%
+ \interlinepenalty \@M
+ \hyphenpenalty=\@M \exhyphenpenalty=\@M
+ \if@RTL\leftskip\else\rightskip\fi=0cm plus .7\hsize\relax}
+\if@titlepage
+ \renewenvironment{abstract}{%
+ \titlepage
+ \null\vfil
+ \section*{\SectFont\abstractname}
+ \noindent\ignorespaces}
+ {\par\vfil\null\endtitlepage}
+\else
+ \renewenvironment{abstract}{%
+ \if@twocolumn
+ \section*{\abstractname}%
+ \else
+ \bgroup\if@RTL\leftskip\else\rightskip\fi=\unitindent
+ \section*{\small\SectFont\abstractname}%
+ \noindent\ignorespaces
+ \fi}
+ {\if@twocolumn\else\par\egroup\fi}
+\fi
+\renewcommand*\@regtocline[3]{%
+ \ifnum #1>\c@tocdepth
+ \else
+ \vskip\z@\@plus.2\p@
+ {\hangindent\z@ \@afterindenttrue \interlinepenalty\@M
+ \if@RTL\rightskip\else\leftskip\fi\unitindent
+ \if@RTL\leftskip\else\rightskip\fi\unitindent\@plus 1fil
+ \parfillskip\z@
+ \@tempdima\unitindent
+ \parindent\z@
+ \leavevmode
+ \hbox{}\hskip -\if@RTL\rightskip\else\leftskip\fi\relax#2\nobreak
+ \hskip 1em \nobreak{\slshape #3}\par
+ }%
+ \fi}
+\if@oldtoc
+\renewcommand*\l@part[2]{%
+ \ifnum \c@tocdepth >-2\relax
+ \addpenalty\@secpenalty
+ \addvspace{2.25em \@plus\p@}%
+ \begingroup
+ \setlength\@tempdima{3em}%
+ \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
+ \parfillskip -\@pnumwidth
+ {\leavevmode
+ \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
+ \nobreak
+ \if@compatibility
+ \global\@nobreaktrue
+ \everypar{\global\@nobreakfalse\everypar{}}%
+ \fi
+ \endgroup
+ \fi}
+\else
+ \renewcommand*\l@part{%
+ \ifnum \c@tocdepth >-2\relax
+ \addpenalty\@secpenalty
+ \addvspace{2.25em \@plus \p@}%
+ \@regtocline{0}%
+ \fi}
+\fi
+\if@oldtoc
+\renewcommand*\l@section[2]{%
+ \addpenalty\@secpenalty
+ \addvspace{1.0em \@plus\p@}%
+ \setlength\@tempdima{1.5em}%
+ \begingroup
+ \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
+ \parfillskip -\@pnumwidth
+ \leavevmode \bfseries
+ \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
+ \hskip -\if@RTL\rightskip\else\leftskip\fi
+ #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
+ \endgroup}
+\else
+ \renewcommand*\l@section{\@regtocline{1}}
+\fi
+\renewcommand*\thesubsection{\thesection\@SepMark\@arabic\c@subsection}
+\renewcommand*\thesubsubsection{\thesubsection\@SepMark\@arabic\c@subsubsection}
+\renewcommand*\theparagraph{\thesubsubsection\@SepMark\@arabic\c@paragraph}
+\renewcommand*\thesubparagraph{\theparagraph\@SepMark\@arabic\c@subparagraph}
+\renewenvironment{thebibliography}[1]
+ {\section*{\refname}%
+ \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
+ \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
+ \list{\@biblabel{\@arabic\c@enumiv}}%
+ {\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \usecounter{enumiv}%
+ \let\p@enumiv\@empty
+ \renewcommand*\theenumiv{\@arabic\c@enumiv}}%
+ \sloppy\clubpenalty4000\widowpenalty4000%
+ \sfcode`\.\@m}
+ {\def\@noitemerr
+ {\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist}
+\renewcommand*\left@footnote{%
+ \kern-3\p@
+ \kern.5\baselineskip
+ \hrule\@width\unitindent
+ \kern.4\baselineskip
+}
+\renewcommand*\right@footnote{%
+ \hbox to \columnwidth
+ {\beginR \vbox{%
+ \kern-3\p@
+ \kern.5\baselineskip
+ \hrule\@width\unitindent
+ \kern.4\baselineskip}\hfil\endR}
+}
+\if@titlepage
+\renewcommand*\TitleFont{\rmfamily}
+\renewcommand*\maketitle{%
+ \begin{titlepage}%
+ \let\footnotesize\small
+ \let\right@footnote\relax
+ \let\left@footnote\relax
+ \let\textwidth@footnote\relax
+ \let \footnote \thanks
+ \long\def\@makefntext##1{\parindent\z@
+ \def\labelitemi{\textendash}\@revlabeltrue
+ \leavevmode\@textsuperscript{\@thefnmark}\kern1em\relax ##1}
+ \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
+ \if@compatibility\setcounter{page}{0}\fi
+ \null\vfil
+ \vskip 60\p@
+ \begin{center}%
+ \TitleFont
+ {\LARGE \def\\{\penalty -\@M}
+ \if@allcaps
+ \expandafter\uc@nothanks\@title\thanks\relax
+ \else
+ \@title
+ \fi\par}%
+ \vskip 3em%
+ {\large
+ \lineskip .75em \parindent\z@
+ \begin{tabular}[t]{c}%
+ \if@allcaps
+ \expandafter\uc@authornothanks\@author\and\relax
+ \else
+ \@author
+ \fi
+ \end{tabular}\par}%
+ \vskip 1.5em%
+ {\large
+ \if@allcaps
+ \uppercase\expandafter{\@date}%
+ \else
+ \@date
+ \fi\par}%
+ \end{center}\par
+ \@thanks
+ \vfil\null
+ \end{titlepage}%
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@title\@empty
+ \global\let\@date\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}
+\def\uc@nothanks#1\thanks{\uppercase{#1}\futurelet\@tempa\uc@tx}
+\def\uc@authornothanks#1\and{\uc@nothanks#1\thanks\relax
+ \futurelet\@tempa\uc@ax}
+\def\uc@ax{%
+ \ifx\@tempa\relax
+ \else
+ \\ \andname \\ \expandafter\uc@authornothanks
+ \fi}
+\def\uc@tx{\ifx\@tempa\relax
+ \else \expandafter\uc@ty \fi}
+\def\uc@ty#1{\thanks{#1}\uc@nothanks}
+\else
+\renewcommand*\maketitle{\par
+ \begingroup
+ \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
+ \def\@makefnmark{\rlap{%
+ \@textsuperscript{\normalfont\@thefnmark}}}%
+ \long\def\@makefntext{\@xmakefntext{%
+ \@textsuperscript{\normalfont\@thefnmark}}}%
+ \if@twocolumn
+ \ifnum \col@number=\@ne
+ \@maketitle
+ \else
+ \twocolumn[\@maketitle]%
+ \fi
+ \else
+ \newpage
+ \global\@topnum\z@
+ \@maketitle
+ \fi
+ \thispagestyle{plain}\@thanks
+ \endgroup
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\maketitle\relax
+ \global\let\@maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@title\@empty
+ \global\let\@date\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+ }
+\def\@maketitle{%
+ \newpage
+ \null
+ \vskip 2em%
+ \begin{center}%
+ \let \footnote \thanks
+ {\LARGE \TitleFont \@title \par}%
+ \vskip 1.5em%
+ {\large \TitleFont
+ \lineskip .5em%
+ \begin{tabular}[t]{c}%
+ \@author
+ \end{tabular}\par}%
+ \vskip 1em%
+ {\large \TitleFont \@date}%
+ \end{center}%
+ \par
+ \vskip 1.5em}
+\fi
+% \end{macrocode}
+% \iffalse
+%</artikel1-xetex-bidi.def>
+%<*artikel2-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{artikel2-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{artikel2-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for artikel2 class for XeTeX engine]
+\renewcommand*\@regtocline[3]{%
+ \ifnum #1>\c@tocdepth
+ \else
+ \vskip\z@\@plus.2\p@
+ {\hangindent\z@ \@afterindenttrue \interlinepenalty\@M
+ \if@RTL\rightskip\else\leftskip\fi\unitindent
+ \if@RTL\leftskip\else\rightskip\fi\unitindent\@plus 1fil
+ \parfillskip\z@
+ \@tempdima\unitindent
+ \advance\@tempdima by \othermargin
+ \parindent\z@
+ \leavevmode
+ \hbox{}\hskip -\if@RTL\rightskip\else\leftskip\fi\relax#2\nobreak
+ \hskip 1em \nobreak{\slshape #3}\par
+ }%
+ \fi}
+\if@oldtoc
+\renewcommand*\l@section[2]{%
+ \addpenalty\@secpenalty
+ \addvspace{1.0em \@plus\p@}%
+ \setlength\@tempdima{1.5em}%
+ \begingroup
+ \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
+ \parfillskip -\@pnumwidth
+ \leavevmode \bfseries
+ \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
+ \hskip -\if@RTL\rightskip\else\leftskip\fi
+ #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
+ \endgroup}
+\else
+ \renewcommand*\l@section{\@regtocline{1}}
+\fi
+\if@oldtoc
+\renewcommand*\l@part[2]{%
+ \ifnum \c@tocdepth >-2\relax
+ \addpenalty\@secpenalty
+ \addvspace{2.25em \@plus\p@}%
+ \begingroup
+ \setlength\@tempdima{3em}%
+ \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
+ \parfillskip -\@pnumwidth
+ {\leavevmode
+ \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
+ \nobreak
+ \if@compatibility
+ \global\@nobreaktrue
+ \everypar{\global\@nobreakfalse\everypar{}}%
+ \fi
+ \endgroup
+ \fi}
+\else
+ \renewcommand*\l@part{%
+ \ifnum \c@tocdepth >-2\relax
+ \addpenalty\@secpenalty
+ \addvspace{2.25em \@plus \p@}%
+ \@regtocline{0}%
+ \fi}
+\fi
+\renewcommand*\head@style{%
+ \interlinepenalty \@M
+ \hyphenpenalty=\@M \exhyphenpenalty=\@M
+ \if@RTL\leftskip\else\rightskip\fi=0cm plus .7\hsize\relax}
+\if@titlepage
+ \renewenvironment{abstract}{%
+ \titlepage
+ \null\vfil
+ \section*{\SectFont\abstractname}%
+ \noindent\ignorespaces}
+ {\par\vfil\null\endtitlepage}
+\else
+ \renewenvironment{abstract}{%
+ \if@twocolumn
+ \section*{\abstractname}%
+ \else
+ \section*{\hskip\unitindent\small\SectFont\abstractname}%
+ \list{}{\setlength\listparindent{\unitindent}%
+ \setlength\parindent {\z@}%
+ \setlength\leftmargin {\unitindent}%
+ \setlength\rightmargin {\unitindent}%
+ \setlength\parsep {\z@}}%
+ \item[]%
+ \fi}
+ {\if@twocolumn\else\par\endlist\fi}
+\fi
+\renewcommand*\thesubsection{\thesection\@SepMark\@arabic\c@subsection}
+\renewcommand*\thesubsubsection{\thesubsection\@SepMark\@arabic\c@subsubsection}
+\renewcommand*\theparagraph{\thesubsubsection\@SepMark\@arabic\c@paragraph}
+\renewcommand*\thesubparagraph{\theparagraph\@SepMark\@arabic\c@subparagraph}
+\renewcommand*\left@footnote{%
+ \kern-3\p@
+ \hrule\@width 3\unitindent
+ \kern 2.6\p@
+}
+\renewcommand*\right@footnote{%
+ \hbox to \columnwidth
+ {\beginR \vbox{%
+ \kern-3\p@
+ \hrule\@width 3\unitindent
+ \kern 2.6\p@}\hfil\endR}
+}
+\renewenvironment{thebibliography}[1]
+ {\section*{\refname}%
+ \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
+ \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
+ \list{\@biblabel{\@arabic\c@enumiv}}%
+ {\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \usecounter{enumiv}%
+ \let\p@enumiv\@empty
+ \renewcommand*\theenumiv{\@arabic\c@enumiv}}%
+ \sloppy\clubpenalty4000\widowpenalty4000%
+ \sfcode`\.\@m}
+ {\def\@noitemerr
+ {\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist}
+\if@titlepage
+\renewcommand*\TitleFont{\rmfamily}
+\renewcommand*\maketitle{%
+ \begin{titlepage}%
+ \let\footnotesize\small
+ \let\right@footnote\relax
+ \let\left@footnote\relax
+ \let\textwidth@footnote\relax
+ \let \footnote \thanks
+ \long\def\@makefntext##1{\parindent\z@
+ \def\labelitemi{\textendash}\@revlabeltrue
+ \leavevmode\@textsuperscript{\@thefnmark}\kern1em\relax ##1}
+ \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
+ \if@compatibility\setcounter{page}{0}\fi
+ \null\vfil
+ \vskip 60\p@
+ \begin{center}%
+ \TitleFont
+ {\LARGE \def\\{\penalty -\@M}
+ \if@allcaps
+ \expandafter\uc@nothanks\@title\thanks\relax
+ \else
+ \@title
+ \fi\par}%
+ \vskip 3em%
+ {\large
+ \lineskip .75em \parindent\z@
+ \begin{tabular}[t]{c}%
+ \if@allcaps
+ \expandafter\uc@authornothanks\@author\and\relax
+ \else
+ \@author
+ \fi
+ \end{tabular}\par}%
+ \vskip 1.5em%
+ {\large
+ \if@allcaps
+ \uppercase\expandafter{\@date}%
+ \else
+ \@date
+ \fi\par}%
+ \end{center}\par
+ \@thanks
+ \vfil\null
+ \end{titlepage}%
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@title\@empty
+ \global\let\@date\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}
+\def\uc@nothanks#1\thanks{\uppercase{#1}\futurelet\@tempa\uc@tx}
+\def\uc@authornothanks#1\and{\uc@nothanks#1\thanks\relax
+ \futurelet\@tempa\uc@ax}
+\def\uc@ax{%
+ \ifx\@tempa\relax
+ \else
+ \\ \andname \\ \expandafter\uc@authornothanks
+ \fi}
+\def\uc@tx{\ifx\@tempa\relax
+ \else \expandafter\uc@ty \fi}
+\def\uc@ty#1{\thanks{#1}\uc@nothanks}
+\else
+\renewcommand*\maketitle{\par
+ \begingroup
+ \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
+ \long\def\@makefntext##1{\parindent\z@
+ \def\labelitemi{\textendash}%
+ \leavevmode\hb@xt@.5\unitindent{%
+ \@textsuperscript{\normalfont\@thefnmark}\hfil}##1}
+ \if@twocolumn
+ \ifnum \col@number=\@ne
+ \@maketitle
+ \else
+ \twocolumn[\@maketitle]%
+ \fi
+ \else
+ \newpage
+ \global\@topnum\z@
+ \@maketitle
+ \fi
+ \thispagestyle{plain}\@thanks
+ \endgroup
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\maketitle\relax
+ \global\let\@maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@title\@empty
+ \global\let\@date\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+ }
+\def\@maketitle{%
+ \newpage
+ \null
+ \vskip 2em%
+ \begin{center}%
+ \let \footnote \thanks
+ {\LARGE \TitleFont \@title \par}%
+ \vskip 1.5em%
+ {\large \TitleFont
+ \lineskip .5em%
+ \begin{tabular}[t]{c}%
+ \@author
+ \end{tabular}\par}%
+ \vskip 1em%
+ {\large \TitleFont \@date}%
+ \end{center}%
+ \par
+ \vskip 1.5em}
+\fi
+% \end{macrocode}
+% \iffalse
+%</artikel2-xetex-bidi.def>
+%<*artikel3-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{artikel3-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{artikel3-xetex-bidi.def}[2010/07/25 v0.2 bidi adaptations for artikel3 class for XeTeX engine]
+\renewcommand*\head@style{%
+ \interlinepenalty \@M
+ \hyphenpenalty=\@M \exhyphenpenalty=\@M
+ \if@RTL\leftskip\else\rightskip\fi=0cm plus .7\hsize\relax}
+\renewcommand*\@regtocline[3]{%
+ \ifnum #1>\c@tocdepth
+ \else
+ \vskip\z@\@plus.2\p@
+ {\hangindent\z@ \@afterindenttrue \interlinepenalty\@M
+ \if@RTL\rightskip\else\leftskip\fi\unitindent
+ \if@RTL\leftskip\else\rightskip\fi\unitindent\@plus 1fil
+ \parfillskip\z@
+ \@tempdima\unitindent
+ \parindent\z@
+ \leavevmode
+ \hbox{}\hskip -\if@RTL\rightskip\else\leftskip\fi\relax#2\nobreak
+ \hskip 1em \nobreak{\slshape #3}\par
+ }%
+ \fi}
+\if@oldtoc
+\renewcommand*\l@part[2]{%
+ \ifnum \c@tocdepth >-2\relax
+ \addpenalty\@secpenalty
+ \addvspace{2.25em \@plus\p@}%
+ \begingroup
+ \setlength\@tempdima{3em}%
+ \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
+ \parfillskip -\@pnumwidth
+ {\leavevmode
+ \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
+ \nobreak
+ \if@compatibility
+ \global\@nobreaktrue
+ \everypar{\global\@nobreakfalse\everypar{}}%
+ \fi
+ \endgroup
+ \fi}
+\else
+ \renewcommand*\l@part{%
+ \ifnum \c@tocdepth >-2\relax
+ \addpenalty\@secpenalty
+ \addvspace{2.25em \@plus \p@}%
+ \@regtocline{0}%
+ \fi}
+\fi
+
+\if@oldtoc
+\renewcommand*\l@section[2]{%
+ \addpenalty\@secpenalty
+ \addvspace{1.0em \@plus\p@}%
+ \setlength\@tempdima{1.5em}%
+ \begingroup
+ \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
+ \parfillskip -\@pnumwidth
+ \leavevmode \bfseries
+ \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
+ \hskip -\if@RTL\rightskip\else\leftskip\fi
+ #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
+ \endgroup}
+\else
+ \renewcommand*\l@section{\@regtocline{1}}
+\fi
+\if@titlepage
+ \renewenvironment{abstract}{%
+ \titlepage
+ \null\vfil
+ \section*{\SectFont\abstractname}%
+ \noindent\ignorespaces}
+ {\par\vfil\null\endtitlepage}
+\else
+ \renewenvironment{abstract}{%
+ \if@twocolumn
+ \section*{\abstractname}%
+ \else
+ \bgroup\if@RTL\leftskip\else\rightskip\fi=\unitindent
+ \section*{\small\SectFont\abstractname}%
+ \noindent\ignorespaces
+ \fi}
+ {\if@twocolumn\else\par\egroup\fi}
+\fi
+\renewcommand*\left@footnote{%
+ \kern-3\p@
+ \kern.5\baselineskip
+ \hrule\@width\unitindent
+ \kern.4\baselineskip
+}
+\renewcommand*\right@footnote{%
+ \hbox to \columnwidth
+ {\beginR \vbox{%
+ \kern-3\p@
+ \kern.5\baselineskip
+ \hrule\@width\unitindent
+ \kern.4\baselineskip}\hfil\endR}
+}
+\renewcommand*\thesubsection{\thesection\@SepMark\@arabic\c@subsection}
+\renewcommand*\thesubsubsection{\thesubsection\@SepMark\@arabic\c@subsubsection}
+\renewcommand*\theparagraph{\thesubsubsection\@SepMark\@arabic\c@paragraph}
+\renewcommand*\thesubparagraph{\theparagraph\@SepMark\@arabic\c@subparagraph}
+\renewenvironment{thebibliography}[1]
+ {\section*{\refname}%
+ \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
+ \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
+ \list{\@biblabel{\@arabic\c@enumiv}}%
+ {\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \usecounter{enumiv}%
+ \let\p@enumiv\@empty
+ \renewcommand*\theenumiv{\@arabic\c@enumiv}}%
+ \sloppy\clubpenalty4000\widowpenalty4000%
+ \sfcode`\.\@m}
+ {\def\@noitemerr
+ {\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist}
+\if@titlepage
+\renewcommand*\TitleFont{\rmfamily}
+\renewcommand*\maketitle{%
+ \begin{titlepage}%
+ \let\footnotesize\small
+ \let\right@footnote\relax
+ \let\left@footnote\relax
+ \let\textwidth@footnote\relax
+ \let \footnote \thanks
+ \long\def\@makefntext##1{\parindent\z@
+ \def\labelitemi{\textendash}\@revlabeltrue
+ \leavevmode\@textsuperscript{\@thefnmark}\kern1em\relax ##1}
+ \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
+ \if@compatibility\setcounter{page}{0}\fi
+ \null\vfil
+ \vskip 60\p@
+ \begin{center}%
+ \TitleFont
+ {\LARGE \def\\{\penalty -\@M}
+ \if@allcaps
+ \expandafter\uc@nothanks\@title\thanks\relax
+ \else
+ \@title
+ \fi\par}%
+ \vskip 3em%
+ {\large
+ \lineskip .75em \parindent\z@
+ \begin{tabular}[t]{c}%
+ \if@allcaps
+ \expandafter\uc@authornothanks\@author\and\relax
+ \else
+ \@author
+ \fi
+ \end{tabular}\par}%
+ \vskip 1.5em%
+ {\large
+ \if@allcaps
+ \uppercase\expandafter{\@date}%
+ \else
+ \@date
+ \fi\par}%
+ \end{center}\par
+ \@thanks
+ \vfil\null
+ \end{titlepage}%
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@title\@empty
+ \global\let\@date\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}
+\def\uc@nothanks#1\thanks{\uppercase{#1}\futurelet\@tempa\uc@tx}
+\def\uc@authornothanks#1\and{\uc@nothanks#1\thanks\relax
+ \futurelet\@tempa\uc@ax}
+\def\uc@ax{%
+ \ifx\@tempa\relax
+ \else
+ \\ \andname \\ \expandafter\uc@authornothanks
+ \fi}
+\def\uc@tx{\ifx\@tempa\relax
+ \else \expandafter\uc@ty \fi}
+\def\uc@ty#1{\thanks{#1}\uc@nothanks}
+\else
+\renewcommand*\maketitle{\par
+ \begingroup
+ \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
+ \def\@makefnmark{\rlap{%
+ \@textsuperscript{\normalfont\@thefnmark}}}%
+ \long\def\@makefntext{\@xmakefntext{%
+ \@textsuperscript{\normalfont\@thefnmark}}}%
+ \if@twocolumn
+ \ifnum \col@number=\@ne
+ \@maketitle
+ \else
+ \twocolumn[\@maketitle]%
+ \fi
+ \else
+ \newpage
+ \global\@topnum\z@
+ \@maketitle
+ \fi
+ \thispagestyle{plain}\@thanks
+ \endgroup
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\maketitle\relax
+ \global\let\@maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@title\@empty
+ \global\let\@date\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+ }
+\def\@maketitle{%
+ \newpage
+ \null
+ \vskip 2em%
+\if@titlecentered
+ \begin{center}%
+ \let \footnote \thanks
+ {\LARGE \TitleFont \@title \par}%
+ \vskip 1.5em%
+ {\large \TitleFont
+ \lineskip .5em%
+ \begin{tabular}[t]{c}%
+ \@author
+ \end{tabular}\par}%
+ \vskip 1em%
+ {\large \TitleFont \@date}%
+ \end{center}%
+ \else
+ {\LARGE \TitleFont \head@style \@title \par} \vskip 1.5em
+ {\large \TitleFont \lineskip .5em \tabcolsep\z@
+ \def\and{%%% \begin{tabular} has already started
+ \end{tabular}\hskip 1em plus .17fil
+ \if@RTL\begin{tabular}[t]{r}\else\begin{tabular}[t]{l}\fi}%% \end{tabular} will come
+ \if@RTL\begin{tabular}[t]{r}\else\begin{tabular}[t]{l}\fi\@author\end{tabular}\par}
+ \vskip 1em {\large \TitleFont \@date}
+ \fi
+ \par
+ \vskip 1.5em}
+\fi
+% \end{macrocode}
+% \iffalse
+%</artikel3-xetex-bidi.def>
+%<*arydshln-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{arydshln-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{arydshln-xetex-bidi.def}[2010/08/01 v0.2 bidi adaptations for arydshln package for XeTeX engine]
+\def\endarray{\adl@endarray \egroup \adl@arrayrestore \if@RTLtab\egroup\endR\egroup\fi\egroup}
+\def\endtabular{\endarray $\if@RTLtab\endR\fi\egroup\@RTLtabfalse}
+\expandafter\let\csname endtabular*\endcsname\endtabular
+\let\adl@array\@array
+\def\@array{\adl@everyvbox\everyvbox
+ \everyvbox{\adl@arrayinit \the\adl@everyvbox \everyvbox\adl@everyvbox}%
+ \ifadl@inactive \adl@inactivate \else \adl@activate \fi
+ \let\adl@noalign\noalign
+ \adl@array}
+\ifadl@usingarypkg
+\def\@testpach{\@chclass
+ \ifnum \@lastchclass=6 \@ne \@chnum \@ne \else
+ \ifnum \@lastchclass=7 5 \else
+ \ifnum \@lastchclass=8 \tw@ \else
+ \ifnum \@lastchclass=9 \thr@@
+ \else \z@
+ \ifnum \@lastchclass = 10 \else
+ \edef\@nextchar{\expandafter\string\@nextchar}%
+ \@chnum
+ \if \@nextchar c\z@ \else
+ \if \@nextchar \if@RTLtab r\else l\fi\@ne \else
+ \if \@nextchar \if@RTLtab l\else r\fi\tw@ \else
+ \z@ \@chclass
+ \if\@nextchar |\@ne \let\@arrayrule\adl@arrayrule \else
+ \if\@nextchar :\@ne \let\@arrayrule\adl@arraydashrule \else
+ \if\@nextchar ;\@ne \let\@arrayrule\adl@argarraydashrule \else
+ \if \@nextchar !6 \else
+ \if \@nextchar @7 \else
+ \if \@nextchar <8 \else
+ \if \@nextchar >9 \else
+ 10
+ \@chnum
+ \if \@nextchar m\thr@@\else
+ \if \@nextchar p4 \else
+ \if \@nextchar b5 \else
+ \z@ \@chclass \z@ \@preamerr \z@ \fi \fi \fi \fi \fi \fi
+ \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi}
+
+\def\@classz{\@classx
+ \@tempcnta \count@
+ \prepnext@tok
+ \@addtopreamble{\ifcase \@chnum
+ \hfil
+ \adl@putlrc{\d@llarbegin \insert@column \d@llarend}\hfil \or
+ \hskip1sp\adl@putlrc{\d@llarbegin \insert@column \d@llarend}\hfil \or
+ \hfil\hskip1sp\adl@putlrc{\d@llarbegin \insert@column \d@llarend}\or
+ \setbox\adl@box\hbox \adl@startmbox{\@nextchar}\insert@column
+ \adl@endmbox\or
+ \setbox\adl@box\vtop \@startpbox{\@nextchar}\insert@column \@endpbox \or
+ \setbox\adl@box\vbox \@startpbox{\@nextchar}\insert@column \@endpbox
+ \fi}\prepnext@tok}
+\def\adl@class@start{4}
+\def\adl@class@iiiorvii{7}
+
+\else
+\def\@testpach#1{\@chclass \ifnum \@lastchclass=\tw@ 4\relax \else
+ \ifnum \@lastchclass=\thr@@ 5\relax \else
+ \z@ \if #1c\@chnum \z@ \else
+ \if \if@RTLtab#1r\else#1l\fi\@chnum \@ne \else
+ \if \if@RTLtab#1l\else#1r\fi\@chnum \tw@ \else
+ \@chclass
+ \if #1|\@ne \let\@arrayrule\adl@arrayrule \else
+ \if #1:\@ne \let\@arrayrule\adl@arraydashrule \else
+ \if #1;\@ne \let\@arrayrule\adl@argarraydashrule \else
+ \if #1@\tw@ \else
+ \if #1p\thr@@ \else \z@ \@preamerr 0\fi
+ \fi \fi \fi \fi \fi \fi \fi \fi \fi}
+
+\def\@arrayclassz{\ifcase \@lastchclass \@acolampacol \or \@ampacol \or
+ \or \or \@addamp \or
+ \@acolampacol \or \@firstampfalse \@acol \fi
+ \edef\@preamble{\@preamble
+ \ifcase \@chnum
+ \hfil\adl@putlrc{$\relax\@sharp$}\hfil
+ \or \adl@putlrc{$\relax\@sharp$}\hfil
+ \or \hfil\adl@putlrc{$\relax\@sharp$}\fi}}
+\def\@tabclassz{\ifcase \@lastchclass \@acolampacol \or \@ampacol \or
+ \or \or \@addamp \or
+ \@acolampacol \or \@firstampfalse \@acol \fi
+ \edef\@preamble{\@preamble
+ \ifcase \@chnum
+ \hfil\adl@putlrc{\@sharp\unskip}\hfil
+ \or \adl@putlrc{\@sharp\unskip}\hfil
+ \or \hfil\hskip\z@ \adl@putlrc{\@sharp\unskip}\fi}}
+\def\adl@class@start{6}
+\def\adl@class@iiiorvii{3}
+\fi
+\@ifpackageloaded{colortbl}{%
+\def\adl@inactivate{\adl@org@inactivate \let\CT@setup\adl@CT@setup}
+\def\adl@activate{\adl@org@activate \let\CT@setup\adl@act@CT@setup
+ \let\@endpbox\adl@org@endpbox}
+\let\adl@CT@setup\CT@setup
+\def\CT@setup{\adl@CT@setup
+ \@tempdima\ht\z@ \advance\@tempdima\minrowclearance
+ \ifdim\adl@height<\@tempdima \global\adl@height\@tempdima \fi
+ \ifdim\adl@depth<\dp\z@ \global\adl@depth\dp\z@\fi}
+\let\adl@act@CT@setup\CT@setup
+\def\@classz{\@classx
+ \@tempcnta\count@ \prepnext@tok
+ \expandafter\CT@extract\the\toks\@tempcnta\columncolor!\@nil
+ \expandafter\adl@extract@arc\the\toks\@tempcnta\arrayrulecolor!\@nil
+ \expandafter\adl@extract@drsc
+ \the\toks\@tempcnta\doublerulesepcolor!\@nil
+ \expandafter\adl@extract@dgc\the\toks\@tempcnta\dashgapcolor!\@nil
+ \@addtopreamble{\if@RTL\beginL\fi%
+ \setbox\z@\hbox\bgroup\bgroup\if@RTL\beginR\fi
+ \ifcase \@chnum
+ \hskip\stretch{.5}\kern\z@
+ \d@llarbegin
+ \insert@column
+ \d@llarend\hskip\stretch{.5}%
+ \or \d@llarbegin \insert@column \d@llarend \hfill
+ \or \hfill \kern\z@ \d@llarbegin \insert@column \d@llarend
+ \or $\vcenter
+ \@startpbox{\@nextchar}\insert@column \@endpbox $%
+ \or \vtop \@startpbox{\@nextchar}\insert@column \@endpbox
+ \or \vbox \@startpbox{\@nextchar}\insert@column \@endpbox
+ \fi
+ \if@RTL\endR\fi\egroup\egroup
+ \begingroup
+ \CT@setup
+ \CT@column@color
+ \CT@row@color
+ \CT@cell@color
+ \CT@do@color
+ \endgroup
+ \@tempdima\ht\z@
+ \advance\@tempdima\minrowclearance
+ \vrule\@height\@tempdima\@width\z@
+ \unhbox\z@\if@RTL\endL\fi}%
+ \prepnext@tok}
+\let\adl@act@classz\@classz
+\let\adl@org@classz\@classz
+}{}
+% \end{macrocode}
+% \iffalse
+%</arydshln-xetex-bidi.def>
+%<*bidi.sty>
+%\fi
+% \subsection{\textsf{bidi.sty}}
+% \begin{macrocode}
+\NeedsTeXFormat{LaTeX2e}
+\def\bididate{2010/09/28}
+\def\bidiversion{v1.1.5a}
+\def\bidicommit{commit 98}
+\ProvidesPackage{bidi}[\bididate\space \bidiversion\space <\bidicommit>
+Bidirectional typesetting in plain TeX and LaTeX]
+\edef\bidiinfo{%
+bidi package (Support for bidirectional typesetting in plain TeX and LaTeX)^^J
+Description: A convenient interface for typesetting bidirectional^^J
+texts in plain TeX and LaTeX. The package includes adaptations for use^^J
+with many other commonly-used packages.^^J
+Copyright © 2009-2010 Vafa Khalighi^^J
+\bidiversion, <\bidicommit>, \bididate^^J
+License: LaTeX Project Public License, version 1.3c or higher (your choice)^^J
+Home: http://bitbucket.org/vafa/bidi^^J
+Location on CTAN: /macros/latex/contrib/bidi}
+\typeout{\bidiinfo}
+\edef\bidi@everyjob{\the\everyjob}
+\everyjob{\bidi@everyjob\typeout{\bidiinfo}}
+\RequirePackage{iftex}
+\def\@tagsextension{clo}
+\def\@definitionfileextension{def}
+\def\@iftagsloaded{\@ifl@aded\@tagsextension}
+\def\@ifdefinitionfileloaded{\@ifl@aded\@definitionfileextension}
+\newif\if@RTLmain
+\newif\if@RTL
+\newif\if@RTLmaths
+\newif\if@Latin
+\newif\if@RTLtab
+\newif\if@RTLmarginpar
+\newif\if@LTRmarginpar
+\newif\if@LTRbibitems
+\newif\if@RTLbibitems
+\newif\if@sentdir
+\newif\if@RTL@footnote
+\newif\if@developmentversion
+\let\if@rlmain=\if@RTLmain
+\let\@rlmaintrue=\@RTLmaintrue
+\let\@rlmainfalse=\@RTLmainfalse
+\let\if@rl=\if@RTL
+\let\@rltrue=\@RTLtrue
+\let\@rlfalse=\@RTLfalse
+\let\if@rl@footnote=\if@RTL@footnote
+\let\@rl@footnotetrue=\@RTL@footnotetrue
+\let\@rl@footnotefalse=\@RTL@footnotefalse
+\let\if@tab@rl=\if@RTLtab
+\let\@tab@rltrue=\@RTLtabtrue
+\let\@tab@rlfalse=\@RTLtabfalse
+\@RTLmainfalse
+\AtBeginDocument{%
+ \if@RTLmain\else
+ \if@RTL\@RTLmaintrue%
+ \else\@RTLmainfalse%
+ \fi%
+ \fi%
+}
+\let\n@xt=\
+\def\LRE{\protect\pLRE}%
+\def\pLRE{\protect\afterassignment\moreLRE \let\n@xt= }
+\def\RLE{\protect\pRLE}
+\def\pRLE{\protect\afterassignment\moreRLE \let\n@xt= }
+\def\bracetext{\ifcat\n@xt{\else\ifcat\n@xt}\fi
+ \errmessage{Missing left brace has been substituted}\fi \bgroup}
+\input{loadingorder-bidi.def}
+\ifXeTeX
+ \input{xetex-bidi.def}
+\else
+ \ifLuaTeX
+ \input{luatex-bidi.def}
+ \else
+ \PackageError{bidi}{TeX engines other than XeTeX and LuaTeX are not yet supported}
+ \fi
+\fi
+%\@developmentversiontrue
+\if@developmentversion
+ \PackageWarningNoLine{bidi}{Thanks for testing the development version of bidi package. The development version may not work correctly or may not work at all. The development version is not recommended to be used for production purposes and should only be used for testing purposes. You are encouraged to use the stable version of bidi package available on CTAN for production purposes}
+\fi
+\ProcessOptions
+% \end{macrocode}
+% \iffalse
+%</bidi.sty>
+%<*bidi.tex>
+%\fi
+% \subsection{\textsf{bidi.tex}}
+% \begin{macrocode}
+\def\bididate{2010/09/28}
+\def\bidiversion{v0.1}
+\def\bidicommit{commit 98}
+\catcode`@=11
+\edef\bidiinfo{%
+bidi package (Support for bidirectional typesetting in plain TeX and LaTeX)^^J
+Description: A convenient interface for typesetting bidirectional^^J
+texts in plain TeX and LaTeX. The package includes adaptations for use^^J
+with many other commonly-used packages.^^J
+Copyright © 2009-2010 Vafa Khalighi^^J
+\bidiversion, <\bidicommit>, \bididate^^J
+License: LaTeX Project Public License, version 1.3c or higher (your choice)^^J
+Home: http://bitbucket.org/vafa/bidi^^J
+Location on CTAN: /macros/latex/contrib/bidi}
+\message{\bidiinfo}
+\edef\bidi@everyjob{\the\everyjob}
+\everyjob{\bidi@everyjob\message{\bidiinfo}}
+\input iftex.sty
+\newif\if@RTLmain
+\newif\if@RTL
+\newif\if@sentdir
+\newif\if@RTL@footnote
+\@RTLmainfalse
+\def\setRTLmain{%
+ \if@RTLmain\else
+ \if@RTL\@RTLmaintrue%
+ \else\@RTLmainfalse%
+ \fi%
+ \fi%
+}
+\let\n@xt=\
+\def\LRE{\protect\pLRE}%
+\def\pLRE{\protect\afterassignment\moreLRE \let\n@xt= }
+\def\RLE{\protect\pRLE}
+\def\pRLE{\protect\afterassignment\moreRLE \let\n@xt= }
+\def\bracetext{\ifcat\n@xt{\else\ifcat\n@xt}\fi
+ \errmessage{Missing left brace has been substituted}\fi \bgroup}
+\ifXeTeX
+ \input plain-xetex-bidi.def
+\else
+ \ifLuaTeX
+ \input plain-luatex-bidi.def
+ \else
+ \errmessage{TeX engines other than XeTeX and LuaTeX are not yet supported}
+ \fi
+\fi
+\catcode`@=12
+% \end{macrocode}
+% \iffalse
+%</bidi.tex>
+%<*bidi2in1.sty>
+%\fi
+% \subsection{\textsf{bidi2in1.sty}}
+% \begin{macrocode}
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{bidi2in1}
+\pagestyle{plain}
+\newcount\evenpage
+\newcount\oddpage
+\twocolumn
+\def\@oddfoot{\evenpage=\thepage%
+\multiply\evenpage by 2%
+\oddpage=\the\evenpage%
+\advance\oddpage by -1%
+\hfil\the\evenpage\hfil\hfil\the\oddpage\hfil}%
+\def\@evenfoot{\evenpage=\thepage%
+\multiply\evenpage by 2%
+\oddpage=\the\evenpage%
+\advance\oddpage by -1%
+\hfil\the\oddpage\hfil\hfil\the\evenpage\hfil}%
+\textwidth 9.49in
+\textheight 6.7in
+\columnsep 0.9in
+\columnseprule 0.125pt
+\headheight 0cm
+\topmargin 0in
+\marginparwidth 0in
+\marginparsep 0in
+\hoffset 0.05in % Corrected
+\voffset -0.5in %top margin space is 1.0in by default
+\oddsidemargin 0in
+\evensidemargin 0in
+\headsep 0cm
+\topskip 0cm
+\parskip 0.15in %
+\headsep 0pt
+\special{papersize=11.69in,8.26in}
+\renewcommand\maketitle{\par
+\begingroup
+\renewcommand\thefootnote{\@fnsymbol\c@footnote}%
+\def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
+\long\def\@makefntext##1{\parindent 1em\noindent
+\hb@xt@1.8em{%
+\hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
+\@maketitle
+\@thanks
+\endgroup
+\setcounter{footnote}{0}%
+\global\let\thanks\relax
+\global\let\maketitle\relax
+\global\let\@maketitle\relax
+\global\let\@thanks\@empty
+\global\let\@author\@empty
+\global\let\@date\@empty
+\global\let\@title\@empty
+\global\let\title\relax
+\global\let\author\relax
+\global\let\date\relax
+\global\let\and\relax
+}
+% \end{macrocode}
+% \iffalse
+%</bidi2in1.sty>
+%<*bidicode.sty>
+%\fi
+% \subsection{\textsf{bidicode.sty}}
+% \begin{macrocode}
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{bidicode}
+\RequirePackage{xcolor}
+\RequirePackage{showexpl}
+\definecolor{hellgelb}{rgb}{1,1,0.85}
+\definecolor{colKeys}{rgb}{0,0,1}
+\definecolor{colIdentifier}{rgb}{0,0,0}
+\definecolor{colComments}{rgb}{1,0,0}
+\definecolor{colString}{rgb}{0,0.5,0}
+\lstset{
+ language=[LaTeX]TEX,
+ float=hbp,
+ basicstyle=\ttfamily\small,
+ identifierstyle=\color{colIdentifier},
+ keywordstyle=\color{colKeys},
+ stringstyle=\color{colString},
+ commentstyle=\color{colComments},
+ columns=flexible,
+ tabsize=4,
+ gobble =1,
+ extendedchars=true,
+ showspaces=false,
+ showstringspaces=false,
+ captionpos=b,
+ xleftmargin=1em,
+ breaklines=true,
+ breakautoindent=true,
+ escapeinside=**,
+ pos=b,
+ explpreset={%
+ xleftmargin=1em,columns=flexible,language=[LaTeX]TEX},
+ morekeywords={setLTR,setLR,setRTL,setRL,LRE,LR,RLE,RL,lr,bidiversion,bididate,%
+ bidicommit}
+}
+\lstdefinestyle{syntax}{backgroundcolor=\color{blue!20},numbers=none,xleftmargin=0pt,xrightmargin=0pt,pos=b}
+\lstdefinestyle{code}{backgroundcolor=\color{red!20},numbers=none,xleftmargin=0pt,xrightmargin=0pt,pos=b}
+\lst@UserCommand\lstlistlistingname{List of Examples} % \lstlistoflistings
+\lst@UserCommand\lstlistingname{Example}
+\newcommand\HLON{%
+ \gdef\lst@alloverstyle##1{%
+ \fboxrule=0pt
+ \fboxsep=0pt
+ \fcolorbox{hellgelb}{hellgelb}{\bfseries\strut##1}%
+}}
+\newcommand\HLOFF{%
+ \xdef\lst@alloverstyle##1{##1}%
+}
+\newcommand\Larg [1]{{\normalfont\itshape#1\/}}
+\newcommand\Larga[1]{$\langle$\Larg{#1}$\rangle$}
+\newcommand\Largb[1]{\lcb\Larg{#1}\rcb}
+\newcommand\Largs[1]{\lsb\Larg{#1}\rsb}
+\newcommand\Largr[1]{\lrb\Larg{#1}\rrb}
+\newcommand\LBEG[1]{{\normalfont\ttfamily\bs{}begin\lcb#1\rcb}}
+\newcommand\LEND[1]{{\normalfont\ttfamily\bs{}end\lcb#1\rcb}}
+
+\DeclareRobustCommand\bs{{\normalfont\ttfamily\symbol{92}}}
+\DeclareRobustCommand\lcb{{\normalfont\ttfamily\char`\{}}
+\DeclareRobustCommand\rcb{{\normalfont\ttfamily\char`\}}}
+\DeclareRobustCommand\lsb{{\normalfont\ttfamily[}}
+\DeclareRobustCommand\rsb{{\normalfont\ttfamily]}}
+\DeclareRobustCommand\lrb{{\normalfont\ttfamily(}}
+\DeclareRobustCommand\rrb{{\normalfont\ttfamily)}}
+
+\def\Lcs#1{\nxLcs{#1}}
+\def\LcsStar#1{\nxLcs{#1}\OptArg*{*}}
+\def\nxLcs#1{\texttt{\symbol{92}#1}}
+
+\def\Coordx#1{$x_{#1}$}
+\def\Coordy#1{$y_{#1}$}
+\def\Coordz#1{$z_{#1}$}
+\def\Coord#1{\Coordx{#1},\kern 1pt\Coordy{#1}}
+\def\Coordn{\Coordx{n},\kern 1pt\Coordy{n}}
+\def\CoordIII#1{\Coordx{#1},\kern 1pt\Coordy{#1},\kern 1pt\Coordz{#1}}
+\def\CAny{\Coordx{},\kern 1pt\Coordy{}}
+\def\CIIIAny{\Coordx{},\kern 1pt\Coordy{},\kern 1pt\Coordz{}}
+\def\coord#1{(\Coordx{#1},\kern 1pt\Coordy{#1})}
+\def\coordn{(\Coordx{n},\kern 1pt\Coordy{n})}
+\def\coordiii#1{(\Coordx{#1},\kern 1pt\Coordy{#1},\kern 1pt\Coordz{#1})}
+\def\coordx#1{($x_{#1}$)}
+\def\coordy#1{($y_{#1}$)}
+\def\coordz#1{($z_{#1}$)}
+\def\cAny{(\Coordx{},\kern 1pt\Coordy{})}
+\def\ciiiAny{(\Coordx{},\kern 1pt\Coordy{},\kern 1pt\Coordz{})}
+
+\newsavebox{\boxdef}
+\newenvironment{BDef}
+ {\begin{lrbox}\boxdef
+ \def\arraystretch{1.0}
+ \begin{tabular}{@{}l@{}l@{}l@{}}
+ }
+ {\end{tabular}\end{lrbox}
+
+ {\BCmd\fbox{\usebox\boxdef}\endBCmd}
+ \aftergroup\@afterindentfalse\aftergroup\@afterheading
+ }
+
+\newenvironment{BDef*}
+ {\begin{lrbox}\boxdef
+ \def\arraystretch{1.0}
+ \begin{tabular}{@{}l@{}l@{}l@{}}
+ }
+ {\end{tabular}\end{lrbox}
+ {\begin{BCmd*}\fbox{\usebox\boxdef}\end{BCmd*}}
+ \aftergroup\@afterindentfalse\aftergroup\@afterheading
+ }
+\newenvironment{BCmd}{
+ \@beginparpenalty-\@lowpenalty
+ \topsep\BDefaboveskip
+ \fboxsep3pt
+ \flushleft}
+ {\@endparpenalty\@M
+ \@topsepadd\BDefbelowskip
+ \endflushleft}
+
+\newenvironment{BCmd*}{
+ \@beginparpenalty\@M
+ \topsep\BDefinlineskip
+ \fboxsep3pt
+ \flushleft}
+ {\@endparpenalty5000
+ \endflushleft}
+
+\newskip\BDefaboveskip
+\newskip\BDefbelowskip
+\newskip\BDefinlineskip
+\setlength\BDefaboveskip{10pt plus 4pt}
+\setlength\BDefbelowskip{6pt}
+\setlength\BDefinlineskip{6pt}
+
+\def\OptArgs{\colorbox{black!20}{\texttt{[Options]}}\kern1pt}
+\def\OptArg{\@ifnextchar*\OptArg@i{\OptArg@ii*}}
+\def\OptArg@i*#1{\colorbox{black!20}{\texttt{#1}}\kern1pt}
+\def\OptArg@ii*#1{\colorbox{black!20}{\texttt{[#1]}}\kern1pt}
+% \end{macrocode}
+% \iffalse
+%</bidicode.sty>
+%<*bidiftnxtra.sty>
+%\fi
+% \subsection{\textsf{bidiftnxtra.sty}}
+% \begin{macrocode}
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{bidiftnxtra}
+\newtoks\bidi@p@ftn
+\let\FN@sf@@footnote\footnote
+\let\FN@sf@@LTRfootnote\LTRfootnote
+\let\FN@sf@@RTLfootnote\RTLfootnote
+\def\footnote{\ifx\protect\@typeset@protect
+ \expandafter\FN@sf@@footnote
+ \else
+ \expandafter\FN@sf@gobble@opt
+ \fi
+}
+\def\LTRfootnote{\ifx\protect\@typeset@protect
+ \expandafter\FN@sf@@LTRfootnote
+ \else
+ \expandafter\FN@sf@gobble@opt
+ \fi
+}
+\def\RTLfootnote{\ifx\protect\@typeset@protect
+ \expandafter\FN@sf@@RTLfootnote
+ \else
+ \expandafter\FN@sf@gobble@opt
+ \fi
+}
+\edef\FN@sf@gobble@opt{\noexpand\protect
+ \expandafter\noexpand\csname FN@sf@gobble@opt \endcsname}
+\expandafter\def\csname FN@sf@gobble@opt \endcsname{%
+ \@ifnextchar[%]
+ \FN@sf@gobble@twobracket
+ \@gobble
+}
+\def\FN@sf@gobble@twobracket[#1]#2{}
+\let\FN@sf@@footnotemark\footnotemark
+\def\footnotemark{\ifx\protect\@typeset@protect
+ \expandafter\FN@sf@@footnotemark
+ \else
+ \expandafter\FN@sf@gobble@optonly
+ \fi
+}
+\edef\FN@sf@gobble@optonly{\noexpand\protect
+ \expandafter\noexpand\csname FN@sf@gobble@optonly \endcsname}
+\expandafter\def\csname FN@sf@gobble@optonly \endcsname{%
+ \@ifnextchar[%]
+ \FN@sf@gobble@bracket
+ {}%
+}
+\def\FN@sf@gobble@bracket[#1]{}
+\def\@tabular{\if@RTL\global\@RTLtabtrue\fi
+ \leavevmode \hbox \bgroup
+ \let\@footnotetext\bidi@p@ftntext
+ \let\@LTRfootnotetext\bidi@p@LTRftntext
+ \let\@RTLfootnotetext\bidi@p@RTLftntext
+ \if@RTLtab\beginR \fi
+ $\let\@acol\@tabacol
+ \let\@classz\@tabclassz
+ \let\@classiv\@tabclassiv \let\\\@tabularcr\@tabarray}
+\def\endtabular{\crcr\egroup\if@RTLtab\egroup\endR\egroup\fi
+ \egroup $\if@RTLtab\endR\fi\egroup
+ \the\bidi@p@ftn
+ \global\bidi@p@ftn{}%
+ \global\@RTLtabfalse}
+\long\def\bidi@p@ftntext#1{%
+ \edef\@tempy{\the\bidi@p@ftn\noexpand\footnotetext[\the\c@footnote]}%
+ \global\bidi@p@ftn\expandafter{\@tempy{#1}}}%
+\long\def\bidi@p@LTRftntext#1{%
+ \edef\@tempyi{\the\bidi@p@ftn\noexpand\LTRfootnotetext[\the\c@footnote]}%
+ \global\bidi@p@ftn\expandafter{\@tempyi{#1}}}%
+\long\def\bidi@p@RTLftntext#1{%
+ \edef\@tempyii{\the\bidi@p@ftn\noexpand\RTLfootnotetext[\the\c@footnote]}%
+ \global\bidi@p@ftn\expandafter{\@tempyii{#1}}}%
+\def\@xfloat #1[#2]{%
+ \@nodocument
+ \def \@captype {#1}%
+ \def \@fps {#2}%
+ \@onelevel@sanitize \@fps
+ \def \reserved@b {!}%
+ \ifx \reserved@b \@fps
+ \@fpsadddefault
+ \else
+ \ifx \@fps \@empty
+ \@fpsadddefault
+ \fi
+ \fi
+ \ifhmode
+ \@bsphack
+ \@floatpenalty -\@Mii
+ \else
+ \@floatpenalty-\@Miii
+ \fi
+ \ifinner
+ \@parmoderr\@floatpenalty\z@
+ \else
+ \@next\@currbox\@freelist
+ {%
+ \@tempcnta \sixt@@n
+ \expandafter \@tfor \expandafter \reserved@a
+ \expandafter :\expandafter =\@fps
+ \do
+ {%
+ \if \reserved@a h%
+ \ifodd \@tempcnta
+ \else
+ \advance \@tempcnta \@ne
+ \fi
+ \fi
+ \if \reserved@a t%
+ \@setfpsbit \tw@
+ \fi
+ \if \reserved@a b%
+ \@setfpsbit 4%
+ \fi
+ \if \reserved@a p%
+ \@setfpsbit 8%
+ \fi
+ \if \reserved@a !%
+ \ifnum \@tempcnta>15
+ \advance\@tempcnta -\sixt@@n\relax
+ \fi
+ \fi
+ }%
+ \@tempcntb \csname ftype@\@captype \endcsname
+ \multiply \@tempcntb \@xxxii
+ \advance \@tempcnta \@tempcntb
+ \global \count\@currbox \@tempcnta
+ }%
+ \@fltovf
+ \fi
+ \global \setbox\@currbox
+ \color@vbox
+ \normalcolor
+ \vbox \bgroup
+ \let\@footnotetext\bidi@p@ftntext
+ \let\@LTRfootnotetext\bidi@p@LTRftntext
+ \let\@RTLfootnotetext\bidi@p@RTLftntext
+ \hsize\columnwidth
+ \@parboxrestore
+ \@floatboxreset
+}
+\def \@endfloatbox{%
+ \par\vskip\z@skip %% \par\vskip\z@ added 15 Dec 87
+ \@minipagefalse
+ \outer@nobreak
+ \egroup %% end of vbox
+ \the\bidi@p@ftn
+ \global\bidi@p@ftn{}%
+ \color@endbox
+}
+% \end{macrocode}
+% \iffalse
+%</bidiftnxtra.sty>
+%<*bidimoderncv.cls>
+%\fi
+% \subsection{\textsf{bidimoderncv.cls}}
+% \begin{macrocode}
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesClass{bidimoderncv}
+\newif\if@DEBUG\@DEBUGfalse
+\DeclareOption{a4paper}{
+ \setlength\paperheight{297mm}
+ \setlength\paperwidth{210mm}}
+\DeclareOption{a5paper}{
+ \setlength\paperheight{210mm}
+ \setlength\paperwidth{148mm}}
+\DeclareOption{b5paper}{
+ \setlength\paperheight{250mm}
+ \setlength\paperwidth{176mm}}
+\DeclareOption{letterpaper}{
+ \setlength\paperheight{11in}
+ \setlength\paperwidth{8.5in}}
+\DeclareOption{legalpaper}{
+ \setlength\paperheight{14in}
+ \setlength\paperwidth{8.5in}}
+\DeclareOption{executivepaper}{
+ \setlength\paperheight{10.5in}
+ \setlength\paperwidth{7.25in}}
+\DeclareOption{landscape}{
+ \setlength\@tempdima{\paperheight}
+ \setlength\paperheight{\paperwidth}
+ \setlength\paperwidth{\@tempdima}}
+\newcommand\@ptsize{}
+\DeclareOption{10pt}{\renewcommand\@ptsize{0}}
+\DeclareOption{11pt}{\renewcommand\@ptsize{1}}
+\DeclareOption{12pt}{\renewcommand\@ptsize{2}}
+\DeclareOption{draft}{\setlength\overfullrule{5pt}}
+\DeclareOption{final}{\setlength\overfullrule{0pt}}
+\newif\if@colour\@colourtrue
+\DeclareOption{nocolour}{\@colourfalse}
+\ExecuteOptions{a4paper,11pt,colour,final}
+\ProcessOptions\relax
+\input{size1\@ptsize.clo}
+\RequirePackage{color}
+\RequirePackage{graphicx}
+\RequirePackage{ifthen}
+\RequirePackage{marvosym}
+\addtolength{\oddsidemargin}{-54pt}
+\addtolength{\textwidth}{109pt}
+\addtolength{\topmargin}{-70pt}
+\addtolength{\textheight}{122pt}
+\addtolength{\marginparsep}{-5pt}
+\addtolength{\marginparwidth}{-10pt}
+\RequirePackage{url}
+\RequirePackage{hyperref}
+\hypersetup{%
+ breaklinks,
+ baseurl = http://,%
+ pdfborder = 0 0 0,%
+ pdfpagemode = UseNone,%
+ pdfstartpage = 1}
+\AtEndOfClass{%
+ \AtBeginDocument{%
+ \hypersetup{%
+ pdfauthor = \@firstname~\@familyname,%
+ pdftitle = \@title,%
+ pdfsubject = \@firstname~\@familyname,%
+ pdfkeywords = \@resumename~\@firstname~\@familyname}}}
+\urlstyle{tt}
+\RequirePackage{fancyhdr}
+\fancypagestyle{plain}{%
+ \renewcommand{\headrulewidth}{0pt}
+ \renewcommand{\footrulewidth}{0pt}
+ \fancyhf{}}
+\pagestyle{plain}
+\setlength\lineskip{1\p@}
+\setlength\normallineskip{1\p@}
+\renewcommand\baselinestretch{}
+\setlength{\parindent}{0pt}
+\setlength{\parskip}{0pt}
+\setlength\columnsep{10\p@}
+\setlength\columnseprule{0\p@}
+\pagestyle{empty}
+\pagenumbering{arabic}
+\raggedbottom
+\onecolumn
+\providecommand*{\listitemsymbol}{\textbullet}
+\providecommand*{\addresssymbol}{}
+\providecommand*{\mobilesymbol}{\Mobilefone}
+\providecommand*{\phonesymbol}{\Telefon}
+\providecommand*{\faxsymbol}{\FAX}
+\providecommand*{\emailsymbol}{\Letter}
+\definecolor{firstnamecolor}{rgb}{0,0,0}
+\def\firstnamecolour#1{\gdef\@firstnamecolour{\addfontfeature{Color=#1}}}
+\def\familynamecolour#1{\gdef\@familynamecolour{\addfontfeature{Color=#1}}}
+\def\titlecolour#1{\gdef\@titlecolour{\addfontfeature{Color=#1}}}
+\def\addresscolour#1{\gdef\@addresscolour{\addfontfeature{Color=#1}}}
+\def\quotecolour#1{\gdef\@quotecolour{\addfontfeature{Color=#1}}}
+\def\sectiontitlecolour#1{\gdef\@sectiontitlecolour{\addfontfeature{Color=#1}}}
+\definecolor{sectionrectanglecolor}{rgb}{0,0,0}
+\def\subsectioncolour#1{\gdef\@subsectioncolour{\addfontfeature{Color=#1}}}
+\def\hintcolour#1{\gdef\@hintcolour{\addfontfeature{Color=#1}}}
+\providecommand*{\firstnamefont}{}
+\providecommand*{\familynamefont}{}
+\providecommand*{\titlefont}{}
+\providecommand*{\addressfont}{}
+\providecommand*{\quotefont}{}
+\providecommand*{\sectionfont}{}
+\providecommand*{\subsectionfont}{}
+\providecommand*{\hintfont}{\small}
+\providecommand*{\firstnamestyle}[1]{{\firstnamefont\@firstnamecolour#1}}
+\providecommand*{\familynamestyle}[1]{{\familynamefont\@familynamecolour#1}}
+\providecommand*{\titlestyle}[1]{{\titlefont\@titlecolour#1}}
+\providecommand*{\addresstyle}[1]{{\addressfont\@addresscolour#1}}
+\providecommand*{\quotestyle}[1]{{\quotefont\@quotecolour#1}}
+\providecommand*{\sectionstyle}[1]{{\sectionfont\@sectiontitlecolour#1}}
+\providecommand*{\subsectionstyle}[1]{{\subsectionfont\@subsectioncolour#1}}
+\providecommand*{\hintstyle}[1]{{\hintfont\@hintcolour#1}}
+\newcommand*{\cvtheme}[2][]{
+ \def\@cvtheme{#2}
+ \def\@cvthemeoptions{#1}}
+\cvtheme{bidi-casual}
+\AtBeginDocument{\RequirePackage[\@cvthemeoptions]{cvtheme\@cvtheme}}
+\newcommand*{\resumename}[1]{\def\@resumename{#1}}
+\newcommand*{\firstname}[1]{\def\@firstname{#1}}
+\newcommand*{\familyname}[1]{\def\@familyname{#1}}
+\renewcommand*{\title}[1]{\def\@title{#1}}
+\newcommand*{\address}[1]{\def\@address{#1}}
+\newcommand*{\mobile}[1]{\def\@mobile{#1}}
+\newcommand*{\phone}[1]{\def\@phone{#1}}
+\renewcommand*{\fax}[1]{\def\@fax{#1}}
+\newcommand*{\email}[1]{\def\@email{#1}}
+\newcommand*{\extrainfo}[1]{\def\@extrainfo{#1}}
+\def\@photowidth{0pt}
+\newcommand*{\photo}[2][64pt]{\def\@photowidth{#1}\def\@photo{#2}}
+\newcommand*{\quote}[1]{\def\@quote{#1}}
+\newlength{\quotewidth}
+\newlength{\hintscolumnwidth}
+\newlength{\separatorcolumnwidth}
+\setlength{\separatorcolumnwidth}{0.025\textwidth}
+\newlength{\maincolumnwidth}
+\newlength{\doubleitemmaincolumnwidth}
+\newlength{\listitemsymbolwidth}
+\settowidth{\listitemsymbolwidth}{\listitemsymbol{}~}
+\newlength{\listitemmaincolumnwidth}
+\newlength{\listdoubleitemmaincolumnwidth}
+\newcommand*{\recomputethemelengths}{}
+\newcommand*{\recomputelengths}{%
+\setlength{\quotewidth}{0.65\textwidth}%
+\setlength{\maincolumnwidth}{\textwidth}%
+\addtolength{\maincolumnwidth}{-\separatorcolumnwidth}%
+\addtolength{\maincolumnwidth}{-\hintscolumnwidth}%
+\setlength{\listitemmaincolumnwidth}{\maincolumnwidth}%
+\addtolength{\listitemmaincolumnwidth}{-\listitemsymbolwidth}%
+\setlength{\doubleitemmaincolumnwidth}{\maincolumnwidth}%
+\addtolength{\doubleitemmaincolumnwidth}{-\hintscolumnwidth}%
+\addtolength{\doubleitemmaincolumnwidth}{-\separatorcolumnwidth}%
+\setlength{\doubleitemmaincolumnwidth}{0.5\doubleitemmaincolumnwidth}%
+\setlength{\listdoubleitemmaincolumnwidth}{\maincolumnwidth}%
+\addtolength{\listdoubleitemmaincolumnwidth}{-\listitemsymbolwidth}%
+\setlength{\listdoubleitemmaincolumnwidth}{0.475\listdoubleitemmaincolumnwidth}%
+\renewcommand{\headwidth}{\textwidth}%
+\recomputethemelengths}
+\setlength{\hintscolumnwidth}{0.15\textwidth}
+\recomputelengths
+\title{}
+\renewcommand*{\maketitle}{}
+\newcommand*{\section}[1]{%
+\vspace*{2.5ex \@plus 1ex \@minus .2ex}%
+ \phantomsection{}%
+ \addcontentsline{toc}{part}{#1}%
+ \parbox[m]{\hintscolumnwidth}{\raggedleft\hintfont{\leavevmode\color{sectionrectanglecolor}\rule{\hintscolumnwidth}{1ex}}}%
+ \hspace{\separatorcolumnwidth}%
+ \parbox[m]{\maincolumnwidth}{\sectionstyle{#1}}\\[1ex]}
+\newcommand*{\subsection}[1]{%
+ \cvline[0.45em]{}{\subsectionstyle{#1}}}
+\newcommand*{\cvline}[3][.25em]{%
+ \begin{tabular}{@{}p{\hintscolumnwidth}@{\hspace{\separatorcolumnwidth}}p{\maincolumnwidth}@{}}%
+ \raggedleft\hintfont{#2} &{#3}%
+ \end{tabular}\\[#1]}
+\newcommand*{\cvdoubleitem}[4]{%
+ \cvline{#1}{\begin{minipage}[t]{\doubleitemmaincolumnwidth}#2\end{minipage}%
+ \hfill%
+ \begin{minipage}[t]{\hintscolumnwidth}\raggedleft\hintfont{#3}\end{minipage}\hspace*{\separatorcolumnwidth}\begin{minipage}[t]{\doubleitemmaincolumnwidth}#4\end{minipage}}}
+\newcommand*{\cvlistitem}[2][\listitemsymbol{}]{%
+ \cvline[0pt]{}{#1~\begin{minipage}[t]{\listitemmaincolumnwidth}#2\end{minipage}}}
+\newcommand*{\cvlistdoubleitem}[3][\listitemsymbol{}]{%
+ \cvline[0pt]{}{#1~\begin{minipage}[t]{\listdoubleitemmaincolumnwidth}#2\end{minipage}%
+ \hfill%
+ \ifthenelse{\equal{#3}{}}%
+ {}%
+ {#1~\begin{minipage}[t]{\listdoubleitemmaincolumnwidth}#3\end{minipage}}}}
+\newcommand*{\cventry}[6]{%
+ \cvline{#1}{%
+ {\bfseries#2}%
+ \ifx#3\else{, {\slshape#3}}\fi%
+ \ifx#4\else{, #4}\fi%
+ \ifx#5\else{, #5}\fi%
+ .%
+ \ifx#6\else{\newline{}\begin{minipage}[t]{\linewidth}\small#6\end{minipage}}\fi
+ }}%
+\newcommand*{\cvlanguage}[3]{%
+ \cvline{#1}{\begin{minipage}[t]{.225\maincolumnwidth}\textbf{#2}\end{minipage}\hfill\begin{minipage}[t]{0.725\maincolumnwidth}\raggedleft\footnotesize\itshape #3\end{minipage}}}
+\newcommand*{\cvcomputer}[4]{%
+ \cvdoubleitem{#1}{\small#2}{#3}{\small#4}}
+\newcommand*{\link}[2][]{%
+ \ifthenelse{\equal{#1}{}}%
+ {\href{#2}{#2}}%
+ {\href{#2}{#1}}}
+\newcommand*{\httplink}[2][]{%
+ \ifthenelse{\equal{#1}{}}%
+ {\href{http://#2}{#2}}%
+ {\href{http://#2}{#1}}}
+\newcommand*{\emaillink}[2][]{%
+ \ifthenelse{\equal{#1}{}}%
+ {\href{mailto:#2}{#2}}%
+ {\href{mailto:#2}{#1}}}
+\newif\if@displaypagenumbers\@displaypagenumberstrue
+\newcommand*{\nopagenumbers}{\@displaypagenumbersfalse}
+\AtBeginDocument{%
+ \if@displaypagenumbers%
+ \@ifundefined{r@lastpage}{}{%
+ \ifthenelse{\pageref{lastpage} > 1}{%
+ \fancypagestyle{plain}{%
+ \fancyfoot[r]{\beginL\addressfont\@quotecolour\footnotesize\thepage\beginL/\endL\pageref{lastpage}\endL}}%
+ \pagestyle{plain}}{}}%
+ \AtEndDocument{\label{lastpage}}%
+ \fi}
+\newlength{\bibindent}
+\setlength{\bibindent}{1.5em}
+\newcommand*{\bibliographyitemlabel}{\includegraphics{bibitem.pdf}}
+\newenvironment{thebibliography}[1]%
+ {%
+ \section{\refname}%
+ \small%
+ \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
+ \begin{list}{\bibliographyitemlabel}%
+ {%
+ \setlength{\topsep}{0pt}%
+ \setlength{\labelwidth}{\hintscolumnwidth}%
+ \setlength{\labelsep}{\separatorcolumnwidth}%
+ \leftmargin\labelwidth%
+ \advance\leftmargin\labelsep%
+ \@openbib@code%
+ \usecounter{enumiv}%
+ \let\p@enumiv\@empty%
+ \renewcommand\theenumiv{\@arabic\c@enumiv}}%
+ \sloppy\clubpenalty4000\widowpenalty4000%
+ }%
+ {%
+ \def\@noitemerr{\@latex@warning{Empty `thebibliography' environment}}%
+ \end{list}%
+ }
+\newcommand\newblock{\hskip .11em\@plus.33em\@minus.07em}
+\let\@openbib@code\@empty
+% \end{macrocode}
+% \iffalse
+%</bidimoderncv.cls>
+%<*bidipoem.sty>
+%\fi
+% \subsection{\textsf{bidipoem.sty}}
+% \begin{macrocode}
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{bidipoem}%
+[2010/07/25 Environments for typesetting Persian traditional and modern poems]
+\def\poemcolsepskip{.1\versewidth plus .1\versewidth minus .05\versewidth}
+\def\poemmarginskip{1em plus 1fil minus 1em}
+\def\poemextrabaselineskip{0\baselineskip}
+\def\poemskip{\medskip}
+\def\poemblocksep{\quad$\Box$}
+\newdimen\versewidth
+\newtoks\bidipoem@p@ftn
+\def\poem@verse#1{%
+\ifdim\wd#1>\new@poem@width
+\xdef\new@poem@width{\the\wd#1}%
+\ifdim\new@poem@width>\poem@width
+\xdef\poem@width{\new@poem@width}%
+\global\let\poem@needrun\relax
+\fi
+\fi
+\hbox to\poem@width{\unhbox#1}%
+}
+\def\poem@linebegin{\vadjust{}\hskip\@flushglue\hskip\poemmarginskip\relax}
+\def\poem@lineend{\nobreak\hskip\poemmarginskip\hskip\@flushglue\vadjust{}}
+\def\poem@lineversesep{%
+\nobreak
+\hskip\z@ plus 1filll%
+\penalty600%
+\hskip\poemcolsepskip
+\hskip\z@ plus -2filll%
+\vadjust{}%
+\nobreak
+\hskip\z@ plus 1filll%
+}
+\def\poem@lineparsebegin{%
+\halign\bgroup
+\global\setbox\verse@i=\hbox{\ignorespaces##\unskip}&&
+\global\setbox\verse@ii=\hbox{\ignorespaces##\unskip}
+\cr
+}
+\def\poem@lineparseend{%
+\crcr\egroup
+\vskip-\baselineskip
+}
+\def\oldpoem@cr{%
+ \cr\poem@line
+}
+\newbox\verse@i
+\newbox\verse@ii
+\newif\ifpoem@started
+
+\def\poem@line{%
+\poem@lineparseend
+\ifdim\wd\verse@i>\z@\global\poem@startedtrue\fi
+\ifdim\wd\verse@ii>\z@\global\poem@startedtrue\fi
+\ifpoem@started
+ \ifdim\wd\verse@ii>\z@\else
+ \nopagebreak[3]
+ \fi
+ \leavevmode
+ \poem@linebegin
+ \poem@verse\verse@i
+ \ifdim\wd\verse@ii>\z@
+ \poem@lineversesep
+ \poem@verse\verse@ii
+ \fi
+ \poem@lineend
+ \nopagebreak
+ \endgraf
+ \vskip\poemextrabaselineskip
+\fi
+\poem@lineparsebegin
+}
+\def\@traditionalpoem{%
+\stepcounter{poem@no}
+ \ifnum\max@poem@no<\number\c@poem@no%
+\xdef\poem@width{\z@}%
+ \else
+\xdef\poem@width{\poem@prop{poem@width}}%
+\fi
+\xdef\new@poem@width{\z@}%
+\global\versewidth=\poem@width
+\poemskip\leavevmode\par
+\begingroup
+ \let\@footnotetext\bidipoem@p@ftntext
+ \let\@LTRfootnotetext\bidipoem@p@LTRftntext
+ \let\@RTLfootnotetext\bidipoem@p@RTLftntext
+\tabskip=\z@
+\parskip=\z@
+\parindent=\z@
+\parfillskip=\z@
+\rightskip=\z@
+\leftskip=\z@
+\widowpenalty=10000% No break between verses of the same line.
+\clubpenalty=10000% Same as above. Not really needed.
+\def\newblock{\hfil\poemblocksep\hfil\null}%
+\def\par{\oldpoem@cr}% Redefine \par for possible \obeylines
+\def\\{\global\poem@startedtrue\oldpoem@cr}%
+\global\poem@startedfalse
+\csname poem@obeylines\endcsname
+\let\poem@obeylines\relax
+\poem@lineparsebegin
+}
+\def\@endtraditionalpoem{%
+\cr
+\ifdim\wd\verse@i>\z@\poem@line\else\ifdim\wd\verse@ii>\z@\poem@line\else
+\noalign{%
+\skip0=\poemextrabaselineskip
+\vskip-\skip0
+\vskip-\baselineskip
+}%
+\fi\fi
+\poem@lineparseend
+\endgroup
+ \the\bidipoem@p@ftn
+ \global\bidipoem@p@ftn{}%
+\par
+\vskip\baselineskip
+\poemskip
+\ifdim\new@poem@width<\poem@width
+\global\let\poem@needrun\relax
+\fi
+ \poem@write@aux{poem@width@\romannumeral\c@poem@no}{\new@poem@width}%
+\ifx\AtEndDocument\undefined\poem@finish\fi
+}
+\long\def\bidipoem@p@ftntext#1{%
+ \edef\@tempx{\the\bidipoem@p@ftn\noexpand\footnotetext[\the\c@footnote]}%
+ \global\bidipoem@p@ftn\expandafter{\@tempx{#1}}}%
+\long\def\bidipoem@p@LTRftntext#1{%
+ \edef\@tempxi{\the\bidipoem@p@ftn\noexpand\LTRfootnotetext[\the\c@footnote]}%
+ \global\bidipoem@p@ftn\expandafter{\@tempxi{#1}}}%
+\long\def\bidipoem@p@RTLftntext#1{%
+ \edef\@tempxii{\the\bidipoem@p@ftn\noexpand\RTLfootnotetext[\the\c@footnote]}%
+ \global\bidipoem@p@ftn\expandafter{\@tempxii{#1}}}%
+\newenvironment{traditionalpoem}{\@traditionalpoem}{\@endtraditionalpoem}
+\expandafter\def\csname traditionalpoem*\endcsname{\let\poem@obeylines=\obeylines\traditionalpoem}
+\expandafter\def\csname endtraditionalpoem*\endcsname{\endtraditionalpoem}
+\def\poem@finish{%
+\poem@write@aux{max@poem@no}{\number\c@poem@no}%
+\ifx\poem@needrun\relax
+\PackageWarning{bidipoem}{Unjustified poem. Rerun XeLaTeX to get poem right}%
+\global\let\poem@needrun\undefined
+\fi
+}
+\ifx\AtEndDocument\undefined\else\AtEndDocument\poem@finish\fi
+\newcounter{poem@no}\setcounter{poem@no}{\z@}
+\ifx\max@poem@no\undefined
+ \def\max@poem@no{0}%
+\fi
+\newcommand{\poem@prop}[1]{\@nameuse{#1@\romannumeral\c@poem@no}}
+\newcommand{\poem@write@aux}[2]{%
+ \def\@x{\immediate\write\@auxout{\global\noexpand\@namedef{#1}{#2}}}%
+ \@x
+}
+\def\@modernpoem{%
+\par
+\begingroup
+ \let\@footnotetext\bidipoem@p@ftntext
+ \let\@LTRfootnotetext\bidipoem@p@LTRftntext
+ \let\@RTLfootnotetext\bidipoem@p@RTLftntext
+\parskip=\z@
+\parindent=\z@
+\def\[{\@settab\@tabplus\ignorespaces}%
+\def\]{\@tabminus\ignorespaces}%
+\def\newblock{\poemblocksep}%
+\let\newpoem@tabcr\@tabcr
+\def\par{% Redefine \par for possible \obeylines
+ \ifpoem@started\else
+ \ifdim\wd\@curline>\z@\global\poem@startedtrue\else
+ \@stopfield
+ \ifdim\wd\@curfield>\z@\global\poem@startedtrue\fi
+ \@contfield
+ \fi
+ \fi
+ \ifpoem@started\newpoem@tabcr\fi}%
+\def\@tabcr{\global\poem@startedtrue\newpoem@tabcr}%
+\global\poem@startedfalse
+\csname poem@obeylines\endcsname
+\let\poem@obeylines\relax
+\begin{tabbing}%
+}
+\def\@endmodernpoem{%
+\global\poem@startedfalse
+\ifdim\wd\@curline>\z@\global\poem@startedtrue\else
+ \@stopfield
+ \ifdim\wd\@curfield>\z@\global\poem@startedtrue\fi
+ \@contfield
+\fi
+\ifpoem@started\else\let\@stopline\@stopfield\fi
+\end{tabbing}%
+\endgroup
+ \the\bidipoem@p@ftn
+ \global\bidipoem@p@ftn{}%
+\par
+}
+\newenvironment{modernpoem}{\@modernpoem}{\@endmodernpoem}
+\expandafter\def\csname modernpoem*\endcsname{\let\poem@obeylines=\obeylines\modernpoem}
+\expandafter\def\csname endmodernpoem*\endcsname{\endmodernpoem}
+% \end{macrocode}
+% \iffalse
+%</bidipoem.sty>
+%<*bidipresentation.cls>
+%\fi
+% \subsection{\textsf{bidipresentation.cls}}
+% \begin{macrocode}
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesClass{bidipresentation}
+\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
+\ProcessOptions\relax
+\LoadClass{article}
+
+\RequirePackage[foot=10.2pt,head=0pt,paperwidth=128mm,paperheight=96mm,left=5mm,top=5mm,right=7mm,bottom=8mm]{geometry}
+
+\RequirePackage{fancyhdr}
+\renewcommand{\headrulewidth}{0mm}
+
+\renewcommand{\maketitle}%
+ {\ClassError{bidipresentation}{Caution: ``maketitle'' command not supported}%
+ {Please use ``titlepage'' environment instead}%
+}
+
+\fancypagestyle{pres}{%
+\fancyhf{}%
+\fancyfoot[RO,LE]{\footnotesize \thepage}%
+}
+
+\pagestyle{pres}
+
+\newcommand{\distance}[1]{\vspace*{\stretch{#1}}}
+\newcommand{\abstand}[1]{\vspace*{\stretch{#1}}}
+
+\setlength{\parskip}{0.6ex}
+\setlength{\parindent}{0mm}
+
+\newenvironment{plainslide}[1][]%
+ {{\raggedleft \large\bfseries #1\par}\par\vspace*{\stretch{1}}}%
+ {\par\vspace*{\stretch{1}}\newpage}
+
+\newenvironment{rawslide}{}{\newpage}%
+
+\def\itemize{%
+ \ifnum \@itemdepth >\thr@@\@toodeep\else
+ \advance\@itemdepth\@ne
+ \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
+ \expandafter
+ \list
+ \csname\@itemitem\endcsname
+ {\def\makelabel##1{\hss\llap{##1}}}%
+ \fi
+ \setlength{\itemsep}{0ex}%
+ \setlength{\parskip}{0.1ex}%
+ \setlength{\parsep}{0ex}%
+ }%
+\let\enditemize =\endlist
+
+\def\enumerate{%
+ \ifnum \@enumdepth >\thr@@\@toodeep\else
+ \advance\@enumdepth\@ne
+ \edef\@enumctr{enum\romannumeral\the\@enumdepth}%
+ \expandafter
+ \list
+ \csname label\@enumctr\endcsname
+ {\usecounter\@enumctr\def\makelabel##1{\hss\llap{##1}}}%
+ \fi
+ \setlength{\itemsep}{0ex}%
+ \setlength{\parskip}{0.1ex}%
+ \setlength{\parsep}{0ex}%
+ }%
+\let\endenumerate =\endlist
+
+\renewenvironment{description}
+ {\list{}{\labelwidth\z@ \itemindent-\leftmargin
+ \let\makelabel\descriptionlabel}
+ \setlength{\itemsep}{0ex}%
+ \setlength{\parskip}{0.1ex}%
+ \setlength{\parsep}{0ex}}
+ {\endlist}
+% \end{macrocode}
+% \iffalse
+%</bidipresentation.cls>
+%<*boek3-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{boek3-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{boek3-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for boek3 class for XeTeX engine]
+\renewcommand*\head@style{%
+ \interlinepenalty \@M
+ \hyphenpenalty=\@M \exhyphenpenalty=\@M
+ \if@RTL\leftskip\else\rightskip\fi=0cm plus .7\hsize\relax}
+\renewcommand*\@regtocline[3]{%
+ \ifnum #1>\c@tocdepth
+ \else
+ \vskip\z@\@plus.2\p@
+ {\hangindent\z@ \@afterindenttrue \interlinepenalty\@M
+ \if@RTL\rightskip\else\leftskip\fi\unitindent
+ \if@RTL\leftskip\else\rightskip\fi\unitindent\@plus 1fil
+ \parfillskip\z@
+ \@tempdima\unitindent
+ \parindent\z@
+ \leavevmode
+ \hbox{}\hskip -\if@RTL\rightskip\else\leftskip\fi\relax#2\nobreak
+ \hskip 1em \nobreak{\slshape #3}\par
+ }%
+ \fi}
+\if@oldtoc
+\renewcommand*\l@part[2]{%
+ \ifnum \c@tocdepth >-2\relax
+ \addpenalty{-\@highpenalty}%
+ \addvspace{2.25em \@plus\p@}%
+ \begingroup
+ \setlength\@tempdima{3em}%
+ \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
+ \parfillskip -\@pnumwidth
+ {\leavevmode
+ \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
+ \nobreak
+ \global\@nobreaktrue
+ \everypar{\global\@nobreakfalse\everypar{}}%
+ \endgroup
+ \fi}
+\else
+ \renewcommand*\l@part{%
+ \ifnum \c@tocdepth >-2\relax
+ \addpenalty{-\@highpenalty}%
+ \addvspace{2.25em \@plus \p@}%
+ \@regtocline{0}%
+ \fi}
+\fi
+\if@oldtoc
+\renewcommand*\l@chapter[2]{%
+ \addpenalty{-\@highpenalty}%
+ \vskip 1.0em \@plus\p@
+ \setlength\@tempdima{1.5em}%
+ \begingroup
+ \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
+ \parfillskip -\@pnumwidth
+ \leavevmode \bfseries
+ \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
+ \hskip -\if@RTL\rightskip\else\leftskip\fi
+ #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
+ \penalty\@highpenalty
+ \endgroup}
+\else
+ \renewcommand*\l@chapter{\@regtocline{0}}
+\fi
+\renewenvironment{abstract}{%
+ \titlepage
+ \null\vfil
+ \section*{\SectFont \abstractname}
+ \noindent\ignorespaces}
+ {\par\vfil\null\endtitlepage}
+\renewenvironment{thebibliography}[1]
+ {\chapter*{\bibname}%
+ \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
+ \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
+ \list{\@biblabel{\@arabic\c@enumiv}}%
+ {\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \usecounter{enumiv}%
+ \let\p@enumiv\@empty
+ \renewcommand*\theenumiv{\@arabic\c@enumiv}}%
+ \sloppy\clubpenalty4000\widowpenalty4000%
+ \sfcode`\.\@m}
+ {\def\@noitemerr
+ {\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist}
+\renewcommand*\left@footnote{%
+ \kern-3\p@
+ \kern.5\baselineskip
+ \hrule\@width\unitindent
+ \kern.4\baselineskip
+}
+\renewcommand*\right@footnote{%
+ \hbox to \columnwidth
+ {\beginR \vbox{%
+ \kern-3\p@
+ \kern.5\baselineskip
+ \hrule\@width\unitindent
+ \kern.4\baselineskip}\hfil\endR}
+}
+\renewcommand*\thesection{\thechapter\@SepMark\@arabic\c@section}
+\renewcommand*\thesubsection{\thesection\@SepMark\@arabic\c@subsection}
+\renewcommand*\thesubsubsection{\thesubsection\@SepMark\@arabic\c@subsubsection}
+\renewcommand*\theparagraph{\thesubsubsection\@SepMark\@arabic\c@paragraph}
+\renewcommand*\thesubparagraph{\theparagraph\@SepMark\@arabic\c@subparagraph}
+\renewcommand*\theequation{%
+ \ifnum \c@chapter>\z@ \thechapter\@SepMark\fi\@arabic\c@equation}
+\renewcommand*\thefigure{%
+ \ifnum\c@chapter>\z@\thechapter\@SepMark\fi\@arabic\c@figure}
+\renewcommand*\thetable{%
+ \ifnum\c@chapter>\z@\thechapter\@SepMark\fi\@arabic\c@table}
+\renewcommand*\maketitle{%
+ \begin{titlepage}%
+ \let\footnotesize\small
+ \let\right@footnote\relax
+ \let\left@footnote\relax
+ \let\textwidth@footnote\relax
+ \let \footnote \thanks
+ \long\def\@makefntext##1{\parindent\z@
+ \def\labelitemi{\textendash}\@revlabeltrue
+ \leavevmode\@textsuperscript{\@thefnmark}\kern1em\relax ##1}
+ \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
+ \if@compatibility\setcounter{page}{0}\fi
+ \null\vfil
+ \vskip 60\p@
+ \begin{center}%
+ \TitleFont
+ {\LARGE \def\\{\penalty -\@M}
+ \if@allcaps
+ \expandafter\uc@nothanks\@title\thanks\relax
+ \else
+ \@title
+ \fi\par}%
+ \vskip 3em%
+ {\large
+ \lineskip .75em \parindent\z@
+ \begin{tabular}[t]{c}%
+ \if@allcaps
+ \expandafter\uc@authornothanks\@author\and\relax
+ \else
+ \@author
+ \fi
+ \end{tabular}\par}%
+ \vskip 1.5em%
+ {\large
+ \if@allcaps
+ \uppercase\expandafter{\@date}%
+ \else
+ \@date
+ \fi\par}%
+ \end{center}\par
+ \@thanks
+ \vfil\null
+ \end{titlepage}%
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@title\@empty
+ \global\let\@date\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}
+% \end{macrocode}
+% \iffalse
+%</boek3-xetex-bidi.def>
+%<*boek-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{boek-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{boek-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for boek class for XeTeX engine]
+\renewcommand*\head@style{%
+ \interlinepenalty \@M
+ \hyphenpenalty=\@M \exhyphenpenalty=\@M
+ \if@RTL\leftskip\else\rightskip\fi=0cm plus .7\hsize\relax}
+\renewcommand*\@regtocline[3]{%
+ \ifnum #1>\c@tocdepth
+ \else
+ \vskip\z@\@plus.2\p@
+ {\hangindent\z@ \@afterindenttrue \interlinepenalty\@M
+ \if@RTL\rightskip\else\leftskip\fi\unitindent
+ \if@RTL\leftskip\else\rightskip\fi\unitindent\@plus 1fil
+ \parfillskip\z@
+ \@tempdima\unitindent
+ \parindent\z@
+ \leavevmode
+ \hbox{}\hskip -\if@RTL\rightskip\else\leftskip\fi\relax#2\nobreak
+ \hskip 1em \nobreak{\slshape #3}\par
+ }%
+ \fi}
+\if@oldtoc
+\renewcommand*\l@part[2]{%
+ \ifnum \c@tocdepth >-2\relax
+ \addpenalty{-\@highpenalty}%
+ \addvspace{2.25em \@plus\p@}%
+ \begingroup
+ \setlength\@tempdima{3em}%
+ \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
+ \parfillskip -\@pnumwidth
+ {\leavevmode
+ \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
+ \nobreak
+ \global\@nobreaktrue
+ \everypar{\global\@nobreakfalse\everypar{}}%
+ \endgroup
+ \fi}
+\else
+ \renewcommand*\l@part{%
+ \ifnum \c@tocdepth >-2\relax
+ \addpenalty{-\@highpenalty}%
+ \addvspace{2.25em \@plus \p@}%
+ \@regtocline{0}%
+ \fi}
+\fi
+\if@oldtoc
+\renewcommand*\l@chapter[2]{%
+ \addpenalty{-\@highpenalty}%
+ \vskip 1.0em \@plus\p@
+ \setlength\@tempdima{1.5em}%
+ \begingroup
+ \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
+ \parfillskip -\@pnumwidth
+ \leavevmode \bfseries
+ \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
+ \hskip -\if@RTL\rightskip\else\leftskip\fi
+ #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
+ \penalty\@highpenalty
+ \endgroup}
+\else
+ \renewcommand*\l@chapter{\@regtocline{0}}
+\fi
+\renewcommand*\left@footnote{%
+ \kern-3\p@
+ \kern.5\baselineskip
+ \hrule\@width\unitindent
+ \kern.4\baselineskip
+}
+\renewcommand*\right@footnote{%
+ \hbox to \columnwidth
+ {\beginR \vbox{%
+ \kern-3\p@
+ \kern.5\baselineskip
+ \hrule\@width\unitindent
+ \kern.4\baselineskip}\hfil\endR}
+}
+\renewenvironment{abstract}{%
+ \titlepage
+ \null\vfil
+ \section*{\SectFont \abstractname}
+ \noindent\ignorespaces}
+ {\par\vfil\null\endtitlepage}
+\renewenvironment{thebibliography}[1]
+ {\chapter*{\bibname}%
+ \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
+ \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
+ \list{\@biblabel{\@arabic\c@enumiv}}%
+ {\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \usecounter{enumiv}%
+ \let\p@enumiv\@empty
+ \renewcommand*\theenumiv{\@arabic\c@enumiv}}%
+ \sloppy\clubpenalty4000\widowpenalty4000%
+ \sfcode`\.\@m}
+ {\def\@noitemerr
+ {\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist}
+\renewcommand*\thesection{\thechapter\@SepMark\@arabic\c@section}
+\renewcommand*\thesubsection{\thesection\@SepMark\@arabic\c@subsection}
+\renewcommand*\thesubsubsection{\thesubsection\@SepMark\@arabic\c@subsubsection}
+\renewcommand*\theparagraph{\thesubsubsection\@SepMark\@arabic\c@paragraph}
+\renewcommand*\thesubparagraph{\theparagraph\@SepMark\@arabic\c@subparagraph}
+\renewcommand*\theequation{%
+ \ifnum \c@chapter>\z@ \thechapter\@SepMark\fi\@arabic\c@equation}
+\renewcommand*\thefigure{%
+ \ifnum\c@chapter>\z@\thechapter\@SepMark\fi\@arabic\c@figure}
+\renewcommand*\thetable{%
+ \ifnum\c@chapter>\z@\thechapter\@SepMark\fi\@arabic\c@table}
+\renewcommand*\maketitle{%
+ \begin{titlepage}%
+ \let\footnotesize\small
+ \let\right@footnote\relax
+ \let\left@footnote\relax
+ \let\textwidth@footnote\relax
+ \let \footnote \thanks
+ \long\def\@makefntext##1{\parindent\z@
+ \def\labelitemi{\textendash}\@revlabeltrue
+ \leavevmode\@textsuperscript{\@thefnmark}\kern1em\relax ##1}
+ \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
+ \if@compatibility\setcounter{page}{0}\fi
+ \null\vfil
+ \vskip 60\p@
+ \begin{center}%
+ \TitleFont
+ {\LARGE \def\\{\penalty -\@M}
+ \if@allcaps
+ \expandafter\uc@nothanks\@title\thanks\relax
+ \else
+ \@title
+ \fi\par}%
+ \vskip 3em%
+ {\large
+ \lineskip .75em \parindent\z@
+ \begin{tabular}[t]{c}%
+ \if@allcaps
+ \expandafter\uc@authornothanks\@author\and\relax
+ \else
+ \@author
+ \fi
+ \end{tabular}\par}%
+ \vskip 1.5em%
+ {\large
+ \if@allcaps
+ \uppercase\expandafter{\@date}%
+ \else
+ \@date
+ \fi\par}%
+ \end{center}\par
+ \@thanks
+ \vfil\null
+ \end{titlepage}%
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@title\@empty
+ \global\let\@date\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}
+% \end{macrocode}
+% \iffalse
+%</boek-xetex-bidi.def>
+%<*bookest-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{bookest-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{bookest-xetex-bidi.def}[2010/07/25 v0.4 bidi adaptations for bookest class for XeTeX engine]
+\def\@makechapterhead#1{%
+ \vspace*{20\p@}
+ {\parindent \z@ \if@RTL\raggedleft\else\raggedright\fi \normalfont
+ \ifnum \c@secnumdepth >\m@ne
+ \if@mainmatter
+ {\colorA\huge\scshape \@chapapp\space \thechapter}
+ \par\nobreak
+ \vskip 10\p@
+ \fi
+ \fi
+ \interlinepenalty\@M
+ {\colorB\hrule}
+ \vskip 15\p@
+ \if@RTL\begin{flushleft}\else\begin{flushright}\fi
+ {\colorA\Huge \bfseries #1}\par\nobreak
+ \if@RTL\end{flushleft}\else\end{flushright}\fi
+ \vskip 5\p@
+ {\colorB\hrule}
+ \vskip 30\p@
+ }}
+\def\@makeschapterhead#1{%
+ \vspace*{20\p@}
+ {\parindent \z@ \raggedright \normalfont
+ {\colorB\hrule}
+ \vskip 15\p@
+ \begin{center}
+ {\colorA\Huge \bfseries #1}\par\nobreak
+ \end{center}
+ \vskip 5\p@
+ {\colorB\hrule}
+ \vskip 30\p@
+ }}
+% \end{macrocode}
+% \iffalse
+%</bookest-xetex-bidi.def>
+%<*book-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{book-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{book-xetex-bidi.def}[2010/07/25 v0.7 bidi adaptations for standard book class for XeTeX engine]
+\@ifclassloaded{bookest}{}{%
+ \if@titlepage
+ \renewcommand\maketitle{\begin{titlepage}%
+ \let\footnotesize\small
+ \let\right@footnote\relax
+ \let\left@footnote\relax
+ \let\textwidth@footnote\relax
+ \let \footnote \thanks
+ \let \LTRfootnote \LTRthanks
+ \let \RTLfootnote \RTLthanks
+ \null\vfil
+ \vskip 60\p@
+ \begin{center}%
+ {\LARGE \@title \par}%
+ \vskip 3em%
+ {\large
+ \lineskip .75em%
+ \begin{tabular}[t]{c}%
+ \@author
+ \end{tabular}\par}%
+ \vskip 1.5em%
+ {\large \@date \par}% % Set date in \large size.
+ \end{center}\par
+ \@thanks
+ \vfil\null
+ \end{titlepage}%
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\LTRthanks\relax
+ \global\let\RTLthanks\relax
+ \global\let\maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@date\@empty
+ \global\let\@title\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}
+\else
+\renewcommand\maketitle{\par
+ \begingroup
+ \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
+ \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
+ \long\def\@makefntext##1{\parindent 1em\noindent
+ \hb@xt@1.8em{%
+ \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
+ \if@twocolumn
+ \ifnum \col@number=\@ne
+ \@maketitle
+ \else
+ \twocolumn[\@maketitle]%
+ \fi
+ \else
+ \newpage
+ \global\@topnum\z@ % Prevents figures from going at top of page.
+ \@maketitle
+ \fi
+ \thispagestyle{plain}\@thanks
+ \endgroup
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\LTRthanks\relax
+ \global\let\RTLthanks\relax
+ \global\let\maketitle\relax
+ \global\let\@maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@date\@empty
+ \global\let\@title\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}
+\def\@maketitle{%
+ \newpage
+ \null
+ \vskip 2em%
+ \begin{center}%
+ \let \footnote \thanks
+ \let \LTRfootnote \LTRthanks
+ \let \RTLfootnote \RTLthanks
+ {\LARGE \@title \par}%
+ \vskip 1.5em%
+ {\large
+ \lineskip .5em%
+ \begin{tabular}[t]{c}%
+ \@author
+ \end{tabular}\par}%
+ \vskip 1em%
+ {\large \@date}%
+ \end{center}%
+ \par
+ \vskip 1.5em}
+\fi}
+\renewcommand*\l@part[2]{%
+ \ifnum \c@tocdepth >-2\relax
+ \addpenalty{-\@highpenalty}%
+ \addvspace{2.25em \@plus\p@}%
+ \setlength\@tempdima{3em}%
+ \begingroup
+ \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
+ \parfillskip -\@pnumwidth
+ {\leavevmode
+ \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
+ \nobreak
+ \global\@nobreaktrue
+ \everypar{\global\@nobreakfalse\everypar{}}%
+ \endgroup
+ \fi}
+\renewcommand*\l@chapter[2]{%
+ \ifnum \c@tocdepth >\m@ne
+ \addpenalty{-\@highpenalty}%
+ \vskip 1.0em \@plus\p@
+ \setlength\@tempdima{1.5em}%
+ \begingroup
+ \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
+ \parfillskip -\@pnumwidth
+ \leavevmode \bfseries
+ \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
+ \hskip -\if@RTL\rightskip\else\leftskip\fi
+ #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
+ \penalty\@highpenalty
+ \endgroup
+ \fi}
+\renewcommand\left@footnote{%
+ \kern-3\p@
+ \hrule\@width.4\columnwidth
+ \kern2.6\p@}
+\renewcommand\right@footnote{%
+ \hbox to \columnwidth
+ {\beginR \vbox{%
+ \kern-3\p@
+ \hrule\@width.4\columnwidth
+ \kern2.6\p@}\hfil\endR}}
+\renewcommand\theequation
+ {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@equation}
+\renewcommand \thefigure
+ {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@figure}
+\renewcommand \thetable
+ {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@table}
+\renewcommand \thechapter {\@arabic\c@chapter}
+\renewcommand \thesection {\thechapter\@SepMark\@arabic\c@section}
+\renewcommand\thesubsection {\thesection\@SepMark\@arabic\c@subsection}
+\renewcommand\thesubsubsection{\thesubsection \@SepMark\@arabic\c@subsubsection}
+\renewcommand\theparagraph {\thesubsubsection\@SepMark\@arabic\c@paragraph}
+\renewcommand\thesubparagraph {\theparagraph\@SepMark\@arabic\c@subparagraph}
+\def\@makechapterhead#1{%
+ \vspace*{50\p@}%
+ {\parindent \z@ \if@RTL\raggedleft\else\raggedright\fi \normalfont
+ \ifnum \c@secnumdepth >\m@ne
+ \if@mainmatter
+ \huge\bfseries \@chapapp\space \thechapter
+ \par\nobreak
+ \vskip 20\p@
+ \fi
+ \fi
+ \interlinepenalty\@M
+ \Huge \bfseries #1\par\nobreak
+ \vskip 40\p@
+ }}
+\def\@makeschapterhead#1{%
+ \vspace*{50\p@}%
+ {\parindent \z@ \if@RTL\raggedleft\else\raggedright\fi
+ \normalfont
+ \interlinepenalty\@M
+ \Huge \bfseries #1\par\nobreak
+ \vskip 40\p@
+ }}
+\renewcommand\backmatter{%
+ \if@openright
+ \cleardoublepage
+ \else
+ \clearpage
+ \fi
+ \@mainmatterfalse}
+\renewenvironment{thebibliography}[1]
+ {\chapter*{\bibname}%
+ \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
+ \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
+ \list{\@biblabel{\@arabic\c@enumiv}}%
+ {\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \usecounter{enumiv}%
+ \let\p@enumiv\@empty
+ \renewcommand\theenumiv{\@arabic\c@enumiv}}%
+ \sloppy
+ \clubpenalty4000
+ \@clubpenalty \clubpenalty
+ \widowpenalty4000%
+ \sfcode`\.\@m}
+ {\def\@noitemerr
+ {\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist}
+% \end{macrocode}
+% \iffalse
+%</book-xetex-bidi.def>
+%<*breqn-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{breqn-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{breqn-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for breqn package for XeTeX engine]
+\def\@dmath[#1]{\if@RTL\@RTLfalse\fi%
+ \everydisplay\expandafter{\the\everydisplay \display@setup}%
+ \if@noskipsec \leavevmode \fi
+ \if@inlabel \leavevmode \global\@inlabelfalse \fi
+ \if\eq@group\else\eq@prelim\fi
+ \setkeys{breqn}{#1}%
+ \the\eqstyle
+ \eq@setnumber
+ \begingroup
+ \eq@setup@a
+ \eq@startup
+}
+\def\@dgroup[#1]{\if@RTL\@RTLfalse\fi%
+ \let\eq@group\@True \global\let\eq@GRP@first@dmath\@True
+ \global\GRP@queue\@emptytoks \global\setbox\GRP@box\box\voidb@x
+ \global\let\GRP@label\@empty
+ \global\grp@wdL\z@\global\grp@wdR\z@\global\grp@wdT\z@
+ \global\grp@linewidth\z@\global\grp@wdNum\z@
+ \global\let\grp@eqs@numbered\@False
+ \global\let\grp@aligned\@True
+ \global\let\grp@shiftnumber\@False
+ \eq@prelim
+ \setkeys{breqn}{#1}%
+ \if\grp@hasNumber \grp@setnumber \fi
+}
+\def\@dseries[#1]{\if@RTL\@RTLfalse\fi%
+ \let\display@setup\dseries@display@setup
+ % Question: should this be the default for dseries???
+ \global\eq@wdCond\z@
+ \@dmath[layout={M},#1]%
+ \mathsurround\z@\@@math \penalty\@Mi
+ \let\endmath\ends@math
+ \def\premath{%
+ \ifdim\lastskip<.3em \unskip
+ \else\ifnum\lastpenalty<\@M \dquad\fi\fi
+}%
+ \def\postmath{\unpenalty\eq@addpunct \penalty\intermath@penalty \dquad \@ignoretrue}%
+\ignorespaces
+}
+\def\eqnumform#1{\if@Latin\else\beginR\@RTLtrue\fi(#1\@@italiccorr)\if@Latin\else\endR\fi}
+\renewenvironment{dsuspend}{%
+ \global\setbox\EQ@box\vbox\bgroup\if@Latin\else\@RTLtrue\fi \@parboxrestore
+ \parshape 1 \displayindent \displaywidth\relax
+ \hsize=\columnwidth \noindent\ignorespaces
+}{%
+ \par\egroup
+ \global\setbox\GRP@box\vbox{%
+ \hbox{\copy\EQ@box\vtop{\unvbox\EQ@box}}%
+ \unvbox\GRP@box
+ }%
+ \global\GRP@queue\@xp{\the\GRP@queue
+ \@elt{\let\eq@isIntertext\@True}%
+ }%
+}
+% \end{macrocode}
+% \iffalse
+%</breqn-xetex-bidi.def>
+%<*caption-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{caption-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{caption-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for caption package for XeTeX engine]
+\let\@makecaption\caption@makecaption
+% \end{macrocode}
+% \iffalse
+%</caption-xetex-bidi.def>
+%<*colortbl-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{colortbl-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{colortbl-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for colortbl package for XeTeX engine]
+\def\CT@setup{%
+ \@tempdimb\col@sep
+ \@tempdimc\col@sep
+ \def\CT@color{%
+ \global\let\CT@do@color\CT@@do@color
+ \bidicolor}}
+\def\@classz{\@classx
+ \@tempcnta \count@
+ \prepnext@tok
+\expandafter\CT@extract\the\toks\@tempcnta\columncolor!\@nil
+ \@addtopreamble{\if@RTL\beginL\fi%
+ \setbox\z@\hbox\bgroup\bgroup\if@RTL\beginR\fi
+ \ifcase \@chnum
+ \hskip\stretch{.5}\kern\z@
+ \d@llarbegin
+ \insert@column
+ \d@llarend\hskip\stretch{.5}\or
+ \d@llarbegin \insert@column \d@llarend \hfill \or
+ \hfill\kern\z@ \d@llarbegin \insert@column \d@llarend \or
+ $\vcenter
+ \@startpbox{\@nextchar}\insert@column \@endpbox $\or
+ \vtop \@startpbox{\@nextchar}\insert@column \@endpbox \or
+ \vbox \@startpbox{\@nextchar}\insert@column \@endpbox
+ \fi
+ \if@RTL\endR\fi\egroup\egroup
+\begingroup
+ \CT@setup
+ \CT@column@color
+ \CT@row@color
+ \CT@cell@color
+ \CT@do@color
+\endgroup
+ \@tempdima\ht\z@
+ \advance\@tempdima\minrowclearance
+ \vrule\@height\@tempdima\@width\z@
+ \unhbox\z@\if@RTL\endL\fi}%
+ \prepnext@tok}
+% \end{macrocode}
+% \iffalse
+%</colortbl-xetex-bidi.def>
+%<*color-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{color-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{color-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for color package for XeTeX engine]
+\long\def\color@b@x#1#2#3{%
+ \leavevmode\if@RTL\beginL\fi
+ \setbox\z@\hbox{\kern\fboxsep{\set@color\if@RTL\beginR\fi#3\if@RTL\endR\fi}\kern\fboxsep}%
+ \dimen@\ht\z@\advance\dimen@\fboxsep\ht\z@\dimen@
+ \dimen@\dp\z@\advance\dimen@\fboxsep\dp\z@\dimen@
+ {#1{#2\color@block{\wd\z@}{\ht\z@}{\dp\z@}%
+ \box\z@}}\if@RTL\endL\fi}
+\DeclareRobustCommand\color{%
+ \ifhmode\if@RTL\beginL\aftergroup\endR\fi\fi\@ifnextchar[\@undeclaredcolor\@declaredcolor}
+\def\@declaredcolor#1{%
+ \@ifundefined{\string\color @#1}%
+ {\c@lor@error{`#1'}}%
+ {\expandafter\let\expandafter\current@color
+ \csname\string\color @#1\endcsname
+ \set@color}%
+ \ignorespaces\ifhmode\if@RTL\beginR\aftergroup\endL\fi\fi}
+\def\@undeclaredcolor[#1]#2{%
+ \@ifundefined{color@#1}%
+ {\c@lor@error{model `#1'}}%
+ {\csname color@#1\endcsname\current@color{#2}%
+ \set@color}%
+ \ignorespaces\ifhmode\if@RTL\beginR\aftergroup\endL\fi\fi}
+\DeclareRobustCommand\bidicolor{%
+ \@ifnextchar[\@bidiundeclaredcolor\@bidideclaredcolor}
+\def\@bidiundeclaredcolor[#1]#2{%
+ \@ifundefined{color@#1}%
+ {\c@lor@error{model `#1'}}%
+ {\csname color@#1\endcsname\current@color{#2}%
+ \set@color}%
+ \ignorespaces}
+\def\@bidideclaredcolor#1{%
+ \@ifundefined{\string\color @#1}%
+ {\c@lor@error{`#1'}}%
+ {\expandafter\let\expandafter\current@color
+ \csname\string\color @#1\endcsname
+ \set@color}%
+ \ignorespaces}
+\def\color@box#1#2{\color@b@x\relax{\bidicolor#1{#2}}}
+\def\color@fbox#1#2#3{%
+ \color@b@x{\fboxsep\z@\bidicolor#1{#2}\fbox}{\bidicolor#1{#3}}}
+% \end{macrocode}
+% \iffalse
+%</color-xetex-bidi.def>
+%<*cvthemebidicasual.sty>
+%\fi
+% \subsection{\textsf{cvthemebidicasual.sty}}
+% \begin{macrocode}
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{cvthemebidicasual}
+\DeclareOption{blue}{}
+\newif\if@colourorange\@colourorangefalse
+\DeclareOption{orange}{\@colourorangetrue}
+\newif\if@colourgreen\@colourgreenfalse
+\DeclareOption{green}{\@colourgreentrue}
+\newif\if@colourred\@colourredfalse
+\DeclareOption{red}{\@colourredtrue}
+\newif\if@colourgrey\@colourgreyfalse
+\DeclareOption{grey}{\@colourgreytrue}
+\DeclareOption*{
+ \PackageWarning{cvthemebidicasual}{Unknown option ‘\CurrentOption’}}
+\ExecuteOptions{colour}
+\ProcessOptions\relax
+\renewcommand*{\listitemsymbol}{\textbullet}
+\definecolor{firstnamecolor}{rgb}{0.65,0.65,0.65}
+\familynamecolour{808080}
+\firstnamecolour{A9A9A9}
+\quotecolour{696969}
+\addresscolour{696969}
+\definecolor{sectionrectanglecolor}{rgb}{0.25,0.50,0.75}
+\sectiontitlecolour{1E90FF}
+\subsectioncolour{4682B4}
+\definecolor{rulecolour}{gray}{0.6}
+\definecolor{footersymbolcolour}{rgb}{0.25,0.50,0.75}
+\definecolor{footersymbolcolor}{rgb}{0.25,0.50,0.75}
+\if@colourorange
+ \definecolor{sectionrectanglecolor}{rgb}{1.00,0.65,0.20}
+ \definecolor{sectionrectanglecolor}{rgb}{1.00,0.65,0.20}
+ \sectiontitlecolour{FF8C00}
+ \subsectioncolour{FF8C00}
+ \definecolor{footersymbolcolour}{rgb}{0.95,0.55,0.15}
+ \definecolor{footersymbolcolor}{rgb}{0.95,0.55,0.15}\fi
+\if@colourgreen
+ \definecolor{sectionrectanglecolor}{rgb}{0.55,0.85,0.35}
+ \definecolor{sectionrectanglecolour}{rgb}{0.55,0.85,0.35}
+ \sectiontitlecolour{008000}
+ \subsectioncolour{008000}
+ \definecolor{footersymbolcolour}{rgb}{0.30,0.65,0.15}
+ \definecolor{footersymbolcolor}{rgb}{0.30,0.65,0.15}\fi
+\if@colourred
+ \definecolor{sectionrectanglecolor}{rgb}{1.00,0.30,0.30}
+ \definecolor{sectionrectanglecolour}{rgb}{1.00,0.30,0.30}
+ \sectiontitlecolour{FF0000}
+ \subsectioncolour{FF0000}
+ \definecolor{footersymbolcolour}{rgb}{0.95,0.20,0.20}
+ \definecolor{footersymbolcolor}{rgb}{0.95,0.20,0.20}\fi
+\if@colourgrey
+ \definecolor{sectionrectanglecolor}{rgb}{0.75,0.75,0.75}
+ \definecolor{sectionrectanglecolour}{rgb}{0.75,0.75,0.75}
+ \sectiontitlecolour{808080}
+ \subsectioncolour{808080}
+ \definecolor{footersymbolcolour}{rgb}{0.35,0.35,0.35}
+ \definecolor{footersymbolcolor}{rgb}{0.35,0.35,0.35}\fi
+\renewcommand*{\ttdefault}{pcr}
+\renewcommand*{\firstnamefont}{\fontsize{38}{40}\mdseries\upshape}
+\renewcommand*{\familynamefont}{\firstnamefont}
+\renewcommand*{\addressfont}{\normalsize\mdseries\slshape}
+\renewcommand*{\quotefont}{\large\slshape}
+\renewcommand*{\sectionfont}{\Large\mdseries\upshape}
+\renewcommand*{\subsectionfont}{\large\mdseries\upshape}
+\renewcommand*{\maketitle}{%
+ {\beginL%
+ \ifthenelse{\isundefined{\@photo}}%
+ {}%
+ {{\color{firstnamecolor}\framebox{\includegraphics[width=\@photowidth]{\@photo}}}}%
+ \hfill%
+ \raggedleft{\if@RTL\beginR\fi\firstnamestyle{\@firstname}~\familynamestyle{\@familyname}\if@RTL\endR\fi}\endL\\[-.35em]}%
+ {\color{firstnamecolor}\rule{\textwidth}{.25ex}\\[2.5em]}%
+ \ifthenelse{\isundefined{\@quote}}%
+ {}%
+ {\centering{\begin{minipage}{\quotewidth}\centering\quotestyle{\@quote}\end{minipage}}\\[2.5em]}%
+ }%
+\newif\if@firstfooterelement\@firstfooterelementtrue
+\providecommand*{\footersymbol}{}
+\renewcommand*{\footersymbol}{%
+ \if@firstfooterelement%
+ \else%
+ { ~~\color{footersymbolcolor}\textbullet~~~}\fi}
+\providecommand*{\makefooter}{}
+\renewcommand*{\makefooter}{%
+ \fancypagestyle{plain}{%
+ \fancyfoot[c]{%
+ \parbox{0.8\textwidth}{%
+ \centering%
+ \addressfont\@addresscolour%
+ \ifthenelse{\isundefined{\@address}}{}{%
+ \if@RTLmain\beginR\fi\addresssymbol~\@address\if@RTLmain\endR\fi\\%
+ \@firstfooterelementfalse}%
+ \if@RTLmain\beginR\fi\ifthenelse{\isundefined{\@mobile}}{}{\if@RTLmain\beginR\fi\mobilesymbol~\@mobile\if@RTLmain\endR\fi\@firstfooterelementfalse}%
+ \ifthenelse{\isundefined{\@phone}}{}{\footersymbol\if@RTLmain\beginR\fi\phonesymbol~\@phone\if@RTLmain\endR\fi\@firstfooterelementfalse}%
+ \ifthenelse{\isundefined{\@fax}}{}{\footersymbol\if@RTLmain\beginR\fi\faxsymbol~\@fax\if@RTLmain\endR\fi\@firstfooterelementfalse}%
+ \ifthenelse{\isundefined{\@email}}{}{\footersymbol\if@RTLmain\beginR\fi\emailsymbol~\emaillink{\@email}\if@RTLmain\endR\fi\@firstfooterelementfalse}%
+ \ifthenelse{\isundefined{\@extrainfo}}{}{\if@RTLmain\beginR\fi\footersymbol\@extrainfo\if@RTLmain\endR\fi\@firstfooterelementfalse}\if@RTLmain\endR\fi}}%
+ }%
+ \pagestyle{plain}}
+\AtBeginDocument{\makefooter}
+% \end{macrocode}
+% \iffalse
+%</cvthemebidicasual.sty>
+%<*cvthemebidiclassic.sty>
+%\fi
+% \subsection{\textsf{cvthemebidiclassic.sty}}
+% \begin{macrocode}
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{cvthemebidiclassic}
+\DeclareOption{blue}{}
+\newif\if@colourorange\@colourorangefalse
+\DeclareOption{orange}{\@colourorangetrue}
+\newif\if@colourgreen\@colourgreenfalse
+\DeclareOption{green}{\@colourgreentrue}
+\newif\if@colourred\@colourredfalse
+\DeclareOption{red}{\@colourredtrue}
+\newif\if@colourgrey\@colourgreyfalse
+\DeclareOption{grey}{\@colourgreytrue}
+\DeclareOption*{
+ \PackageWarning{cvthemebidiclassic}{Unknown option ‘\CurrentOption’}}
+\ExecuteOptions{colour}
+\ProcessOptions\relax
+\renewcommand*{\listitemsymbol}{\textbullet}
+\firstnamecolour{}
+\familynamecolour{}
+\titlecolour{808080}
+\quotecolour{696969}
+\addresscolour{696969}
+\definecolor{sectionrectanglecolour}{rgb}{0.25,0.50,0.75}
+\definecolor{sectionrectanglecolor}{rgb}{0.25,0.5,0.75}
+\sectiontitlecolour{1E90FF}
+\subsectioncolour{4682B4}
+\if@colourorange
+ \addresscolour{FF8C00}
+ \definecolor{sectionrectanglecolour}{rgb}{1.00,0.65,0.20}
+ \definecolor{sectionrectanglecolor}{rgb}{1,0.65,0.20}
+ \sectiontitlecolour{FF8C00}
+ \subsectioncolour{FF8C00}\fi
+\if@colourgreen
+ \addresscolour{008000}
+ \definecolor{sectionrectanglecolour}{rgb}{0.55,0.85,0.35}
+ \definecolor{sectionrectanglecolor}{rgb}{0.55,0.85,0.35}
+ \sectiontitlecolour{008000}
+ \subsectioncolour{008000}\fi
+\if@colourred
+ \addresscolour{FF0000}
+ \definecolor{sectionrectanglecolour}{rgb}{1.00,0.30,0.30}
+ \definecolor{sectionrectanglecolor}{rgb}{1.00,0.30,0.30}
+ \sectiontitlecolour{FF0000}
+ \subsectioncolour{FF0000}\fi
+\if@colourgrey
+ \addresscolour{808080}
+ \definecolor{sectionrectanglecolour}{rgb}{0.75,0.75,0.75}
+ \definecolor{sectionrectanglecolor}{rgb}{0.75,0.75,0.75}
+ \sectiontitlecolour{808080}
+ \subsectioncolour{808080}\fi
+\renewcommand*{\ttdefault}{pcr}
+\renewcommand*{\firstnamefont}{\fontsize{34}{36}\mdseries\upshape}
+\renewcommand*{\titlefont}{\LARGE\mdseries\slshape}
+\renewcommand*{\addressfont}{\normalsize\mdseries\slshape}
+\renewcommand*{\familynamefont}{\firstnamefont}
+\renewcommand*{\quotefont}{\large\slshape}
+\renewcommand*{\sectionfont}{\Large\mdseries\upshape}
+\renewcommand*{\subsectionfont}{\large\mdseries\upshape}
+\newlength{\maketitlenamemaxwidth}
+\setlength{\maketitlenamemaxwidth}{.525\textwidth}
+\newlength{\maketitlenamefullwidth}
+\settowidth{\maketitlenamefullwidth}{\firstnamestyle{\@firstname~}\familynamestyle{\@familyname}}
+\newlength{\maketitlenamewidth}
+\ifnum\maketitlenamemaxwidth<\maketitlenamefullwidth\setlength{\maketitlenamewidth}{\maketitlenamemaxwidth}\else\setlength{\maketitlenamewidth}{\maketitlenamefullwidth}\fi
+\newlength{\maketitlepicturewidth}
+\setlength{\maketitlepicturewidth}{\@photowidth}
+\newlength{\maketitledetailswidth}
+\renewcommand*{\recomputethemelengths}{%
+ \setlength{\maketitledetailswidth}{\textwidth}%
+ \addtolength{\maketitledetailswidth}{-\maketitlenamewidth}%
+ \addtolength{\maketitledetailswidth}{-\separatorcolumnwidth}%
+ \addtolength{\maketitledetailswidth}{-\maketitlepicturewidth}}
+\recomputethemelengths
+\newif\if@firstdetailselement\@firstdetailselementtrue
+\newcommand*{\maketitledetailsnewline}{
+ \if@firstdetailselement%
+ \@firstdetailselementfalse%
+ \else%
+ \\[.2em]\fi}
+\renewcommand*{\maketitle}{%
+ % name and title
+ \begin{minipage}[b]{\maketitlenamewidth}%
+ \firstnamestyle{\@firstname~}\familynamestyle{\@familyname}%
+ \ifthenelse{\equal{\@title}{}}{}{\\[1.25em]\titlestyle{\@title}}%
+ \end{minipage}%
+ % optional data
+ \begin{minipage}[b]{\maketitledetailswidth}%
+ \raggedleft\addressfont\@addresscolour%
+ \ifthenelse{\isundefined{\@address}}{}{%
+ \maketitledetailsnewline%
+ \addresssymbol~\\\@address}%
+ \ifthenelse{\isundefined{\@mobile}}{}{\maketitledetailsnewline\mobilesymbol~\@mobile}%
+ \ifthenelse{\isundefined{\@phone}}{}{\maketitledetailsnewline\phonesymbol~\@phone}%
+ \ifthenelse{\isundefined{\@fax}}{}{\maketitledetailsnewline\faxsymbol~\@fax}%
+ \ifthenelse{\isundefined{\@email}}{}{\maketitledetailsnewline\emailsymbol~\emaillink{\@email}}%
+ \ifthenelse{\isundefined{\@extrainfo}}{}{\maketitledetailsnewline\@extrainfo}%
+ \end{minipage}%
+ % optional photo
+ \ifthenelse{\isundefined{\@photo}}%
+ {}%
+ {\hspace*{\separatorcolumnwidth}\color{firstnamecolor}\framebox{\includegraphics[width=\maketitlepicturewidth]{\@photo}}}\\[3em]%
+ % optional quote
+ \ifthenelse{\isundefined{\@quote}}%
+ {}%
+ {\centering{\begin{minipage}{\quotewidth}\centering\quotestyle{\@quote}\end{minipage}}\\[2.5em]}%
+ }
+% \end{macrocode}
+% \iffalse
+%</cvthemebidiclassic.sty>
+%<*draftwatermark-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{draftwatermark-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{draftwatermark-xetex-bidi.def}[2010/07/25 v0.2 bidi adaptations for draftwatermark package for XeTeX engine]
+\renewcommand\SetWatermarkText[1]{%
+ \def\sc@wm@text{\if@RTLmain\beginR\fi#1\if@RTLmain\endR\fi}}
+% \end{macrocode}
+% \iffalse
+%</draftwatermark-xetex-bidi.def>
+%<*extarticle-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{extarticle-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{extarticle-xetex-bidi.def}[2010/07/25 v0.2 bidi adaptations for extarticle class for XeTeX engine]
+\renewcommand*\l@section[2]{%
+ \ifnum \c@tocdepth >\z@
+ \addpenalty\@secpenalty
+ \addvspace{1.0em \@plus\p@}%
+ \setlength\@tempdima{1.5em}%
+ \begingroup
+ \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
+ \parfillskip -\@pnumwidth
+ \leavevmode \bfseries
+ \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
+ \hskip -\if@RTL\rightskip\else\leftskip\fi
+ #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
+ \endgroup
+ \fi}
+ \renewcommand*\l@part[2]{%
+ \ifnum \c@tocdepth >-2\relax
+ \addpenalty\@secpenalty
+ \addvspace{2.25em \@plus\p@}%
+ \begingroup
+ \setlength\@tempdima{3em}%
+ \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
+ \parfillskip -\@pnumwidth
+ {\leavevmode
+ \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
+ \nobreak
+ \endgroup
+ \fi}
+ \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@ \if@RTL\raggedleft\else\raggedright\fi
+ \interlinepenalty \@M
+ \normalfont
+ \ifnum \c@secnumdepth >\m@ne
+ \Large\bfseries \partname~\thepart
+ \par\nobreak
+ \fi
+ \huge \bfseries #2%
+ \markboth{}{}\par}%
+ \nobreak
+ \vskip 3ex
+ \@afterheading}
+ \def\@spart#1{%
+ {\parindent \z@ \if@RTL\raggedleft\else\raggedright\fi
+ \interlinepenalty \@M
+ \normalfont
+ \huge \bfseries #1\par}%
+ \nobreak
+ \vskip 3ex
+ \@afterheading}
+\renewenvironment{thebibliography}[1]
+ {\section*{\refname
+ \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}}%
+ \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
+ \list{\@biblabel{\@arabic\c@enumiv}}%
+ {\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \usecounter{enumiv}%
+ \let\p@enumiv\@empty
+ \renewcommand\theenumiv{\@arabic\c@enumiv}}%
+ \sloppy\clubpenalty4000\widowpenalty4000%
+ \sfcode`\.\@m}
+ {\def\@noitemerr
+ {\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist}
+\renewcommand\left@footnote{%
+ \kern-3\p@
+ \hrule\@width.4\columnwidth
+ \kern2.6\p@}
+\renewcommand\right@footnote{%
+ \hbox to \columnwidth
+ {\beginR \vbox{%
+ \kern-3\p@
+ \hrule\@width.4\columnwidth
+ \kern2.6\p@}\hfil\endR}}
+ \if@titlepage
+ \renewcommand\maketitle{\begin{titlepage}%
+ \let\footnotesize\small
+ \let\right@footnote\relax
+ \let\left@footnote\relax
+ \let\textwidth@footnote\relax
+ \let \footnote \thanks
+ \null\vfil
+ \vskip 60\p@
+ \begin{center}%
+ {\LARGE \@title \par}%
+ \vskip 3em%
+ {\large
+ \lineskip .75em%
+ \begin{tabular}[t]{c}%
+ \@author
+ \end{tabular}\par}%
+ \vskip 1.5em%
+ {\large \@date \par}% % Set date in \large size.
+ \end{center}\par
+ \@thanks
+ \vfil\null
+ \end{titlepage}%
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@date\@empty
+ \global\let\@title\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}
+\else
+\renewcommand\maketitle{\par
+ \begingroup
+ \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
+ \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
+ \long\def\@makefntext##1{\parindent 1em\noindent
+ \hb@xt@1.8em{%
+ \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
+ \if@twocolumn
+ \ifnum \col@number=\@ne
+ \@maketitle
+ \else
+ \twocolumn[\@maketitle]%
+ \fi
+ \else
+ \newpage
+ \global\@topnum\z@ % Prevents figures from going at top of page.
+ \@maketitle
+ \fi
+ \thispagestyle{plain}\@thanks
+ \endgroup
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\maketitle\relax
+ \global\let\@maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@date\@empty
+ \global\let\@title\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}
+\def\@maketitle{%
+ \newpage
+ \null
+ \vskip 2em%
+ \begin{center}%
+ \let \footnote \thanks
+ {\LARGE \@title \par}%
+ \vskip 1.5em%
+ {\large
+ \lineskip .5em%
+ \begin{tabular}[t]{c}%
+ \@author
+ \end{tabular}\par}%
+ \vskip 1em%
+ {\large \@date}%
+ \end{center}%
+ \par
+ \vskip 1.5em}
+\fi
+\renewcommand\thesubsection {\thesection\@SepMark\@arabic\c@subsection}
+\renewcommand\thesubsubsection{\thesubsection \@SepMark\@arabic\c@subsubsection}
+\renewcommand\theparagraph {\thesubsubsection\@SepMark\@arabic\c@paragraph}
+\renewcommand\thesubparagraph {\theparagraph\@SepMark\@arabic\c@subparagraph}%%
+% \end{macrocode}
+% \iffalse
+%</extarticle-xetex-bidi.def>
+%<*extbook-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{extbook-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{extbook-xetex-bidi.def}[2010/07/25 v0.3 bidi adaptations for extbook class for XeTeX engine]
+ \if@titlepage
+ \renewcommand\maketitle{\begin{titlepage}%
+ \let\footnotesize\small
+ \let\right@footnote\relax
+ \let\left@footnote\relax
+ \let\textwidth@footnote\relax
+ \let \footnote \thanks
+ \let \LTRfootnote \LTRthanks
+ \let \RTLfootnote \RTLthanks
+ \null\vfil
+ \vskip 60\p@
+ \begin{center}%
+ {\LARGE \@title \par}%
+ \vskip 3em%
+ {\large
+ \lineskip .75em%
+ \begin{tabular}[t]{c}%
+ \@author
+ \end{tabular}\par}%
+ \vskip 1.5em%
+ {\large \@date \par}% % Set date in \large size.
+ \end{center}\par
+ \@thanks
+ \vfil\null
+ \end{titlepage}%
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\LTRthanks\relax
+ \global\let\RTLthanks\relax
+ \global\let\maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@date\@empty
+ \global\let\@title\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}
+\else
+\renewcommand\maketitle{\par
+ \begingroup
+ \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
+ \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
+ \long\def\@makefntext##1{\parindent 1em\noindent
+ \hb@xt@1.8em{%
+ \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
+ \if@twocolumn
+ \ifnum \col@number=\@ne
+ \@maketitle
+ \else
+ \twocolumn[\@maketitle]%
+ \fi
+ \else
+ \newpage
+ \global\@topnum\z@ % Prevents figures from going at top of page.
+ \@maketitle
+ \fi
+ \thispagestyle{plain}\@thanks
+ \endgroup
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\LTRthanks\relax
+ \global\let\RTLthanks\relax
+ \global\let\maketitle\relax
+ \global\let\@maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@date\@empty
+ \global\let\@title\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}
+\def\@maketitle{%
+ \newpage
+ \null
+ \vskip 2em%
+ \begin{center}%
+ \let \footnote \thanks
+ \let \LTRfootnote \LTRthanks
+ \let \RTLfootnote \RTLthanks
+ {\LARGE \@title \par}%
+ \vskip 1.5em%
+ {\large
+ \lineskip .5em%
+ \begin{tabular}[t]{c}%
+ \@author
+ \end{tabular}\par}%
+ \vskip 1em%
+ {\large \@date}%
+ \end{center}%
+ \par
+ \vskip 1.5em}
+\fi
+\renewcommand*\l@part[2]{%
+ \ifnum \c@tocdepth >-2\relax
+ \addpenalty{-\@highpenalty}%
+ \addvspace{2.25em \@plus\p@}%
+ \begingroup
+ \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
+ \parfillskip -\@pnumwidth
+ {\leavevmode
+ \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
+ \nobreak
+ \global\@nobreaktrue
+ \everypar{\global\@nobreakfalse\everypar{}}%
+ \endgroup
+ \fi}
+\renewcommand\theequation
+ {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@equation}
+\renewcommand \thefigure
+ {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@figure}
+\renewcommand \thetable
+ {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@table}
+\renewcommand \thechapter {\@arabic\c@chapter}
+\renewcommand \thesection {\thechapter\@SepMark\@arabic\c@section}
+\renewcommand\thesubsection {\thesection\@SepMark\@arabic\c@subsection}
+\renewcommand\thesubsubsection{\thesubsection \@SepMark\@arabic\c@subsubsection}
+\renewcommand\theparagraph {\thesubsubsection\@SepMark\@arabic\c@paragraph}
+\renewcommand\thesubparagraph {\theparagraph\@SepMark\@arabic\c@subparagraph}
+\def\@makechapterhead#1{%
+ \vspace*{50\p@}%
+ {\parindent \z@ \if@RTL\raggedleft\else\raggedright\fi \normalfont
+ \ifnum \c@secnumdepth >\m@ne
+ \if@mainmatter
+ \huge\bfseries \@chapapp\space \thechapter
+ \par\nobreak
+ \vskip 20\p@
+ \fi
+ \fi
+ \interlinepenalty\@M
+ \Huge \bfseries #1\par\nobreak
+ \vskip 40\p@
+ }}
+
+\def\@makeschapterhead#1{%
+ \vspace*{50\p@}%
+ {\parindent \z@ \if@RTL\raggedleft\else\raggedright\fi
+ \normalfont
+ \interlinepenalty\@M
+ \Huge \bfseries #1\par\nobreak
+ \vskip 40\p@
+ }}
+\renewcommand\backmatter{%
+ \if@openright
+ \cleardoublepage
+ \else
+ \clearpage
+ \fi
+ \@mainmatterfalse}
+\renewenvironment{thebibliography}[1]
+ {\chapter*{\bibname
+ \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}}%
+ \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
+ \list{\@biblabel{\@arabic\c@enumiv}}%
+ {\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \usecounter{enumiv}%
+ \let\p@enumiv\@empty
+ \renewcommand\theenumiv{\@arabic\c@enumiv}}%
+ \sloppy
+ \clubpenalty4000
+ \@clubpenalty \clubpenalty
+ \widowpenalty4000%
+ \sfcode`\.\@m}
+ {\def\@noitemerr
+ {\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist}
+% \end{macrocode}
+% \iffalse
+%</extbook-xetex-bidi.def>
+%<*extletter-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{extletter-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{extletter-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for extletter class for XeTeX engine]
+\renewcommand*{\opening}[1]{\ifx\@empty\fromaddress
+ \thispagestyle{firstpage}%
+ {\if@RTL\raggedright\else\raggedleft\fi\@date\par}%
+ \else % home address
+ \thispagestyle{empty}%
+ {\if@RTL\raggedright\begin{tabular}{r@{}}\else\raggedleft\begin{tabular}{l@{}}\fi\ignorespaces
+ \fromaddress \\*[2\parskip]%
+ \@date \end{tabular}\par}%
+ \fi
+ \vspace{2\parskip}%
+ {\if@RTL\raggedleft\else\raggedright\fi \toname \\ \toaddress \par}%
+ \vspace{2\parskip}%
+ #1\par\nobreak}
+\renewcommand{\closing}[1]{\par\nobreak\vspace{\parskip}%
+ \stopbreaks
+ \noindent
+ \ifx\@empty\fromaddress\else
+ \hspace*{\longindentation}\fi
+ \parbox{\indentedwidth}{\if@RTL\raggedleft\else\raggedright\fi
+ \ignorespaces #1\\[6\medskipamount]%
+ \ifx\@empty\fromsig
+ \fromname
+ \else \fromsig \fi\strut}%
+ \par}
+\renewcommand\left@footnote{%
+ \kern-\p@
+ \hrule \@width .4\columnwidth
+ \kern .6\p@}
+\renewcommand\right@footnote{%
+ \hbox to \columnwidth
+ {\beginR \vbox{%
+ \kern-\p@
+ \hrule \@width .4\columnwidth
+ \kern .6\p@}\hfil\endR}}
+% \end{macrocode}
+% \iffalse
+%</extletter-xetex-bidi.def>
+%<*extreport-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{extreport-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{extreport-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for extreport class for XeTeX engine]
+\renewcommand*\l@part[2]{%
+ \ifnum \c@tocdepth >-2\relax
+ \addpenalty{-\@highpenalty}%
+ \addvspace{2.25em \@plus\p@}%
+ \begingroup
+ \setlength\@tempdima{3em}%
+ \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
+ \parfillskip -\@pnumwidth
+ {\leavevmode
+ \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
+ \nobreak
+ \global\@nobreaktrue
+ \everypar{\global\@nobreakfalse\everypar{}}%
+ \endgroup
+ \fi}
+\renewcommand*\l@chapter[2]{%
+ \ifnum \c@tocdepth >\m@ne
+ \addpenalty{-\@highpenalty}%
+ \vskip 1.0em \@plus\p@
+ \setlength\@tempdima{1.5em}%
+ \begingroup
+ \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
+ \parfillskip -\@pnumwidth
+ \leavevmode \bfseries
+ \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
+ \hskip -\if@RTL\rightskip\else\leftskip\fi
+ #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
+ \penalty\@highpenalty
+ \endgroup
+ \fi}
+\def\@makechapterhead#1{%
+ \vspace*{50\p@}%
+ {\parindent \z@ \if@RTL\raggedleft\else\raggedright\fi \normalfont
+ \ifnum \c@secnumdepth >\m@ne
+ \huge\bfseries \@chapapp\space \thechapter
+ \par\nobreak
+ \vskip 20\p@
+ \fi
+ \interlinepenalty\@M
+ \Huge \bfseries #1\par\nobreak
+ \vskip 40\p@
+ }}
+\def\@makeschapterhead#1{%
+ \vspace*{50\p@}%
+ {\parindent \z@ \if@RTL\raggedleft\else\raggedright\fi
+ \normalfont
+ \interlinepenalty\@M
+ \Huge \bfseries #1\par\nobreak
+ \vskip 40\p@
+ }}
+\renewcommand\left@footnote{%
+ \kern-3\p@
+ \hrule\@width.4\columnwidth
+ \kern2.6\p@}
+\renewcommand\right@footnote{%
+ \hbox to \columnwidth
+ {\beginR \vbox{%
+ \kern-3\p@
+ \hrule\@width.4\columnwidth
+ \kern2.6\p@}\hfil\endR}}
+\renewenvironment{thebibliography}[1]
+ {\chapter*{\bibname
+ \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}}%
+ \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
+ \list{\@biblabel{\@arabic\c@enumiv}}%
+ {\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \usecounter{enumiv}%
+ \let\p@enumiv\@empty
+ \renewcommand\theenumiv{\@arabic\c@enumiv}}%
+ \sloppy\clubpenalty4000\widowpenalty4000%
+ \sfcode`\.\@m}
+ {\def\@noitemerr
+ {\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist}
+ \if@titlepage
+ \renewcommand\maketitle{\begin{titlepage}%
+ \let\footnotesize\small
+ \let\right@footnote\relax
+ \let\left@footnote\relax
+ \let\textwidth@footnote\relax
+ \let \footnote \thanks
+ \null\vfil
+ \vskip 60\p@
+ \begin{center}%
+ {\LARGE \@title \par}%
+ \vskip 3em%
+ {\large
+ \lineskip .75em%
+ \begin{tabular}[t]{c}%
+ \@author
+ \end{tabular}\par}%
+ \vskip 1.5em%
+ {\large \@date \par}% % Set date in \large size.
+ \end{center}\par
+ \@thanks
+ \vfil\null
+ \end{titlepage}%
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@date\@empty
+ \global\let\@title\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}
+\else
+\renewcommand\maketitle{\par
+ \begingroup
+ \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
+ \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
+ \long\def\@makefntext##1{\parindent 1em\noindent
+ \hb@xt@1.8em{%
+ \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
+ \if@twocolumn
+ \ifnum \col@number=\@ne
+ \@maketitle
+ \else
+ \twocolumn[\@maketitle]%
+ \fi
+ \else
+ \newpage
+ \global\@topnum\z@ % Prevents figures from going at top of page.
+ \@maketitle
+ \fi
+ \thispagestyle{plain}\@thanks
+ \endgroup
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\maketitle\relax
+ \global\let\@maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@date\@empty
+ \global\let\@title\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}
+\def\@maketitle{%
+ \newpage
+ \null
+ \vskip 2em%
+ \begin{center}%
+ \let \footnote \thanks
+ {\LARGE \@title \par}%
+ \vskip 1.5em%
+ {\large
+ \lineskip .5em%
+ \begin{tabular}[t]{c}%
+ \@author
+ \end{tabular}\par}%
+ \vskip 1em%
+ {\large \@date}%
+ \end{center}%
+ \par
+ \vskip 1.5em}
+\fi
+\renewcommand\thesection {\thechapter\@SepMark\@arabic\c@section}
+\renewcommand\thesubsection {\thesection\@SepMark\@arabic\c@subsection}
+\renewcommand\thesubsubsection{\thesubsection \@SepMark\@arabic\c@subsubsection}
+\renewcommand\theparagraph {\thesubsubsection\@SepMark\@arabic\c@paragraph}
+\renewcommand\thesubparagraph {\theparagraph\@SepMark\@arabic\c@subparagraph}
+\renewcommand\theequation{%
+ \ifnum \c@chapter>\z@ \thechapter\@SepMark\fi\@arabic\c@equation}
+\renewcommand\thefigure{%
+ \ifnum \c@chapter>\z@\thechapter\@SepMark\fi \@arabic\c@figure}
+\renewcommand\thetable{%
+ \ifnum \c@chapter>\z@\thechapter\@SepMark\fi\@arabic\c@table}
+% \end{macrocode}
+% \iffalse
+%</extreport-xetex-bidi.def>
+%<*fancyhdr-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{fancyhdr-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{fancyhdr-xetex-bidi.def}[2010/07/25 v0.3 bidi adaptations for fancyhdr package for XeTeX engine]
+\let\fnch@everypar\everypar%
+\def\@fancyhead#1#2#3#4#5{\if@RTLmain\beginR\else\beginL\fi#1\if@RTLmain\endR\else\endL\fi\hbox to\headwidth{\beginL\fancy@reset
+ \@fancyvbox\headheight{\hbox
+ {\rlap{\parbox[b]{\headwidth}{\raggedright\if@RTLmain\beginR\else\beginL\fi#2\if@RTLmain\endR\else\endL\fi}}\hfill
+ \parbox[b]{\headwidth}{\centering\if@RTLmain\beginR\else\beginL\fi#3\if@RTLmain\endR\else\endL\fi}\hfill
+ \llap{\parbox[b]{\headwidth}{\raggedleft\if@RTLmain\beginR\else\beginL\fi#4\if@RTLmain\endR\else\endL\fi}}}\headrule}\endL}\if@RTLmain\beginR\else\beginL\fi#5\if@RTLmain\endR\else\endL\fi}
+\def\@fancyfoot#1#2#3#4#5{\if@RTLmain\beginR\else\beginL\fi#1\if@RTLmain\endR\else\endL\fi\hbox to\headwidth{\beginL\fancy@reset
+ \@fancyvbox\footskip{\footrule
+ \hbox{\rlap{\parbox[t]{\headwidth}{\raggedright\if@RTLmain\beginR\else\beginL\fi#2\if@RTLmain\endR\else\endL\fi}}\hfill
+ \parbox[t]{\headwidth}{\centering\if@RTLmain\beginR\else\beginL\fi#3\if@RTLmain\endR\else\endL\fi}\hfill
+ \llap{\parbox[t]{\headwidth}{\raggedleft\if@RTLmain\beginR\else\beginL\fi#4\if@RTLmain\endR\else\endL\fi}}}}\endL}\if@RTLmain\beginR\else\beginL\fi#5\if@RTLmain\endR\else\endL\fi}
+% \end{macrocode}
+% \iffalse
+%</fancyhdr-xetex-bidi.def>
+%<*fleqn-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{fleqn-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{fleqn-xetex-bidi.def}[2010/03/01 v0.1 bidi adaptations for fleqn tag for XeTeX engine]
+\renewcommand\[{\relax
+ \ifmmode\@badmath
+ \else
+ \begin{trivlist}%
+ \@beginparpenalty\predisplaypenalty
+ \@endparpenalty\postdisplaypenalty
+ \item[]\leavevmode
+ \hb@xt@\linewidth\bgroup \beginL$\m@th\displaystyle %$
+ \hskip\mathindent\bgroup
+ \fi}
+\renewcommand\]{\relax
+ \ifmmode
+ \egroup $\hfil% $
+ \endL\egroup
+ \end{trivlist}%
+ \else \@badmath
+ \fi}
+\renewenvironment{equation}%
+ {\@beginparpenalty\predisplaypenalty
+ \@endparpenalty\postdisplaypenalty
+ \refstepcounter{equation}%
+ \trivlist \item[]\leavevmode
+ \hb@xt@\linewidth\bgroup\beginL $\m@th% $
+ \displaystyle
+ \hskip\mathindent}%
+ {$\hfil % $
+ \displaywidth\linewidth\hbox{\@eqnnum}%
+ \endL\egroup
+ \endtrivlist}
+% \end{macrocode}
+% \iffalse
+%</fleqn-xetex-bidi.def>
+%<*flowfram-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{flowfram-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{flowfram-xetex-bidi.def}[2010/07/25 v0.2 bidi adaptations for flowfram package for XeTeX engine]
+\def\@outputdblcol{%
+\@nxtcol=\c@thisframe
+\c@curpg=\c@page
+\@g@tnextcol{\@nxtcol}%
+\if@ff@nwpg % next flow frame starts on new page
+ \global\@firstcolumntrue
+ \@setcolbox\c@thisframe
+ \if@specialpage
+ \global\@specialpagefalse
+ \@nameuse{ps@\@specialstyle}\relax
+ \fi
+ \if@twoside
+ \ifodd\count\z@
+ \let\@thehead\@oddhead
+ \let\@thefoot\@oddfoot
+ \else
+ \let\@thehead\@evenhead
+ \let\@thefoot\@evenfoot
+ \fi
+ \else
+ \let\@thehead\@oddhead
+ \let\@thefoot\@oddfoot
+ \fi
+ \@begindvi
+ \@dodynamicthehead\@dodynamicthefoot
+ \vbadness=\@M
+ \setbox\@outputbox\vbox{\hbox to \textwidth{\@ff@do@allframes}}%
+ \@combinedblfloats
+ \@outputpage
+\advance\c@curpg by -\c@page\relax
+ \whiledo{\c@curpg>0}{\advance\c@curpg by -1\relax
+ \setbox\@outputbox\vbox{\hbox to \textwidth{\@ff@do@allframes}}%
+\@outputpage}
+ \begingroup
+ \@dblfloatplacement
+ \@startdblcolumn
+ \@whilesw \if@fcolmade \fi
+ {\@outputpage \@startdblcolumn }\endgroup
+ \@resetst@tics
+ \@resetdyn@mics
+\else % still on same page, save contents of box255
+ \global\@firstcolumnfalse
+ \@setcolbox\c@thisframe
+\fi
+\global\c@thisframe=\@nxtcol
+\@setcol{\c@thisframe}\relax
+\global\@colht\vsize
+}
+\def\@outputpage{%
+\begingroup
+ \let\protect\noexpand
+ \@resetactivechars
+ \global\let\@@if@newlist\if@newlist
+ \global\@newlistfalse\@parboxrestore
+ \shipout\vbox{\set@typeset@protect
+ \aftergroup
+ \endgroup
+ \aftergroup
+ \set@typeset@protect
+ \reset@font\normalsize\normalsfcodes
+ \let\label\@gobble
+ \let\index\@gobble
+ \let\glossary\@gobble
+ \baselineskip\z@skip
+ \lineskip\z@skip
+ \lineskiplimit\z@
+ \vskip\topmargin\moveright\@themargin
+ \vbox{%
+ \vskip\headheight
+ \vskip\headsep
+ \box\@outputbox
+ }}%
+ \global\let\if@newlist\@@if@newlist
+ \stepcounter{page}%
+ \setcounter{displayedframe}{0}%
+ \let\firstmark\botmark}
+
+
+\newcommand*\bidi@s@tfftextcol{\ifthenelse{\equal{\ff@txtcol}{}}{}{%
+\expandafter\bidicolor\ff@txtcol}}
+
+\newcommand{\bidi@ff@box}[3]{{\@ffbackground{\vbox to#2
+{\hb@xt@ #1{\hss{\bidi@s@tfftextcol #3}\hss}\vss\kern\z@}}}}
+
+
+\renewcommand*{\@docolbox}[1]{%
+\edef\ff@frametype{%
+\csname @ff@frametype@\romannumeral#1\endcsname}%
+\edef\ff@col{\csname @ff@col@\romannumeral#1\endcsname}%
+\edef\ff@txtcol{\csname @ff@txtcol@\romannumeral#1\endcsname}%
+\edef\ff@backcol{\csname @ff@backcol@\romannumeral#1\endcsname}%
+\@ff@setoffset{#1}%
+\rotateframe{\csname @ff@angle@\romannumeral#1\endcsname}{%
+\ifthenelse{\boolean{columnframe\romannumeral#1}}{%
+\@ff@fbox{\csname colwidth\romannumeral#1\endcsname}%
+{\csname colheight\romannumeral#1\endcsname}{%
+\expandafter\box\csname column\romannumeral#1\endcsname}{%
+\csname\ff@frametype\endcsname}%
+}{%
+\bidi@ff@box{\csname colwidth\romannumeral#1\endcsname}%
+{\csname colheight\romannumeral#1\endcsname}{%
+\expandafter\box\csname column\romannumeral#1\endcsname}%
+}}}
+\@ifclassloaded{book}{%
+\renewcommand\theequation
+ {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@equation}
+\renewcommand \thefigure
+ {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@figure}
+\renewcommand \thetable
+ {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@table}
+\renewcommand \thechapter {\@arabic\c@chapter}
+\renewcommand \thesection {\thechapter\@SepMark\@arabic\c@section}
+\renewcommand\thesubsection {\thesection\@SepMark\@arabic\c@subsection}
+\renewcommand\thesubsubsection{\thesubsection \@SepMark\@arabic\c@subsubsection}
+\renewcommand\theparagraph {\thesubsubsection\@SepMark\@arabic\c@paragraph}
+\renewcommand\thesubparagraph {\theparagraph\@SepMark\@arabic\c@subparagraph}}{}
+\@ifclassloaded{report}{%
+\renewcommand\theequation
+ {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@equation}
+\renewcommand \thefigure
+ {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@figure}
+\renewcommand \thetable
+ {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@table}
+\renewcommand \thechapter {\@arabic\c@chapter}
+\renewcommand \thesection {\thechapter\@SepMark\@arabic\c@section}
+\renewcommand\thesubsection {\thesection\@SepMark\@arabic\c@subsection}
+\renewcommand\thesubsubsection{\thesubsection \@SepMark\@arabic\c@subsubsection}
+\renewcommand\theparagraph {\thesubsubsection\@SepMark\@arabic\c@paragraph}
+\renewcommand\thesubparagraph {\theparagraph\@SepMark\@arabic\c@subparagraph}}{}
+\renewcommand{\rotateframe}[2]{\if@ttb@rotate
+\rotatebox{#1}{\if@RTL\beginL\fi#2\if@RTL\endL\fi}%
+\else
+#2\relax
+\fi}
+% \end{macrocode}
+% \iffalse
+%</flowfram-xetex-bidi.def>
+%<*footnote-luatex-bidi.def>
+%\fi
+% \subsection{\textsf{footnote-luatex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{footnote-luatex-bidi.def}[2010/07/25 v0.1 bidi footnote macros for LuaTeX engine]
+% \end{macrocode}
+% \iffalse
+%</footnote-luatex-bidi.def>
+%<*footnote-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{footnote-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{footnote-xetex-bidi.def}[2010/07/25 v0.5 bidi footnote macros for XeTeX engine]
+\if@RTLmain\@RTL@footnotetrue\else\@RTL@footnotefalse\fi
+\def\bidi@footnote@output{{%
+ \dimen0=\ht\footins
+ \advance\dimen0 by\dp\footins
+ \def\@elt##1##2{%
+ \ifx\bidi@footnoterule\relax\global\let\bidi@footnoterule##2\fi
+ \advance\dimen0 by -##1\relax
+ \ifdim\dimen0<\z@
+ {%
+ \let\@elt\relax\let\right@footnote\relax\let\left@footnote\relax
+ \dimen0=-\dimen0%
+ \xdef\new@bidi@footnote@list{\new@bidi@footnote@list\noexpand\@elt{\the\dimen0}{##2}}%
+}%
+ \fi
+ \ifdim\dimen0>\z@\else
+\let\right@footnote\relax\let\left@footnote\relax
+\def\@elt####1####2{%
+ {\let\@elt\relax
+ \xdef\new@bidi@footnote@list{\new@bidi@footnote@list\noexpand\@elt{####1}{####2}}}%
+}%
+ \fi
+ }%
+ \def\new@bidi@footnote@list{}%
+ \bidi@footnote@list
+ \global\let\bidi@footnote@list\new@bidi@footnote@list
+ }}
+\def\right@footnote{%
+ \hbox to \columnwidth
+ {\beginR \vbox{\kern -3\p@
+ \hrule width .4\columnwidth \kern2.6\p@}\hfil\endR}}
+\def\left@footnote{%
+ \hrule width .4\columnwidth\kern 2.6\p@}
+\def\textwidth@footnote{\kern-3\p@
+ \hrule \@width \textwidth \kern 2.6\p@}
+\def\right@footnoterule{\bidi@footnote@output\right@footnote\global\let\bidi@footnoterule\relax}
+\def\left@footnoterule{\bidi@footnote@output\left@footnote\global\let\bidi@footnoterule\relax}
+\def\textwidth@footnoterule{\bidi@footnote@output\textwidth@footnote\global\let\bidi@footnoterule\relax}
+\def\auto@footnoterule{\bidi@footnote@output
+ \ifx\bidi@footnoterule\relax\if@RTL\right@footnote\else\left@footnote\fi\else\bidi@footnoterule\fi
+ \global\let\bidi@footnoterule\relax}
+\def\leftfootnoterule{\def\footnoterule{\left@footnoterule}}
+\let\LRfootnoterule=\leftfootnoterule
+\def\rightfootnoterule{\def\footnoterule{\right@footnoterule}}
+\def\textwidthfootnoterule{\def\footnoterule{\textwidth@footnoterule}}
+\def\autofootnoterule{\def\footnoterule{\auto@footnoterule}}
+\def\@makefnmark{\hbox{\@textsuperscript{\normalfont\@thefnmark}}}
+\def\bidi@footnote@list{}
+\let\bidi@footnoterule\relax
+\def\RTLfootnote{\@ifnextchar[\@xRTLfootnote{\stepcounter\@mpfn
+ \protected@xdef\@thefnmark{\thempfn}%
+ \@footnotemark\@RTLfootnotetext}}
+\def\@xRTLfootnote[#1]{%
+ \begingroup
+ \csname c@\@mpfn\endcsname #1\relax
+ \unrestored@protected@xdef\@thefnmark{\thempfn}%
+ \endgroup
+ \@footnotemark\@RTLfootnotetext}
+\def\LTRfootnote{\@ifnextchar[\@xLTRfootnote{\stepcounter\@mpfn
+ \protected@xdef\@thefnmark{\thempfn}%
+ \@footnotemark\@LTRfootnotetext}}
+\def\@xLTRfootnote[#1]{%
+ \begingroup
+ \csname c@\@mpfn\endcsname #1\relax
+ \unrestored@protected@xdef\@thefnmark{\thempfn}%
+ \endgroup
+ \@footnotemark\@LTRfootnotetext}
+\def\insertRTL{\bgroup\beginR\@RTLtrue}
+\def\endinsertRTL{\endR\egroup}
+\def\insertLTR{\bgroup\beginL\@RTLfalse}
+\def\endinsertLTR{\endL\egroup}
+\DeclareRobustCommand\InLTR{\insertLTR}
+\DeclareRobustCommand\EInLTR{\endinsertLTR}
+\DeclareRobustCommand\InRTL{\insertRTL}
+\DeclareRobustCommand\EInRTL{\endinsertRTL}
+\long\def\parse@lsent#1#2\EInLTR#3#4#5\parse@end{\@sentdirfalse
+\def\@tempa{\InLTR}\def\@tempb{\EInLTR}\def\@tempc{#1}\def\@tempd{#4}%
+\ifx\@tempa\@tempc\ifx\@tempb\@tempd\@sentdirtrue\fi\fi}
+\long\def\parse@rsent#1#2\EInRTL#3#4#5\parse@end{\@sentdirfalse
+\def\@tempa{\InRTL}\def\@tempb{\EInRTL}\def\@tempc{#1}\def\@tempd{#4}%
+\ifx\@tempa\@tempc\ifx\@tempb\@tempd\@sentdirtrue\fi\fi}
+\long\def\iflsentence#1{\parse@lsent#1\EInLTR123\parse@end\if@sentdir}
+\long\def\ifrsentence#1{\parse@rsent#1\EInRTL123\parse@end\if@sentdir}
+\long\def\bidi@footnotetext@dir#1{%
+ \@tempswatrue
+ \ifrsentence{#1}\rtl\@tempswafalse\fi
+ \iflsentence{#1}\ltr\@tempswafalse\fi
+ \if@tempswa\if@RTL\rtl\else\ltr\fi\fi
+ \xdef\bidi@this@footnote{\if@RTL\noexpand\right@footnote\else\noexpand\left@footnote\fi}%
+}
+\def\bidi@footnotetext@after{%
+ {%
+ \let\@elt\relax\let\right@footnote\relax\let\left@footnote\relax
+ \dimen0=\ht\footins
+ \advance\dimen0 by\dp\footins
+ \xdef\bidi@footnote@list{\bidi@footnote@list\@elt{\the\dimen0}{\bidi@this@footnote}}%
+ }%
+}
+\def\setfootnoteRL{\@RTL@footnotetrue}
+\def\unsetfootnoteRL{\@RTL@footnotefalse}
+\def\setfootnoteLR{\unsetfootnoteRL}
+\long\def\@footnotetext#1{%
+ \begingroup
+ \setbox\footins
+ \vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi\reset@font\footnotesize
+ \interlinepenalty\interfootnotelinepenalty
+ \splittopskip\footnotesep
+ \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
+ \hsize\columnwidth \@parboxrestore
+ \bidi@footnotetext@dir{#1}%
+ \protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext
+ {\rule{\z@}{\footnotesep}\ignorespaces#1\strut}}%
+ \bidi@footnotetext@after
+ \insert\footins{\unvbox\footins}%
+ \endgroup}
+\long\def\@RTLfootnotetext#1{%
+ \begingroup
+ \setbox\footins
+ \vbox{\@RTLtrue\reset@font\footnotesize
+ \interlinepenalty\interfootnotelinepenalty
+ \splittopskip\footnotesep
+ \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
+ \hsize\columnwidth \@parboxrestore
+ \bidi@footnotetext@dir{#1}%
+ \protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext
+ {\rule{\z@}{\footnotesep}\ignorespaces #1\strut}}%
+ \bidi@footnotetext@after
+ \insert\footins{\unvbox\footins}%
+ \endgroup}
+\long\def\@LTRfootnotetext#1{%
+ \begingroup
+ \setbox\footins
+ \vbox{\@RTLfalse\reset@font\footnotesize
+ \interlinepenalty\interfootnotelinepenalty
+ \splittopskip\footnotesep
+ \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
+ \hsize\columnwidth \@parboxrestore
+ \bidi@footnotetext@dir{#1}%
+ \protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext
+ {\rule{\z@}{\footnotesep}\ignorespaces#1\strut}}%
+ \bidi@footnotetext@after
+ \insert\footins{\unvbox\footins}%
+ \endgroup}
+\long\def\@mpRTLfootnotetext#1{%
+ \global\setbox\@mpfootins\vbox{\@RTLtrue%
+ \unvbox\@mpfootins
+ \reset@font\footnotesize
+ \hsize\columnwidth
+ \@parboxrestore
+ \protected@edef\@currentlabel
+ {\csname p@mpfootnote\endcsname\@thefnmark}%
+ \color@begingroup
+ \bidi@footnotetext@dir{#1}
+ \ifnum\c@mpfootnote=1\if@RTL\global\let\bidi@footnoterule\right@footnote\else\global\let\bidi@footnoterule\left@footnote\fi\fi
+ \@makefntext{%
+ \rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}%
+ \color@endgroup}}
+\long\def\@mpLTRfootnotetext#1{%
+ \global\setbox\@mpfootins\vbox{\@RTLfalse%
+ \unvbox\@mpfootins
+ \reset@font\footnotesize
+ \hsize\columnwidth
+ \@parboxrestore
+ \protected@edef\@currentlabel
+ {\csname p@mpfootnote\endcsname\@thefnmark}%
+ \color@begingroup
+ \bidi@footnotetext@dir{#1}
+ \ifnum\c@mpfootnote=1\if@RTL\global\let\bidi@footnoterule\right@footnote\else\global\let\bidi@footnoterule\left@footnote\fi\fi
+ \@makefntext{%
+ \rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}%
+ \color@endgroup}}
+\long\def\@mpfootnotetext#1{%
+ \global\setbox\@mpfootins\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
+ \unvbox\@mpfootins
+ \reset@font\footnotesize
+ \hsize\columnwidth
+ \@parboxrestore
+ \protected@edef\@currentlabel
+ {\csname p@mpfootnote\endcsname\@thefnmark}%
+ \color@begingroup
+ \bidi@footnotetext@dir{#1}
+ \ifnum\c@mpfootnote=1\if@RTL\global\let\bidi@footnoterule\right@footnote\else\global\let\bidi@footnoterule\left@footnote\fi\fi
+ \@makefntext{%
+ \rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}%
+ \color@endgroup}}
+\def\@iiiminipage#1#2[#3]#4{%
+ \leavevmode
+ \@pboxswfalse
+ \setlength\@tempdima{#4}%
+ \def\@mpargs{{#1}{#2}[#3]{#4}}%
+ \setbox\@tempboxa\vbox\bgroup\hbox\bgroup\if@RTL\beginL\fi\vbox\bgroup
+ \color@begingroup
+ \hsize\@tempdima
+ \textwidth\hsize \columnwidth\hsize
+ \@parboxrestore
+ \def\@mpfn{mpfootnote}\def\thempfn{\thempfootnote}\c@mpfootnote\z@
+ \let\@footnotetext\@mpfootnotetext
+ \let\@LTRfootnotetext\@mpLTRfootnotetext
+ \let\@RTLfootnotetext\@mpRTLfootnotetext
+ \let\@listdepth\@mplistdepth \@mplistdepth\z@
+ \@minipagerestore
+ \@setminipage}
+\def\LTRthanks#1{\footnotemark
+ \protected@xdef\@thanks{\@thanks
+ \protect\LTRfootnotetext[\the\c@footnote]{#1}}%
+}
+\def\LTRfootnotetext{%
+ \@ifnextchar [\@xLTRfootnotenext
+ {\protected@xdef\@thefnmark{\thempfn}%
+ \@LTRfootnotetext}}
+\def\@xLTRfootnotenext[#1]{%
+ \begingroup
+ \csname c@\@mpfn\endcsname #1\relax
+ \unrestored@protected@xdef\@thefnmark{\thempfn}%
+ \endgroup
+ \@LTRfootnotetext}
+\def\RTLthanks#1{\footnotemark
+ \protected@xdef\@thanks{\@thanks
+ \protect\RTLfootnotetext[\the\c@footnote]{#1}}%
+}
+\let\@thanks\@empty
+\def\RTLfootnotetext{%
+ \@ifnextchar [\@xRTLfootnotenext
+ {\protected@xdef\@thefnmark{\thempfn}%
+ \@RTLfootnotetext}}
+\def\@xRTLfootnotenext[#1]{%
+ \begingroup
+ \csname c@\@mpfn\endcsname #1\relax
+ \unrestored@protected@xdef\@thefnmark{\thempfn}%
+ \endgroup
+ \@RTLfootnotetext}
+\leftfootnoterule
+% \end{macrocode}
+% \iffalse
+%</footnote-xetex-bidi.def>
+%<*graphicx-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{graphicx-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{graphicx-xetex-bidi.def}[2010/07/25 v0.3 bidi adaptations for graphicx package for XeTeX engine]
+\def\Grot@box@std#1#2{\ifmmode\else\if@RTL\beginL\fi\fi%
+ \Grot@setangle{#1}%
+ \setbox\z@\hbox{{\ifmmode\if@RTL\beginR\fi#2\if@RTL\endR\fi\else\if@RTL\beginR\fi#2\if@RTL\endR\fi\fi}}%
+ \Grot@x\z@
+ \Grot@y\z@
+ \Grot@box\ifmmode\else\if@RTL\endL\fi\fi}
+\long\def\Gscale@box#1[#2]#3{\ifmmode\else\if@RTL\beginL\fi\fi%
+ \leavevmode
+ \def\Gscale@x{#1}\def\Gscale@y{#2}%
+ \setbox\z@\hbox{{#3}}%
+ \setbox\tw@\hbox{\Gscale@start\rlap{\copy\z@}\Gscale@end}%
+ \ifdim#2\p@<\z@
+ \ht\tw@-#2\dp\z@
+ \dp\tw@-#2\ht\z@
+ \else
+ \ht\tw@#2\ht\z@
+ \dp\tw@#2\dp\z@
+ \fi
+ \ifdim#1\p@<\z@
+ \hb@xt@-#1\wd\z@{\kern-#1\wd\z@\box\tw@\hss}%
+ \else
+ \wd\tw@#1\wd\z@
+ \box\tw@
+ \fi\ifmmode\else\if@RTL\endL\fi\fi}
+\def\Gin@ii[#1]#2{\ifmmode\else\if@RTL\beginL\fi\fi%
+ \def\@tempa{[}\def\@tempb{#2}%
+ \ifx\@tempa\@tempb
+ \def\@tempa{\Gin@iii[#1][}%
+ \expandafter\@tempa
+ \else
+ \begingroup
+ \@tempswafalse
+ \toks@{\Ginclude@graphics{#2}}%
+ \setkeys{Gin}{#1}%
+ \Gin@esetsize
+ \the\toks@
+ \endgroup
+ \fi\ifmmode\else\if@RTL\endL\fi\fi}
+\def\reflectbox{\bidiGscale@box-1[1]}
+\long\def\bidiGscale@box#1[#2]#3{\ifmmode\else\if@RTL\beginL\fi\fi%
+ \leavevmode
+ \def\Gscale@x{#1}\def\Gscale@y{#2}%
+ \setbox\z@\hbox{{\ifmmode\if@RTL\beginR\fi#3\if@RTL\endR\fi\else\if@RTL\beginR\fi#3\if@RTL\endR\fi\fi}}%
+ \setbox\tw@\hbox{\Gscale@start\rlap{\copy\z@}\Gscale@end}%
+ \ifdim#2\p@<\z@
+ \ht\tw@-#2\dp\z@
+ \dp\tw@-#2\ht\z@
+ \else
+ \ht\tw@#2\ht\z@
+ \dp\tw@#2\dp\z@
+ \fi
+ \ifdim#1\p@<\z@
+ \hb@xt@-#1\wd\z@{\kern-#1\wd\z@\box\tw@\hss}%
+ \else
+ \wd\tw@#1\wd\z@
+ \box\tw@
+ \fi\ifmmode\else\if@RTL\endL\fi\fi}
+\def\scalebox#1{%
+ \@ifnextchar[{\bidiGscale@box{#1}}{\bidiGscale@box{#1}[#1]}}
+\def\resizebox{%
+ \leavevmode
+ \@ifstar{\bidiGscale@@box\totalheight}{\bidiGscale@@box\height}}
+\def\bidiGscale@@box#1#2#3{%
+ \let\@tempa\Gin@exclamation
+ \expandafter\def\expandafter\@tempb\expandafter{\string#2}%
+ \expandafter\def\expandafter\@tempc\expandafter{\string#3}%
+ \ifx\@tempb\@tempa
+ \ifx\@tempc\@tempa
+ \toks@{\mbox}%
+ \else
+ \toks@{\bidiGscale@box@dd{#3}#1}%
+ \fi
+ \else
+ \ifx\@tempc\@tempa
+ \toks@{\bidiGscale@box@dd{#2}\width}%
+ \else
+ \toks@{\bidiGscale@box@dddd{#2}\width{#3}#1}%
+ \fi
+ \fi
+ \the\toks@}
+\long\def\bidiGscale@box@dd#1#2#3{%
+ \@begin@tempboxa\hbox{\ifmmode\if@RTL\beginR\fi#3\if@RTL\endR\fi\else\if@RTL\beginR\fi#3\if@RTL\endR\fi\fi}%
+ \setlength\@tempdima{#1}%
+ \setlength\@tempdimb{#2}%
+ \Gscale@div\@tempa\@tempdima\@tempdimb
+ \Gscale@box\@tempa[\@tempa]{\box\@tempboxa}%
+ \@end@tempboxa}
+\long\def\bidiGscale@box@dddd#1#2#3#4#5{%
+ \@begin@tempboxa\hbox{\ifmmode\if@RTL\beginR\fi#5\if@RTL\endR\fi\else\if@RTL\beginR\fi#5\if@RTL\endR\fi\fi}%
+ \setlength\@tempdima{#1}%
+ \setlength\@tempdimb{#2}%
+ \Gscale@div\@tempa\@tempdima\@tempdimb
+ \setlength\@tempdima{#3}%
+ \setlength\@tempdimb{#4}%
+ \Gscale@div\@tempb\@tempdima\@tempdimb
+ \ifGin@iso
+ \ifdim\@tempa\p@>\@tempb\p@
+ \let\@tempa\@tempb
+ \else
+ \let\@tempb\@tempa
+ \fi
+ \fi
+ \Gscale@box\@tempa[\@tempb]{\box\@tempboxa}%
+ \@end@tempboxa}
+% \end{macrocode}
+% \iffalse
+%</graphicx-xetex-bidi.def>
+%<*hyperref-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{hyperref-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{hyperref-xetex-bidi.def}[2010/07/25 v0.4 bidi adaptations for hyperref package for XeTeX engine]
+\AtBeginDocument{%
+\def\contentsline#1#2#3#4{%
+ \ifx\\#4\\%
+ \csname l@#1\endcsname{#2}{#3}%
+ \else
+ \ifcase\Hy@linktoc % none
+ \csname l@#1\endcsname{#2}{#3}%
+ \or % section
+ \csname l@#1\endcsname{%
+ \beginL\hyper@linkstart{link}{#4}{\if@RTL\beginR\fi#2\if@RTL\endR\fi}\hyper@linkend\endL
+ }{#3}%
+ \or % page
+ \csname l@#1\endcsname{{#2}}{%
+ \beginL\hyper@linkstart{link}{#4}{#3}\hyper@linkend\endL
+ }%
+ \else % all
+ \csname l@#1\endcsname{%
+ \beginL\hyper@linkstart{link}{#4}{\if@RTL\beginR\fi#2\if@RTL\endR\fi}\hyper@linkend\endL
+ }{%
+ \beginL\hyper@linkstart{link}{#4}{#3}\hyper@linkend\endL
+ }%
+ \fi
+ \fi
+}
+\ifHy@hyperfootnotes
+ \let\H@@footnotetext\@footnotetext
+ \let\HRTL@@RTLfootnotetext\@RTLfootnotetext
+ \let\HLTR@@LTRfootnotetext\@LTRfootnotetext
+ \def\@xfootnotenext[#1]{%
+ \begingroup
+ \csname c@\@mpfn\endcsname #1\relax
+ \unrestored@protected@xdef\@thefnmark{\thempfn}%
+ \endgroup
+ \ifx\@footnotetext\@mpfootnotetext
+ \expandafter\H@@mpfootnotetext
+ \else
+ \expandafter\H@@footnotetext
+ \fi
+ }%
+ \def\@xRTLfootnotenext[#1]{%
+ \begingroup
+ \csname c@\@mpfn\endcsname #1\relax
+ \unrestored@protected@xdef\@thefnmark{\thempfn}%
+ \endgroup
+ \ifx\@RTLfootnotetext\@mpRTLfootnotetext
+ \expandafter\HRTL@@mpRTLfootnotetext
+ \else
+ \expandafter\HRTL@@RTLfootnotetext
+ \fi
+ }%
+ \def\@xLTRfootnotenext[#1]{%
+ \begingroup
+ \csname c@\@mpfn\endcsname #1\relax
+ \unrestored@protected@xdef\@thefnmark{\thempfn}%
+ \endgroup
+ \ifx\@LTRfootnotetext\@mpLTRfootnotetext
+ \expandafter\HLTR@@mpLTRfootnotetext
+ \else
+ \expandafter\HLTR@@LTRfootnotetext
+ \fi
+ }%
+ \def\@xfootnotemark[#1]{%
+ \begingroup
+ \c@footnote #1\relax
+ \unrestored@protected@xdef\@thefnmark{\thefootnote}%
+ \endgroup
+ \H@@footnotemark
+ }%
+ \let\H@@mpfootnotetext\@mpfootnotetext
+ \let\HRTL@@mpRTLfootnotetext\@mpRTLfootnotetext
+ \let\HLTR@@mpLTRfootnotetext\@mpLTRfootnotetext
+ \long\def\@mpfootnotetext#1{%
+ \H@@mpfootnotetext{%
+ \ifHy@nesting
+ \hyper@@anchor{\Hy@footnote@currentHref}{#1}%
+ \else
+ \Hy@raisedlink{%
+ \hyper@@anchor{\Hy@footnote@currentHref}{\relax}%
+ }#1%
+ \fi
+ }%
+ }%
+ \long\def\@mpRTLfootnotetext#1{%
+ \HRTL@@mpRTLfootnotetext{%
+ \ifHy@nesting
+ \hyper@@anchor{\Hy@footnote@currentHref}{#1}%
+ \else
+ \Hy@raisedlink{%
+ \hyper@@anchor{\Hy@footnote@currentHref}{\relax}%
+ }#1%
+ \fi
+ }%
+ }%
+ \long\def\@mpLTRfootnotetext#1{%
+ \HLTR@@mpLTRfootnotetext{%
+ \ifHy@nesting
+ \hyper@@anchor{\Hy@footnote@currentHref}{#1}%
+ \else
+ \Hy@raisedlink{%
+ \hyper@@anchor{\Hy@footnote@currentHref}{\relax}%
+ }#1%
+ \fi
+ }%
+ }%
+ \long\def\@footnotetext#1{%
+ \H@@footnotetext{%
+ \ifHy@nesting
+ \hyper@@anchor{\Hy@footnote@currentHref}{#1}%
+ \else
+ \Hy@raisedlink{%
+ \hyper@@anchor{\Hy@footnote@currentHref}{\relax}%
+ }%
+ \let\@currentHlabel\Hy@footnote@currentHlabel
+ \let\@currentHref\Hy@footnote@currentHref
+ \let\@currentlabelname\@empty
+ #1%
+ \fi
+ }%
+ }%
+ \long\def\@RTLfootnotetext#1{%
+ \HRTL@@RTLfootnotetext{%
+ \ifHy@nesting
+ \hyper@@anchor{\Hy@footnote@currentHref}{#1}%
+ \else
+ \Hy@raisedlink{%
+ \hyper@@anchor{\Hy@footnote@currentHref}{\relax}%
+ }%
+ \let\@currentHlabel\Hy@footnote@currentHlabel
+ \let\@currentHref\Hy@footnote@currentHref
+ \let\@currentlabelname\@empty
+ #1%
+ \fi
+ }%
+ }%
+ \long\def\@LTRfootnotetext#1{%
+ \HLTR@@LTRfootnotetext{%
+ \ifHy@nesting
+ \hyper@@anchor{\Hy@footnote@currentHref}{#1}%
+ \else
+ \Hy@raisedlink{%
+ \hyper@@anchor{\Hy@footnote@currentHref}{\relax}%
+ }%
+ \let\@currentHlabel\Hy@footnote@currentHlabel
+ \let\@currentHref\Hy@footnote@currentHref
+ \let\@currentlabelname\@empty
+ #1%
+ \fi
+ }%
+ }%
+ \def\@footnotemark{%
+ \leavevmode
+ \ifhmode\edef\@x@sf{\the\spacefactor}\nobreak\fi
+ \stepcounter{Hfootnote}%
+ \global\let\Hy@saved@currentHlabel\@currentHlabel
+ \global\let\Hy@saved@currentHref\@currentHref
+ \hyper@makecurrent{Hfootnote}%
+ \global\let\Hy@footnote@currentHlabel\@currentHlabel
+ \global\let\Hy@footnote@currentHref\@currentHref
+ \global\let\@currentHlabel\Hy@saved@currentHlabel
+ \global\let\@currentHref\Hy@saved@currentHref
+ \beginL\hyper@linkstart{link}{\Hy@footnote@currentHref}%
+ \@makefnmark
+ \hyper@linkend\endL
+ \ifhmode\spacefactor\@x@sf\fi
+ \relax
+ }%
+ \let\HyOrg@maketitle\maketitle
+ \def\maketitle{%
+ \let\Hy@saved@footnotemark\@footnotemark
+ \let\Hy@saved@footnotetext\@footnotetext
+ \let\HyRTL@saved@RTLfootnotetext\@RTLfootnotetext
+ \let\HyLTR@saved@LTRfootnotetext\@LTRfootnotetext
+ \let\@footnotemark\H@@footnotemark
+ \let\@footnotetext\H@@footnotetext
+ \let\@RTLfootnotetext\HRTL@@RTLfootnotetext
+ \let\@LTRfootnotetext\HLTR@@LTRfootnotetext
+ \@ifnextchar[\Hy@maketitle@optarg{% ]
+ \HyOrg@maketitle
+ \Hy@maketitle@end
+ }%
+ }%
+ \def\Hy@maketitle@optarg[#1]{%
+ \HyOrg@maketitle[{#1}]%
+ \Hy@maketitle@end
+ }%
+ \def\Hy@maketitle@end{%
+ \ifx\@footnotemark\H@@footnotemark
+ \let\@footnotemark\Hy@saved@footnotemark
+ \fi
+ \ifx\@footnotetext\H@@footnotetext
+ \let\@footnotetext\Hy@saved@footnotetext
+ \fi
+ \ifx\@RTLfootnotetext\HRTL@@RTLfootnotetext
+ \let\@RTLfootnotetext\HyRTL@saved@RTLfootnotetext
+ \fi
+ \ifx\@LTRfootnotetext\HLTR@@LTRfootnotetext
+ \let\@LTRfootnotetext\HyLTR@saved@LTRfootnotetext
+ \fi
+ }%
+ \def\realfootnote{%
+ \@ifnextchar[\@xfootnote{%
+ \stepcounter{\@mpfn}%
+ \protected@xdef\@thefnmark{\thempfn}%
+ \H@@footnotemark\H@@footnotetext
+ }%
+ }%
+\fi
+\def\hyper@link#1#2#3{%
+ \beginL\hyper@linkstart{#1}{#2}\if@RTL\beginR\fi#3\if@RTL\endR\fi\hyper@linkend\endL
+}
+\let\origin@href=\href
+\renewcommand\href[2]{\beginL\origin@href{#1}{\if@RTL\beginR\fi#2\if@RTL\endR\fi}\endL}
+\let\origin@url=\url
+\renewcommand\url[1]{\beginL\origin@url{#1}\endL}%
+\def\hyper@natlinkstart#1{%
+ \Hy@backout{#1}%
+ \beginL\hyper@linkstart{cite}{cite.#1}\if@RTL\beginR\fi%
+ \def\hyper@nat@current{#1}%
+}
+\def\hyper@natlinkend{%
+ \if@RTL\endR\fi\hyper@linkend\endL
+}
+\def\hyper@natlinkbreak#1#2{%
+ \if@RTL\endR\fi\hyper@linkend\endL#1\beginL\hyper@linkstart{cite}{cite.#2}\if@RTL\beginR\fi%
+}%
+}
+% \end{macrocode}
+% \iffalse
+%</hyperref-xetex-bidi.def>
+%<*leqno-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{leqno-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{leqno-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for leqno tag for XeTeX engine]
+\renewcommand\@eqnnum{\hb@xt@.01\p@{}%
+ \rlap{\normalfont\normalcolor
+ \hskip -\displaywidth\if@RTL\beginR\fi(\theequation)\if@RTL\endR\fi}}
+% \end{macrocode}
+% \iffalse
+%</leqno-xetex-bidi.def>
+%<*letter-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{letter-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{letter-xetex-bidi.def}[2010/07/25 v0.2 bidi adaptations for standard letter class for XeTeX engine]
+\renewcommand*{\opening}[1]{\ifx\@empty\fromaddress
+ \thispagestyle{firstpage}%
+ {\if@RTL\raggedright\else\raggedleft\fi\@date\par}%
+ \else % home address
+ \thispagestyle{empty}%
+ {\if@RTL\raggedright\else\raggedleft\fi\if@RTL\begin{tabular}{r@{}}\else\begin{tabular}{l@{}}\fi\ignorespaces
+ \fromaddress \\*[2\parskip]%
+ \@date \end{tabular}\par}%
+ \fi
+ \vspace{2\parskip}%
+ {\if@RTL\raggedleft\else\raggedright\fi \toname \\ \toaddress \par}%
+ \vspace{2\parskip}%
+ #1\par\nobreak}
+\renewcommand\left@footnote{%
+ \kern-\p@
+ \hrule \@width .4\columnwidth
+ \kern .6\p@}
+\renewcommand\right@footnote{%
+ \hbox to \columnwidth
+ {\beginR \vbox{%
+ \kern-\p@
+ \hrule \@width .4\columnwidth
+ \kern .6\p@}\hfil\endR}}
+% \end{macrocode}
+% \iffalse
+%</letter-xetex-bidi.def>
+%<*listings-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{listings-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{listings-xetex-bidi.def}[2010/07/25 v0.5 bidi adaptations for listings package for XeTeX engine]
+\AtBeginDocument{
+ \@ifundefined{thechapter}{\let\lst@ifnumberbychapter\iffalse}{}
+ \lst@ifnumberbychapter
+ \gdef\thelstlisting%
+ {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@lstlisting}
+ \else
+ \gdef\thelstlisting{\@arabic\c@lstlisting}
+ \fi}
+% \end{macrocode}
+% \iffalse
+%</listings-xetex-bidi.def>
+%<*loadingorder-bidi.def>
+%\fi
+% \subsection{\textsf{loadingorder-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{loadingorder-bidi.def}[2010/07/25 v0.5 making sure that bidi is the last package loaded]
+\newcommand\bidi@isloaded[2][]{
+ \expandafter\ifx\csname if@bidi@#2loaded@\endcsname\relax
+ \expandafter\newif\csname if@bidi@#2loaded@\endcsname
+ \fi
+ \@ifpackageloaded{#2}
+ {\csname @bidi@#2loaded@true\endcsname #1}
+ {\csname @bidi@#2loaded@false\endcsname}}
+\bidi@isloaded{amsmath}
+\bidi@isloaded{amsthm}
+\bidi@isloaded{breqn}
+\bidi@isloaded{caption}
+\bidi@isloaded{color}
+\bidi@isloaded{xcolor}
+\bidi@isloaded{colortbl}
+\bidi@isloaded{flowfram}
+\bidi@isloaded{xltxtra}
+\bidi@isloaded{xunicode}
+\bidi@isloaded{wrapfig}
+\bidi@isloaded{graphicx}
+\bidi@isloaded{hyperref}
+\bidi@isloaded{fancyhdr}
+\bidi@isloaded{draftwatermark}
+\bidi@isloaded{pdfpages}
+\bidi@isloaded{listings}
+\bidi@isloaded{pstricks}
+\bidi@isloaded{pgf}
+\bidi@isloaded{quotchap}
+\bidi@isloaded{tikz}
+\bidi@isloaded{titlesec}
+\bidi@isloaded{titletoc}
+\bidi@isloaded{array}
+\bidi@isloaded{stabular}
+\bidi@isloaded{subfig}
+\bidi@isloaded{subfigure}
+\bidi@isloaded{supertabular}
+\bidi@isloaded{xtab}
+\bidi@isloaded{longtable}
+\bidi@isloaded{arydshln}
+\bidi@isloaded{multicol}
+\bidi@isloaded{minitoc}
+\bidi@isloaded{ragged2e}
+\bidi@isloaded{tabls}
+\bidi@isloaded{tabulary}
+\bidi@isloaded{tocstyle}
+\bidi@isloaded{fontspec}
+\bidi@isloaded{arabxetex}
+\bidi@isloaded{polyglossia}
+\bidi@isloaded{fancyvrb}
+\AtBeginDocument{
+ \if@bidi@amsmathloaded@\else
+ \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package amsmath after bidi package. Please load package amsmath before bidi package, and then try to run xelatex on your document again}{}]{amsmath}
+ \fi%
+ \if@bidi@amsthmloaded@\else
+ \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package amsthm after bidi package. Please load package amsthm before bidi package, and then try to run xelatex on your document again}{}]{amsthm}
+ \fi%
+ \if@bidi@breqnloaded@\else
+ \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package breqn after bidi package. Please load package breqn before bidi package, and then try to run xelatex on your document again}{}]{breqn}
+ \fi%
+ \if@bidi@captionloaded@\else
+ \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package caption after bidi package. Please load package caption before bidi package, and then try to run xelatex on your document again}{}]{caption}
+ \fi%
+ \if@bidi@colorloaded@\else
+ \@ifpackageloaded{hyperref}{}{%
+ \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package color after bidi package. Please load package color before bidi package, and then try to run xelatex on your document again}{}]{color}}
+ \fi%
+ \if@bidi@xcolorloaded@\else
+ \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package xcolor after bidi package. Please load package xcolor before bidi package, and then try to run xelatex on your document again}{}]{xcolor}
+ \fi%
+ \if@bidi@colortblloaded@\else
+ \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package colortbl after bidi package. Please load package colortbl before bidi package, and then try to run xelatex on your document again}{}]{colortbl}
+ \fi%
+ \if@bidi@flowframloaded@\else
+ \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package flowfram after bidi package. Please load package flowfram before bidi package, and then try to run xelatex on your document again}{}]{flowfram}
+ \fi%
+ \if@bidi@xltxtraloaded@\else
+ \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package xltxtra after bidi package. Please load package xltxtra before bidi package, and then try to run xelatex on your document again}{}]{xltxtra}
+ \fi%
+ \if@bidi@xunicodeloaded@\else
+ \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package xunicode after bidi package. Please load package xunicode before bidi package, and then try to run xelatex on your document again}{}]{xunicode}
+ \fi%
+ \if@bidi@wrapfigloaded@\else
+ \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package wrapfig after bidi package. Please load package wrapfig before bidi package, and then try to run xelatex on your document again}{}]{wrapfig}
+ \fi%
+ \if@bidi@graphicxloaded@\else
+ \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package graphicx after bidi package. Please load package graphicx before bidi package, and then try to run xelatex on your document again}{}]{graphicx}
+ \fi%
+ \if@bidi@hyperrefloaded@\else
+ \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package hyperref after bidi package. Please load package hyperref before bidi package, and then try to run xelatex on your document again}{}]{hyperref}
+ \fi%
+ \if@bidi@fancyhdrloaded@\else
+ \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package fancyhdr after bidi package. Please load package fancyhdr before bidi package, and then try to run xelatex on your document again}{}]{fancyhdr}
+ \fi%
+ \if@bidi@draftwatermarkloaded@\else
+ \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package draftwatermark after bidi package. Please load package draftwatermark before bidi package, and then try to run xelatex on your document again}{}]{draftwatermark}
+ \fi%
+ \if@bidi@pdfpagesloaded@\else
+ \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package pdfpages after bidi package. Please load package pdfpages before bidi package, and then try to run xelatex on your document again}{}]{pdfpages}
+ \fi%
+ \if@bidi@listingsloaded@\else
+ \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package listings after bidi package. Please load package listings before bidi package, and then try to run xelatex on your document again}{}]{listings}
+ \fi%
+ \if@bidi@pstricksloaded@\else
+ \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package pstricks after bidi package. Please load package pstricks before bidi package, and then try to run xelatex on your document again}{}]{pstricks}
+ \fi%
+ \if@bidi@pgfloaded@\else
+ \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package pgf after bidi package. Please load package pgf before bidi package, and then try to run xelatex on your document again}{}]{pgf}
+ \fi%
+ \if@bidi@quotchaploaded@\else
+ \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package quotchap after bidi package. Please load package quotchap before bidi package, and then try to run xelatex on your document again}{}]{quotchap}
+ \fi%
+ \if@bidi@tikzloaded@\else
+ \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package tikz after bidi package. Please load package tikz before bidi package, and then try to run xelatex on your document again}{}]{tikz}
+ \fi%
+ \if@bidi@titlesecloaded@\else
+ \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package titlesec after bidi package. Please load package titlesec before bidi package, and then try to run xelatex on your document again}{}]{titlesec}
+ \fi%
+ \if@bidi@titletocloaded@\else
+ \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package titletoc after bidi package. Please load package titletoc before bidi package, and then try to run xelatex on your document again}{}]{titletoc}
+ \fi%
+ \if@bidi@arrayloaded@\else
+ \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package array after bidi package. Please load package array before bidi package, and then try to run xelatex on your document again}{}]{array}
+ \fi%
+ \if@bidi@stabularloaded@\else
+ \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package stabular after bidi package. Please load package stabular before bidi package, and then try to run xelatex on your document again}{}]{stabular}
+ \fi%
+ \if@bidi@subfigloaded@\else
+ \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package subfig after bidi package. Please load package subfig before bidi package, and then try to run xelatex on your document again}{}]{subfig}
+ \fi%
+ \if@bidi@subfigureloaded@\else
+ \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package subfigure after bidi package. Please load package subfigure before bidi package, and then try to run xelatex on your document again}{}]{subfigure}
+ \fi%
+ \if@bidi@supertabularloaded@\else
+ \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package supertabular after bidi package. Please load package supertabular before bidi package, and then try to run xelatex on your document again}{}]{supertabular}
+ \fi%
+ \if@bidi@xtabloaded@\else
+ \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package xtab after bidi package. Please load package xtab before bidi package, and then try to run xelatex on your document again}{}]{xtab}
+ \fi%
+ \if@bidi@longtableloaded@\else
+ \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package longtable after bidi package. Please load package longtable before bidi package, and then try to run xelatex on your document again}{}]{longtable}
+ \fi%
+ \if@bidi@arydshlnloaded@\else
+ \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package arydshln after bidi package. Please load package arydshln before bidi package, and then try to run xelatex on your document again}{}]{arydshln}
+ \fi%
+ \if@bidi@multicolloaded@\else
+ \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package multicol after bidi package. Please load package multicol before bidi package, and then try to run xelatex on your document again}{}]{multicol}
+ \fi%
+ \if@bidi@minitocloaded@\else
+ \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package minitoc after bidi package. Please load package minitoc before bidi package, and then try to run xelatex on your document again}{}]{minitoc}
+ \fi%
+ \csname if@bidi@ragged2eloaded@\endcsname\else
+ \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package ragged2e after bidi package. Please load package ragged2e before bidi package, and then try to run xelatex on your document again}{}]{ragged2e}
+ \fi%
+ \if@bidi@tablsloaded@\else
+ \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package tabls after bidi package. Please load package tabls before bidi package, and then try to run xelatex on your document again}{}]{tabls}
+ \fi%
+ \if@bidi@tabularyloaded@\else
+ \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package tabulary after bidi package. Please load package tabulary before bidi package, and then try to run xelatex on your document again}{}]{tabulary}
+ \fi%
+ \if@bidi@tocstyleloaded@\else
+ \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package tocstyle after bidi package. Please load package tocstyle before bidi package, and then try to run xelatex on your document again}{}]{tocstyle}
+ \fi%
+ \if@bidi@fontspecloaded@\else
+ \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package fontspec after bidi package. Please load package fontspec before bidi package, and then try to run xelatex on your document again}{}]{fontspec}
+ \fi%
+ \if@bidi@arabxetexloaded@\else
+ \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package arabxetex after bidi package. Please load package arabxetex before bidi package, and then try to run xelatex on your document again}{}]{arabxetex}
+ \fi%
+ \if@bidi@polyglossialoaded@\else
+ \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package polyglossia after bidi package. Please load package polyglossia before bidi package, and then try to run xelatex on your document again}{}]{polyglossia}
+ \fi%
+ \if@bidi@fancyvrbloaded@\else
+ \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package fancyvrb after bidi package. Please load package fancyvrb before bidi package, and then try to run xelatex on your document again}{}]{fancyvrb}
+ \fi%
+}
+% \end{macrocode}
+% \iffalse
+%</loadingorder-bidi.def>
+%<*longtable-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{longtable-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{longtable-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for longtable package for XeTeX engine]
+\def\LT@makecaption#1#2#3{%
+ \LT@mcol\LT@cols c{\hbox to\z@{\hss\parbox[t]\LTcapwidth{%
+ \sbox\@tempboxa{\if@RTL\beginR\fi#1{#2: }#3\if@RTL\endR\fi}%
+ \ifdim\wd\@tempboxa>\hsize
+ #1{#2: }#3%
+ \else
+ \hbox to\hsize{\hfil\box\@tempboxa\hfil}%
+ \fi
+ \endgraf\vskip\baselineskip}%
+ \hss}}}
+% \end{macrocode}
+% \iffalse
+%</longtable-xetex-bidi.def>
+%<*luatex-bidi.def>
+%\fi
+% \subsection{\textsf{luatex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{luatex-bidi.def}[2010/07/25 v0.1 bidi adaptations for LuaTeX engine]
+\directlua { tex.enableprimitives('',{'pagedir','bodydir','pardir','textdir','mathdir'}) }
+\input{footnote-luatex-bidi.def}
+% \end{macrocode}
+% \iffalse
+%</luatex-bidi.def>
+%<*memoir-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{memoir-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{memoir-xetex-bidi.def}[2010/07/25 v0.5 bidi adaptations for memoir class for XeTeX engine]
+\renewcommand{\keepthetitle}{%
+ \@bsmtitlempty
+ \global\let\thanks\relax
+ \global\let\LTRthanks\relax
+ \global\let\RTLthanks\relax
+ \global\let\and\relax
+ \global\let\andnext\relax
+ \global\let\@thanks\@empty
+ \global\let\@title\@empty
+ \global\let\@author\@empty
+ \global\let\@date\@empty}
+\renewcommand{\maketitle}{\par
+ \begingroup
+ \@bsmarkseries
+ \def\@makefnmark{\@textsuperscript{%
+ \normalfont\@bsthanksheadpre \tamark \@bsthanksheadpost}}%
+ \long\def\@makefntext##1{\makethanksmark ##1}
+ \if@twocolumn
+ \ifnum \col@number=\@ne
+ \@maketitle
+ \else
+ \twocolumn[\@maketitle]%
+ \fi
+ \else
+ \ifdim\pagetotal>\z@
+ \newpage
+ \fi
+ \global\@topnum\z@
+ \@maketitle
+ \fi
+ \thispagestyle{title}\@thanks
+ \endgroup
+ \@bscontmark % \setcounter{footnote}{0}%
+ }
+\renewcommand*{\memRTLleftskip}{\if@RTL\rightskip\else\leftskip\fi}
+\renewcommand*{\memRTLrightskip}{\if@RTL\leftskip\else\rightskip\fi}
+\renewcommand*{\memRTLvleftskip}{\if@RTL\vrightskip\else\vleftskip\fi}
+\renewcommand*{\memRTLvrightskip}{\if@RTL\vleftskip\else\vrightskip\fi}
+\renewcommand*{\memRTLraggedright}{\if@RTL\raggedleft\else\raggedright\fi}
+\renewcommand*{\memRTLraggedleft}{\if@RTL\raggedright\else\raggedleft\fi}
+\renewcommand*{\thesection}{\thechapter\@SepMark\@arabic\c@section}
+\renewcommand*{\thesubsection}{%
+ \thesection\@SepMark\@arabic\c@subsection}
+\renewcommand*{\thesubsubsection}{%
+ \thesubsection\@SepMark\@arabic\c@subsubsection}
+\renewcommand*{\theparagraph}{%
+ \thesubsubsection\@SepMark\@arabic\c@paragraph}
+\renewcommand*{\thesubparagraph}{%
+ \theparagraph\@SepMark\@arabic\c@subparagraph}
+\renewcommand{\setthesection}{\thechapter\@SepMark\Alph{section}}
+\renewcommand{\theequation}{%
+ \ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@equation}
+\renewcommand{\thefigure}{\thechapter\@SepMark\@arabic\c@figure}
+\renewcommand{\thetable}{\thechapter\@SepMark\@arabic\c@table}
+\ifartopt
+ \chapterstyle{article}
+ \counterwithout{figure}{chapter}
+ \counterwithout{table}{chapter}
+ \counterwithout{footnote}{chapter}
+ \counterwithout{equation}{chapter}
+ \renewcommand{\chaptername}{}
+ \renewcommand{\maketitlehookb}{%
+ \vskip -1.5\topsep\vskip -1.5\partopsep}
+ \renewcommand{\maketitlehookc}{%
+ \vskip -1.5\topsep\vskip -1.5\partopsep}
+\fi
+\long\def\@makecaption#1#2{\let\@memtempa\relax
+ \ifdim\prevdepth>-99\p@ \vskip\abovecaptionskip
+ \else \def\@memtempa{\vbox to\topskip{}}\fi
+ \let\@contfnote\footnote \renewcommand{\footnote}[2][]{}
+ \let\@contfmark\footnotemark \renewcommand{\footnotemark}[1][]{}
+ \sbox\@tempboxa{\@contnfont #1\@contdelim \@conttfont #2\@contfinal}
+ \let\footnote\@contfnote
+ \let\footnotemark\@contfmark
+ \ifdim\wd\@tempboxa<\linewidth \centering \fi
+ \if@contcw
+ \centering
+ \parbox{\@contcwidth}{%
+ \ifdim\wd\@tempboxa<\@contcwidth \centering \fi
+ \fi
+ \ifdim\wd\@tempboxa<\linewidth
+ \@contpre
+ {\@contnfont #1\@contdelim}\@memtempa
+ {\@contcshortstyle \@conttfont #2\@contfinal\par}
+ \else
+ \if@conthang
+ \sbox\@tempboxa{\@contnfont #1\@contdelim}
+ \@contpre%
+ {\@contcstyle\hangindent=\wd\@tempboxa
+ \noindent\box\@tempboxa\@memtempa \@conttfont #2\@contfinal\par}
+ \else
+ \if@contindent
+ \@contpre%
+ {\@contnfont #1\@contdelim}\@memtempa
+ {\@contcstyle\hangindent=\@contindw
+ \hangafter=\@ne\@conttfont #2\@contfinal\par}% <- v1.4
+ \else
+ \@contpre%
+ {\@contnfont #1\@contdelim}\@memtempa
+ {\@contcstyle \@conttfont #2\@contfinal\par}
+ \fi
+ \fi
+ \fi
+ \@contpost
+ \if@contcw
+ \par
+ } % end of the \parbox
+ \fi
+ \vskip\belowcaptionskip}
+\@ifpackageloaded{caption}{%
+\AtBeginPackage{caption}{
+\ClassWarningNoLine{memoir}{%
+ You are using the caption package with the memoir \MessageBreak
+ class. This may cause unexpected or inconsistent \MessageBreak
+ results if you use any of memoir's captioning facilities}
+
+\long\def\@makecaption##1##2{%
+ \vskip\abovecaptionskip
+ \sbox\@tempboxa{\if@RTL\beginR\fi##1: ##2\if@RTL\endR\fi}%
+ \ifdim \wd\@tempboxa >\hsize
+ \if@RTL\beginR\fi##1: ##2\if@RTL\endR\fi\par
+ \else
+ \global \@minipagefalse
+ \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
+ \fi
+ \vskip\belowcaptionskip}
+
+\def\caption{%
+ \ifx\@captype\@undefined
+ \@latex@error{\noexpand\caption outside float}\@ehd
+ \expandafter\@gobble
+ \else
+ \refstepcounter\@captype
+ \expandafter\@firstofone
+ \fi
+ {\@dblarg{\@caption\@captype}}%
+}
+
+\long\def\@caption##1[##2]##3{%
+ \par
+ \addcontentsline{\csname ext@##1\endcsname}{##1}%
+ {\protect\numberline{\csname the##1\endcsname}{\ignorespaces ##2}}%
+ \begingroup
+ \@parboxrestore
+ \if@minipage
+ \@setminipage
+ \fi
+ \normalsize
+ \@makecaption{\csname fnum@##1\endcsname}{\ignorespaces ##3}\par
+ \endgroup}
+}}{}
+\renewenvironment{thebibliography}[1]{%
+ \bibsection
+ \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
+ \begin{bibitemlist}{#1}}{\end{bibitemlist}\postbibhook}
+% \end{macrocode}
+% \iffalse
+%</memoir-xetex-bidi.def>
+%<*minitoc-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{minitoc-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{minitoc-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for minitoc package for XeTeX engine]
+\def\@undottedtocline#1#2#3#4#5{%
+ \ifnum #1>\c@tocdepth\relax \else
+ \vskip \z@ plus.2\p@
+ {\if@RTL\rightskip\else\leftskip\fi #2\relax \if@RTL\leftskip\else\rightskip\fi \@tocrmarg \parfillskip -\if@RTL\leftskip\else\rightskip\fi
+ \parindent #2\relax\@afterindenttrue
+ \interlinepenalty\@M
+ \leavevmode
+ \@tempdima #3\relax \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \hbox{}%
+ \hskip -\if@RTL\rightskip\else\leftskip\fi
+ #4\nobreak\hfill \nobreak
+ \null\par}%
+ \fi}
+\def\@Undottedtocline#1#2#3#4#5{%
+ \ifnum #1>\c@tocdepth\relax \else
+ \vskip \z@ \@plus.2\p@
+ {\if@RTL\rightskip\else\leftskip\fi #2\relax \if@RTL\leftskip\else\rightskip\fi \@tocrmarg \parfillskip -\if@RTL\leftskip\else\rightskip\fi
+ \parindent #2\relax\@afterindenttrue
+ \interlinepenalty\@M
+ \leavevmode
+ \@tempdima #3\relax
+ \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rightskip\else\leftskip\fi
+ {\coffeefont #4}\nobreak \nobreak\null
+ \par}%
+ \fi}
+\def\@Undottedtoclinep#1#2#3#4#5{%
+ \ifnum #1>\c@tocdepth\relax \else
+ \vskip \z@ \@plus.2\p@
+ {\if@RTL\rightskip\else\leftskip\fi #2\relax \if@RTL\leftskip\else\rightskip\fi \@tocrmarg \parfillskip -\if@RTL\leftskip\else\rightskip\fi
+ \parindent #2\relax\@afterindenttrue
+ \interlinepenalty\@M
+ \leavevmode
+ \@tempdima #3\relax
+ \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rightskip\else\leftskip\fi
+ {#4}\nobreak \hfill \nobreak\null
+ \hb@xt@\@pnumwidth{\hfil\normalfont \normalcolor #5}%
+ \par}%
+ \fi}
+% \end{macrocode}
+% \iffalse
+%</minitoc-xetex-bidi.def>
+%<*multicol-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{multicol-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{multicol-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for multicol package for XeTeX engine]
+\def\revprocess@cols#1#2{\count@\doublecol@number\relax
+\advance\count@ by -2
+ \loop #2%
+ \ifnum\count@>#1\relax
+ \advance\count@-\tw@
+ \repeat}
+\def\page@sofar{%
+ \process@cols\mult@rightbox
+ {\ifvoid\count@
+ \setbox\count@\hbox to\hsize{}%
+ \else
+ \wd\count@\hsize
+ \fi}%
+ \count@\col@number \advance\count@\m@ne
+ \mult@info\z@
+ {Column spec: \the\full@width\space = indent
+ + columns + sep =\MessageBreak
+ \the\multicol@leftmargin\space
+ + \the\col@number\space
+ x \the\hsize\space
+ + \the\count@\space
+ x \the\columnsep
+ }%
+\ifvmode\else\errmessage{Multicol Error}\fi
+ \nointerlineskip
+ \setbox\z@\hbox{p}\global\dimen\tw@\dp\z@
+ \moveright\multicol@leftmargin
+ \if@RTL\hbox to\full@width{%
+ \ifdim\dp\mult@rightbox>\dimen\tw@
+ \global\dimen\tw@\dp\mult@rightbox \fi
+ \box\mult@rightbox
+ \llap{\phantom p}%
+ \revprocess@cols\mult@gfirstbox{%
+ \ifdim\dp\count@>\dimen\tw@
+ \global\dimen\tw@\dp\count@ \fi
+ \hss{\columnseprulecolor\vrule
+ \@width\columnseprule}\hss\box\count@}%
+}\else%
+ \hbox to\full@width{%
+ \process@cols\mult@gfirstbox{%
+ \ifdim\dp\count@>\dimen\tw@
+ \global\dimen\tw@\dp\count@ \fi
+ \box\count@
+ \hss{\columnseprulecolor\vrule
+ \@width\columnseprule}\hss}%
+ \ifdim\dp\mult@rightbox>\dimen\tw@
+ \global\dimen\tw@\dp\mult@rightbox \fi
+ \box\mult@rightbox
+ \rlap{\phantom p}%
+ }\fi%
+ \kern-\dimen\tw@
+ \ifdim\dimen\tw@ = \mc@gridwarn
+ \PackageWarning{multicol}%
+ {Very deep columns!\MessageBreak
+ Grid alignment might be broken}%
+ \fi
+}
+\def\right@footnote{%
+ \hbox to \textwidth
+ {\beginR \vbox{\kern -3\p@
+ \hrule width .4\columnwidth \kern2.6\p@}\hfil\endR}}
+\long\def\@footnotetext#1{%
+ \begingroup
+ \setbox\footins
+ \vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi\reset@font\footnotesize
+ \interlinepenalty\interfootnotelinepenalty
+ \splittopskip\footnotesep
+ \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
+ \hsize\textwidth \@parboxrestore
+ \bidi@footnotetext@dir{#1}%
+ \protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext
+ {\rule{\z@}{\footnotesep}\ignorespaces\if@RTL@footnote#1\else\rmfamily#1\fi\strut}}%
+ \bidi@footnotetext@after
+ \insert\footins{\unvbox\footins}%
+ \endgroup}
+\long\def\@RTLfootnotetext#1{%
+ \begingroup
+ \setbox\footins
+ \vbox{\@RTLtrue\reset@font\footnotesize
+ \interlinepenalty\interfootnotelinepenalty
+ \splittopskip\footnotesep
+ \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
+ \hsize\textwidth \@parboxrestore
+ \bidi@footnotetext@dir{#1}%
+ \protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext
+ {\rule{\z@}{\footnotesep}\ignorespaces #1\strut}}%
+ \bidi@footnotetext@after
+ \insert\footins{\unvbox\footins}%
+ \endgroup}
+\long\def\@LTRfootnotetext#1{%
+ \begingroup
+ \setbox\footins
+ \vbox{\@RTLfalse\reset@font\footnotesize
+ \interlinepenalty\interfootnotelinepenalty
+ \splittopskip\footnotesep
+ \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
+ \hsize\textwidth \@parboxrestore
+ \bidi@footnotetext@dir{#1}%
+ \protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext
+ {\rule{\z@}{\footnotesep}\ignorespaces\rmfamily #1\strut}}%
+ \bidi@footnotetext@after
+ \insert\footins{\unvbox\footins}%
+ \endgroup}
+\long\def\@mpRTLfootnotetext#1{%
+ \global\setbox\@mpfootins\vbox{\@RTLtrue%
+ \unvbox\@mpfootins
+ \reset@font\footnotesize
+ \hsize\textwidth
+ \@parboxrestore
+ \protected@edef\@currentlabel
+ {\csname p@mpfootnote\endcsname\@thefnmark}%
+ \color@begingroup
+ \bidi@footnotetext@dir{#1}
+ \ifnum\c@mpfootnote=1\if@RTL\global\let\bidi@footnoterule\right@footnote\else\global\let\bidi@footnoterule\left@footnote\fi\fi
+ \@makefntext{%
+ \rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}%
+ \color@endgroup}}
+\long\def\@mpLTRfootnotetext#1{%
+ \global\setbox\@mpfootins\vbox{\@RTLfalse%
+ \unvbox\@mpfootins
+ \reset@font\footnotesize
+ \hsize\textwidth
+ \@parboxrestore
+ \protected@edef\@currentlabel
+ {\csname p@mpfootnote\endcsname\@thefnmark}%
+ \color@begingroup
+ \bidi@footnotetext@dir{#1}
+ \ifnum\c@mpfootnote=1\if@RTL\global\let\bidi@footnoterule\right@footnote\else\global\let\bidi@footnoterule\left@footnote\fi\fi
+ \@makefntext{%
+ \rule\z@\footnotesep\ignorespaces\rmfamily#1\@finalstrut\strutbox}%
+ \color@endgroup}}
+\long\def\@mpfootnotetext#1{%
+ \global\setbox\@mpfootins\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
+ \unvbox\@mpfootins
+ \reset@font\footnotesize
+ \hsize\textwidth
+ \@parboxrestore
+ \protected@edef\@currentlabel
+ {\csname p@mpfootnote\endcsname\@thefnmark}%
+ \color@begingroup
+ \bidi@footnotetext@dir{#1}
+ \ifnum\c@mpfootnote=1\if@RTL\global\let\bidi@footnoterule\right@footnote\else\global\let\bidi@footnoterule\left@footnote\fi\fi
+ \@makefntext{%
+ \rule\z@\footnotesep\ignorespaces\if@RTL@footnote#1\else\rmfamily#1\fi\@finalstrut\strutbox}%
+ \color@endgroup}}
+% \end{macrocode}
+% \iffalse
+%</multicol-xetex-bidi.def>
+%<*pdfpages-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{pdfpages-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{pdfpages-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for pdfpages package for XeTeX engine]
+\renewcommand*{\includepdf}[2][]{%
+ \begingroup
+ \@RTLfalse
+ \let\AM@threadname\relax
+ \AM@split@options{pdfpages}{#1}%
+ \edef\AM@temp{{pdfpages}{\the\@temptokena}}%
+ \expandafter\setkeys\AM@temp
+ \ifthenelse{\boolean{AM@pkg@draft} \and \boolean{AM@survey}}{%
+ \let\AM@currentdocname\relax
+ \renewcommand\includegraphics[2][]{Survey in draft-mode}%
+ \def\AM@pagecount{0}%
+ }{%
+ \AM@findfile{#2}%
+ \if\AM@threadname\relax
+ \def\AM@threadname{\AM@currentdocname}%
+ \fi
+ }%
+ \ifAM@survey
+ \def\AM@pagestemp{}%
+ \@tempcnta=0
+ \def\foo{%
+ \@ifundefined{r@\AM@xrprefix pdfpages@page\the\@tempcnta}%
+ {\let\foo\relax}
+ {\expandafter\ifx\expandafter\\\AM@pagestemp\\
+ \edef\AM@pagestemp{%
+ \AM@pageref{\AM@xrprefix pdfpages@page\the\@tempcnta}}%
+ \else
+ \edef\AM@pagestemp{\AM@pagestemp,%
+ \AM@pageref{\AM@xrprefix pdfpages@page\the\@tempcnta}}%
+ \fi
+ \advance\@tempcnta 1\relax
+ }%
+ \foo
+ }%
+ \foo
+ \expandafter\ifx\expandafter\\\AM@pagestemp\\
+ \def\AM@pagestemp{1}%
+ \fi
+ \fi
+ \ifAM@output
+ \expandafter\AM@readlist\expandafter{\AM@pagestemp}%
+ \AM@output{#1}%
+ \fi
+ \AM@CheckAtEnd
+ \endgroup
+ \AM@ClearShipoutPicture
+}
+% \end{macrocode}
+% \iffalse
+%</pdfpages-xetex-bidi.def>
+%<*pgf-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{pgf-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{pgf-xetex-bidi.def}[2010/07/25 v0.2 bidi adaptations for pgf package for XeTeX engine]
+\let\origin@pgfpicture=\pgfpicture
+\let\origin@endpgfpicture=\endpgfpicture
+\def\pgfpicture{\ifmmode\else\beginL\fi\origin@pgfpicture}
+\def\endpgfpicture{\origin@endpgfpicture\ifmmode\else\endL\fi}
+% \end{macrocode}
+% \iffalse
+%</pgf-xetex-bidi.def>
+%<*plain-luatex-bidi.def>
+%\fi
+% \subsection{\textsf{plain-luatex-bidi.def}}
+% \begin{macrocode}
+\directlua { tex.enableprimitives('',tex.extraprimitives()) }
+% \end{macrocode}
+% \iffalse
+%</plain-luatex-bidi.def>
+%<*plain-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{plain-xetex-bidi.def}}
+% \begin{macrocode}
+\ifx\TeXXeTstate\undefined\else%
+ \TeXXeTstate=1
+\fi
+\def\Bidi@RTL@everypar{\if@RTL{\setbox\z@\lastbox\beginR\box\z@}\fi}
+ \let\o@everypar=\everypar
+ \newtoks\n@everypar
+ \n@everypar\expandafter{\the\o@everypar}
+ \o@everypar{\Bidi@RTL@everypar\the\n@everypar}
+ \let\everypar=\n@everypar
+\def\moreLRE{\bracetext \aftergroup\endL \beginL\@RTLfalse}
+\def\moreRLE{\bracetext \aftergroup\endR \beginR\@RTLtrue}
+\protected\def\hboxR{\hbox\bgroup
+ \everyhbox{%
+ \aftergroup\egroup
+ \everyhbox{}%
+ \beginR
+ \bgroup
+ \aftergroup\endR
+ \aftergroup\egroup
+ }\hbox}
+\protected\def\hboxL{\hbox\bgroup
+ \everyhbox{%
+ \aftergroup\egroup
+ \everyhbox{}%
+ \beginL
+ \bgroup
+ \aftergroup\endL
+ \aftergroup\egroup
+ }\hbox}
+\protected\def\vboxR{\vbox\bgroup
+ \everyvbox{%
+ \aftergroup\egroup
+ \everyvbox{}%
+ \beginR
+ \bgroup
+ \aftergroup\endR
+ \aftergroup\egroup
+ }\vbox}
+\protected\def\vboxL{\vbox\bgroup
+ \everyvbox{%
+ \aftergroup\egroup
+ \everyvbox{}%
+ \beginL
+ \bgroup
+ \aftergroup\endL
+ \aftergroup\egroup
+ }\vbox}
+\def\LTR{\par\@RTLfalse\@RTL@footnotefalse\hsize\linewidth\parshape\z@}
+\def\endLTR{\par}
+\def\RTL{\par\@RTLtrue\@RTL@footnotetrue\hsize\linewidth\parshape\z@}
+\def\endRTL{\par}
+\def\ltr{\if@RTL\par\@RTLfalse\@RTL@footnotefalse\fi}
+\def\rtl{\if@RTL\relax\else\par\@RTLtrue\@RTL@footnotetrue\fi}
+\def\setRTL{\@RTLtrue\@RTL@footnotetrue}
+\def\setLTR{\@RTLfalse\@RTL@footnotefalse}
+\let\unsetRTL=\setLTR
+\let\unsetLTR=\setRTL
+\let\LR=\LRE
+\let\RL=\RLE
+\def\@ensure@RTL#1{\if@RTL#1\else\RLE{#1}\fi}
+\def\@ensure@LTR#1{\if@RTL\LRE{#1}\else#1\fi}
+\let\@ensure@RL=\@ensure@RTL
+\let\@ensure@LR=\@ensure@LTR
+\def\@ensure@dir#1{\if@RTL\RLE{#1}\else{#1}\fi}
+\let\@ensure@maindir=\@ensure@dir
+\def\@@RTL{RTL}
+\def\@@LTR{LTR}
+\def\save@dir{\if@RTL\gdef\saved@@dir{RTL}\else\gdef\saved@@dir{LTR}\fi}
+\def\reset@dir{\ifx\saved@@dir\@@RTL\setRTL\else\ifx\saved@@dir\@@LTR\setLTR\else\relax\fi\fi}
+\let\@@TeX\TeX
+\def\TeX{\@ensure@LTR{\@@TeX}}
+\def\reflect#1{{\setbox0=\hbox{#1}\rlap{\kern0.5\wd0
+ \special{x:gsave}\special{x:scale -1 1}}\box0 \special{x:grestore}}}
+\def\XeTeX{\LR{\leavevmode$\smash{\hbox{X\lower.5ex
+ \hbox{\kern-.125em\reflect{E}}\kern-.1667em \TeX}}$}}
+\let\setRL=\setRTL
+\let\setLR=\setLTR
+\let\unsetRL=\setLTR
+\everydisplay{\predisplaydirection=0 }
+\def\centerline#1{\line{\hss\if@RTL\beginR\fi#1\if@RTL\endR\fi\hss}}
+\def\leftline#1{\line{\if@RTL\beginR\fi#1\if@RTL\endR\fi\hss}}
+\def\rightline#1{\line{\hss\if@RTL\beginR\fi#1\if@RTL\endR\fi}}
+% \end{macrocode}
+% \iffalse
+%</plain-xetex-bidi.def>
+%<*pstricks-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{pstricks-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{pstricks-xetex-bidi.def}[2010/07/25 v0.3 bidi adaptations for pstricks package for XeTeX engine]
+\let\origin@pspicture=\pspicture
+\let\origin@endpspicture=\endpspicture
+\def\pspicture{\ifmmode\else\beginL\fi\origin@pspicture}
+\def\endpspicture{\origin@endpspicture\ifmmode\else\endL\fi}
+% \end{macrocode}
+% \iffalse
+%</pstricks-xetex-bidi.def>
+%<*quotchap-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{quotchap-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{quotchap-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for quotchap package for XeTeX engine]
+\renewcommand{\qauthor}[1]{%
+ \par\smallskip
+ {\if@RTL\raggedright\else\raggedleft\fi\upshape #1\qquad\hbox{}\par}\bigskip}
+\renewcommand{\@makechapterhead}[1]{\chapterheadstartvskip%
+ {\size@chapter{\sectfont\if@RTL\raggedright\else\raggedleft\fi
+ {\chapnumfont
+ \ifnum \c@secnumdepth >\m@ne%
+ \if@mainmatter\thechapter%
+ \fi\fi
+ \par\nobreak}%
+ {\if@RTL\raggedright\else\raggedleft\fi\advance\if@RTL\rightmargin\else\leftmargin\fi10em\interlinepenalty\@M #1\par}}
+ \nobreak\chapterheadendvskip}}
+\renewcommand*{\@iprintcites}{%
+ \vbox to\z@{\leavevmode\copy\@quotebox\vss}
+ \global\let\@printcites\relax}
+% \end{macrocode}
+% \iffalse
+%</quotchap-xetex-bidi.def>
+%<*ragged2e-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{ragged2e-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{ragged2e-xetex-bidi.def}[2010/07/25 v0.2 bidi adaptations for ragged2e package for XeTeX engine]
+\renewcommand{\Centering}{%
+ \ifx\\\@raggedtwoe@savedcr
+ \let\\\@centercr
+ \fi
+ \let\@gnewline\@raggedtwoe@gnewline
+ \if@RTL\rightskip\else\leftskip\fi\CenteringLeftskip
+ \@rightskip\CenteringRightskip
+ \if@RTL\leftskip\else\rightskip\fi\@rightskip
+ \parfillskip\CenteringParfillskip
+ \parindent\CenteringParindent
+ \@raggedtwoe@spaceskiptrue
+ \@raggedtwoe@everyselectfont
+ }
+\renewcommand{\RaggedLeft}{%
+ \ifx\\\@raggedtwoe@savedcr
+ \let\\\@centercr
+ \fi
+ \let\@gnewline\@raggedtwoe@gnewline
+ \if@RTL\rightskip\else\leftskip\fi\RaggedLeftLeftskip
+ \@rightskip\RaggedLeftRightskip
+ \if@RTL\leftskip\else\rightskip\fi\@rightskip
+ \parfillskip\RaggedLeftParfillskip
+ \parindent\RaggedLeftParindent
+ \@raggedtwoe@spaceskiptrue
+ \@raggedtwoe@everyselectfont
+ }
+\renewcommand{\RaggedRight}{%
+ \ifx\\\@raggedtwoe@savedcr
+ \let\\\@centercr
+ \fi
+ \let\@gnewline\@raggedtwoe@gnewline
+ \if@RTL\rightskip\else\leftskip\fi\RaggedRightLeftskip
+ \@rightskip\RaggedRightRightskip
+ \if@RTL\leftskip\else\rightskip\fi\@rightskip
+ \parfillskip\RaggedRightParfillskip
+ \parindent\RaggedRightParindent
+ \@raggedtwoe@spaceskiptrue
+ \@raggedtwoe@everyselectfont
+ }
+\renewcommand{\justifying}{%
+ \let\\\@raggedtwoe@savedcr
+ \let\@gnewline\@raggedtwoe@saved@gnewline
+ \if@RTL\rightskip\else\leftskip\fi\z@
+ \@rightskip\z@
+ \if@RTL\leftskip\else\rightskip\fi\@rightskip
+ \parfillskip\JustifyingParfillskip
+ \parindent\JustifyingParindent
+ \@raggedtwoe@spaceskipfalse
+ \@raggedtwoe@everyselectfont
+ }
+\renewcommand*{\@raggedtwoe@raggedrightboxes@opt}{
+ \CheckCommand*{\@arrayparboxrestore}{%
+ \let\if@nobreak\iffalse
+ \let\if@noskipsec\iffalse
+ \let\par\@@par
+ \let\-\@dischyph
+ \let\'\@acci\let\`\@accii\let\=\@acciii
+ \parindent\z@ \parskip\z@skip
+ \everypar{}%
+ \linewidth\hsize
+ \@totalleftmargin\z@
+ \if@RTL\rightskip\else\leftskip\fi\z@skip \if@RTL\leftskip\else\rightskip\fi\z@skip \@rightskip\z@skip
+ \parfillskip\@flushglue \lineskip\normallineskip
+ \baselineskip\normalbaselineskip
+ \sloppy}%
+ \renewcommand{\@arrayparboxrestore}{%
+ \let\if@nobreak\iffalse
+ \let\if@noskipsec\iffalse
+ \let\par\@@par
+ \let\-\@dischyph
+ \let\'\@acci\let\`\@accii\let\=\@acciii
+ \parskip\z@skip
+ \everypar{}%
+ \linewidth\hsize
+ \@totalleftmargin\z@
+ \RaggedRight
+ \lineskip\normallineskip
+ \baselineskip\normalbaselineskip
+ \sloppy}%
+ \let\@raggedtwoe@raggedrightboxes@opt\relax
+ }
+\let\origin@RaggedLeft=\RaggedLeft
+\let\origin@RaggedRight=\RaggedRight
+\def\RaggedLeft{\if@RTL\origin@RaggedRight\else\origin@RaggedLeft\fi}
+\def\RaggedRight{\if@RTL\origin@RaggedLeft\else\origin@RaggedRight\fi}
+% \end{macrocode}
+% \iffalse
+%</ragged2e-xetex-bidi.def>
+%<*rapport1-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{rapport1-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{rapport1-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for rapport1 class for XeTeX engine]
+\renewcommand*\head@style{%
+ \interlinepenalty \@M
+ \hyphenpenalty=\@M \exhyphenpenalty=\@M
+ \if@RTL\leftskip\else\rightskip\fi=0cm plus .7\hsize\relax}
+\if@titlepage
+ \renewenvironment{abstract}{%
+ \titlepage
+ \null\vfil
+ \section*{\SectFont\abstractname}%
+ \noindent\ignorespaces}
+ {\par\vfil\null\endtitlepage}
+\else
+ \renewenvironment{abstract}{%
+ \if@twocolumn
+ \section*{\abstractname}%
+ \else
+ \bgroup\if@RTL\leftskip\else\rightskip\fi=\unitindent
+ \section*{\small\SectFont\abstractname}%
+ \noindent\ignorespaces
+ \fi}
+ {\if@twocolumn\else\par\egroup\fi}
+\fi
+\renewcommand*\@regtocline[3]{%
+ \ifnum #1>\c@tocdepth
+ \else
+ \vskip\z@\@plus.2\p@
+ {\hangindent\z@ \@afterindenttrue \interlinepenalty\@M
+ \if@RTL\rightskip\else\leftskip\fi\unitindent
+ \if@RTL\leftskip\else\rightskip\fi\unitindent\@plus 1fil
+ \parfillskip\z@
+ \@tempdima\unitindent
+ \parindent\z@
+ \leavevmode
+ \hbox{}\hskip -\if@RTL\rightskip\else\leftskip\fi\relax#2\nobreak
+ \hskip 1em \nobreak{\slshape #3}\par
+ }%
+ \fi}
+\if@oldtoc
+\renewcommand*\l@part[2]{%
+ \ifnum \c@tocdepth >-2\relax
+ \addpenalty{-\@highpenalty}%
+ \addvspace{2.25em \@plus\p@}%
+ \begingroup
+ \setlength\@tempdima{3em}%
+ \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
+ \parfillskip -\@pnumwidth
+ {\leavevmode
+ \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
+ \nobreak
+ \global\@nobreaktrue
+ \everypar{\global\@nobreakfalse\everypar{}}%
+ \endgroup
+ \fi}
+\else
+ \renewcommand*\l@part{%
+ \ifnum \c@tocdepth >-2\relax
+ \addpenalty{-\@highpenalty}%
+ \addvspace{2.25em \@plus \p@}%
+ \@regtocline{0}%
+ \fi}
+\fi
+\if@oldtoc
+\renewcommand*\l@chapter[2]{%
+ \addpenalty{-\@highpenalty}%
+ \vskip 1.0em \@plus\p@
+ \setlength\@tempdima{1.5em}%
+ \begingroup
+ \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
+ \parfillskip -\@pnumwidth
+ \leavevmode \bfseries
+ \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
+ \hskip -\if@RTL\rightskip\else\leftskip\fi
+ #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
+ \penalty\@highpenalty
+ \endgroup}
+\else
+ \renewcommand*\l@chapter{\@regtocline{0}}
+\fi
+\renewcommand*\left@footnote{%
+ \kern-3\p@
+ \kern.5\baselineskip
+ \hrule\@width\unitindent
+ \kern.4\baselineskip
+}
+\renewcommand*\right@footnote{%
+ \hbox to \columnwidth
+ {\beginR \vbox{%
+ \kern-3\p@
+ \kern.5\baselineskip
+ \hrule\@width\unitindent
+ \kern.4\baselineskip}\hfil\endR}
+}
+\renewenvironment{thebibliography}[1]
+ {\chapter*{\bibname}%
+ \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
+ \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
+ \list{\@biblabel{\@arabic\c@enumiv}}%
+ {\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \usecounter{enumiv}%
+ \let\p@enumiv\@empty
+ \renewcommand*\theenumiv{\@arabic\c@enumiv}}%
+ \sloppy\clubpenalty4000\widowpenalty4000%
+ \sfcode`\.\@m}
+ {\def\@noitemerr
+ {\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist}
+\renewcommand*\thesection{\thechapter\@SepMark\@arabic\c@section}
+\renewcommand*\thesubsection{\thesection\@SepMark\@arabic\c@subsection}
+\renewcommand*\thesubsubsection{\thesubsection\@SepMark\@arabic\c@subsubsection}
+\renewcommand*\theparagraph{\thesubsubsection\@SepMark\@arabic\c@paragraph}
+\renewcommand*\thesubparagraph{\theparagraph\@SepMark\@arabic\c@subparagraph}
+\renewcommand*\theequation{%
+ \ifnum \c@chapter>\z@ \thechapter\@SepMark\fi\@arabic\c@equation}
+\renewcommand*\thefigure{%
+ \ifnum\c@chapter>\z@\thechapter\@SepMark\fi\@arabic\c@figure}
+\renewcommand*\thetable{%
+ \ifnum\c@chapter>\z@\thechapter\@SepMark\fi\@arabic\c@table}
+\if@titlepage
+\renewcommand*\TitleFont{\rmfamily}
+\renewcommand*\maketitle{%
+ \begin{titlepage}%
+ \let\footnotesize\small
+ \let\right@footnote\relax
+ \let\left@footnote\relax
+ \let\textwidth@footnote\relax
+ \let \footnote \thanks
+ \long\def\@makefntext##1{\parindent\z@
+ \def\labelitemi{\textendash}\@revlabeltrue
+ \leavevmode\@textsuperscript{\@thefnmark}\kern1em\relax ##1}
+ \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
+ \if@compatibility\setcounter{page}{0}\fi
+ \null\vfil
+ \vskip 60\p@
+ \begin{center}%
+ \TitleFont
+ {\LARGE \def\\{\penalty -\@M}
+ \if@allcaps
+ \expandafter\uc@nothanks\@title\thanks\relax
+ \else
+ \@title
+ \fi\par}%
+ \vskip 3em%
+ {\large
+ \lineskip .75em \parindent\z@
+ \begin{tabular}[t]{c}%
+ \if@allcaps
+ \expandafter\uc@authornothanks\@author\and\relax
+ \else
+ \@author
+ \fi
+ \end{tabular}\par}%
+ \vskip 1.5em%
+ {\large
+ \if@allcaps
+ \uppercase\expandafter{\@date}%
+ \else
+ \@date
+ \fi\par}%
+ \end{center}\par
+ \@thanks
+ \vfil\null
+ \end{titlepage}%
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@title\@empty
+ \global\let\@date\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}
+\def\uc@nothanks#1\thanks{\uppercase{#1}\futurelet\@tempa\uc@tx}
+\def\uc@authornothanks#1\and{\uc@nothanks#1\thanks\relax
+ \futurelet\@tempa\uc@ax}
+\def\uc@ax{%
+ \ifx\@tempa\relax
+ \else
+ \\ \andname \\ \expandafter\uc@authornothanks
+ \fi}
+\def\uc@tx{\ifx\@tempa\relax
+ \else \expandafter\uc@ty \fi}
+\def\uc@ty#1{\thanks{#1}\uc@nothanks}
+\else
+\renewcommand*\maketitle{\par
+ \begingroup
+ \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
+ \def\@makefnmark{\rlap{%
+ \@textsuperscript{\normalfont\@thefnmark}}}%
+ \long\def\@makefntext{\@xmakefntext{%
+ \@textsuperscript{\normalfont\@thefnmark}}}%
+ \if@twocolumn
+ \ifnum \col@number=\@ne
+ \@maketitle
+ \else
+ \twocolumn[\@maketitle]%
+ \fi
+ \else
+ \newpage
+ \global\@topnum\z@
+ \@maketitle
+ \fi
+ \thispagestyle{plain}\@thanks
+ \endgroup
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\maketitle\relax
+ \global\let\@maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@title\@empty
+ \global\let\@date\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+ }
+\def\@maketitle{%
+ \newpage
+ \null
+ \vskip 2em%
+ \begin{center}%
+ \let \footnote \thanks
+ {\LARGE \TitleFont \@title \par}%
+ \vskip 1.5em%
+ {\large \TitleFont
+ \lineskip .5em%
+ \begin{tabular}[t]{c}%
+ \@author
+ \end{tabular}\par}%
+ \vskip 1em%
+ {\large \TitleFont \@date}%
+ \end{center}%
+ \par
+ \vskip 1.5em}
+\fi
+% \end{macrocode}
+% \iffalse
+%</rapport1-xetex-bidi.def>
+%<*rapport3-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{rapport3-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{rapport3-xetex-bidi.def}[2010/07/25 v0.3 bidi adaptations for rapport3 class for XeTeX engine]
+\if@titlepage
+\renewcommand*\TitleFont{\rmfamily}
+\renewcommand*\maketitle{%
+ \begin{titlepage}%
+ \let\footnotesize\small
+ \let\right@footnote\relax
+ \let\left@footnote\relax
+ \let\textwidth@footnote\relax
+ \let \footnote \thanks
+ \let \LTRfootnote \LTRthanks
+ \let \RTLfootnote \RTLthanks
+ \long\def\@makefntext##1{\parindent\z@
+ \def\labelitemi{\textendash}\@revlabeltrue
+ \leavevmode\@textsuperscript{\@thefnmark}\kern1em\relax ##1}
+ \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
+ \if@compatibility\setcounter{page}{0}\fi
+ \null\vfil
+ \vskip 60\p@
+ \begin{center}%
+ \TitleFont
+ {\LARGE \def\\{\penalty -\@M}
+ \if@allcaps
+ \expandafter\uc@nothanks\@title\thanks\relax
+ \else
+ \@title
+ \fi\par}%
+ \vskip 3em%
+ {\large
+ \lineskip .75em \parindent\z@
+ \begin{tabular}[t]{c}%
+ \if@allcaps
+ \expandafter\uc@authornothanks\@author\and\relax
+ \else
+ \@author
+ \fi
+ \end{tabular}\par}%
+ \vskip 1.5em%
+ {\large
+ \if@allcaps
+ \uppercase\expandafter{\@date}%
+ \else
+ \@date
+ \fi\par}%
+ \end{center}\par
+ \@thanks
+ \vfil\null
+ \end{titlepage}%
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\LTRthanks\relax
+ \global\let\RTLthanks\relax
+ \global\let\maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@title\@empty
+ \global\let\@date\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}
+\def\uc@nothanks#1\thanks{\uppercase{#1}\futurelet\@tempa\uc@tx}
+\def\uc@authornothanks#1\and{\uc@nothanks#1\thanks\relax
+ \futurelet\@tempa\uc@ax}
+\def\uc@ax{%
+ \ifx\@tempa\relax
+ \else
+ \\ \andname \\ \expandafter\uc@authornothanks
+ \fi}
+\def\uc@tx{\ifx\@tempa\relax
+ \else \expandafter\uc@ty \fi}
+\def\uc@ty#1{\thanks{#1}\uc@nothanks}
+\else
+\renewcommand*\maketitle{\par
+ \begingroup
+ \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
+ \def\@makefnmark{\rlap{%
+ \@textsuperscript{\normalfont\@thefnmark}}}%
+ \long\def\@makefntext{\@xmakefntext{%
+ \@textsuperscript{\normalfont\@thefnmark}}}%
+ \if@twocolumn
+ \ifnum \col@number=\@ne
+ \@maketitle
+ \else
+ \twocolumn[\@maketitle]%
+ \fi
+ \else
+ \newpage
+ \global\@topnum\z@
+ \@maketitle
+ \fi
+ \thispagestyle{plain}\@thanks
+ \endgroup
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\LTRthanks\relax
+ \global\let\RTLthanks\relax
+ \global\let\maketitle\relax
+ \global\let\@maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@title\@empty
+ \global\let\@date\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+ }
+\def\@maketitle{%
+ \newpage
+ \null
+ \vskip 2em%
+\if@titlecentered
+ \begin{center}%
+ \let \footnote \thanks
+ \let \LTRfootnote \LTRthanks
+ \let \RTLfootnote \RTLthanks
+ {\LARGE \TitleFont \@title \par}%
+ \vskip 1.5em%
+ {\large \TitleFont
+ \lineskip .5em%
+ \begin{tabular}[t]{c}%
+ \@author
+ \end{tabular}\par}%
+ \vskip 1em%
+ {\large \TitleFont \@date}%
+ \end{center}%
+ \else
+ {\LARGE \TitleFont \head@style \@title \par} \vskip 1.5em
+ {\large \TitleFont \lineskip .5em \tabcolsep\z@
+ \def\and{%%% \begin{tabular} has already started
+ \end{tabular}\hskip 1em plus .17fil
+ \if@RTL\begin{tabular}[t]{r}\else\begin{tabular}[t]{l}\fi}%% \end{tabular} will come
+ \if@RTL\begin{tabular}[t]{r}\else\begin{tabular}[t]{l}\fi\@author\end{tabular}\par}
+ \vskip 1em {\large \TitleFont \@date}
+ \fi
+ \par
+ \vskip 1.5em}
+\fi
+\renewcommand*\@regtocline[3]{%
+ \ifnum #1>\c@tocdepth
+ \else
+ \vskip\z@\@plus.2\p@
+ {\hangindent\z@ \@afterindenttrue \interlinepenalty\@M
+ \if@RTL\rightskip\else\leftskip\fi\unitindent
+ \if@RTL\leftskip\else\rightskip\fi\unitindent\@plus 1fil
+ \parfillskip\z@
+ \@tempdima\unitindent
+ \parindent\z@
+ \leavevmode
+ \hbox{}\hskip -\if@RTL\rightskip\else\leftskip\fi\relax#2\nobreak
+ \hskip 1em \nobreak{\slshape #3}\par
+ }%
+ \fi}
+\if@oldtoc
+\renewcommand*\l@part[2]{%
+ \ifnum \c@tocdepth >-2\relax
+ \addpenalty{-\@highpenalty}%
+ \addvspace{2.25em \@plus\p@}%
+ \begingroup
+ \setlength\@tempdima{3em}%
+ \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
+ \parfillskip -\@pnumwidth
+ {\leavevmode
+ \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
+ \nobreak
+ \global\@nobreaktrue
+ \everypar{\global\@nobreakfalse\everypar{}}%
+ \endgroup
+ \fi}
+\else
+ \renewcommand*\l@part{%
+ \ifnum \c@tocdepth >-2\relax
+ \addpenalty{-\@highpenalty}%
+ \addvspace{2.25em \@plus \p@}%
+ \@regtocline{0}%
+ \fi}
+\fi
+\if@oldtoc
+\renewcommand*\l@chapter[2]{%
+ \addpenalty{-\@highpenalty}%
+ \vskip 1.0em \@plus\p@
+ \setlength\@tempdima{1.5em}%
+ \begingroup
+ \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
+ \parfillskip -\@pnumwidth
+ \leavevmode \bfseries
+ \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
+ \hskip -\if@RTL\rightskip\else\leftskip\fi
+ #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
+ \penalty\@highpenalty
+ \endgroup}
+\else
+ \renewcommand*\l@chapter{\@regtocline{0}}
+\fi
+\renewcommand*\head@style{%
+ \interlinepenalty \@M
+ \hyphenpenalty=\@M \exhyphenpenalty=\@M
+ \if@RTL\leftskip\else\rightskip\fi=0cm plus .7\hsize\relax}
+\if@titlepage
+ \renewenvironment{abstract}{%
+ \titlepage
+ \null\vfil
+ \section*{\SectFont\abstractname}%
+ \noindent\ignorespaces}
+ {\par\vfil\null\endtitlepage}
+\else
+ \renewenvironment{abstract}{%
+ \if@twocolumn
+ \section*{\abstractname}%
+ \else
+ \bgroup\if@RTL\leftskip\else\rightskip\fi=\unitindent
+ \section*{\small\SectFont\abstractname}%
+ \noindent\ignorespaces
+ \fi}
+ {\if@twocolumn\else\par\egroup\fi}
+\fi
+\renewcommand*\thesection{\thechapter\@SepMark\@arabic\c@section}
+\renewcommand*\thesubsection{\thesection\@SepMark\@arabic\c@subsection}
+\renewcommand*\thesubsubsection{\thesubsection\@SepMark\@arabic\c@subsubsection}
+\renewcommand*\theparagraph{\thesubsubsection\@SepMark\@arabic\c@paragraph}
+\renewcommand*\thesubparagraph{\theparagraph\@SepMark\@arabic\c@subparagraph}
+\renewcommand*\thefigure{%
+ \ifnum\c@chapter>\z@\thechapter\@SepMark\fi\@arabic\c@figure}
+\renewcommand*\thetable{%
+ \ifnum\c@chapter>\z@\thechapter\@SepMark\fi\@arabic\c@table}
+\renewcommand*\theequation{%
+ \ifnum \c@chapter>\z@ \thechapter\@SepMark\fi\@arabic\c@equation}
+\renewenvironment{thebibliography}[1]
+ {\chapter*{\bibname}%
+ \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
+ \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
+ \list{\@biblabel{\@arabic\c@enumiv}}%
+ {\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \usecounter{enumiv}%
+ \let\p@enumiv\@empty
+ \renewcommand*\theenumiv{\@arabic\c@enumiv}}%
+ \sloppy\clubpenalty4000\widowpenalty4000%
+ \sfcode`\.\@m}
+ {\def\@noitemerr
+ {\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist}
+\renewcommand*\left@footnote{%
+ \kern-3\p@
+ \kern.5\baselineskip
+ \hrule\@width\unitindent
+ \kern.4\baselineskip
+}
+\renewcommand*\right@footnote{%
+ \hbox to \columnwidth
+ {\beginR \vbox{%
+ \kern-3\p@
+ \kern.5\baselineskip
+ \hrule\@width\unitindent
+ \kern.4\baselineskip}\hfil\endR}
+}
+\renewcommand*\head@style{%
+ \interlinepenalty \@M
+ \hyphenpenalty=\@M \exhyphenpenalty=\@M
+ \if@RTL\leftskip\else\rightskip\fi=0cm plus .7\hsize\relax}
+% \end{macrocode}
+% \iffalse
+%</rapport3-xetex-bidi.def>
+%<*refrep-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{refrep-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{refrep-xetex-bidi.def}[2010/07/25 v0.3 bidi adaptations for refrep class for XeTeX engine]
+\if@titlepage
+ \renewcommand\maketitle{\begin{titlepage}%
+ \let\footnotesize\small
+ \let\right@footnote\relax
+ \let\left@footnote\relax
+ \let\textwidth@footnote\relax
+ \let\footnote\thanks
+ \let\LTRfootnote\LTRthanks
+ \let\RTLfootnote\RTLthanks
+ \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
+ \def\@makefnmark%
+ {\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
+ \long\def\@makefntext##1{%
+ \@setpar{\@@par
+ \@tempdima = \hsize
+ \advance\@tempdima -1em
+ \parshape \@ne 1em \@tempdima}%
+ \par\parindent 1em \noindent
+ \hb@xt@\z@{\hss\@textsuperscript{\normalfont\@thefnmark}\,}##1}
+ \null\vfil
+ \vskip 60\p@
+ \begin{center}%
+ {\LARGE \@title \par}%
+ \vskip 3em%
+ {\large
+ \lineskip .75em%
+ \begin{tabular}[t]{c}%
+ \@author
+ \end{tabular}\par}%
+ \vskip 1.5em%
+ {\large \@date \par}% % Set date in \large size.
+ \end{center}\par
+ \@thanks
+ \vfil\null
+ \end{titlepage}%
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\LTRthanks\relax
+ \global\let\RTLthanks\relax
+ \global\let\maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@date\@empty
+ \global\let\@title\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+ }
+\else
+ \renewcommand\maketitle{\par
+ \begingroup
+ \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
+ \def\@makefnmark%
+ {\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
+ \long\def\@makefntext##1{%
+ \@setpar{\@@par
+ \@tempdima = \hsize
+ \advance\@tempdima -1em
+ \parshape \@ne 1em \@tempdima}%
+ \par\parindent 1em \noindent
+ \hb@xt@\z@{\hss\@textsuperscript{\normalfont\@thefnmark}\,}##1}
+ \if@twocolumn
+ \ifnum \col@number=\@ne
+ \@maketitle
+ \else
+ \twocolumn[\@maketitle]%
+ \fi
+ \else
+ \newpage
+ \global\@topnum\z@ % Prevents figures from going at top of page.
+ \@maketitle
+ \fi
+ \thispagestyle{empty}\@thanks
+ \endgroup
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\LTRthanks\relax
+ \global\let\RTLthanks\relax
+ \global\let\maketitle\relax
+ \global\let\@maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@date\@empty
+ \global\let\@title\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}
+ \def\@maketitle{%
+ \newpage
+ \null
+ \longthickrule\vskip1.5em%
+ \let \footnote \thanks
+ \let \LTRfootnote \LTRthanks
+ \let \RTLfootnote \RTLthanks
+ {\secshape \parskip\z@ \parindent\z@
+ \Large\bfseries \@title \par}%
+ \vskip1.5em\longthickrule\vskip1.5em%
+ {\normalsize
+ \lineskip .5em%
+ \begin{flushright}%
+ {\slshape\@author\par}
+ \vskip 1em%
+ {\@date}%
+ \end{flushright}\par}%
+ \vskip 1.5em}
+\fi
+\renewcommand*\l@part[2]{%
+ \ifnum \c@tocdepth >-2\relax
+ \addpenalty{-\@highpenalty}%
+ \addvspace{2.25em \@plus\p@}%
+ \begingroup
+ \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
+ \parfillskip -\@pnumwidth
+ {\leavevmode
+ \large \bfseries #1\hfil \hbox to\@pnumwidth{\hss #2}}\par
+ \nobreak
+ \global\@nobreaktrue
+ \everypar{\global\@nobreakfalse\everypar{}}%
+ \endgroup
+ \fi}
+\renewcommand*\l@chapter[2]{%
+ \ifnum \c@tocdepth >\m@ne
+ \addpenalty{-\@highpenalty}%
+ \vskip 1.0em \@plus\p@
+ \setlength\@tempdima{1.5em}%
+ \begingroup
+ \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
+ \parfillskip -\@pnumwidth
+ \leavevmode \bfseries
+ \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
+ \hskip -\if@RTL\rightskip\else\leftskip\fi
+ #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
+ \penalty\@highpenalty
+ \endgroup
+ \fi}
+\renewcommand\secshape{\if@RTL\rightskip\else\leftskip\fi=-\leftmarginwidth%
+ \if@RTL\leftskip\else\rightskip\fi=\@flushglue%
+ \hyphenpenalty=2000}
+\renewcommand\left@footnote{%
+ \kern-3\p@
+ \hrule\@width.4\columnwidth
+ \kern 2.6\p@}
+\renewcommand\right@footnote{%
+ \hbox to \columnwidth
+ {\beginR \vbox{%
+ \kern-3\p@
+ \hrule\@width.4\columnwidth
+ \kern 2.6\p@}\hfil\endR}}
+\renewcommand\theequation
+{\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@equation}
+\renewcommand\thefigure
+ {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@figure}
+\renewcommand\thetable%
+ {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@table}
+\renewcommand\thesection {\thechapter\@SepMark\@arabic\c@section}
+\renewcommand\thesubsection {\thesection\@SepMark\@arabic\c@subsection}
+\renewcommand\thesubsubsection {\thesubsection \@SepMark\@arabic\c@subsubsection}
+\renewcommand\theparagraph {\thesubsubsection\@SepMark\@arabic\c@paragraph}
+\renewcommand\thesubparagraph {\theparagraph\@SepMark\@arabic\c@subparagraph}
+\renewenvironment{thebibliography}[1]
+ {\chapter*{\bibname
+ \@mkboth{\bibname}{\bibname}}%
+ \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
+ \list{\@biblabel{\@arabic\c@enumiv}}%
+ {\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \usecounter{enumiv}%
+ \let\p@enumiv\@empty
+ \renewcommand\theenumiv{\@arabic\c@enumiv}}%
+ \sloppy
+ \clubpenalty4000
+ \@clubpenalty \clubpenalty
+ \widowpenalty4000%
+ \sfcode`\.=\@m}
+ {\def\@noitemerr
+ {\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist}
+% \end{macrocode}
+% \iffalse
+%</refrep-xetex-bidi.def>
+%<*report-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{report-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{report-xetex-bidi.def}[2010/07/25 v0.5 bidi adaptations for standard report class for XeTeX engine]
+ \if@titlepage
+ \renewcommand\maketitle{\begin{titlepage}%
+ \let\footnotesize\small
+ \let\right@footnote\relax
+ \let\left@footnote\relax
+ \let\textwidth@footnote\relax
+ \let \footnote \thanks
+ \let \LTRfootnote \LTRthanks
+ \let \RTLfootnote \RTLthanks
+ \null\vfil
+ \vskip 60\p@
+ \begin{center}%
+ {\LARGE \@title \par}%
+ \vskip 3em%
+ {\large
+ \lineskip .75em%
+ \begin{tabular}[t]{c}%
+ \@author
+ \end{tabular}\par}%
+ \vskip 1.5em%
+ {\large \@date \par}% % Set date in \large size.
+ \end{center}\par
+ \@thanks
+ \vfil\null
+ \end{titlepage}%
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\LTRthanks\relax
+ \global\let\RTLthanks\relax
+ \global\let\maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@date\@empty
+ \global\let\@title\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}
+\else
+\renewcommand\maketitle{\par
+ \begingroup
+ \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
+ \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
+ \long\def\@makefntext##1{\parindent 1em\noindent
+ \hb@xt@1.8em{%
+ \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
+ \if@twocolumn
+ \ifnum \col@number=\@ne
+ \@maketitle
+ \else
+ \twocolumn[\@maketitle]%
+ \fi
+ \else
+ \newpage
+ \global\@topnum\z@ % Prevents figures from going at top of page.
+ \@maketitle
+ \fi
+ \thispagestyle{plain}\@thanks
+ \endgroup
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\LTRthanks\relax
+ \global\let\RTLthanks\relax
+ \global\let\maketitle\relax
+ \global\let\@maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@date\@empty
+ \global\let\@title\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}
+\def\@maketitle{%
+ \newpage
+ \null
+ \vskip 2em%
+ \begin{center}%
+ \let \footnote \thanks
+ \let \LTRfootnote \LTRthanks
+ \let \RTLfootnote \RTLthanks
+ {\LARGE \@title \par}%
+ \vskip 1.5em%
+ {\large
+ \lineskip .5em%
+ \begin{tabular}[t]{c}%
+ \@author
+ \end{tabular}\par}%
+ \vskip 1em%
+ {\large \@date}%
+ \end{center}%
+ \par
+ \vskip 1.5em}
+\fi
+\renewcommand*\l@part[2]{%
+ \ifnum \c@tocdepth >-2\relax
+ \addpenalty{-\@highpenalty}%
+ \addvspace{2.25em \@plus\p@}%
+ \setlength\@tempdima{3em}%
+ \begingroup
+ \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
+ \parfillskip -\@pnumwidth
+ {\leavevmode
+ \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
+ \nobreak
+ \global\@nobreaktrue
+ \everypar{\global\@nobreakfalse\everypar{}}%
+ \endgroup
+ \fi}
+\renewcommand*\l@chapter[2]{%
+ \ifnum \c@tocdepth >\m@ne
+ \addpenalty{-\@highpenalty}%
+ \vskip 1.0em \@plus\p@
+ \setlength\@tempdima{1.5em}%
+ \begingroup
+ \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
+ \parfillskip -\@pnumwidth
+ \leavevmode \bfseries
+ \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
+ \hskip -\if@RTL\rightskip\else\leftskip\fi
+ #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
+ \penalty\@highpenalty
+ \endgroup
+ \fi}
+\renewcommand\left@footnote{%
+ \kern-3\p@
+ \hrule\@width.4\columnwidth
+ \kern2.6\p@}
+\renewcommand\right@footnote{%
+ \hbox to \columnwidth
+ {\beginR \vbox{%
+ \kern-3\p@
+ \hrule\@width.4\columnwidth
+ \kern2.6\p@}\hfil\endR}}
+\renewcommand\theequation
+ {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@equation}
+\renewcommand \thefigure
+ {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@figure}
+\renewcommand \thetable
+ {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@table}
+\renewcommand \thechapter {\@arabic\c@chapter}
+\renewcommand \thesection {\thechapter\@SepMark\@arabic\c@section}
+\renewcommand\thesubsection {\thesection\@SepMark\@arabic\c@subsection}
+\renewcommand\thesubsubsection{\thesubsection \@SepMark\@arabic\c@subsubsection}
+\renewcommand\theparagraph {\thesubsubsection\@SepMark\@arabic\c@paragraph}
+\renewcommand\thesubparagraph {\theparagraph\@SepMark\@arabic\c@subparagraph}
+\def\@makechapterhead#1{%
+ \vspace*{50\p@}%
+ {\parindent \z@ \if@RTL\raggedleft\else\raggedright\fi \normalfont
+ \ifnum \c@secnumdepth >\m@ne
+ \huge\bfseries \@chapapp\space \thechapter
+ \par\nobreak
+ \vskip 20\p@
+ \fi
+ \interlinepenalty\@M
+ \Huge \bfseries #1\par\nobreak
+ \vskip 40\p@
+ }}
+\def\@makeschapterhead#1{%
+ \vspace*{50\p@}%
+ {\parindent \z@ \if@RTL\raggedleft\else\raggedright\fi
+ \normalfont
+ \interlinepenalty\@M
+ \Huge \bfseries #1\par\nobreak
+ \vskip 40\p@
+ }}
+\renewenvironment{thebibliography}[1]
+ {\chapter*{\bibname}%
+ \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
+ \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
+ \list{\@biblabel{\@arabic\c@enumiv}}%
+ {\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \usecounter{enumiv}%
+ \let\p@enumiv\@empty
+ \renewcommand\theenumiv{\@arabic\c@enumiv}}%
+ \sloppy
+ \clubpenalty4000
+ \@clubpenalty \clubpenalty
+ \widowpenalty4000%
+ \sfcode`\.\@m}
+ {\def\@noitemerr
+ {\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist}
+% \end{macrocode}
+% \iffalse
+%</report-xetex-bidi.def>
+%<*scrartcl-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{scrartcl-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{scrartcl-xetex-bidi.def}[2010/07/25 v0.3 bidi adaptations for scrartcl class for XeTeX engine]
+\renewcommand*\maketitle[1][1]{%
+ \if@titlepage
+ \begin{titlepage}
+ \setcounter{page}{%
+ #1%
+ }%
+ \let\footnotesize\small
+ \let\right@footnote\relax
+ \let\left@footnote\relax
+ \let\textwidth@footnote\relax
+ \let\footnote\thanks
+ \let\LTRfootnote\LTRthanks
+ \let\RTLfootnote\RTLthanks
+ \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
+ \let\@oldmakefnmark\@makefnmark
+ \renewcommand*{\@makefnmark}{\rlap\@oldmakefnmark}%
+ \ifx\@extratitle\@empty \else
+ \noindent\@extratitle\next@tpage\cleardoubleemptypage
+ \thispagestyle{empty}%
+ \fi
+ \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative
+ \ifx\@titlehead\@empty \else
+ \begin{minipage}[t]{\textwidth}%
+ \@titlehead
+ \end{minipage}\par
+ \fi
+ \null\vfill
+ \begin{center}
+ \ifx\@subject\@empty \else
+ {\subject@font \@subject \par}%
+ \vskip 3em
+ \fi
+ {\titlefont\huge \@title\par}%
+ \vskip 1em
+ {\ifx\@subtitle\@empty\else\usekomafont{subtitle}\@subtitle\par\fi}%
+ \vskip 2em
+ {\Large \lineskip 0.75em
+ \begin{tabular}[t]{c}
+ \@author
+ \end{tabular}\par
+ }%
+ \vskip 1.5em
+ {\Large \@date \par}%
+ \vskip \z@ \@plus3fill
+ {\Large \@publishers \par}%
+ \vskip 3em
+ \end{center}\par
+ \@thanks
+ \vfill\null
+ \if@twoside\next@tpage
+ \begin{minipage}[t]{\textwidth}
+ \@uppertitleback
+ \end{minipage}\par
+ \vfill
+ \begin{minipage}[b]{\textwidth}
+ \@lowertitleback
+ \end{minipage}
+ \fi
+ \ifx\@dedication\@empty \else
+ \next@tpage\null\vfill
+ {\centering \Large \@dedication \par}%
+ \vskip \z@ \@plus3fill
+ \if@twoside \next@tpage\cleardoubleemptypage \fi
+ \fi
+ \end{titlepage}
+ \else
+ \par
+ \@tempcnta=%
+ #1%
+ \relax\ifnum\@tempcnta=1\else
+ \ClassWarning{\KOMAClassName}{%
+ Optional argument of \string\maketitle\space ignored
+ at\MessageBreak
+ notitlepage-mode%
+ }%
+ \fi
+ \begingroup
+ \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
+ \let\@oldmakefnmark\@makefnmark
+ \renewcommand*{\@makefnmark}{\rlap\@oldmakefnmark}
+ \if@twocolumn
+ \ifnum \col@number=\@ne
+ \@maketitle
+ \else
+ \twocolumn[\@maketitle]%
+ \fi
+ \else
+ \newpage
+ \global\@topnum\z@
+ \@maketitle
+ \fi
+ \thispagestyle{\titlepagestyle}\@thanks
+ \endgroup
+ \fi
+ \setcounter{footnote}{0}%
+ \let\thanks\relax
+ \let\LTRthanks\relax
+ \let\RTLthanks\relax
+ \let\maketitle\relax
+ \let\@maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@date\@empty
+ \global\let\@title\@empty
+ \global\let\@subtitle\@empty
+ \global\let\@extratitle\@empty
+ \global\let\@titlehead\@empty
+ \global\let\@subject\@empty
+ \global\let\@publishers\@empty
+ \global\let\@uppertitleback\@empty
+ \global\let\@lowertitleback\@empty
+ \global\let\@dedication\@empty
+ \global\let\author\relax
+ \global\let\title\relax
+ \global\let\extratitle\relax
+ \global\let\titlehead\relax
+ \global\let\subject\relax
+ \global\let\publishers\relax
+ \global\let\uppertitleback\relax
+ \global\let\lowertitleback\relax
+ \global\let\dedication\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}%
+\renewcommand*{\@maketitle}{%
+ \clearpage
+ \let\footnote\thanks
+ \let\LTRfootnote\LTRthanks
+ \let\RTLfootnote\RTLthanks
+ \ifx\@extratitle\@empty \else
+ \noindent\@extratitle \next@tpage \if@twoside \null\next@tpage \fi
+ \fi
+ \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative
+ \ifx\@titlehead\@empty \else
+ \begin{minipage}[t]{\textwidth}
+ \@titlehead
+ \end{minipage}\par
+ \fi
+ \null
+ \vskip 2em%
+ \begin{center}%
+ \ifx\@subject\@empty \else
+ {\subject@font \@subject \par}
+ \vskip 1.5em
+ \fi
+ {\titlefont\huge \@title \par}%
+ \vskip .5em
+ {\ifx\@subtitle\@empty\else\usekomafont{subtitle}\@subtitle\par\fi}%
+ \vskip 1em
+ {\Large
+ \lineskip .5em%
+ \begin{tabular}[t]{c}
+ \@author
+ \end{tabular}\par
+ }%
+ \vskip 1em%
+ {\Large \@date \par}%
+ \vskip \z@ \@plus 1em
+ {\Large \@publishers \par}
+ \ifx\@dedication\@empty \else
+ \vskip 2em
+ {\Large \@dedication \par}
+ \fi
+ \end{center}%
+ \par
+ \vskip 2em
+}%
+\renewcommand*\l@part[2]{%
+ \ifnum \c@tocdepth >\m@ne\relax
+ \addpenalty{\@secpenalty}%
+ \addvspace{2.25em \@plus\p@}%
+ \setlength{\@tempdima}{2em}%
+ \if@tocleft
+ \ifx\toc@l@number\@empty\else
+ \setlength\@tempdima{0\toc@l@number}%
+ \fi
+ \fi
+ \begingroup
+ \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
+ \parfillskip -\@pnumwidth
+ \leavevmode
+ \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
+ \hskip -\if@RTL\rightskip\else\leftskip\fi
+ \usekomafont{partentry}{#1\nobreak
+ \usekomafont{partentrypagenumber}{\hfil\nobreak
+ \hb@xt@\@pnumwidth{\hss#2}}}\par
+ \ifnum \scr@compatibility>\@nameuse{scr@v@2.96}\relax
+ \endgroup
+ \penalty20010
+ \else
+ \if@compatibility
+ \global\@nobreaktrue
+ \everypar{\global\@nobreakfalse\everypar{}}%
+ \else
+ \penalty\@highpenalty
+ \fi
+ \endgroup
+ \fi
+ \fi
+}
+\renewcommand*\l@section[2]{%
+ \ifnum \c@tocdepth >\z@
+ \ifnum \lastpenalty<20009
+ \addpenalty{\@secpenalty}%
+ \fi
+ \addvspace{1.0em \@plus\p@}%
+ \setlength\@tempdima{1.5em}%
+ \if@tocleft
+ \ifx\toc@l@number\@empty\else
+ \setlength\@tempdima{0\toc@l@number}%
+ \fi
+ \fi
+ \begingroup
+ \raggedsectionentry
+ \parindent \z@ \advance\if@RTL\leftskip\else\rightskip\fi \@pnumwidth
+ \parfillskip -\@pnumwidth
+ \interlinepenalty\@M
+ \leavevmode
+ \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rightskip\else\leftskip\fi
+ \usekomafont{sectionentry}{#1\nobreak
+ \usekomafont{sectionentrypagenumber}{%
+ \hfill\nobreak
+ \hb@xt@\@pnumwidth{\hss#2}}}\par
+ \endgroup
+ \ifnum \scr@compatibility>\@nameuse{scr@v@2.96}\relax
+ \penalty20008
+ \fi
+ \fi
+}
+\def\raggedsection{\if@RTL\raggedleft\else\raggedright\fi}
+\def\raggedpart{\if@RTL\raggedleft\else\raggedright\fi}
+\renewcommand*\autodot{\if@altsecnumformat\@SepMark\fi}
+\renewcommand*{\thesubsection}{\thesection\@SepMark\@arabic\c@subsection}
+\renewcommand*{\thesubsubsection}{%
+ \thesubsection\@SepMark\@arabic\c@subsubsection
+}
+\renewcommand*{\theparagraph}{\thesubsubsection\@SepMark\@arabic\c@paragraph}
+\renewcommand*{\thesubparagraph}{%
+ \theparagraph\@SepMark\@arabic\c@subparagraph
+}
+\renewenvironment{thebibliography}[1]{%
+ \if@bib@break@
+ \bib@beginhook
+ \else
+ \bib@heading
+ \ifx\bibpreamble\relax\else\ifx\bibpreamble\@empty\else
+ \noindent\bibpreamble\par\nobreak
+ \fi\fi
+ \bib@beginhook
+ \bib@before@hook
+ \fi
+ \renewcommand{\BreakBibliography}[1]{%
+ \@bib@break
+ \end{thebibliography}%
+ \begingroup ##1\endgroup
+ \begin{thebibliography}{#1}
+ }%
+ \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
+ \list{%
+ \@biblabel{\@arabic\c@enumiv}%
+ }{%
+ \settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \if@bib@break@
+ \edef\@tempa{%
+ \noexpand\usecounter{enumiv}%
+ \noexpand\setcounter{enumiv}{\the\c@enumiv}%
+ }\@tempa
+ \no@bib@break
+ \else
+ \usecounter{enumiv}%
+ \fi
+ \let\p@enumiv\@empty
+ \renewcommand*\theenumiv{\@arabic\c@enumiv}%
+ }%
+ \sloppy\clubpenalty4000 \widowpenalty4000
+ \sfcode`\.=\@m
+}{%
+ \if@bib@break@
+ \def\@noitemerr{%
+ \@latex@warning{%
+ \string\BreakBibliography\space at begin of `thebibliography'
+ environment\MessageBreak
+ or following \string\BreakBibliography}%
+ }%
+ \else
+ \def\@noitemerr{%
+ \@latex@warning{%
+ Empty `thebibliography' environment or
+ \string\BreakBibliography\MessageBreak
+ before end of `thebibliography' environment}%
+ }%
+ \fi
+ \endlist
+ \if@bib@break@
+ \else
+ \bib@after@hook
+ \let\bib@before@hook\@empty
+ \let\bib@after@hook\@empty
+ \fi
+ \bib@endhook
+}
+\renewcommand*\left@footnote{%
+ \kern-3\p@
+ \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi
+ \hrule\@width.4\columnwidth
+ \kern 2.6\p@}
+\renewcommand*\right@footnote{%
+ \hbox to \columnwidth
+ {\beginR \vbox{%
+ \kern-3\p@
+ \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi
+ \hrule\@width.4\columnwidth
+ \kern 2.6\p@}\hfil\endR}}
+\renewcommand*{\raggeddictum}{\if@RTL\raggedright\else\raggedleft\fi}
+\renewcommand*{\raggeddictumtext}{\if@RTL\raggedleft\else\raggedright\fi}
+\renewcommand*{\raggeddictumauthor}{\if@RTL\raggedright\else\raggedleft\fi}
+\renewcommand\marginline[1]{%
+ \marginpar[\if@RTL\raggedright\else\raggedleft\fi{#1}]{\if@RTL\raggedleft\else\raggedright\fi #1}%
+}
+% \end{macrocode}
+% \iffalse
+%</scrartcl-xetex-bidi.def>
+%<*scrbook-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{scrbook-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{scrbook-xetex-bidi.def}[2010/07/25 v0.3 bidi adaptations for scrbook class for XeTeX engine]
+\renewcommand*\maketitle[1][1]{%
+ \if@titlepage
+ \begin{titlepage}
+ \setcounter{page}{%
+ #1%
+ }%
+ \let\footnotesize\small
+ \let\right@footnote\relax
+ \let\left@footnote\relax
+ \let\textwidth@footnote\relax
+ \let\footnote\thanks
+ \let\LTRfootnote\LTRthanks
+ \let\RTLfootnote\RTLthanks
+ \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
+ \let\@oldmakefnmark\@makefnmark
+ \renewcommand*{\@makefnmark}{\rlap\@oldmakefnmark}%
+ \ifx\@extratitle\@empty \else
+ \noindent\@extratitle\next@tpage\cleardoubleemptypage
+ \thispagestyle{empty}%
+ \fi
+ \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative
+ \ifx\@titlehead\@empty \else
+ \begin{minipage}[t]{\textwidth}%
+ \@titlehead
+ \end{minipage}\par
+ \fi
+ \null\vfill
+ \begin{center}
+ \ifx\@subject\@empty \else
+ {\subject@font \@subject \par}%
+ \vskip 3em
+ \fi
+ {\titlefont\huge \@title\par}%
+ \vskip 1em
+ {\ifx\@subtitle\@empty\else\usekomafont{subtitle}\@subtitle\par\fi}%
+ \vskip 2em
+ {\Large \lineskip 0.75em
+ \begin{tabular}[t]{c}
+ \@author
+ \end{tabular}\par
+ }%
+ \vskip 1.5em
+ {\Large \@date \par}%
+ \vskip \z@ \@plus3fill
+ {\Large \@publishers \par}%
+ \vskip 3em
+ \end{center}\par
+ \@thanks
+ \vfill\null
+ \if@twoside\next@tpage
+ \begin{minipage}[t]{\textwidth}
+ \@uppertitleback
+ \end{minipage}\par
+ \vfill
+ \begin{minipage}[b]{\textwidth}
+ \@lowertitleback
+ \end{minipage}
+ \fi
+ \ifx\@dedication\@empty \else
+ \next@tpage\null\vfill
+ {\centering \Large \@dedication \par}%
+ \vskip \z@ \@plus3fill
+ \if@twoside \next@tpage\cleardoubleemptypage \fi
+ \fi
+ \end{titlepage}
+ \else
+ \par
+ \@tempcnta=%
+ #1%
+ \relax\ifnum\@tempcnta=1\else
+ \ClassWarning{\KOMAClassName}{%
+ Optional argument of \string\maketitle\space ignored
+ at\MessageBreak
+ notitlepage-mode%
+ }%
+ \fi
+ \begingroup
+ \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
+ \let\@oldmakefnmark\@makefnmark
+ \renewcommand*{\@makefnmark}{\rlap\@oldmakefnmark}
+ \if@twocolumn
+ \ifnum \col@number=\@ne
+ \@maketitle
+ \else
+ \twocolumn[\@maketitle]%
+ \fi
+ \else
+ \newpage
+ \global\@topnum\z@
+ \@maketitle
+ \fi
+ \thispagestyle{\titlepagestyle}\@thanks
+ \endgroup
+ \fi
+ \setcounter{footnote}{0}%
+ \let\thanks\relax
+ \let\LTRthanks\relax
+ \let\RTLthanks\relax
+ \let\maketitle\relax
+ \let\@maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@date\@empty
+ \global\let\@title\@empty
+ \global\let\@subtitle\@empty
+ \global\let\@extratitle\@empty
+ \global\let\@titlehead\@empty
+ \global\let\@subject\@empty
+ \global\let\@publishers\@empty
+ \global\let\@uppertitleback\@empty
+ \global\let\@lowertitleback\@empty
+ \global\let\@dedication\@empty
+ \global\let\author\relax
+ \global\let\title\relax
+ \global\let\extratitle\relax
+ \global\let\titlehead\relax
+ \global\let\subject\relax
+ \global\let\publishers\relax
+ \global\let\uppertitleback\relax
+ \global\let\lowertitleback\relax
+ \global\let\dedication\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}%
+\renewcommand*{\@maketitle}{%
+ \clearpage
+ \let\footnote\thanks
+ \let\LTRfootnote\LTRthanks
+ \let\RTLfootnote\RTLthanks
+ \ifx\@extratitle\@empty \else
+ \noindent\@extratitle \next@tpage \if@twoside \null\next@tpage \fi
+ \fi
+ \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative
+ \ifx\@titlehead\@empty \else
+ \begin{minipage}[t]{\textwidth}
+ \@titlehead
+ \end{minipage}\par
+ \fi
+ \null
+ \vskip 2em%
+ \begin{center}%
+ \ifx\@subject\@empty \else
+ {\subject@font \@subject \par}
+ \vskip 1.5em
+ \fi
+ {\titlefont\huge \@title \par}%
+ \vskip .5em
+ {\ifx\@subtitle\@empty\else\usekomafont{subtitle}\@subtitle\par\fi}%
+ \vskip 1em
+ {\Large
+ \lineskip .5em%
+ \begin{tabular}[t]{c}
+ \@author
+ \end{tabular}\par
+ }%
+ \vskip 1em%
+ {\Large \@date \par}%
+ \vskip \z@ \@plus 1em
+ {\Large \@publishers \par}
+ \ifx\@dedication\@empty \else
+ \vskip 2em
+ {\Large \@dedication \par}
+ \fi
+ \end{center}%
+ \par
+ \vskip 2em
+}%
+\renewcommand*\l@part[2]{%
+ \ifnum \c@tocdepth >-2\relax
+ \addpenalty{-\@highpenalty}%
+ \addvspace{2.25em \@plus\p@}%
+ \setlength{\@tempdima}{2em}%
+ \if@tocleft
+ \ifx\toc@l@number\@empty\else
+ \setlength\@tempdima{0\toc@l@number}%
+ \fi
+ \fi
+ \begingroup
+ \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
+ \parfillskip -\@pnumwidth
+ \leavevmode
+ \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
+ \hskip -\if@RTL\rightskip\else\leftskip\fi
+ \usekomafont{partentry}{#1\nobreak
+ \usekomafont{partentrypagenumber}{\hfil\nobreak
+ \hb@xt@\@pnumwidth{\hss#2}}}\par
+ \ifnum \scr@compatibility>\@nameuse{scr@v@2.96}\relax
+ \endgroup
+ \penalty20010
+ \else
+ \penalty\@highpenalty
+ \endgroup
+ \fi
+ \fi
+}\renewcommand*\l@part[2]{%
+ \ifnum \c@tocdepth >-2\relax
+ \addpenalty{-\@highpenalty}%
+ \addvspace{2.25em \@plus\p@}%
+ \setlength{\@tempdima}{2em}%
+ \if@tocleft
+ \ifx\toc@l@number\@empty\else
+ \setlength\@tempdima{0\toc@l@number}%
+ \fi
+ \fi
+ \begingroup
+ \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
+ \parfillskip -\@pnumwidth
+ \leavevmode
+ \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
+ \hskip -\if@RTL\rightskip\else\leftskip\fi
+ \usekomafont{partentry}{#1\nobreak
+ \usekomafont{partentrypagenumber}{\hfil\nobreak
+ \hb@xt@\@pnumwidth{\hss#2}}}\par
+ \ifnum \scr@compatibility>\@nameuse{scr@v@2.96}\relax
+ \endgroup
+ \penalty20010
+ \else
+ \penalty\@highpenalty
+ \endgroup
+ \fi
+ \fi
+}
+\renewcommand*\l@chapter[2]{%
+ \ifnum \c@tocdepth >\m@ne
+ \ifnum \lastpenalty<20010
+ \addpenalty{-\@highpenalty}%
+ \fi
+ \vskip 1.0em \@plus\p@
+ \setlength\@tempdima{1.5em}%
+ \if@tocleft
+ \ifx\toc@l@number\@empty\else
+ \setlength\@tempdima{0\toc@l@number}%
+ \fi
+ \fi
+ \begingroup
+ \raggedchapterentry
+ \parindent \z@ \advance\if@RTL\leftskip\else\rightskip\fi \@pnumwidth
+ \parfillskip -\@pnumwidth
+ \interlinepenalty\@M
+ \leavevmode
+ \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rightskip\else\leftskip\fi
+ \usekomafont{chapterentry}{#1\nobreak
+ \usekomafont{chapterentrypagenumber}{%
+ \hfill\nobreak
+ \hb@xt@\@pnumwidth{\hss#2}}}\par
+ \ifnum \scr@compatibility>\@nameuse{scr@v@2.96}\relax
+ \endgroup
+ \penalty20009
+ \else
+ \penalty\@highpenalty
+ \endgroup
+ \fi
+ \fi
+}
+\def\raggedsection{\if@RTL\raggedleft\else\raggedright\fi}
+\renewcommand*\autodot{\if@altsecnumformat\@SepMark\fi}
+\renewcommand*\thesection{%
+ \ifnum \scr@compatibility>\@nameuse{scr@v@2.97d}\relax
+ \if@mainmatter\thechapter\@SepMark\fi
+ \else
+ \thechapter\@SepMark%
+ \fi
+ \@arabic\c@section
+}
+\renewcommand*{\thesubsection}{\thesection\@SepMark\@arabic\c@subsection}
+\renewcommand*{\thesubsubsection}{%
+ \thesubsection\@SepMark\@arabic\c@subsubsection
+}
+\renewcommand*{\theparagraph}{\thesubsubsection\@SepMark\@arabic\c@paragraph}
+\renewcommand*{\thesubparagraph}{%
+ \theparagraph\@SepMark\@arabic\c@subparagraph
+}
+\renewcommand*\thefigure{%
+ \ifnum \scr@compatibility>\@nameuse{scr@v@2.97d}\relax
+ \if@mainmatter\thechapter\@SepMark\fi
+ \else
+ \thechapter\@SepMark%
+ \fi
+ \@arabic\c@figure
+}
+\renewcommand*\thetable{%
+ \ifnum \scr@compatibility>\@nameuse{scr@v@2.97d}\relax
+ \if@mainmatter\thechapter\@SepMark\fi
+ \else
+ \thechapter\@SepMark%
+ \fi
+ \@arabic\c@table
+}
+\renewcommand*\theequation{%
+ \ifnum \scr@compatibility>\@nameuse{scr@v@2.97d}\relax
+ \if@mainmatter\thechapter\@SepMark\fi
+ \else
+ \thechapter\@SepMark%
+ \fi
+ \@arabic\c@equation
+}
+\renewenvironment{thebibliography}[1]{%
+ \if@bib@break@
+ \bib@beginhook
+ \else
+ \ifx\bibpreamble\relax\else\ifx\bibpreamble\@empty\else
+ \setchapterpreamble{\bibpreamble}%
+ \fi\fi
+ \bib@heading
+ \bib@beginhook
+ \bib@before@hook
+ \fi
+ \renewcommand{\BreakBibliography}[1]{%
+ \@bib@break
+ \end{thebibliography}%
+ \begingroup ##1\endgroup
+ \begin{thebibliography}{#1}
+ }%
+ \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
+ \list{%
+ \@biblabel{\@arabic\c@enumiv}%
+ }{%
+ \settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \if@bib@break@
+ \edef\@tempa{%
+ \noexpand\usecounter{enumiv}%
+ \noexpand\setcounter{enumiv}{\the\c@enumiv}%
+ }\@tempa
+ \no@bib@break
+ \else
+ \usecounter{enumiv}%
+ \fi
+ \let\p@enumiv\@empty
+ \renewcommand*\theenumiv{\@arabic\c@enumiv}%
+ }%
+ \sloppy\clubpenalty4000 \widowpenalty4000
+ \sfcode`\.=\@m
+}{%
+ \if@bib@break@
+ \def\@noitemerr{%
+ \@latex@warning{%
+ \string\BreakBibliography\space at begin of `thebibliography'
+ environment\MessageBreak
+ or following \string\BreakBibliography}%
+ }%
+ \else
+ \def\@noitemerr{%
+ \@latex@warning{%
+ Empty `thebibliography' environment or
+ \string\BreakBibliography\MessageBreak
+ before end of `thebibliography' environment}%
+ }%
+ \fi
+ \endlist
+ \if@bib@break@
+ \else
+ \bib@after@hook
+ \let\bib@before@hook\@empty
+ \let\bib@after@hook\@empty
+ \fi
+ \bib@endhook
+}
+\renewcommand*\left@footnote{%
+ \kern-3\p@
+ \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi
+ \hrule\@width.4\columnwidth
+ \kern 2.6\p@}
+\renewcommand*\right@footnote{%
+ \hbox to \columnwidth
+ {\beginR \vbox{%
+ \kern-3\p@
+ \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi
+ \hrule\@width.4\columnwidth
+ \kern 2.6\p@}\hfil\endR}}
+\renewcommand*{\raggeddictum}{\if@RTL\raggedright\else\raggedleft\fi}
+\renewcommand*{\raggeddictumtext}{\if@RTL\raggedleft\else\raggedright\fi}
+\renewcommand*{\raggeddictumauthor}{\if@RTL\raggedright\else\raggedleft\fi}
+\renewcommand\marginline[1]{%
+ \marginpar[\if@RTL\raggedright\else\raggedleft\fi{#1}]{\if@RTL\raggedleft\else\raggedright\fi #1}%
+}
+% \end{macrocode}
+% \iffalse
+%</scrbook-xetex-bidi.def>
+%<*scrlettr-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{scrlettr-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{scrlettr-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for scrlettr class for XeTeX engine]
+\def\@datefield{\@reffalse
+ \ifx\varyourref\@empty \else \@reftrue \fi
+ \ifx\varyourmail\@empty \else \@reftrue \fi
+ \ifx\varmyref\@empty \else \@reftrue \fi
+ \ifx\varcustomer\@empty \else \@reftrue \fi
+ \ifx\varinvoice\@empty \else \@reftrue \fi
+ \ifx\varrefitemi\@empty \else \@reftrue \fi
+ \ifx\varrefitemii\@empty \else \@reftrue \fi
+ \ifx\varrefitemiii\@empty \else \@reftrue \fi
+ \vskip -\parskip
+ \vskip \refvskip
+ \if@ref
+ \ifx\varyourref\@empty \else
+ \settowidth{\sc@temp}{\varyourref}
+ \setbox0\hbox{\scriptsize \sf \yourrefname}
+ \ifdim \sc@temp > \wd0 \sc@@temp\sc@temp \else \sc@@temp\wd0 \fi
+ \parbox[t]{\sc@@temp}{\noindent \box0\par \varyourref}\hfill
+ \fi
+ \ifx\varyourmail\@empty \else
+ \settowidth{\sc@temp}{\varyourmail}
+ \setbox0\hbox{\scriptsize \sf \yourmailname}
+ \ifdim \sc@temp > \wd0 \sc@@temp\sc@temp \else \sc@@temp\wd0 \fi
+ \parbox[t]{\sc@@temp}{\noindent \box0\par \varyourmail}\hfill
+ \fi
+ \ifx\varmyref\@empty \else
+ \settowidth{\sc@temp}{\varmyref}
+ \setbox0\hbox{\scriptsize \sf \myrefname}
+ \ifdim \sc@temp > \wd0 \sc@@temp\sc@temp \else \sc@@temp\wd0 \fi
+ \parbox[t]{\sc@@temp}{\noindent \box0\par \varmyref}\hfill
+ \fi
+ \ifx\varcustomer\@empty \else
+ \settowidth{\sc@temp}{\varcustomer}
+ \setbox0\hbox{\scriptsize \sf \customername}
+ \ifdim \sc@temp > \wd0 \sc@@temp\sc@temp \else \sc@@temp\wd0 \fi
+ \parbox[t]{\sc@@temp}{\noindent \box0\par \varcustomer}\hfill
+ \fi
+ \ifx\varinvoice\@empty \else
+ \settowidth{\sc@temp}{\varinvoice}
+ \setbox0\hbox{\scriptsize \sf \invoicename}
+ \ifdim \sc@temp > \wd0 \sc@@temp\sc@temp \else \sc@@temp\wd0 \fi
+ \parbox[t]{\sc@@temp}{\noindent \box0\par \varinvoice}\hfill
+ \fi
+ \ifx\varrefitemi\@empty \else
+ \settowidth{\sc@temp}{\varrefitemi}
+ \setbox0\hbox{\scriptsize \sf \varrefitemnamei}
+ \ifdim \sc@temp > \wd0 \sc@@temp\sc@temp \else \sc@@temp\wd0 \fi
+ \parbox[t]{\sc@@temp}{\noindent \box0\par \varrefitemi}\hfill
+ \fi
+ \ifx\varrefitemii\@empty \else
+ \settowidth{\sc@temp}{\varrefitemii}
+ \setbox0\hbox{\scriptsize \sf \varrefitemnameii}
+ \ifdim \sc@temp > \wd0 \sc@@temp\sc@temp \else \sc@@temp\wd0 \fi
+ \parbox[t]{\sc@@temp}{\noindent \box0\par \varrefitemii}\hfill
+ \fi
+ \ifx\varrefitemiii\@empty \else
+ \settowidth{\sc@temp}{\varrefitemiii}
+ \setbox0\hbox{\scriptsize \sf \varrefitemnameiii}
+ \ifdim \sc@temp > \wd0 \sc@@temp\sc@temp \else \sc@@temp\wd0 \fi
+ \parbox[t]{\sc@@temp}{\noindent \box0\par \varrefitemiii}\hfill
+ \fi
+ \ifx\@date\@empty \else
+ \settowidth{\sc@temp}{\@date}
+ \setbox0\hbox{\scriptsize \sf \datename}
+ \ifdim \sc@temp > \wd0 \sc@@temp\sc@temp \else \sc@@temp\wd0 \fi
+ \parbox[t]{\sc@@temp}{\noindent \box0\par \@date}
+ \fi
+ \par
+ \vspace{2.5\baselineskip}
+ \else
+ {\ifx\@date\@empty \else \if@RTL\raggedright\else\raggedleft\fi\fromplace\ \@date\par \fi}
+ \vspace{1.5\baselineskip}
+ \fi}
+\long\def\closing#1{\par\nobreak\vspace{0.5\baselineskip}
+ \stopbreaks \noindent \sc@temp\textwidth \advance\sc@temp by
+ -\sigindent \hspace{\sigindent}%
+ \parbox{\sc@temp}{\if@RTL\raggedleft\else\raggedright\fi\ignorespaces #1\mbox{}\\[\presig@skip]
+ \fromsig\strut}\par
+ \vspace{1.5\baselineskip}}
+% \end{macrocode}
+% \iffalse
+%</scrlettr-xetex-bidi.def>
+%<*scrreprt-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{scrreprt-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{scrreprt-xetex-bidi.def}[2010/07/25 v0.3 bidi adaptations for scrreprt class for XeTeX engine]
+\renewcommand*\maketitle[1][1]{%
+ \if@titlepage
+ \begin{titlepage}
+ \setcounter{page}{%
+ #1%
+ }%
+ \let\footnotesize\small
+ \let\right@footnote\relax
+ \let\left@footnote\relax
+ \let\textwidth@footnote\relax
+ \let\footnote\thanks
+ \let\LTRfootnote\LTRthanks
+ \let\RTLfootnote\RTLthanks
+ \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
+ \let\@oldmakefnmark\@makefnmark
+ \renewcommand*{\@makefnmark}{\rlap\@oldmakefnmark}%
+ \ifx\@extratitle\@empty \else
+ \noindent\@extratitle\next@tpage\cleardoubleemptypage
+ \thispagestyle{empty}%
+ \fi
+ \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative
+ \ifx\@titlehead\@empty \else
+ \begin{minipage}[t]{\textwidth}%
+ \@titlehead
+ \end{minipage}\par
+ \fi
+ \null\vfill
+ \begin{center}
+ \ifx\@subject\@empty \else
+ {\subject@font \@subject \par}%
+ \vskip 3em
+ \fi
+ {\titlefont\huge \@title\par}%
+ \vskip 1em
+ {\ifx\@subtitle\@empty\else\usekomafont{subtitle}\@subtitle\par\fi}%
+ \vskip 2em
+ {\Large \lineskip 0.75em
+ \begin{tabular}[t]{c}
+ \@author
+ \end{tabular}\par
+ }%
+ \vskip 1.5em
+ {\Large \@date \par}%
+ \vskip \z@ \@plus3fill
+ {\Large \@publishers \par}%
+ \vskip 3em
+ \end{center}\par
+ \@thanks
+ \vfill\null
+ \if@twoside\next@tpage
+ \begin{minipage}[t]{\textwidth}
+ \@uppertitleback
+ \end{minipage}\par
+ \vfill
+ \begin{minipage}[b]{\textwidth}
+ \@lowertitleback
+ \end{minipage}
+ \fi
+ \ifx\@dedication\@empty \else
+ \next@tpage\null\vfill
+ {\centering \Large \@dedication \par}%
+ \vskip \z@ \@plus3fill
+ \if@twoside \next@tpage\cleardoubleemptypage \fi
+ \fi
+ \end{titlepage}
+ \else
+ \par
+ \@tempcnta=%
+ #1%
+ \relax\ifnum\@tempcnta=1\else
+ \ClassWarning{\KOMAClassName}{%
+ Optional argument of \string\maketitle\space ignored
+ at\MessageBreak
+ notitlepage-mode%
+ }%
+ \fi
+ \begingroup
+ \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
+ \let\@oldmakefnmark\@makefnmark
+ \renewcommand*{\@makefnmark}{\rlap\@oldmakefnmark}
+ \if@twocolumn
+ \ifnum \col@number=\@ne
+ \@maketitle
+ \else
+ \twocolumn[\@maketitle]%
+ \fi
+ \else
+ \newpage
+ \global\@topnum\z@
+ \@maketitle
+ \fi
+ \thispagestyle{\titlepagestyle}\@thanks
+ \endgroup
+ \fi
+ \setcounter{footnote}{0}%
+ \let\thanks\relax
+ \let\LTRthanks\relax
+ \let\RTLthanks\relax
+ \let\maketitle\relax
+ \let\@maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@date\@empty
+ \global\let\@title\@empty
+ \global\let\@subtitle\@empty
+ \global\let\@extratitle\@empty
+ \global\let\@titlehead\@empty
+ \global\let\@subject\@empty
+ \global\let\@publishers\@empty
+ \global\let\@uppertitleback\@empty
+ \global\let\@lowertitleback\@empty
+ \global\let\@dedication\@empty
+ \global\let\author\relax
+ \global\let\title\relax
+ \global\let\extratitle\relax
+ \global\let\titlehead\relax
+ \global\let\subject\relax
+ \global\let\publishers\relax
+ \global\let\uppertitleback\relax
+ \global\let\lowertitleback\relax
+ \global\let\dedication\relax
+ \global\let\date\relax
+ \global\let\and\relax
+}%
+\renewcommand*{\@maketitle}{%
+ \clearpage
+ \let\footnote\thanks
+ \let\LTRfootnote\LTRthanks
+ \let\RTLfootnote\RTLthanks
+ \ifx\@extratitle\@empty \else
+ \noindent\@extratitle \next@tpage \if@twoside \null\next@tpage \fi
+ \fi
+ \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative
+ \ifx\@titlehead\@empty \else
+ \begin{minipage}[t]{\textwidth}
+ \@titlehead
+ \end{minipage}\par
+ \fi
+ \null
+ \vskip 2em%
+ \begin{center}%
+ \ifx\@subject\@empty \else
+ {\subject@font \@subject \par}
+ \vskip 1.5em
+ \fi
+ {\titlefont\huge \@title \par}%
+ \vskip .5em
+ {\ifx\@subtitle\@empty\else\usekomafont{subtitle}\@subtitle\par\fi}%
+ \vskip 1em
+ {\Large
+ \lineskip .5em%
+ \begin{tabular}[t]{c}
+ \@author
+ \end{tabular}\par
+ }%
+ \vskip 1em%
+ {\Large \@date \par}%
+ \vskip \z@ \@plus 1em
+ {\Large \@publishers \par}
+ \ifx\@dedication\@empty \else
+ \vskip 2em
+ {\Large \@dedication \par}
+ \fi
+ \end{center}%
+ \par
+ \vskip 2em
+}%
+\renewcommand*\l@part[2]{%
+ \ifnum \c@tocdepth >-2\relax
+ \addpenalty{-\@highpenalty}%
+ \addvspace{2.25em \@plus\p@}%
+ \setlength{\@tempdima}{2em}%
+ \if@tocleft
+ \ifx\toc@l@number\@empty\else
+ \setlength\@tempdima{0\toc@l@number}%
+ \fi
+ \fi
+ \begingroup
+ \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
+ \parfillskip -\@pnumwidth
+ \leavevmode
+ \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
+ \hskip -\if@RTL\rightskip\else\leftskip\fi
+ \usekomafont{partentry}{#1\nobreak
+ \usekomafont{partentrypagenumber}{\hfil\nobreak
+ \hb@xt@\@pnumwidth{\hss#2}}}\par
+ \ifnum \scr@compatibility>\@nameuse{scr@v@2.96}\relax
+ \endgroup
+ \penalty20010
+ \else
+ \penalty\@highpenalty
+ \endgroup
+ \fi
+ \fi
+}
+\renewcommand*\l@chapter[2]{%
+ \ifnum \c@tocdepth >\m@ne
+ \ifnum \lastpenalty<20010
+ \addpenalty{-\@highpenalty}%
+ \fi
+ \vskip 1.0em \@plus\p@
+ \setlength\@tempdima{1.5em}%
+ \if@tocleft
+ \ifx\toc@l@number\@empty\else
+ \setlength\@tempdima{0\toc@l@number}%
+ \fi
+ \fi
+ \begingroup
+ \raggedchapterentry
+ \parindent \z@ \advance\if@RTL\leftskip\else\rightskip\fi \@pnumwidth
+ \parfillskip -\@pnumwidth
+ \interlinepenalty\@M
+ \leavevmode
+ \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rightskip\else\leftskip\fi
+ \usekomafont{chapterentry}{#1\nobreak
+ \usekomafont{chapterentrypagenumber}{%
+ \hfill\nobreak
+ \hb@xt@\@pnumwidth{\hss#2}}}\par
+ \ifnum \scr@compatibility>\@nameuse{scr@v@2.96}\relax
+ \endgroup
+ \penalty20009
+ \else
+ \penalty\@highpenalty
+ \endgroup
+ \fi
+ \fi
+}
+\def\raggedsection{\if@RTL\raggedleft\else\raggedright\fi}
+\renewcommand*\autodot{\if@altsecnumformat\@SepMark\fi}
+\renewcommand*\thesection{%
+ \thechapter\@SepMark%
+ \@arabic\c@section
+}
+\renewcommand*{\thesubsection}{\thesection\@SepMark\@arabic\c@subsection}
+\renewcommand*{\thesubsubsection}{%
+ \thesubsection\@SepMark\@arabic\c@subsubsection
+}
+\renewcommand*{\theparagraph}{\thesubsubsection\@SepMark\@arabic\c@paragraph}
+\renewcommand*{\thesubparagraph}{%
+ \theparagraph\@SepMark\@arabic\c@subparagraph
+}
+\renewcommand*\thefigure{%
+ \thechapter\@SepMark%
+ \@arabic\c@figure
+}
+\renewcommand*\thetable{%
+ \thechapter\@SepMark%
+ \@arabic\c@table
+}
+\renewcommand*\theequation{%
+ \thechapter\@SepMark%
+ \@arabic\c@equation
+}
+\renewenvironment{thebibliography}[1]{%
+ \if@bib@break@
+ \bib@beginhook
+ \else
+ \ifx\bibpreamble\relax\else\ifx\bibpreamble\@empty\else
+ \setchapterpreamble{\bibpreamble}%
+ \fi\fi
+ \bib@heading
+ \bib@beginhook
+ \bib@before@hook
+ \fi
+ \renewcommand{\BreakBibliography}[1]{%
+ \@bib@break
+ \end{thebibliography}%
+ \begingroup ##1\endgroup
+ \begin{thebibliography}{#1}
+ }%
+ \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
+ \list{%
+ \@biblabel{\@arabic\c@enumiv}%
+ }{%
+ \settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \if@bib@break@
+ \edef\@tempa{%
+ \noexpand\usecounter{enumiv}%
+ \noexpand\setcounter{enumiv}{\the\c@enumiv}%
+ }\@tempa
+ \no@bib@break
+ \else
+ \usecounter{enumiv}%
+ \fi
+ \let\p@enumiv\@empty
+ \renewcommand*\theenumiv{\@arabic\c@enumiv}%
+ }%
+ \sloppy\clubpenalty4000 \widowpenalty4000
+ \sfcode`\.=\@m
+}{%
+ \if@bib@break@
+ \def\@noitemerr{%
+ \@latex@warning{%
+ \string\BreakBibliography\space at begin of `thebibliography'
+ environment\MessageBreak
+ or following \string\BreakBibliography}%
+ }%
+ \else
+ \def\@noitemerr{%
+ \@latex@warning{%
+ Empty `thebibliography' environment or
+ \string\BreakBibliography\MessageBreak
+ before end of `thebibliography' environment}%
+ }%
+ \fi
+ \endlist
+ \if@bib@break@
+ \else
+ \bib@after@hook
+ \let\bib@before@hook\@empty
+ \let\bib@after@hook\@empty
+ \fi
+ \bib@endhook
+}
+\renewcommand*\left@footnote{%
+ \kern-3\p@
+ \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi
+ \hrule\@width.4\columnwidth
+ \kern 2.6\p@}
+\renewcommand*\right@footnote{%
+ \hbox to \columnwidth
+ {\beginR \vbox{%
+ \kern-3\p@
+ \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi
+ \hrule\@width.4\columnwidth
+ \kern 2.6\p@}\hfil\endR}}
+\renewcommand*{\raggeddictum}{\if@RTL\raggedright\else\raggedleft\fi}
+\renewcommand*{\raggeddictumtext}{\if@RTL\raggedleft\else\raggedright\fi}
+\renewcommand*{\raggeddictumauthor}{\if@RTL\raggedright\else\raggedleft\fi}
+\renewcommand\marginline[1]{%
+ \marginpar[\if@RTL\raggedright\else\raggedleft\fi{#1}]{\if@RTL\raggedleft\else\raggedright\fi #1}%
+}
+% \end{macrocode}
+% \iffalse
+%</scrreprt-xetex-bidi.def>
+%<*stabular-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{stabular-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{stabular-xetex-bidi.def}[2010/08/01 v0.2 bidi adaptations for stabular package for XeTeX engine]
+\def\@stabular{\if@RTL\@RTLtabtrue\fi
+ \leavevmode \bgroup \if@RTLtab\beginR \fi
+ \let\@acol\@tabacol
+ \let\@classz\@tabclassz
+ \let\@classiv\@tabclassiv \let\\\@tabularcr\@stabarray}
+\def\endstabular{\crcr\egroup\if@RTLtab\egroup\endR\egroup\fi
+ \egroup \if@RTLtab\endR\fi\egroup
+ \@RTLtabfalse}
+\expandafter \let \csname endstabular*\endcsname = \endstabular
+\def\@sarray[#1]#2{%
+ \bgroup
+ \setbox\@arstrutbox\hbox{%
+ \vrule \@height\arraystretch\ht\strutbox
+ \@depth\arraystretch \dp\strutbox
+ \@width\z@}%
+ \@mkpream{#2}%
+ \edef\@preamble{%
+ \ialign \noexpand\@halignto
+ \bgroup \@arstrut \@preamble \tabskip\z@skip \cr}%
+ \let\@startpbox\@@startpbox \let\@endpbox\@@endpbox
+ \let\tabularnewline\\%
+ \let\@sharp##%
+ \set@typeset@protect
+ \lineskip\z@skip\baselineskip\z@skip
+ \if@RTLtab\hbox\bgroup\beginR\vbox\bgroup\fi
+ \@preamble}
+% \end{macrocode}
+% \iffalse
+%</stabular-xetex-bidi.def>
+%<*subfigure-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{subfigure-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{subfigure-xetex-bidi.def}[2010/03/01 v0.1 bidi adaptations for subfigure package for XeTeX engine]
+\AtBeginDocument{%
+\let\p@subfigure=\thefigure
+\let\p@subtable=\thetable%
+}
+% \end{macrocode}
+% \iffalse
+%</subfigure-xetex-bidi.def>
+%<*tabls-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{tabls-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{tabls-xetex-bidi.def}[2010/08/01 v0.2 bidi adaptations for tabls package for XeTeX engine]
+\def\endtabular{\endarray $\if@RTLtab\endR\fi\egroup
+ \@RTLtabfalse}
+
+\expandafter\let\csname endtabular*\endcsname=\endtabular
+
+\def\endarray{\ifvmode\csname crcr\endcsname % just do \crcr if \\ given
+ \else \\[\z@ \global\advance\@arstdepth-\@otarlinesep]%
+ \fi\egroup\if@RTLtab\egroup\endR\egroup\fi\@unrecurse\egroup}
+
+\def\@array[#1]#2{% remember global variables to allow recursion:
+ \edef\@unrecurse{\global\@skip@bove\the\@skip@bove
+ \global\@arstheight\the\@arstheight\global\@arstdepth\the\@arstdepth}%
+ \let\@otarlinesep\@tarlinesep \global\@skip@bove-\@otarlinesep
+ \ifx\@classz\@arrayclassz \let\@tarlinesep\arraylinesep
+ \else \let\@tarlinesep\tablinesep \fi
+ \divide\@tarlinesep\tw@ % half sep is applied to height & depth
+ \let\@seesize\relax \let\@rememsize\relax \@mkpream{#2}%
+ \@tempdima\arraystretch\ht\strutbox \@tempdimb\arraystretch\dp\strutbox
+ \ifdim\@tarlinesep>\z@ % (need \protect for \multicolumn)
+ \def\@rememsize{\protect\@r@m@msize}\let\@seesize\@s@@size
+ \advance\@tempdima-\@tarlinesep \advance\@tempdimb-\@tarlinesep
+ \fi \setbox\@arstrutbox\hbox{% set up smaller strut
+ \vrule \@height\@tempdima \@depth\@tempdimb \@width\z@}%
+ \let\protect\noexpand
+ \edef\@preamble{\ialign \noexpand\@halignto \bgroup
+ \unhcopy\@arstrutbox \@preamble \tabskip\z@skip &\@sharp \cr}%
+ \let\@startpbox\@@startpbox \let\@endpbox\@@endpbox
+ \if#1t\vtop \else \if#1b\vbox \else \vcenter \fi\fi
+ \bgroup \let\par\@empty
+ \global\@arstheight\ht\@arstrutbox \global\@arstdepth\dp\@arstrutbox
+ \advance\extrarulesep.5\arrayrulewidth
+ \let\@sharp##\let\protect\relax \lineskip\z@skip \baselineskip\z@skip
+ \if@RTLtab\hbox\bgroup\beginR\vbox\bgroup\fi
+ \@preamble}
+% \end{macrocode}
+% \iffalse
+%</tabls-xetex-bidi.def>
+%<*tabulary-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{tabulary-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{tabulary-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for tabulary package for XeTeX engine]
+\def\@testpach{\@chclass
+ \ifnum \@lastchclass=6 \@ne \@chnum \@ne \else
+ \ifnum \@lastchclass=7 5 \else
+ \ifnum \@lastchclass=8 \tw@ \else
+ \ifnum \@lastchclass=9 \thr@@
+ \else \z@
+ \ifnum \@lastchclass = 10 \else
+ \edef\@nextchar{\expandafter\string\@nextchar}%
+ \@chnum
+ \if \@nextchar c\z@ \else
+ \if \@nextchar \if@RTLtab r\else l\fi\@ne \else
+ \if \@nextchar \if@RTLtab l\else r\fi\tw@ \else
+ \if \@nextchar C7 \else
+ \if \@nextchar L8 \else
+ \if \@nextchar R9 \else
+ \if \@nextchar J10 \else
+ \z@ \@chclass
+ \if\@nextchar |\@ne \else
+ \if \@nextchar !6 \else
+ \if \@nextchar @7 \else
+ \if \@nextchar <8 \else
+ \if \@nextchar >9 \else
+ 10
+ \@chnum
+ \if \@nextchar m\thr@@\else
+ \if \@nextchar p4 \else
+ \if \@nextchar b5 \else
+ \z@ \@chclass \z@ \@preamerr \z@ \fi \fi \fi \fi\fi \fi \fi\fi \fi
+ \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi}
+% \end{macrocode}
+% \iffalse
+%</tabulary-xetex-bidi.def>
+%<*tikz-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{tikz-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{tikz-xetex-bidi.def}[2010/07/25 v0.4 bidi adaptations for tikz package for XeTeX engine]
+\let\origin@tikzpicture=\tikzpicture
+\let\origin@endtikzpicture=\endtikzpicture
+\let\pgfutil@minipage=\minipage
+\let\pgfutil@endminipage=\endminipage
+\def\tikzpicture{\ifmmode\else\beginL\fi\origin@tikzpicture}
+\def\endtikzpicture{\origin@endtikzpicture\ifmmode\else\endL\fi}
+% \end{macrocode}
+% \iffalse
+%</tikz-xetex-bidi.def>
+%<*titlesec-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{titlesec-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{titlesec-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for titlesec package for XeTeX engine]
+\renewcommand\filright{%
+ \gdef\ttl@filleft##1{\hskip##1}%
+ \gdef\ttl@filright##1{\hfill}%
+ \let\\\@centercr
+ \advance\rightskip\z@ \@plus 1fil
+\parfillskip\z@}
+% \end{macrocode}
+% \iffalse
+%</titlesec-xetex-bidi.def>
+%<*titletoc-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{titletoc-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{titletoc-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for titletoc package for XeTeX engine]
+\renewcommand\filright{%
+ \gdef\ttl@filleft##1{\hskip##1}%
+ \gdef\ttl@filright##1{\hfill}%
+ \let\\\@centercr
+ \advance\rightskip\z@ \@plus 1fil
+\parfillskip\z@}
+\renewcommand\contentspush[1]{%
+ \sbox\z@{#1}%
+ \xdef\ttl@b{\advance\if@RTL\rightskip\else\leftskip\fi\the\wd\z@}%
+ \aftergroup\ttl@b
+ \leavevmode\llap{\box\z@}}
+\def\ttl@outnoblock#1#2#3{%
+ \begingroup
+ \ifnum\ttl@b>\ttl@a
+ \nobreak
+ \else\ifnum\ttl@b<\ttl@a
+ \addpenalty{\@secpenalty}%
+ \else
+ \addpenalty{\z@}%
+ \fi\fi
+ \ttl@contentsstretch
+ \nobreak
+ \ifcase#1\relax\else\interlinepenalty\@M\fi
+ \parindent\z@
+ \ifx\@nil#2%
+ \PackageError{titletoc}{Unimplemented}%
+ {The optional argument is currently mandatory}%
+ \else
+ \if@RTL\setlength\rightskip{#2}\else
+ \setlength\leftskip{#2}\fi%
+ \fi
+ \if@RTL\setlength\leftskip{\@pnumwidth}\else\setlength\rightskip{\@pnumwidth}\fi%
+ \let\contentsmargin\ttl@margin
+ \def\ttl@makeline##1{##1}%
+ #3%
+ \addtolength{\parfillskip}{-\ttl@corr}%
+ \if@RTL\addtolength{\leftskip}{\ttl@corr}\else\addtolength{\rightskip}{\ttl@corr}\fi%
+ \let\ttl@leaders\leaders}
+\renewcommand\ttl@margin[2][\z@]{%
+ \def\ttl@corr{#1}%
+ \advance\if@RTL\leftskip\else\rightskip\fi-\@pnumwidth\relax
+ \advance\if@RTL\leftskip\else\rightskip\fi#2\relax
+ \def\@pnumwidth{#2}}
+% \end{macrocode}
+% \iffalse
+%</titletoc-xetex-bidi.def>
+%<*tocbibind-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{tocbibind-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{tocbibind-xetex-bidi.def}[2010/07/25 v0.2 bidi adaptations for tocbibind package for XeTeX engine]
+\if@dotocbib
+ \@ifpackageloaded{natbib}{}{% natbib not loaded
+ \renewcommand{\bibsection}{\t@cb@bchapsec}
+ \renewenvironment{thebibliography}[1]{%
+ \bibsection
+ \begin{thebibitemlist}{#1}}{\end{thebibitemlist}}}
+ \renewenvironment{thebibitemlist}[1]{
+ \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
+ \list{\@biblabel{\@arabic\c@enumiv}}%
+ {\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \usecounter{enumiv}%
+ \let\p@enumiv\@empty
+ \renewcommand\theenumiv{\@arabic\c@enumiv}}%
+ \sloppy
+ \clubpenalty4000
+ \@clubpenalty \clubpenalty
+ \widowpenalty4000%
+ \sfcode`\.\@m}
+ {\def\@noitemerr
+ {\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist}
+
+ \@ifpackagewith{chapterbib}{sectionbib}%
+ {\renewcommand{\sectionbib}[2]{}}%
+ {}
+
+\fi
+% \end{macrocode}
+% \iffalse
+%</tocbibind-xetex-bidi.def>
+%<*tocloft-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{tocloft-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{tocloft-xetex-bidi.def}[2010/07/25 v0.2 bidi adaptations for tocloft package for XeTeX engine]
+\let\cftdot\@SepMark
+\if@cfthaspart
+\renewcommand*{\l@part}[2]{
+ \@cftdopartfalse
+ \ifnum \c@tocdepth >-2\relax
+ \if@cfthaschapter
+ \@cftdoparttrue
+ \fi
+ \ifnum \c@tocdepth >\m@ne
+ \if@cfthaschapter\else
+ \@cftdoparttrue
+ \fi
+ \fi
+ \fi
+ \if@cftdopart
+ \if@cfthaschapter
+ \addpenalty{-\@highpenalty}
+ \else
+ \addpenalty\@secpenalty
+ \fi
+ \addvspace{\cftbeforepartskip}
+ \begingroup
+ {\if@RTL\rightskip\else\leftskip\fi \cftpartindent\relax
+ \if@RTL\leftskip\else\rightskip\fi \@tocrmarg
+ \parfillskip -\if@RTL\leftskip\else\rightskip\fi
+ \parindent \cftpartindent\relax\@afterindenttrue
+ \interlinepenalty\@M
+ \leavevmode
+ \@tempdima \cftpartnumwidth\relax
+ \let\@cftbsnum \cftpartpresnum
+ \let\@cftasnum \cftpartaftersnum
+ \let\@cftasnumb \cftpartaftersnumb
+ \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rightskip\else\leftskip\fi
+ {\cftpartfont \cftpartpresnum #1}
+ \cftpartfillnum{#2}}
+ \nobreak
+ \if@cfthaschapter
+ \global\@nobreaktrue
+ \everypar{\global\@nobreakfalse\everypar{}}
+ \else
+ \if@compatibility
+ \global\@nobreaktrue
+ \everypar{\global\@nobreakfalse\everypar{}}
+ \fi
+ \fi
+ \endgroup
+ \fi}
+\fi
+\if@cfthaschapter
+\renewcommand*{\l@chapter}[2]{
+ \ifnum \c@tocdepth >\m@ne
+ \addpenalty{-\@highpenalty}
+ \vskip \cftbeforechapskip
+ {\if@RTL\rightskip\else\leftskip\fi \cftchapindent\relax
+ \if@RTL\leftskip\else\rightskip\fi \@tocrmarg
+ \parfillskip -\if@RTL\leftskip\else\rightskip\fi
+ \parindent \cftchapindent\relax\@afterindenttrue
+ \interlinepenalty\@M
+ \leavevmode
+ \@tempdima \cftchapnumwidth\relax
+ \let\@cftbsnum \cftchappresnum
+ \let\@cftasnum \cftchapaftersnum
+ \let\@cftasnumb \cftchapaftersnumb
+ \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rightskip\else\leftskip\fi
+ {\cftchapfont #1}\nobreak
+ \cftchapfillnum{#2}}
+ \fi}
+\fi
+\renewcommand*{\l@section}[2]{%
+ \ifnum \c@tocdepth >\z@
+ \if@cfthaschapter
+ \vskip \cftbeforesecskip
+ \else
+ \addpenalty\@secpenalty
+ \addvspace{\cftbeforesecskip}
+ \fi
+ {\if@RTL\rightskip\else\leftskip\fi \cftsecindent\relax
+ \if@RTL\leftskip\else\rightskip\fi \@tocrmarg
+ \parfillskip -\if@RTL\leftskip\else\rightskip\fi
+ \parindent \cftsecindent\relax\@afterindenttrue
+ \interlinepenalty\@M
+ \leavevmode
+ \@tempdima \cftsecnumwidth\relax
+ \let\@cftbsnum \cftsecpresnum
+ \let\@cftasnum \cftsecaftersnum
+ \let\@cftasnumb \cftsecaftersnumb
+ \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rightskip\else\leftskip\fi
+ {\cftsecfont #1}\nobreak
+ \cftsecfillnum{#2}}
+ \fi}
+\renewcommand*{\l@subsection}[2]{%
+ \ifnum \c@tocdepth >\@ne
+ \vskip \cftbeforesubsecskip
+ {\if@RTL\rightskip\else\leftskip\fi \cftsubsecindent\relax
+ \if@RTL\leftskip\else\rightskip\fi \@tocrmarg
+ \parfillskip -\if@RTL\leftskip\else\rightskip\fi
+ \parindent \cftsubsecindent\relax\@afterindenttrue
+ \interlinepenalty\@M
+ \leavevmode
+ \@tempdima \cftsubsecnumwidth\relax
+ \let\@cftbsnum \cftsubsecpresnum
+ \let\@cftasnum \cftsubsecaftersnum
+ \let\@cftasnumb \cftsubsecaftersnumb
+ \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rightskip\else\leftskip\fi
+ {\cftsubsecfont #1}\nobreak
+ \cftsubsecfillnum{#2}}
+ \fi}
+\renewcommand*{\l@subsubsection}[2]{%
+ \ifnum \c@tocdepth >\tw@
+ \vskip \cftbeforesubsubsecskip
+ {\if@RTL\rightskip\else\leftskip\fi \cftsubsubsecindent\relax
+ \if@RTL\leftskip\else\rightskip\fi \@tocrmarg
+ \parfillskip -\if@RTL\leftskip\else\rightskip\fi
+ \parindent \cftsubsubsecindent\relax\@afterindenttrue
+ \interlinepenalty\@M
+ \leavevmode
+ \@tempdima \cftsubsubsecnumwidth\relax
+ \let\@cftbsnum \cftsubsubsecpresnum
+ \let\@cftasnum \cftsubsubsecaftersnum
+ \let\@cftasnumb \cftsubsubsecaftersnumb
+ \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rightskip\else\leftskip\fi
+ {\cftsubsubsecfont #1}\nobreak
+ \cftsubsubsecfillnum{#2}}
+ \fi}
+\renewcommand*{\l@paragraph}[2]{%
+ \ifnum \c@tocdepth >3\relax
+ \vskip \cftbeforeparaskip
+ {\if@RTL\rightskip\else\leftskip\fi \cftparaindent\relax
+ \if@RTL\leftskip\else\rightskip\fi \@tocrmarg
+ \parfillskip -\if@RTL\leftskip\else\rightskip\fi
+ \parindent \cftparaindent\relax\@afterindenttrue
+ \interlinepenalty\@M
+ \leavevmode
+ \@tempdima \cftparanumwidth\relax
+ \let\@cftbsnum \cftparapresnum
+ \let\@cftasnum \cftparaaftersnum
+ \let\@cftasnumb \cftparaaftersnumb
+ \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rightskip\else\leftskip\fi
+ {\cftparafont #1}\nobreak
+ \cftparafillnum{#2}}
+ \fi}
+\renewcommand*{\l@subparagraph}[2]{%
+ \ifnum \c@tocdepth >4\relax
+ \vskip \cftbeforesubparaskip
+ {\if@RTL\rightskip\else\leftskip\fi \cftsubparaindent\relax
+ \if@RTL\leftskip\else\rightskip\fi \@tocrmarg
+ \parfillskip -\if@RTL\leftskip\else\rightskip\fi
+ \parindent \cftsubparaindent\relax\@afterindenttrue
+ \interlinepenalty\@M
+ \leavevmode
+ \@tempdima \cftsubparanumwidth\relax
+ \let\@cftbsnum \cftsubparapresnum
+ \let\@cftasnum \cftsubparaaftersnum
+ \let\@cftasnumb \cftsubparaaftersnumb
+ \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rightskip\else\leftskip\fi
+ {\cftsubparafont #1}\nobreak
+ \cftsubparafillnum{#2}}
+ \fi}
+\renewcommand*{\l@figure}[2]{%
+ \ifnum \c@lofdepth >\z@
+ \vskip \cftbeforefigskip
+ {\if@RTL\rightskip\else\leftskip\fi \cftfigindent\relax
+ \if@RTL\leftskip\else\rightskip\fi \@tocrmarg
+ \parfillskip -\if@RTL\leftskip\else\rightskip\fi
+ \parindent \cftfigindent\relax\@afterindenttrue
+ \interlinepenalty\@M
+ \leavevmode
+ \@tempdima \cftfignumwidth\relax
+ \let\@cftbsnum \cftfigpresnum
+ \let\@cftasnum \cftfigaftersnum
+ \let\@cftasnumb \cftfigaftersnumb
+ \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rightskip\else\leftskip\fi
+ {\cftfigfont #1}\nobreak
+ \cftfigfillnum{#2}}
+ \fi
+ }
+\renewcommand*{\l@table}[2]{%
+ \ifnum\c@lotdepth >\z@
+ \vskip \cftbeforetabskip
+ {\if@RTL\rightskip\else\leftskip\fi \cfttabindent\relax
+ \if@RTL\leftskip\else\rightskip\fi \@tocrmarg
+ \parfillskip -\if@RTL\leftskip\else\rightskip\fi
+ \parindent \cfttabindent\relax\@afterindenttrue
+ \interlinepenalty\@M
+ \leavevmode
+ \@tempdima \cfttabnumwidth\relax
+ \let\@cftbsnum \cfttabpresnum
+ \let\@cftasnum \cfttabaftersnum
+ \let\@cftasnumb \cfttabaftersnumb
+ \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rightskip\else\leftskip\fi
+ {\cfttabfont #1}\nobreak
+ \cfttabfillnum{#2}}
+ \fi
+ }
+\renewcommand{\@cftl@subfig}{
+\renewcommand*{\l@subfigure}[2]{%
+ \ifnum \c@lofdepth > \toclevel@subfigure
+ \vskip \cftbeforesubfigskip
+ {\if@RTL\rightskip\else\leftskip\fi \cftsubfigindent\relax
+ \if@RTL\leftskip\else\rightskip\fi \@tocrmarg
+ \parfillskip -\if@RTL\leftskip\else\rightskip\fi
+ \parindent \cftsubfigindent\relax\@afterindenttrue
+ \interlinepenalty\@M
+ \leavevmode
+ \@tempdima \cftsubfignumwidth\relax
+ \let\@cftbsnum \cftsubfigpresnum
+ \let\@cftasnum \cftsubfigaftersnum
+ \let\@cftasnumb \cftsubfigaftersnumb
+ \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rightskip\else\leftskip\fi
+ {\cftsubfigfont ##1}\nobreak
+ \cftsubfigfillnum{##2}}
+ \fi
+ }
+}
+\renewcommand{\@cftl@subtab}{
+\renewcommand*{\l@subtable}[2]{%
+ \ifnum \c@lotdepth > \toclevel@subtable
+ \vskip \cftbeforesubtabskip
+ {\if@RTL\rightskip\else\leftskip\fi \cftsubtabindent\relax
+ \if@RTL\leftskip\else\rightskip\fi \@tocrmarg
+ \parfillskip -\if@RTL\leftskip\else\rightskip\fi
+ \parindent \cftsubtabindent\relax\@afterindenttrue
+ \interlinepenalty\@M
+ \leavevmode
+ \@tempdima \cftsubtabnumwidth\relax
+ \let\@cftbsnum \cftsubtabpresnum
+ \let\@cftasnum \cftsubtabaftersnum
+ \let\@cftasnumb \cftsubtabaftersnumb
+ \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rightskip\else\leftskip\fi
+ {\cftsubtabfont ##1}\nobreak
+ \cftsubtabfillnum{##2}}
+ \fi
+ }
+}
+\renewcommand{\newlistentry}[4][\@empty]{%
+ \@ifundefined{c@#2}{% check & set the counter
+ \ifx \@empty#1\relax
+ \newcounter{#2}
+ \else
+ \@ifundefined{c@#1}{\PackageWarning{tocloft}%
+ {#1 has no counter for use as a `within'}
+ \newcounter{#2}}%
+ {\newcounter{#2}[#1]%
+ \expandafter\edef\csname the#2\endcsname{%
+ \expandafter\noexpand\csname the#1\endcsname\@SepMark\noexpand\arabic{#2}}}
+ \fi
+ \setcounter{#2}{0}
+ }
+ {\PackageError{tocloft}{#2 has been previously defined}{\@eha}}
+
+ \@namedef{l@#2}##1##2{%
+ \ifnum \@nameuse{c@#3depth} > #4\relax
+ \vskip \@nameuse{cftbefore#2skip}
+ {\if@RTL\rightskip\else\leftskip\fi \@nameuse{cft#2indent}\relax
+ \if@RTL\leftskip\else\rightskip\fi \@tocrmarg
+ \parfillskip -\if@RTL\leftskip\else\rightskip\fi
+ \parindent \@nameuse{cft#2indent}\relax\@afterindenttrue
+ \interlinepenalty\@M
+ \leavevmode
+ \@tempdima \@nameuse{cft#2numwidth}\relax
+ \expandafter\let\expandafter\@cftbsnum\csname cft#2presnum\endcsname
+ \expandafter\let\expandafter\@cftasnum\csname cft#2aftersnum\endcsname
+ \expandafter\let\expandafter\@cftasnumb\csname cft#2aftersnumb\endcsname
+ \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima \null\nobreak\hskip -\if@RTL\rightskip\else\leftskip\fi
+ {\@nameuse{cft#2font}##1}\nobreak
+ \@nameuse{cft#2fillnum}{##2}}
+ \fi
+ } % end of \l@#2
+
+ \expandafter\newlength\csname cftbefore#2skip\endcsname
+ \setlength{\@nameuse{cftbefore#2skip}}{\z@ \@plus .2\p@}
+ \expandafter\newlength\csname cft#2indent\endcsname
+ \expandafter\newlength\csname cft#2numwidth\endcsname
+ \ifcase #4\relax % 0
+ \setlength{\@nameuse{cft#2indent}}{0em}
+ \setlength{\@nameuse{cft#2numwidth}}{1.5em}
+ \or % 1
+ \setlength{\@nameuse{cft#2indent}}{1.5em}
+ \setlength{\@nameuse{cft#2numwidth}}{2.3em}
+ \or % 2
+ \setlength{\@nameuse{cft#2indent}}{3.8em}
+ \setlength{\@nameuse{cft#2numwidth}}{3.2em}
+ \or % 3
+ \setlength{\@nameuse{cft#2indent}}{7.0em}
+ \setlength{\@nameuse{cft#2numwidth}}{4.1em}
+ \else % anything else
+ \setlength{\@nameuse{cft#2indent}}{10.0em}
+ \setlength{\@nameuse{cft#2numwidth}}{5.0em}
+ \fi
+ \@namedef{cft#2font}{\normalfont}
+ \@namedef{cft#2presnum}{}
+ \@namedef{cft#2aftersnum}{}
+ \@namedef{cft#2aftersnumb}{}
+ \@namedef{cft#2dotsep}{\cftdotsep}
+ \@namedef{cft#2leader}{\normalfont\cftdotfill{\@nameuse{cft#2dotsep}}}
+ \@namedef{cft#2pagefont}{\normalfont}
+ \@namedef{cft#2afterpnum}{}
+ \@namedef{toclevel@#2}{#4}
+ \@namedef{cft#2fillnum}##1{%
+ {\@nameuse{cft#2leader}}\nobreak
+ \hb@xt@\@pnumwidth{\hfil\@nameuse{cft#2pagefont}##1}\@nameuse{cft#2afterpnum}\par}
+} % end \newlistentry
+\renewcommand{\cftchapterprecistoc}[1]{\addtocontents{toc}{%
+ {\if@RTL\rightskip\else\leftskip\fi \cftchapindent\relax
+ \advance\if@RTL\righskip\else\leftskip\fi \cftchapnumwidth\relax
+ \if@RTL\leftskip\else\rightskip\fi \@tocrmarg\relax
+ \textit{#1}\protect\par}}}
+% \end{macrocode}
+% \iffalse
+%</tocloft-xetex-bidi.def>
+%<*tocstyle-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{tocstyle-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{tocstyle-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for tocstyle package for XeTeX engine]
+\renewcommand*{\tocstyle@dottedtocline}[5]{%
+ \let\numberline\tocstyle@numberline
+ \ifnum #1>\c@tocdepth \else
+ \if@tocstyle@penalties
+ \begingroup
+ \@tempcnta 20010
+ \advance \@tempcnta by -#1
+ \ifnum \@tempcnta>\lastpenalty
+ \aftergroup\penalty\aftergroup\@lowpenalty
+ \fi
+ \endgroup
+ \fi
+ \edef\tocstyledepth{#1}%
+ \tocstyle@activate@features
+ \ifx\tocstyle@feature@entryvskip\relax
+ \vskip \z@ \@plus.2\p@
+ \else
+ \addvspace{\tocstyle@feature@entryvskip}%
+ \fi
+ {%
+ \parskip \z@ \parindent \z@ \if@RTL\rightskip\else\leftskip\fi \z@ \if@RTL\leftskip\else\rightskip\fi \z@
+ \tocstyle@feature@raggedhook
+ \@tempdima #3\relax
+ \@tempdimb #2\relax
+ \typeout{m (\tocstyleTOC, \tocstyledepth): \the\@tempdima}%
+ \ifnum #1>\z@\relax
+ \@tempcnta #1\relax \advance\@tempcnta \m@ne
+ \ifcsname tocstyle@skipwidth@\tocstyleTOC @\the\@tempcnta\endcsname
+ \ifcsname tocstyle@numwidth@\tocstyleTOC @\the\@tempcnta\endcsname
+ \@tempdimb
+ \csname tocstyle@skipwidth@\tocstyleTOC @\the\@tempcnta\endcsname
+ \advance\@tempdimb
+ \csname tocstyle@numwidth@\tocstyleTOC @\the\@tempcnta\endcsname
+ \fi
+ \fi
+ \fi
+ \typeout{C (\tocstyleTOC, \tocstyledepth): \the\@tempdimb}%
+ \ifcsname tocstyle@skipwidth@\tocstyleTOC @#1\endcsname
+ \ifdim \@tempdimb>
+ \csname tocstyle@skipwidth@\tocstyleTOC @#1\endcsname\relax
+ \expandafter\xdef\csname tocstyle@skipwidth@\tocstyleTOC
+ @#1\endcsname{\the\@tempdimb}%
+ \fi
+ \else
+ \expandafter\xdef\csname tocstyle@skipwidth@\tocstyleTOC
+ @#1\endcsname{\the\@tempdimb}%
+ \fi
+ \iftocstyle@autolength
+ \ifcsname tocstyle@maxskipwidth@\tocstyleTOC @#1\endcsname
+ \@tempdimb \csname tocstyle@maxskipwidth@\tocstyleTOC @#1\endcsname
+ \relax
+ \fi
+ \ifcsname tocstyle@maxnumwidth@\tocstyleTOC @#1\endcsname
+ \@tempdima \csname tocstyle@maxnumwidth@\tocstyleTOC @#1\endcsname
+ \relax
+ \fi
+ \typeout{a (\tocstyleTOC, \tocstyledepth): \the\@tempdima}%
+ \typeout{A (\tocstyleTOC, \tocstyledepth): \the\@tempdimb}%
+ \else
+ \@tempdimb #2\relax
+ \typeout{M (\tocstyleTOC, \tocstyledepth): \the\@tempdimb}%
+ \fi
+ \ifcsname tocstyle@unumwidth@\tocstyleTOC @\endcsname
+ \ifdim \@tempdima>
+ \csname tocstyle@unumwidth@\tocstyleTOC @\endcsname\relax
+ \expandafter\xdef\csname tocstyle@unumwidth@\tocstyleTOC
+ @\endcsname{\the\@tempdima}%
+ \fi
+ \else
+ \expandafter\xdef\csname tocstyle@unumwidth@\tocstyleTOC
+ @\endcsname{\the\@tempdima}%
+ \fi
+ \ifcase\tocstyle@indentstyle\relax\else
+ \@tempdimb \z@
+ \ifcsname tocstyle@maxunumwidth@\tocstyleTOC @\endcsname
+ \@tempdima \csname tocstyle@maxunumwidth@\tocstyleTOC @\endcsname
+ \relax
+ \fi
+ \typeout{s (\tocstyleTOC, \tocstyledepth): \the\@tempdima}%
+ \typeout{S (\tocstyleTOC, \tocstyledepth): \the\@tempdimb}%
+ \fi
+ \advance\parindent \@tempdimb\@afterindenttrue
+ \advance\if@RTL\rightskip\else\leftskip\fi \parindent
+ \advance\if@RTL\leftskip\else\rightskip\fi \@tocrmarg
+ \parfillskip -\if@RTL\leftskip\else\rightskip\fi
+ \ifx\tocstyle@feature@parfillskip\relax\else
+ \advance\parfillskip \tocstyle@feature@parfillskip\relax
+ \fi
+ \interlinepenalty\@M
+ \leavevmode
+ \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima
+ \null\nobreak
+ \iftocstyle@indentnotnumbered\else
+ \hskip -\if@RTL\rightskip\else\leftskip\fi
+ \fi
+ \tocstyle@feature@entryhook
+ {#4}\nobreak
+ \ifx\tocstyle@feature@leaders\relax
+ \leaders\hbox{$\m@th
+ \mkern \@dotsep mu\hbox{\tocstyle@feature@dothook .}%
+ \mkern \@dotsep mu$}\hfill
+ \else
+ \tocstyle@feature@leaders
+ \fi
+ \nobreak
+ \ifx\tocstyle@feature@pagenumberbox\relax
+ \hb@xt@\@pnumwidth{\hfil\tocstyle@feature@pagenumberhook #5}%
+ \else
+ \tocstyle@feature@pagenumberbox{\tocstyle@feature@pagenumberhook #5}%
+ \fi
+ \par
+ }%
+ \if@tocstyle@penalties
+ \bgroup
+ \@tempcnta 20009
+ \advance\@tempcnta by -#1
+ \edef\reserved@a{\egroup\penalty\the\@tempcnta\relax}%
+ \reserved@a
+ \fi
+ \fi}
+\renewcommand*{\tocstyle@numberline}[1]{%
+ \begingroup
+ \ifx\tocstyle@feature@spaceafternumber\relax
+ \settowidth\@tempdima{\tocstyle@@numberline{#1}\enskip}%
+ \else
+ \settowidth\@tempdima{\tocstyle@@numberline{#1}}%
+ \advance \@tempdima \tocstyle@feature@spaceafternumber\relax
+ \fi
+ \ifcsname tocstyle@numwidth@\tocstyleTOC @\tocstyledepth\endcsname
+ \ifdim \@tempdima >
+ \csname tocstyle@numwidth@\tocstyleTOC @\tocstyledepth\endcsname\relax
+ \expandafter\xdef\csname tocstyle@numwidth@\tocstyleTOC
+ @\tocstyledepth\endcsname{\the\@tempdima}%
+ \fi
+ \else
+ \expandafter\xdef\csname tocstyle@numwidth@\tocstyleTOC
+ @\tocstyledepth\endcsname{\the\@tempdima}%
+ \fi
+ \endgroup
+ \iftocstyle@indentnotnumbered
+ \hskip -\if@RTL\rightskip\else\leftskip\fi
+ \fi
+ \ifcase \tocstyle@indentstyle
+ \hb@xt@\@tempdima{\tocstyle@@numberline{#1}\hfil}%
+ \or
+ \hb@xt@\@tempdima{\tocstyle@@numberline{#1}\hfil}%
+ \else
+ \ifx\tocstyle@feature@spaceafternumber\relax
+ \hbox{\tocstyle@@numberline{#1}\enskip}%
+ \else
+ \hbox{\tocstyle@@numberline{#1}\hskip
+ \tocstyle@feature@spaceafternumber\relax}%
+ \fi
+ \fi
+}
+\AtBeginDocument{%
+ \ifcsname l@part\endcsname
+ \ifcsname l@chapter\endcsname
+ \setbox\@tempboxa\vbox{\hsize\maxdimen
+ \l@part{\tocstyle@l@define{part}{-1}}{}}%
+ \else
+ \setbox\@tempboxa\vbox{\hsize\maxdimen
+ \l@part{\tocstyle@l@define{part}{0}}{}}%
+ \fi
+ \fi
+ \ifcsname l@chapter\endcsname
+ \setbox\@tempboxa\vbox{\hsize\maxdimen
+ \l@chapter{\tocstyle@l@define{chapter}{0}}{}}%
+ \fi
+ \ifcsname l@section\endcsname
+ \setbox\@tempboxa\vbox{\hsize\maxdimen
+ \l@section{\tocstyle@l@define{section}{1}}{}}%
+ \fi
+ \ifcsname l@subsection\endcsname
+ \setbox\@tempboxa\vbox{\hsize\maxdimen
+ \l@subsection{\tocstyle@l@define{subsection}{2}}{}}%
+ \fi
+ \ifcsname l@subsubsection\endcsname
+ \setbox\@tempboxa\vbox{\hsize\maxdimen
+ \l@subsubsection{\tocstyle@l@define{subsubsection}{3}}{}}%
+ \fi
+ \ifcsname l@paragraph\endcsname
+ \setbox\@tempboxa\vbox{\hsize\maxdimen
+ \l@paragraph{\tocstyle@l@define{paragraph}{4}}{}}%
+ \fi
+ \ifcsname l@subparagraph\endcsname
+ \setbox\@tempboxa\vbox{\hsize\maxdimen
+ \l@subparagraph{\tocstyle@l@define{subparagraph}{5}}{}}%
+ \fi
+ \ifcsname l@table\endcsname
+ \setbox\@tempboxa\vbox{\hsize\maxdimen
+ \l@table{\tocstyle@l@define{table}{1}}{}}%
+ \fi
+ \ifcsname l@figure\endcsname
+ \setbox\@tempboxa\vbox{\hsize\maxdimen
+ \l@figure{\tocstyle@l@define{figure}{1}}{}}%
+ \fi
+ \def\@tempa#1#2#3#4#5{%
+ \ifnum #1>\c@tocdepth \else
+ \vskip \z@ \@plus.2\p@
+ {\if@RTL\rightskip\else\leftskip\fi #2\relax \if@RTL\leftskip\else\rightskip\fi \@tocrmarg \parfillskip -\if@RTL\leftskip\else\rightskip\fi
+ \parindent #2\relax\@afterindenttrue
+ \interlinepenalty\@M
+ \leavevmode
+ \@tempdima #3\relax
+ \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rightskip\else\leftskip\fi
+ {#4}\nobreak
+ \leaders\hbox{$\m@th
+ \mkern \@dotsep mu\hbox{.}\mkern \@dotsep
+ mu$}\hfill
+ \nobreak
+ \hb@xt@\@pnumwidth{\hfil \normalfont \normalcolor #5}%
+ \par}%
+ \fi}%
+ \ifx\@dottedtocline\@tempa\else
+ \tocstyle@macrochangewarning\@dottedtocline
+ \fi
+ \let\tocstyle@saved@dottedtocline\@dottedtocline
+ \def\@tempa#1{\hb@xt@\@tempdima{#1\autodot\hfil}}%
+ \ifx\numberline\@tempa\else
+ \def\@tempa#1{\hb@xt@\@tempdima{#1\hfil}}%
+ \ifx\numberline@tempa\else
+ \tocstyle@macrochangewarning\numberline
+ \fi
+ \fi
+ \let\tocstyle@saved@numberline\numberline
+}
+\renewcommand*{\tocstyle@l@define}[2]{%
+ \advance\if@RTL\rightskip\else\leftskip\fi-\@tempdima
+ \edef\@tempa{%
+ \noexpand\global\noexpand\let
+ \expandafter\noexpand\csname tocstyle@saved@l@#1\endcsname
+ \expandafter\noexpand\csname l@#1\endcsname
+ \noexpand\gdef
+ \expandafter\noexpand\csname tocstyle@l@#1\endcsname{%
+ \noexpand\@dottedtocline{#2}{\the\if@RTL\rightskip\else\leftskip\fi}{\the\@tempdima}}%
+ \noexpand\g@addto@macro\noexpand\tocstyle@activate@all@l{%
+ \noexpand\let\expandafter\noexpand\csname l@#1\endcsname
+ \expandafter\noexpand\csname tocstyle@l@#1\endcsname
+ }%
+ }%
+ \PackageInfo{tocstyle}{prepare \expandafter\string
+ \csname l@#1\endcsname\space for redefinition}%
+ \@tempa
+}
+% \end{macrocode}
+% \iffalse
+%</tocstyle-xetex-bidi.def>
+%<*wrapfig-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{wrapfig-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{wrapfig-xetex-bidi.def}[2010/07/25 v0.2 bidi adaptations for wrapfig package for XeTeX engine]
+\let\WF@@everypar\n@everypar
+\def\WF@putfigmaybe{%
+\ifinner
+ \vskip-\parskip \global\WF@floatfalse
+ \let\pagetotal\maxdimen % kludge flag for "not top of page"
+\else % outer page
+ \@tempdima\pagedepth % save page depth
+ {\advance\parskip\if@RTL\baselineskip\else\@tempdima\fi\vskip-\parskip}% back up to baseline
+ \penalty\interlinepenalty % update pg. parameters
+ \@tempdimb\pagegoal \advance\@tempdimb-\pagetotal % room left on page
+ \ifdim\@tempdimb<\z@ % \WF@info{Page overfull already;}%
+ \global\WF@floatfalse
+ \ifdim-\@tempdimb>\pageshrink \else \pagebreak \fi
+ \else
+ \ifdim\WF@size>\@tempdimb
+ \ifWF@float \dimen@.5\baselineskip \else \dimen@ 2\baselineskip\fi
+ \ifdim\pagestretch>\dimen@ \dimen@\pagestretch \fi
+ \ifdim\pagefilstretch>\z@ \dimen@\@tempdimb \fi
+ \ifdim\pagefillstretch>\z@ \dimen@\@tempdimb \fi
+ \advance\dimen@.5\baselineskip
+ \ifdim\dimen@>\@tempdimb % \WF@info{Page nearly full; can stretch}%
+ \global\WF@floatfalse \pagebreak
+ \fi
+ \else % \WF@info{Fits in \the\@tempdimb;}%
+ \global\WF@floatfalse
+ \fi\fi
+ \vskip\@tempdima\relax % (return erased page depth)
+\fi
+\noindent
+\ifWF@float
+ \WF@fltmes
+\else % putting here;
+ \WF@info{Put \WF@wfname here:}%
+ {\ifodd\if@twoside\c@page\else\@ne\fi % assign l/r to i/o placement
+ \lccode`i`l\lccode`o`r\else \lccode`i`r\lccode`o`l\fi
+ \xdef\WF@place{\the\lccode\lccode\WF@place}}% twice to get only l or r
+ \hbox to\z@{% llap or rlap depending on {l} or {r}; calc effective width
+ \@tempdima\wd\WF@box \@tempdimb\WF@ovh
+ \advance\@tempdima-\@tempdimb \advance\@tempdima\columnsep
+ \@tempdimb\hsize \advance\@tempdimb-\@tempdima
+ \xdef\WF@adjlw{\the\@tempdima}%
+ \ifnum `l=\WF@place % fig on left
+ \if@RTL%
+ \kern\@tempdimb \kern\columnsep
+ \def\@tempa{\hss}% position to left of the gap
+ \else%
+ \hss % figure overlaps space to the left
+ \def\@tempa{\kern\columnsep}% position to left of the gap
+ \fi%
+ \else % fig on right
+ \if@RTL%
+ \hss
+ \@tempdima\z@
+ \def\@tempa{\kern\columnsep}
+ \else%
+ \@tempdima\z@ % no left indentation
+ \kern\@tempdimb \kern\columnsep
+ \def\@tempa{\hss}% figure overlaps space to the right
+ \fi%
+ \fi
+ \ifdim\@tempdimb<\hsize
+ \xdef\WF@wrapil{\the\@tempdima \the\@tempdimb}% indentation and length
+ \xdef\WF@adjtlm{\the\@tempdima}%
+ \else
+ \xdef\WF@wrapil{\z@ \the\hsize}%
+ \xdef\WF@adjlw{\z@}\xdef\WF@adjtlm{\z@}%
+ \fi
+ \ifdim\pagetotal=\z@ % \WF@info{Put \WF@wfname at top of p.\thepage}%
+ \global\advance\WF@size-\intextsep
+ \else % \WF@info{Putting \WF@wfname in middle of page}%
+ \setbox\WF@box\hbox{\lower\intextsep\box\WF@box}%
+ \fi \dp\WF@box\z@ \box\WF@box \@tempa
+ }% end \hbox to 0pt
+ \aftergroup\WF@startwrapping % after the \endgroup which immediately follows
+\fi}
+% \end{macrocode}
+% \iffalse
+%</wrapfig-xetex-bidi.def>
+%<*xcolor-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{xcolor-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{xcolor-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for xcolor package for XeTeX engine]
+\long\def\color@b@x#1#2#3%
+ {\leavevmode\if@RTL\beginL\fi
+ \setbox\z@\hbox{\kern\fboxsep{\set@color\if@RTL\beginR\fi#3\if@RTL\endR\fi}\kern\fboxsep}%
+ \dimen@\ht\z@\advance\dimen@\fboxsep\ht\z@\dimen@
+ \dimen@\dp\z@\advance\dimen@\fboxsep\dp\z@\dimen@
+ {#1{#2\color@block{\wd\z@}{\ht\z@}{\dp\z@}\box\z@}}\if@RTL\endL\fi}
+\DeclareRobustCommand\color
+ {\ifhmode\if@RTL\beginL\aftergroup\endR\fi\fi\@ifnextchar[\@undeclaredcolor\@declaredcolor}
+\def\@undeclaredcolor[#1]#2%
+ {\begingroup
+ \let\@@cls\@empty
+ \XC@getmodclr12{#1}{#2}{}%
+ {\ifblendcolors
+ \ifx\colorblend\@empty\else
+ \edef\@@mix{\expandafter\@gobble\colorblend}\@tempswafalse
+ \XC@coremodel\@@mod\@@clr\@xcolor@{}{}\@@mod\@@clr
+ \fi
+ \fi
+ \ifconvertcolorsU
+ \edef\@@tmp{\XC@tgt@mod{\@@mod}}%
+ \convertcolorspec\@@mod\@@clr\@@tmp\@@clr \let\@@mod\@@tmp
+ \fi
+ \ifmaskcolors
+ \convertcolorspec\@@mod\@@clr\XC@mmod\@@clr
+ \let\@@mod\XC@mmod
+ \XC@inflate\@@mod\XC@mclr\@@clr\@@tmp
+ \expandafter\XC@mul\@@tmp,\@@clr
+ \fi
+ \edef\@@tmp{\noexpand\XC@undeclaredcolor{\@@mod}{\@@clr}}%
+ \expandafter\endgroup\@@tmp}}
+\def\@declaredcolor#1%
+ {\XC@edef\XC@@tmp{#1}\XC@@tstfalse
+ \ifcase\XC@type\XC@@tmp\relax \XC@@tsttrue\or \relax\else
+ \ifblendcolors\XC@@tsttrue\fi \ifmaskcolors\XC@@tsttrue\fi
+ \ifconvertcolorsU\XC@@tsttrue\fi
+ \fi
+ \ifXC@@tst
+ \expandafter\XC@declaredcolor\else
+ \expandafter\XC@declaredc@lor\fi}
+\def\XC@undeclaredcolor#1#2%
+ {\@ifundefinedmodel{#1}%
+ {\c@lor@error{model `#1'}}%
+ {\@nameuse{color@#1}\current@color{#2}%
+ \edef\XC@current@color{\noexpand\xcolor@{}{\current@color}{#1}{#2}}%
+ \XC@display}\ifhmode\if@RTL\beginR\aftergroup\endL\fi\fi}
+\def\XC@declaredc@lor
+ {\XC@let@Nc\XC@current@color{\string\color@\XC@@tmp}%
+ \edef\current@color{\XC@current@color}%
+ \XC@display\ifhmode\if@RTL\beginR\aftergroup\endL\fi\fi}
+\DeclareRobustCommand\bidicolor
+ {\@ifnextchar[\@bidiundeclaredcolor\@bidideclaredcolor}
+\def\@bidiundeclaredcolor[#1]#2%
+ {\begingroup
+ \let\@@cls\@empty
+ \XC@getmodclr12{#1}{#2}{}%
+ {\ifblendcolors
+ \ifx\colorblend\@empty\else
+ \edef\@@mix{\expandafter\@gobble\colorblend}\@tempswafalse
+ \XC@coremodel\@@mod\@@clr\@xcolor@{}{}\@@mod\@@clr
+ \fi
+ \fi
+ \ifconvertcolorsU
+ \edef\@@tmp{\XC@tgt@mod{\@@mod}}%
+ \convertcolorspec\@@mod\@@clr\@@tmp\@@clr \let\@@mod\@@tmp
+ \fi
+ \ifmaskcolors
+ \convertcolorspec\@@mod\@@clr\XC@mmod\@@clr
+ \let\@@mod\XC@mmod
+ \XC@inflate\@@mod\XC@mclr\@@clr\@@tmp
+ \expandafter\XC@mul\@@tmp,\@@clr
+ \fi
+ \edef\@@tmp{\noexpand\XC@bidiundeclaredcolor{\@@mod}{\@@clr}}%
+ \expandafter\endgroup\@@tmp}}
+\def\XC@bidiundeclaredcolor#1#2%
+ {\@ifundefinedmodel{#1}%
+ {\c@lor@error{model `#1'}}%
+ {\@nameuse{color@#1}\current@color{#2}%
+ \edef\XC@current@color{\noexpand\xcolor@{}{\current@color}{#1}{#2}}%
+ \XC@display}}
+\def\@bidideclaredcolor#1%
+ {\XC@edef\XC@@tmp{#1}\XC@@tstfalse
+ \ifcase\XC@type\XC@@tmp\relax \XC@@tsttrue\or \relax\else
+ \ifblendcolors\XC@@tsttrue\fi \ifmaskcolors\XC@@tsttrue\fi
+ \ifconvertcolorsU\XC@@tsttrue\fi
+ \fi
+ \ifXC@@tst
+ \expandafter\XC@bidideclaredcolor\else
+ \expandafter\XC@bidideclaredc@lor\fi}
+\def\XC@bidideclaredcolor
+ {\XC@split\XC@@tmp
+ \edef\@@tmp{\noexpand\@bidiundeclaredcolor[\@@mod]{\@@clr}}%
+ \expandafter\endgroup\@@tmp}
+\def\XC@bidideclaredc@lor
+ {\XC@let@Nc\XC@current@color{\string\color@\XC@@tmp}%
+ \edef\current@color{\XC@current@color}%
+ \XC@display}
+\def\color@box#1#2{\color@b@x\relax{\bidicolor#1{#2}}}
+\def\color@fbox#1#2#3#{\protect\color@fb@x{#1}{#2}{#3}}
+\def\color@fb@x#1#2#3#4%
+ {\color@b@x{\fboxsep\z@\bidicolor#1{#2}\XC@fbox}%
+ {\@ifxempty{#3}{\bidicolor#1}{\bidicolor#3}{#4}}}
+% \end{macrocode}
+% \iffalse
+%</xcolor-xetex-bidi.def>
+%<*xetex-bidi.def>
+%\fi
+% \subsection{\textsf{xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{xetex-bidi.def}[2010/08/01 v0.8 bidi adaptations for XeTeX engine]
+\ifx\TeXXeTstate\undefined\else%
+ \TeXXeTstate=1
+\fi
+\def\Bidi@RTL@everypar{\if@RTL{\setbox\z@\lastbox\beginR\usebox\z@}\fi}
+ \let\o@everypar=\everypar
+ \newtoks\n@everypar
+ \n@everypar\expandafter{\the\o@everypar}
+ \o@everypar{\Bidi@RTL@everypar\the\n@everypar}
+ \let\everypar=\n@everypar
+\def\moreLRE{\bracetext \aftergroup\endL \beginL\@RTLfalse}
+\def\moreRLE{\bracetext \aftergroup\endR \beginR\@RTLtrue}
+\protected\def\hboxR{\hbox\bgroup
+ \everyhbox{%
+ \aftergroup\egroup
+ \everyhbox{}%
+ \beginR
+ \bgroup
+ \aftergroup\endR
+ \aftergroup\egroup
+ }\hbox}
+\protected\def\hboxL{\hbox\bgroup
+ \everyhbox{%
+ \aftergroup\egroup
+ \everyhbox{}%
+ \beginL
+ \bgroup
+ \aftergroup\endL
+ \aftergroup\egroup
+ }\hbox}
+\protected\def\vboxR{\vbox\bgroup
+ \everyvbox{%
+ \aftergroup\egroup
+ \everyvbox{}%
+ \beginR
+ \bgroup
+ \aftergroup\endR
+ \aftergroup\egroup
+ }\vbox}
+\protected\def\vboxL{\vbox\bgroup
+ \everyvbox{%
+ \aftergroup\egroup
+ \everyvbox{}%
+ \beginL
+ \bgroup
+ \aftergroup\endL
+ \aftergroup\egroup
+ }\vbox}
+\def\LTR{\par\@RTLfalse\@RTL@footnotefalse\hsize\linewidth\parshape\z@}
+\def\endLTR{\par}
+\def\RTL{\par\@RTLtrue\@RTL@footnotetrue\hsize\linewidth\parshape\z@}
+\def\endRTL{\par}
+\def\ltr{\if@RTL\par\@RTLfalse\@RTL@footnotefalse\fi}
+\def\rtl{\if@RTL\relax\else\par\@RTLtrue\@RTL@footnotetrue\fi}
+\def\setRTL{\@RTLtrue\@RTL@footnotetrue}
+\def\setLTR{\@RTLfalse\@RTL@footnotefalse}
+\let\unsetRTL=\setLTR
+\let\unsetLTR=\setRTL
+\let\LR=\LRE
+\let\RL=\RLE
+\def\@ensure@RTL#1{\if@RTL#1\else\RLE{#1}\fi}
+\def\@ensure@LTR#1{\if@RTL\LRE{#1}\else#1\fi}
+\let\@ensure@RL=\@ensure@RTL
+\let\@ensure@LR=\@ensure@LTR
+\def\@ensure@dir#1{\if@RTL\RLE{#1}\else{#1}\fi}
+\let\@ensure@maindir=\@ensure@dir
+\def\@@RTL{RTL}
+\def\@@LTR{LTR}
+\def\save@dir{\if@RTL\gdef\saved@@dir{RTL}\else\gdef\saved@@dir{LTR}\fi}
+\def\reset@dir{\ifx\saved@@dir\@@RTL\setRTL\else\ifx\saved@@dir\@@LTR\setLTR\else\relax\fi\fi}
+\let\@@TeX\TeX
+\def\TeX{\@ensure@LTR{\@@TeX}}
+\let\@@LaTeX\LaTeX
+\def\LaTeX{\@ensure@LTR{\@@LaTeX}}
+\let\@@LaTeXe\LaTeXe
+\def\LaTeXe{\@ensure@LTR{\@@LaTeXe}}
+\def\reflect#1{{\setbox0=\hbox{#1}\rlap{\kern0.5\wd0
+ \special{x:gsave}\special{x:scale -1 1}}\box0 \special{x:grestore}}}
+\def\XeTeX{\LR{\leavevmode$\smash{\hbox{X\lower.5ex
+ \hbox{\kern-.125em\reflect{E}}\kern-.1667em \TeX}}$}}
+\def\XeLaTeX{\LR{\leavevmode$\smash{\hbox{X\lower.5ex
+ \hbox{\kern-.125em\reflect{E}}\kern-.1667em \LaTeX}}$}}
+\let\setRL=\setRTL
+\let\setLR=\setLTR
+\let\unsetRL=\setLTR
+\DeclareOption{RTLdocument}{\@RTLtrue\@RTL@footnotetrue\g@addto@macro\document{\autofootnoterule}}
+\DeclareOption{rldocument}{\@RTLtrue\@RTL@footnotetrue\g@addto@macro\document{\autofootnoterule}}
+\def\rcases#1{\left.\vcenter{\normalbaselines\m@th
+ \ialign{$##\hfil$&\quad{##}\hfil\crcr#1\crcr}}\,\right\}}
+\def\SepMark#1{\gdef\@SepMark{\hskip0pt#1\hskip0pt}}
+\SepMark{.}
+\def\@thmcountersep{\@SepMark}
+\def\setRTLbibitems{\@RTLbibitemstrue\@LTRbibitemsfalse}
+\def\setLTRbibitems{\@LTRbibitemstrue\@RTLbibitemsfalse}
+\def\setdefaultbibitems{\@RTLbibitemsfalse\@LTRbibitemsfalse}
+\def\list#1#2{%
+ \ifnum \@listdepth >5\relax
+ \@toodeep
+ \else
+ \global\advance\@listdepth\@ne
+ \fi
+ \rightmargin\z@
+ \listparindent\z@
+ \itemindent\z@
+ \csname @list\romannumeral\the\@listdepth\endcsname
+ \def\@itemlabel{#1}%
+ \let\makelabel\@mklab
+ \@nmbrlistfalse
+ #2\relax
+ \@trivlist
+ \parskip\parsep
+ \parindent\listparindent
+ \advance\linewidth -\rightmargin
+ \advance\linewidth -\leftmargin
+ \if@RTL
+ \advance\@totalleftmargin \rightmargin
+ \else
+ \advance\@totalleftmargin \leftmargin
+ \fi
+ \parshape \@ne \@totalleftmargin \linewidth
+ \ignorespaces}
+\newenvironment{LTRitems}[1][\labelsep]
+ {\par\@RTLfalse
+ \leftskip\labelwidth
+ \advance\leftskip #1
+ \advance\rightskip -\leftmargin
+ \ignorespaces}{\endtrivlist}
+\newenvironment{RTLitems}[1][\labelsep]
+ {\par\@RTLtrue
+ \rightskip\labelwidth
+ \advance\rightskip #1
+ \advance\leftskip -\leftmargin
+ \ignorespaces}{\endtrivlist}
+\def\raggedright{%
+ \let\\\@centercr
+ \leftskip\z@skip\rightskip\@flushglue
+ \parindent\z@\parfillskip\z@skip}
+\let\@@raggedleft=\raggedleft
+\let\@@raggedright=\raggedright
+\renewcommand\raggedleft{\if@RTL\@@raggedright%
+ \else\@@raggedleft\fi}
+\renewcommand\raggedright{\if@RTL\@@raggedleft%
+ \else\@@raggedright\fi}
+\def\raggedright{%
+ \let\\\@centercr
+ \rightskip\z@skip\rightskip\@flushglue
+ \parindent\z@\parfillskip\z@skip}
+\renewcommand\raggedleft{\@@raggedleft}
+\renewcommand\raggedright{\@@raggedright}
+\def\centerline#1{%
+\if@RTL\@@line{\hss\beginR#1\endR\hss}
+\else\@@line{\hss#1\hss}\fi}
+\def\leftline#1{%
+\if@RTL\@@line{\beginR#1\endR\hss}
+\else\@@line{#1\hss}\fi}
+\def\rightline#1{%
+\if@RTL\@@line{\hss\beginR#1\endR}
+\else\@@line{\hss#1}\fi}
+\def\bidirlap#1{\hb@xt@\z@{\if@RTL\hss\fi#1\if@RTL\else\hss\fi}}
+\def\bidillap#1{\hb@xt@\z@{\if@RTL\else\hss\fi#1\if@RTL\hss\fi}}
+\def\@hangfrom#1{\setbox\@tempboxa\hbox{{#1}}%
+ \hangindent \if@RTL-\else\fi\wd\@tempboxa\noindent\box\@tempboxa}
+\def\narrower{%
+ \advance\if@RTL\rightskip\else\leftskip\fi\parindent
+ \advance\if@RTL\leftskip\else\rightskip\fi\parindent}
+\def\underline#1{%
+ \relax
+ \ifmmode\@@underline{#1}%
+ \else
+\if@RTL $\@@underline{\hbox{\beginR#1\endR}}\m@th$\relax
+\else
+$\@@underline{\hbox{#1}}\m@th$\relax\fi\fi}
+\if@compatibility
+ \let\undertext=\underline
+\fi
+\global\@RTLtabfalse
+\def\@tabular{\if@RTL\@RTLtabtrue\fi
+ \leavevmode \hbox \bgroup \if@RTLtab\beginR \fi
+ $\let\@acol\@tabacol
+ \let\@classz\@tabclassz
+ \let\@classiv\@tabclassiv \let\\\@tabularcr\@tabarray}
+\def\endtabular{\crcr\egroup\if@RTLtab\egroup\endR\egroup\fi
+ \egroup $\if@RTLtab\endR\fi\egroup
+ \@RTLtabfalse}
+\expandafter \let \csname endtabular*\endcsname = \endtabular
+\def\@array[#1]#2{%
+ \if #1t\vtop \else \if#1b\vbox \else \vcenter \fi\fi
+ \bgroup
+ \setbox\@arstrutbox\hbox{%
+ \vrule \@height\arraystretch\ht\strutbox
+ \@depth\arraystretch \dp\strutbox
+ \@width\z@}%
+ \@mkpream{#2}%
+ \edef\@preamble{%
+ \ialign \noexpand\@halignto
+ \bgroup \@arstrut \@preamble \tabskip\z@skip \cr}%
+ \let\@startpbox\@@startpbox \let\@endpbox\@@endpbox
+ \let\tabularnewline\\%
+ \let\par\@empty
+ \let\@sharp##%
+ \set@typeset@protect
+ \lineskip\z@skip\baselineskip\z@skip
+ \ifhmode \@preamerr\z@ \@@par\fi
+ \if@RTLtab\hbox\bgroup\beginR\vbox\bgroup\fi
+ \@preamble}
+\def\@testpach#1{\@chclass \ifnum \@lastchclass=\tw@ 4 \else
+ \ifnum \@lastchclass=3 5 \else
+ \z@ \if #1c\@chnum \z@ \else
+ \if \if@RTLtab#1r\else#1l\fi\@chnum \@ne \else
+ \if \if@RTLtab#1l\else#1r\fi\@chnum \tw@ \else
+ \@chclass \if #1|\@ne \else
+ \if #1@\tw@ \else
+ \if #1p3 \else \z@ \@preamerr 0\fi
+ \fi \fi \fi \fi \fi \fi
+\fi}
+\def\@dottedtocline#1#2#3#4#5{%
+ \ifnum #1>\c@tocdepth \else
+ \vskip \z@ \@plus.2\p@
+ {\if@RTL\rightskip\else\leftskip\fi #2\relax \if@RTL\leftskip\else\rightskip\fi \@tocrmarg \parfillskip -\if@RTL\leftskip\else\rightskip\fi
+ \parindent #2\relax\@afterindenttrue
+ \interlinepenalty\@M
+ \leavevmode
+ \@tempdima #3\relax
+ \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rightskip\else\leftskip\fi
+ {#4}\nobreak
+ \leaders\hbox{$\m@th
+ \mkern \@dotsep mu\hbox{.}\mkern \@dotsep
+ mu$}\hfill
+ \nobreak
+ \hb@xt@\@pnumwidth{\hfil\normalfont \normalcolor #5}%
+ \par}%
+ \fi}
+\def\RTL@outputdblcol{%
+\if@firstcolumn \global\@firstcolumnfalse
+ \global\setbox\@leftcolumn \box\@outputbox
+\else \global\@firstcolumntrue
+ \setbox\@outputbox \vbox {\hbox to\textwidth {%
+ \hskip \columnwidth
+ \hfil \vrule width\columnseprule \hfil
+ \hbox to\columnwidth {\box\@leftcolumn \hss}%
+ \hskip -\textwidth
+ \hbox to\columnwidth{\box\@outputbox \hss}%
+ \hskip \columnsep
+ \hskip \columnwidth }}%
+ \@combinedblfloats \@outputpage
+ \begingroup \@dblfloatplacement \@startdblcolumn
+ \@whilesw\if@fcolmade \fi
+ {\@outputpage \@startdblcolumn }\endgroup
+\fi}
+\def\LTR@outputdblcol{%
+ \if@firstcolumn
+ \global \@firstcolumnfalse
+ \global \setbox\@leftcolumn \box\@outputbox
+ \else
+ \global \@firstcolumntrue
+ \setbox\@outputbox \vbox {%
+ \hb@xt@\textwidth {%
+ \hb@xt@\columnwidth {%
+ \box\@leftcolumn \hss}%
+ \hfil
+ {\normalcolor\vrule \@width\columnseprule}%
+ \hfil
+ \hb@xt@\columnwidth {%
+ \box\@outputbox \hss}%
+ }%
+ }%
+ \@combinedblfloats
+ \@outputpage
+ \begingroup
+ \@dblfloatplacement
+ \@startdblcolumn
+ \@whilesw\if@fcolmade \fi
+ {\@outputpage
+ \@startdblcolumn}%
+ \endgroup
+ \fi
+}
+\renewcommand{\@outputdblcol}{\if@RTLmain\RTL@outputdblcol\else\LTR@outputdblcol\fi}
+\newcommand{\RTLdblcol}{\renewcommand{\@outputdblcol}{\RTL@outputdblcol}}
+\newcommand{\LTRdblcol}{\renewcommand{\@outputdblcol}{\LTR@outputdblcol}}
+\long\def\@imakebox[#1][#2]#3{%
+ \leavevmode%
+ \@begin@tempboxa\hbox{#3}%
+ \setlength\@tempdima{#1}% support calc
+ \hb@xt@\@tempdima{\csname bm@#2\endcsname}%
+ \@end@tempboxa}
+\def\bm@l{\if@RTL\hss\else\fi\unhbox\@tempboxa\if@RTL\else\hss\fi}\let\bm@t\bm@l
+\def\bm@r{\if@RTL\else\hss\fi\unhbox\@tempboxa\if@RTL\hss\else\fi}\let\bm@b\bm@r
+\def\endminipage{%
+ \par
+ \unskip
+ \ifvoid\@mpfootins\else
+ \vskip\skip\@mpfootins
+ \normalcolor
+ \footnoterule
+ \unvbox\@mpfootins
+ \fi
+ \@minipagefalse %% added 24 May 89
+ \color@endgroup
+ \egroup
+ \if@RTL\endL\fi
+ \egroup
+ \egroup
+ \expandafter\@iiiparbox\@mpargs{\leavevmode\unvbox\@tempboxa}}
+\long\def\@iiiparbox#1#2[#3]#4#5{%
+ \leavevmode
+ \@pboxswfalse
+ \setlength\@tempdima{#4}%
+ \@begin@tempboxa\vbox{\hbox{\if@RTL\beginL\fi\vbox{\hsize\@tempdima\@parboxrestore#5\@@par}\if@RTL\endL\fi}}%
+ \ifx\relax#2\else
+ \setlength\@tempdimb{#2}%
+ \edef\@parboxto{to\the\@tempdimb}%
+ \fi
+ \if#1b\vbox
+ \else\if #1t\vtop
+ \else\ifmmode\vcenter
+ \else\@pboxswtrue $\vcenter
+ \fi\fi\fi
+ \@parboxto{\let\hss\vss\let\unhbox\unvbox
+ \csname bm@#3\endcsname}%
+ \if@pboxsw \m@th$\fi
+ \@end@tempboxa}
+\def\@addmarginpar{\@next\@marbox\@currlist{\@cons\@freelist\@marbox
+ \@cons\@freelist\@currbox}\@latexbug\@tempcnta\@ne
+ \if@twocolumn
+ \if@firstcolumn \@tempcnta\m@ne \fi
+ \else
+ \if@mparswitch
+ \ifodd\c@page \else\@tempcnta\m@ne \fi
+ \fi
+ \if@reversemargin \@tempcnta -\@tempcnta \fi
+ \fi
+ \ifnum\@tempcnta <\z@ \global\setbox\@marbox\box\@currbox \fi
+ \@tempdima\@mparbottom
+ \advance\@tempdima -\@pageht
+ \advance\@tempdima\ht\@marbox
+ \ifdim\@tempdima >\z@
+ \@latex@warning@no@line {Marginpar on page \thepage\space moved}%
+ \else
+ \@tempdima\z@
+ \fi
+ \global\@mparbottom\@pageht
+ \global\advance\@mparbottom\@tempdima
+ \global\advance\@mparbottom\dp\@marbox
+ \global\advance\@mparbottom\marginparpush
+ \advance\@tempdima -\ht\@marbox
+ \global\setbox \@marbox
+ \vbox {\vskip \@tempdima
+ \box \@marbox}%
+ \global \ht\@marbox \z@
+ \global \dp\@marbox \z@
+ \kern -\@pagedp
+ \nointerlineskip
+ \hb@xt@\columnwidth
+ {\if@RTL\if@LTRmarginpar\beginL\else\beginR\fi\else\if@RTLmarginpar\beginR\else\beginL\fi\fi\ifnum \@tempcnta >\z@
+ \hskip\columnwidth \hskip\marginparsep
+ \else
+ \hskip -\marginparsep \hskip -\marginparwidth
+ \fi
+ \box\@marbox \hss\if@RTL\if@LTRmarginpar\endL\else\endR\fi\else\if@RTLmarginpar\endR\else\endL\fi\fi}%
+ \nointerlineskip
+ \hbox{\vrule \@height\z@ \@width\z@ \@depth\@pagedp}}
+\long\def\@ympar#1{%
+ \@savemarbox\@marbox{\if@RTL\if@LTRmarginpar\@RTLfalse\else\@RTLtrue\fi\else\if@RTLmarginpar\@RTLtrue\else\@RTLfalse\fi\fi#1}%
+ \global\setbox\@currbox\copy\@marbox
+ \@xympar}
+\def\setRTLmarginpar{\@RTLmarginpartrue\@LTRmarginparfalse}
+\def\setLTRmarginpar{\@LTRmarginpartrue\@RTLmarginparfalse}
+\def\setdefaultmarginpar{\@RTLmarginparfalse\@LTRmarginparfalse}
+\def\@stopline{\unskip\@stopfield\if@rjfield \global\@rjfieldfalse
+ \@tempdima\@totalleftmargin \advance\@tempdima\linewidth
+\hbox to\@tempdima{\if@RTL\beginR\fi\@itemfudge\hskip\dimen\@curtabmar
+ \box\@curline\hfil\box\@curfield\if@RTL\endR\fi}\else\@addfield
+ \hbox to\linewidth{\if@RTL\beginR\fi\@itemfudge
+ \hskip\dimen\@curtabmar\box\@curline\hfil\if@RTL\endR\fi}%
+\fi}
+\def\@outputpage{%
+\begingroup % the \endgroup is put in by \aftergroup
+ \let \protect \noexpand
+ \@resetactivechars
+ \global\let\@@if@newlist\if@newlist
+ \global\@newlistfalse
+ \@parboxrestore
+ \shipout \vbox{%
+ \set@typeset@protect
+ \aftergroup \endgroup
+ \aftergroup \set@typeset@protect
+ % correct? or just restore by ending
+ % the group?
+ \if@specialpage
+ \global\@specialpagefalse\@nameuse{ps@\@specialstyle}%
+ \fi
+ \if@twoside
+ \ifodd\count\z@ \let\@thehead\@oddhead \let\@thefoot\@oddfoot
+ \let\@themargin\oddsidemargin
+ \else \let\@thehead\@evenhead
+ \let\@thefoot\@evenfoot \let\@themargin\evensidemargin
+ \fi
+ \ifx\@thehead\@empty \let\@thehead\hfil \fi
+ \ifx\@thefoot\@empty \let\@thefoot\hfil \fi
+ \else %% not @twoside
+ \ifx\@oddhead\@empty \let\@thehead\hfil \fi
+ \ifx\@oddfoot\@empty \let\@thefoot\hfil \fi
+ \fi
+ \reset@font
+ \normalsize
+ \normalsfcodes
+ \let\label\@gobble
+ \let\index\@gobble
+ \let\glossary\@gobble
+ \baselineskip\z@skip \lineskip\z@skip \lineskiplimit\z@
+ \@begindvi
+ \vskip \topmargin
+ \moveright\@themargin \vbox {%
+ \setbox\@tempboxa \vbox to\headheight{%
+ \vfil
+ \color@hbox
+ \normalcolor
+ \hb@xt@\textwidth{\if@RTLmain\beginR\fi\@thehead\if@RTLmain\endR\fi}%
+ \color@endbox
+ }% %% 22 Feb 87
+ \dp\@tempboxa \z@
+ \box\@tempboxa
+ \vskip \headsep
+ \box\@outputbox
+ \baselineskip \footskip
+ \color@hbox
+ \normalcolor
+ \hb@xt@\textwidth{\if@RTLmain\beginR\fi\@thefoot\if@RTLmain\endR\fi}%
+ \color@endbox
+ }%
+ }%
+ \global\let\if@newlist\@@if@newlist
+ \global \@colht \textheight
+ \stepcounter{page}%
+ \let\firstmark\botmark
+}
+\long\def\@makecaption#1#2{%
+ \vskip\abovecaptionskip
+ \sbox\@tempboxa{#1: #2}%
+ \ifdim \wd\@tempboxa >\hsize
+ \if@RTL\beginR\fi#1: #2\if@RTL\endR\fi\par
+ \else
+ \global \@minipagefalse
+ \hb@xt@\hsize{\if@RTL\beginR\fi\hfil\box\@tempboxa\hfil\if@RTL\endR\fi}%
+ \fi
+ \vskip\belowcaptionskip}
+\everydisplay{\predisplaydirection=0 }
+\def\@eqnnum{{\normalfont \normalcolor \if@RTL\beginR\fi(\theequation)\if@RTL\endR\fi}}
+\input{footnote-xetex-bidi.def}
+\@ifclassloaded{article}{\input{article-xetex-bidi.def}}{}
+\@ifclassloaded{extarticle}{\input{extarticle-xetex-bidi.def}}{}
+\@ifclassloaded{artikel1}{\input{artikel1-xetex-bidi.def}}{}
+\@ifclassloaded{artikel2}{\input{artikel2-xetex-bidi.def}}{}
+\@ifclassloaded{artikel3}{\input{artikel3-xetex-bidi.def}}{}
+\@ifclassloaded{amsart}{\input{amsart-xetex-bidi.def}}{}
+\@ifclassloaded{letter}{\input{letter-xetex-bidi.def}}{}
+\@ifclassloaded{scrlettr}{\input{scrlettr-xetex-bidi.def}}{}
+\@ifclassloaded{extletter}{\input{extletter-xetex-bidi.def}}{}
+\@ifclassloaded{memoir}{\input{memoir-xetex-bidi.def}}{}
+\@ifclassloaded{refrep}{\input{refrep-xetex-bidi.def}}{}
+\@ifclassloaded{extreport}{\input{extreport-xetex-bidi.def}}{}
+\@ifclassloaded{report}{\@ifpackageloaded{flowfram}{}{\input{report-xetex-bidi.def}}}{}
+\@ifclassloaded{rapport1}{\input{rapport1-xetex-bidi.def}}{}
+\@ifclassloaded{rapport3}{\input{rapport3-xetex-bidi.def}}{}
+\@ifclassloaded{scrartcl}{\input{scrartcl-xetex-bidi.def}}{}
+\@ifclassloaded{scrbook}{\input{scrbook-xetex-bidi.def}}{}
+\@ifclassloaded{scrreprt}{\input{scrreprt-xetex-bidi.def}}{}
+\@ifclassloaded{amsbook}{\input{amsbook-xetex-bidi.def}}{}
+\@ifclassloaded{extbook}{\input{extbook-xetex-bidi.def}}{}
+\@ifclassloaded{boek}{\input{boek-xetex-bidi.def}}{}
+\@ifclassloaded{boek3}{\input{boek3-xetex-bidi.def}}{}
+\@ifclassloaded{book}{\@ifpackageloaded{flowfram}{}{\input{book-xetex-bidi.def}}}{}
+\@ifclassloaded{bookest}{\input{bookest-xetex-bidi.def}}{}
+\@iftagsloaded{leqno}{\input{leqno-xetex-bidi.def}}{}
+\@iftagsloaded{fleqn}{\input{fleqn-xetex-bidi.def}}{}
+\@ifpackageloaded{amsmath}{\input{amsmath-xetex-bidi.def}}{}
+\@ifpackageloaded{amsthm}{\input{amsthm-xetex-bidi.def}}{}
+\@ifpackageloaded{breqn}{\input{breqn-xetex-bidi.def}}{}
+\@ifpackageloaded{caption}{\input{caption-xetex-bidi.def}}{}
+\@ifpackageloaded{color}{\input{color-xetex-bidi.def}}{}
+\@ifpackageloaded{xcolor}{\input{xcolor-xetex-bidi.def}}{}
+\@ifpackageloaded{colortbl}{\input{colortbl-xetex-bidi.def}}{}
+\@ifpackageloaded{flowfram}{\input{flowfram-xetex-bidi.def}}{}
+\@ifpackageloaded{xltxtra}{\input{xltxtra-xetex-bidi.def}}{}
+\@ifpackageloaded{wrapfig}{\input{wrapfig-xetex-bidi.def}}{}
+\@ifpackageloaded{graphicx}{\input{graphicx-xetex-bidi.def}}{}
+\@ifpackageloaded{hyperref}{\input{hyperref-xetex-bidi.def}}{}
+\@ifpackageloaded{fancyhdr}{\input{fancyhdr-xetex-bidi.def}}{}
+\@ifpackageloaded{draftwatermark}{\input{draftwatermark-xetex-bidi.def}}{}
+\@ifpackageloaded{pdfpages}{\input{pdfpages-xetex-bidi.def}}{}
+\@ifpackageloaded{listings}{\input{listings-xetex-bidi.def}}{}
+\@ifpackageloaded{pstricks}{\input{pstricks-xetex-bidi.def}}{}
+\@ifpackageloaded{pgf}{\input{pgf-xetex-bidi.def}}{}
+\@ifpackageloaded{tikz}{\input{tikz-xetex-bidi.def}}{}
+\@ifpackageloaded{titlesec}{\input{titlesec-xetex-bidi.def}}{}
+\@ifpackageloaded{titletoc}{\input{titletoc-xetex-bidi.def}}{}
+\@ifpackageloaded{array}{\input{array-xetex-bidi.def}}{}
+\@ifpackageloaded{stabular}{\input{stabular-xetex-bidi.def}}{}
+\@ifpackageloaded{subfigure}{\input{subfigure-xetex-bidi.def}}{}
+\@ifpackageloaded{longtable}{\input{longtable-xetex-bidi.def}}{}
+\@ifpackageloaded{arydshln}{\input{arydshln-xetex-bidi.def}}{}
+\@ifpackageloaded{multicol}{\input{multicol-xetex-bidi.def}}{}
+\@ifpackageloaded{minitoc}{\input{minitoc-xetex-bidi.def}}{}
+\@ifpackageloaded{quotchap}{\input{quotchap-xetex-bidi.def}}{}
+\@ifpackageloaded{ragged2e}{\input{ragged2e-xetex-bidi.def}}{}
+\@ifpackageloaded{tabls}{\input{tabls-xetex-bidi.def}}{}
+\@ifpackageloaded{tabulary}{\input{tabulary-xetex-bidi.def}}{}
+\@ifpackageloaded{tocstyle}{\input{tocstyle-xetex-bidi.def}}{}
+\@ifpackageloaded{tocbibind}{\@ifclassloaded{memoir}{}{\input{tocbibind-xetex-bidi.def}}}{}
+\@ifpackageloaded{tocloft}{\@ifclassloaded{memoir}{}{\input{tocloft-xetex-bidi.def}}}{}
+% \end{macrocode}
+% \iffalse
+%</xetex-bidi.def>
+%<*xltxtra-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{xltxtra-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{xltxtra-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for xltxtra package for XeTeX engine]
+\let\@@XeTeX\XeTeX
+\def\XeTeX{\@ensure@LTR{\@@XeTeX}}
+\let\@@XeLaTeX\XeLaTeX
+\def\XeLaTeX{\@ensure@LTR{\@@XeLaTeX}}
+% \end{macrocode}
+% \iffalse
+%</xltxtra-xetex-bidi.def>
+%\fi
+%
+% \Finale
+%
+%
+%\iffalse
+%<*bidisample2e.tex>
+\documentclass{article} % Specifies the document class
+\usepackage[RTLdocument]{bidi}
+ % The preamble begins here.
+\title{An Example Document} % Declares the document's title.
+\author{Leslie Lamport} % Declares the author's name.
+\date{January 21, 1994} % Deleting this command produces today's date.
+
+\newcommand{\ip}[2]{(#1, #2)}
+ % Defines \ip{arg1}{arg2} to mean
+ % (arg1, arg2).
+
+ % This is an alternative definition of
+ % \ip that is commented out.
+
+\begin{document} % End of preamble and beginning of text.
+
+\maketitle % Produces the title.
+
+This is an example input file. Comparing it with
+the output it generates can show you how to
+produce a simple document of your own.
+
+\section{Ordinary Text} % Produces section heading. Lower-level
+ % sections are begun with similar
+ % \subsection and \subsubsection commands.
+
+The ends of words and sentences are marked
+ by spaces. It doesn't matter how many
+spaces you type; one is as good as 100. The
+end of a line counts as a space.
+
+One or more blank lines denote the end
+of a paragraph.
+
+Since any number of consecutive spaces are treated
+like a single one, the formatting of the input
+file makes no difference to
+ \LaTeX, % The \LaTeX command generates the LaTeX logo.
+but it makes a difference to you. When you use
+\LaTeX, making your input file as easy to read
+as possible will be a great help as you write
+your document and when you change it. This sample
+file shows how you can add comments to your own input
+file.
+
+Because printing is different from typewriting,
+there are a number of things that you have to do
+differently when preparing an input file than if
+you were just typing the document directly.
+Quotation marks like
+ ``this''
+have to be handled specially, as do quotes within
+quotes:
+ ``\,`this' % \, separates the double and single quote.
+ is what I just
+ wrote, not `that'\,''.
+
+Dashes come in three sizes: an
+ intra-word
+dash, a medium dash for number ranges like
+ 1--2,
+and a punctuation
+ dash---like
+this.
+
+A sentence-ending space should be larger than the
+space between words within a sentence. You
+sometimes have to type special commands in
+conjunction with punctuation characters to get
+this right, as in the following sentence.
+ Gnats, gnus, etc.\ all % `\ ' makes an inter-word space.
+ begin with G\@. % \@ marks end-of-sentence punctuation.
+You should check the spaces after periods when
+reading your output to make sure you haven't
+forgotten any special cases. Generating an
+ellipsis
+ \ldots\ % `\ ' is needed after `\ldots' because TeX
+ % ignores spaces after command names like \ldots
+ % made from \ + letters.
+ %
+ % Note how a `%' character causes TeX to ignore
+ % the end of the input line, so these blank lines
+ % do not start a new paragraph.
+ %
+with the right spacing around the periods requires
+a special command.
+
+\LaTeX\ interprets some common characters as
+commands, so you must type special commands to
+generate them. These characters include the
+following:
+ \$ \& \% \# \{ and \}.
+
+In printing, text is usually emphasized with an
+ \emph{italic}
+type style.
+
+\begin{em}
+ A long segment of text can also be emphasized
+ in this way. Text within such a segment can be
+ given \emph{additional} emphasis.
+\end{em}
+
+It is sometimes necessary to prevent \LaTeX\ from
+breaking a line where it might otherwise do so.
+This may be at a space, as between the ``Mr.''\ and
+``Jones'' in
+ ``Mr.~Jones'', % ~ produces an unbreakable interword space.
+or within a word---especially when the word is a
+symbol like
+ \mbox{\emph{itemnum}}
+that makes little sense when hyphenated across
+lines.
+
+Footnotes\footnote{This is an example of a footnote.}
+pose no problem.
+
+\LaTeX\ is good at typesetting mathematical formulas
+like
+ \( x-3y + z = 7 \)
+or
+ \( a_{1} > x^{2n} + y^{2n} > x' \)
+or
+ \( \ip{A}{B} = \sum_{i} a_{i} b_{i} \).
+The spaces you type in a formula are
+ignored. Remember that a letter like
+ $x$ % $ ... $ and \( ... \) are equivalent
+is a formula when it denotes a mathematical
+symbol, and it should be typed as one.
+
+\section{Displayed Text}
+
+Text is displayed by indenting it from the left
+margin. Quotations are commonly displayed. There
+are short quotations
+\begin{quote}
+ This is a short quotation. It consists of a
+ single paragraph of text. See how it is formatted.
+\end{quote}
+and longer ones.
+\begin{quotation}
+ This is a longer quotation. It consists of two
+ paragraphs of text, neither of which are
+ particularly interesting.
+
+ This is the second paragraph of the quotation. It
+ is just as dull as the first paragraph.
+\end{quotation}
+Another frequently-displayed structure is a list.
+The following is an example of an \emph{itemized}
+list.
+\begin{itemize}
+ \item This is the first item of an itemized list.
+ Each item in the list is marked with a ``tick''.
+ You don't have to worry about what kind of tick
+ mark is used.
+
+ \item This is the second item of the list. It
+ contains another list nested inside it. The inner
+ list is an \emph{enumerated} list.
+ \begin{enumerate}
+ \item This is the first item of an enumerated
+ list that is nested within the itemized list.
+
+ \item This is the second item of the inner list.
+ \LaTeX\ allows you to nest lists deeper than
+ you really should.
+ \end{enumerate}
+ This is the rest of the second item of the outer
+ list. It is no more interesting than any other
+ part of the item.
+ \item This is the third item of the list.
+\end{itemize}
+You can even display poetry.
+\begin{verse}
+ There is an environment
+ for verse \\ % The \\ command separates lines
+ Whose features some poets % within a stanza.
+ will curse.
+
+ % One or more blank lines separate stanzas.
+
+ For instead of making\\
+ Them do \emph{all} line breaking, \\
+ It allows them to put too many words on a line when they'd rather be
+ forced to be terse.
+\end{verse}
+
+Mathematical formulas may also be displayed. A
+displayed formula
+is
+one-line long; multiline
+formulas require special formatting instructions.
+ \[ \ip{\Gamma}{\psi'} = x'' + y^{2} + z_{i}^{n}\]
+Don't start a paragraph with a displayed equation,
+nor make one a paragraph by itself.
+
+\end{document} % End of document.
+%</bidisample2e.tex>
+%<*bidismall2e.tex>
+\documentclass{article} % Your input file must contain these two lines
+\usepackage[RTLdocument]{bidi}
+\begin{document} % plus the \end{document} command at the end.
+
+\section{Simple Text} % This command makes a section title.
+
+Words are separated by one or more spaces. Paragraphs are separated by
+one or more blank lines. The output is not affected by adding extra
+spaces or extra blank lines to the input file.
+
+Double quotes are typed like this: ``quoted text''.
+Single quotes are typed like this: `single-quoted text'.
+
+Long dashes are typed as three dash characters---like this.
+
+Emphasized text is typed like this: \emph{this is emphasized}.
+Bold text is typed like this: \textbf{this is bold}.
+
+\subsection{A Warning or Two} % This command makes a subsection title.
+
+If you get too much space after a mid-sentence period---abbreviations
+like etc.\ are the common culprits)---then type a backslash followed by
+a space after the period, as in this sentence.
+
+Remember, don't type the 10 special characters (such as dollar sign and
+backslash) except as directed! The following seven are printed by
+typing a backslash in front of them: \$ \& \# \% \_ \{ and \}.
+The manual tells how to make other symbols.
+
+\end{document} % The input file ends with this command.
+%</bidismall2e.tex>
+%<*presentation-sample.tex>
+\documentclass[12pt,twoside]{bidipresentation}
+\usepackage{fontspec}
+\setmainfont[Script=Arabic,Mapping=farsidigits]{XB Niloofar}
+\usepackage[RTLdocument]{bidi}
+\pagestyle{pres}
+
+
+\begin{document}
+\begin{titlepage}
+\distance{1}
+\centering \LARGE
+ \bfseries عنوان اسلاید
+
+\distance{1}
+\large
+وفا خلیقی\\[1ex]نام دانشگاه
+\distance{2}
+\end{titlepage}
+
+\begin{plainslide}[این عنوان یک صفحه است.]
+این اولین صفحه اسلاید ما است که من در حال نوشتن آن هستم و کمی بیشتر می‌نویسم تا به خط بعدی بروم
+\footnote{این یک زیرنویس فارسی است.}\LTRfootnote{This is an English footnote.}
+\begin{equation}
+(a+b)^2=a^2+2ab+b^2
+\end{equation}
+\begin{itemize}
+ \item یک
+ \item دو
+\end{itemize}
+
+\begin{enumerate}
+ \item یک
+ \item دو
+\end{enumerate}
+
+\begin{description}
+ \item [یک:] اولین عدد
+ \item [دو:] دومین عدد
+\end{description}
+
+\end{plainslide}
+\begin{rawslide}
+دومین صفحه
+
+\end{rawslide}
+
+\end{document}
+%</presentation-sample.tex>
+%<*test1-colortbl.tex>
+\documentclass{article}
+\usepackage{fontspec}
+\setmainfont[Mapping=farsidigits,Script=Arabic]{XB Kayhan}
+\usepackage{hhline}
+\usepackage{colortbl}
+\usepackage[RTLdocument]{bidi}
+\begin{document}
+این فقط یک آزمایش است
+\begin{center}
+\setlength\arrayrulewidth{5pt}
+\setlength\doublerulesep{5pt}
+ \renewcommand{\arraystretch}{2}
+ \definecolor{orange}{cmyk}{0,0.61,0.87,0}
+ \definecolor{indigo}{cmyk}{0.8,0.9,0,0}
+ \definecolor{violet}{cmyk}{0.6,0.9,0,0}
+ \newcommand\rainbowline[1]{%
+ \hhline{%
+ >{\arrayrulecolor {red}\doublerulesepcolor[rgb]{.3,.3,1}}%
+ |#1:=%
+ >{\arrayrulecolor{orange}\doublerulesepcolor[rgb]{.4,.4,1}}%
+ =%
+ >{\arrayrulecolor{yellow}\doublerulesepcolor[rgb]{.5,.5,1}}%
+ =%
+ >{\arrayrulecolor {green}\doublerulesepcolor[rgb]{.6,.6,1}}%
+ =%
+ >{\arrayrulecolor {blue}\doublerulesepcolor[rgb]{.7,.7,1}}%
+ =%
+ >{\arrayrulecolor{indigo}\doublerulesepcolor[rgb]{.8,.8,1}}%
+ =%
+ >{\arrayrulecolor{violet}\doublerulesepcolor[rgb]{.9,.9,1}}%
+ =:#1|%
+ }}
+ \arrayrulecolor{red}
+ \doublerulesepcolor[rgb]{.3,.3,1}
+ \begin{tabular}{||*7{>{\columncolor[gray]{.9}}c}||}
+ \rainbowline{t}%
+ \arrayrulecolor{violet}\doublerulesepcolor[rgb]{.9,.9,1}
+ وفا&خلیقی&یک&دانشجوی&ریاضی&است&
+ \multicolumn{1}{>{\columncolor[gray]{.9}}c||}{حرف آخر}\\
+ \rainbowline{}%
+ 1&2&3&4&5&6&
+ \multicolumn{1}{>{\columncolor[gray]{.9}}c||}{7}\\
+ \rainbowline{b}%
+ \end{tabular}
+ \end{center}
+این صرفاً یک آزمایش است
+\end{document}
+%</test1-colortbl.tex>
+%<*test1-wrapfig.tex>
+\documentclass{article}
+\usepackage{wrapfig}
+\usepackage{bidi}
+\newcommand\sample{Some text for our page
+ that might get reused over and over again. }
+\begin{document}
+\section{LTR}
+The starting place for the wrapfigure
+environment was manually determined in
+the current ex-
+
+\begin{wrapfigure}[7]{r}[0.2\width]{0pt}
+ \centering
+ \fbox{This is ``wrapfigure''.}
+ \caption{An example of the
+ \texttt{wrapfigure} environment}
+\end{wrapfigure}
+sample by first setting the text without
+the figure to find the linebreaks.
+
+\sample \sample \sample\sample \sample \sample\sample
+
+\section{RTL}
+
+\setRTL
+The starting place for the wrapfigure
+environment was manually determined in
+the current ex-
+
+\begin{wrapfigure}[7]{l}[0.2\width]{0pt}
+ \centering
+ \fbox{This is ``wrapfigure''.}
+ \caption{An example of the
+ \texttt{wrapfigure} environment}
+\end{wrapfigure}
+sample by first setting the text without
+the figure to find the linebreaks.
+
+\sample \sample \sample\sample \sample \sample\sample
+\end{document}
+%</test1-wrapfig.tex>
+%<*test2-colortbl.tex>
+\documentclass{article}
+\usepackage{fullpage}
+\usepackage{fontspec}
+\usepackage{colortbl}
+\setmainfont[Scale=1,Script=Arabic,Mapping=farsidigits]{XB Kayhan}
+\usepackage[RTLdocument]{bidi}
+\begin{document}
+این فقط یک آزمایش است
+
+\setlength{\extrarowheight}{2mm}
+\setlength{\tabcolsep}{2mm}
+\begin{center}
+\begin{tabular}{|l|%
+>{\columncolor{yellow}}c|c|>{\columncolor{yellow}}c|c|%
+>{\columncolor{red}\bfseries}c<{\textsc{GBP}}|}
+\hline
+\multicolumn{3}{>{\columncolor{red}}r}{\color{white}\textbf{لَنْدَنْ}}
+&\multicolumn{3}{>{\columncolor{red}}l}{\color{white}\textbf{قیمت}}
+\\[1pt]
+\hline
+سیدنی & OG4G &سشنبه ۱۰ اکتبر &دوشنبه ۲۱ اکتبر یا ۲۸‌ام &11 یا ۱۸ روز &999\\
+& &سشنبه ۱۷ اکتبر &دوشنبه ۲۱ اکتبر یا ۲۸‌ام & 4 یا ۱۱ روز &999\\
+& OG7A &یکشنبه ۱۱ اکتبر &دوشنبه ۲۱ اکتبر یا ۲۸‌ام & 8 یا ۱۵ روز &999\\
+& &یکشنبه ۲۰ اکتبر &دوشنبه ۲۸ اکتبر & 8 روز &999\\
+\hline
+\end{tabular}
+\end{center}
+\end{document}
+%</test2-colortbl.tex>
+%<*test2-wrapfig.tex>
+\documentclass{article}
+\usepackage{wrapfig}
+\usepackage{bidi}
+\newcommand\sample{Some text for our page
+ that might get reused over and over again. }
+\begin{document}
+\section{LTR}
+\begin{wraptable}[4]{l}{4cm}
+ \centering
+\fbox{This is ``wraptable''.}
+ \caption{The Caption}\label{T1}
+\end{wraptable}
+
+\sample \sample Reference to Table~\ref{T1}.
+\sample
+
+\section{RTL}
+\setRTL
+
+\begin{wraptable}[4]{r}{4cm}
+ \centering
+\fbox{This is ``wraptable''.}
+ \caption{The Caption}\label{T2}
+\end{wraptable}
+
+\sample \sample Reference to Table~\ref{T2}.
+\sample
+\end{document}
+%</test2-wrapfig.tex>
+%<*test3-wrapfig.tex>
+\documentclass[a4paper,12pt]{article}
+
+\usepackage{graphicx}
+\usepackage{wrapfig}
+\usepackage{bidi}
+\begin{document}
+\section{LTR}
+\subsection*{Wrapfig test}
+
+
+Gulls are birds in the family Laridae. They are most closely
+ related to the terns (family Sternidae), auks and skimmers,
+and more distantly to the waders. Most gulls belong to the
+large genus Larus.
+
+\begin{wrapfigure}{r}{0.5\textwidth}
+ \begin{center}
+ \includegraphics[width=0.48\textwidth]{gull}
+ \end{center}
+ \caption{A gull}
+\end{wrapfigure}
+
+They are in general medium to large birds, typically grey or white,
+often with black markings on the head or wings. They have stout,
+longish bills and webbed feet.
+
+Most gulls, particularly Larus species, are ground nesting carnivores,
+which will take live food or scavenge opportunistically. The live food
+often includes crabs and small fish. Apart from the kittiwakes, gulls
+are typically coastal or inland species, rarely venturing far out to sea.
+The large species take up to four years to attain full adult plumage,
+but two years is typical for small gulls.
+
+Gulls---the larger species in particular---are resourceful and
+highly intelligent birds, demonstrating complex methods of communication
+and a highly developed social structure. Certain species (e.g. the
+Herring Gull) have exhibited tool use behaviour. Many species of gull have
+learned to co-exist successfully with man and have thrived in human habitats.
+Others rely on kleptoparasitism to get their food.
+
+\newpage
+\section{RTL}
+
+\setRTL
+\subsection*{Wrapfig test}
+
+
+Gulls are birds in the family Laridae. They are most closely
+ related to the terns (family Sternidae), auks and skimmers,
+and more distantly to the waders. Most gulls belong to the
+large genus Larus.
+
+\begin{wrapfigure}{l}{0.5\textwidth}
+ \begin{center}
+ \includegraphics[width=0.48\textwidth]{gull}
+ \end{center}
+ \caption{A gull}
+\end{wrapfigure}
+
+They are in general medium to large birds, typically grey or white,
+often with black markings on the head or wings. They have stout,
+longish bills and webbed feet.
+
+Most gulls, particularly Larus species, are ground nesting carnivores,
+which will take live food or scavenge opportunistically. The live food
+often includes crabs and small fish. Apart from the kittiwakes, gulls
+are typically coastal or inland species, rarely venturing far out to sea.
+The large species take up to four years to attain full adult plumage,
+but two years is typical for small gulls.
+
+Gulls---the larger species in particular---are resourceful and
+highly intelligent birds, demonstrating complex methods of communication
+and a highly developed social structure. Certain species (e.g. the
+Herring Gull) have exhibited tool use behaviour. Many species of gull have
+learned to co-exist successfully with man and have thrived in human habitats.
+Others rely on kleptoparasitism to get their food.
+\end{document}
+%</test3-wrapfig.tex>
+%<*test-arydshln.tex>
+\documentclass{article}
+\usepackage{arydshln}
+\usepackage{bidi}
+\title{Testing \textsf{arydshln} Package in LTR and RTL modes}
+\author{}
+\date{}
+\begin{document}
+\maketitle
+\section{LTR Mode}
+\begin{center}
+\begin{tabular}{|l::c;{2pt/2pt}r|}\hline
+A&B&C\\\hdashline[1pt/1pt]
+AAA&BBB&CCC\\\cdashline{1-2}[.4pt/1pt]
+\multicolumn{2}{|l;{2pt/2pt}}{AB}&C\\\hdashline\hdashline
+\end{tabular}
+\end{center}
+\section{RTL Mode}
+\begin{RTL}
+\begin{center}
+\begin{tabular}{|r::c;{2pt/2pt}l|}\hline
+A&B&C\\\hdashline[1pt/1pt]
+AAA&BBB&CCC\\\cdashline{1-2}[.4pt/1pt]
+\multicolumn{2}{|r;{2pt/2pt}}{AB}&C\\\hdashline\hdashline
+\end{tabular}
+\end{center}
+\end{RTL}
+\end{document}
+%</test-arydshln.tex>
+%<*test-bidi.tex>
+\documentclass{article}
+\usepackage{bidi}
+\title{Testing Basic Bidi Direction Change}
+\author{Vafa Khalighi}
+\begin{document}
+\maketitle
+In this document we test bidi direction change in \textsf{RTL} and \textsf{LTR}. These tests includes \texttt{flushleft}, \texttt{flushright} environments and \verb|\centerline{...}|, \verb|\leftline{...}|,\verb|\rightline{...}|,\verb|\raggedleft| and \verb|\raggedright| macros.
+\section{RTL Test}
+\setRTL
+\begin{flushleft}
+This is left in RTL
+\end{flushleft}
+\begin{flushright}
+This is right in RTL
+\end{flushright}
+\centerline{This is center in RTL}
+
+\leftline{This is left in RTL}
+
+\rightline{This is right in RTL}
+
+\raggedleft This is raggedleft in RTL
+
+\raggedright This is raggedright in RTL
+
+\setLTR
+\section{LTR Test}
+\begin{flushleft}
+This is left in LTR
+\end{flushleft}
+\begin{flushright}
+This is right in LTR
+\end{flushright}
+\centerline{This is center in LTR}
+
+\leftline{This is left in LTR}
+
+\rightline{This is right in LTR}
+
+\raggedleft This is raggedleft in LTR
+
+\raggedright This is raggedright in LTR
+\end{document}
+%</test-bidi.tex>
+%<*test-brochure.tex>
+\documentclass[a4paper]{report}
+
+\usepackage[landscape,margin=1in]{geometry}
+\usepackage{color}
+\usepackage[RL]{flowfram}% we enable `RL' option for RTL multicolumn typesetting (see flowfram package documentation)
+\usepackage[colorlinks,setpagesize=false]{hyperref}
+
+\usepackage[RTLdocument]{bidi}
+% adjust \textheight so that it is an integer multiple of
+% \baselineskip
+\adjustheight{\textheight}
+
+% set up pagelayout. One column for title page
+% two columns for the rest.
+\onecolumninarea[1,2]{0.6\textwidth}{\textheight}{0.4\textwidth}{0pt}
+\twocolumninarea[>2]{0.6\textwidth}{\textheight}{0.4\textwidth}{0pt}
+
+% Set up dynamic frame on the left. This is where
+% the headings will go.
+
+\newdynamicframe{0.4\textwidth}{\textheight}{0pt}{0pt}[left]
+
+% put the chapter headings in this frame
+\dfchaphead*{left}
+% Modify the default style
+\renewcommand{\DFchapterstyle}[1]{%
+\raggedright\Huge\slshape\MakeUppercase{#1}\par}
+
+% Make static frames for background (only for page 1)
+\vtwotone[1]{0.6\paperwidth}{[cmyk]{0.65,0.13,0,0}}{backleft}%
+{0.4\paperwidth}{[cmyk]{0.94,0.54,0,0}}{backright}
+
+% Make a border along the top of each page
+\vtwotonetop{1cm}{0.6\paperwidth}{[cmyk]{0.65,0.13,0,0}}{topleft}%
+{0.4\paperwidth}{[cmyk]{0.94,0.54,0,0}}{topright}
+
+% make a static frame for the logo
+\newstaticframe{0.2\textwidth}{0.25\textheight}{0pt}{0pt}[logo]
+
+% empty page style, because I am going to make my own
+\pagestyle{empty}
+
+% Each new chapter sets \thispagestyle{\chapterfirstpagestyle}, change this empty as well
+\renewcommand{\chapterfirstpagestyle}{empty}
+
+% Now make a frame in which to put my own customized footer
+\newdynamicframe[>1]{\textwidth}{\headheight}{0pt}{-\footskip}[footer]
+
+% set the contents of the frame:
+\setdynamiccontents*{footer}{%
+School of Computing Sciences, University of East Anglia\hfill
+http://www.cmp.uea.ac.uk/\hfill
+page \thepage\ of \pageref*{lastpage}}
+
+
+\newcommand{\env}[1]{\texttt{#1}}
+\newcommand{\cmdname}[1]{\texttt{\symbol{92}#1}}
+\newcommand{\meta}[1]{\textnormal{\textless\textit{#1}\textgreater}}
+
+\begin{document}
+
+% not a very interesting logo
+\setstaticcontents*{logo}{\sffamily{\Huge\slshape FLF} Flowfram}
+
+{\noindent
+\slshape\Huge\MakeUppercase{A Sample Brochure}\par
+\vskip0.5in
+\noindent\large\MakeUppercase{Nicola Talbot}\\
+}
+
+
+\chapter{Introduction}
+
+The \textsl{flowfram} package is designed to enable you to create
+frames in a document such that the
+contents of the \env{document} environment flow from one
+frame to the next in the order that they were defined.
+This is useful for creating posters
+or magazines or any other form of document that does not
+conform to the standard one or two column layout.
+
+This is a modified version of the manual for the \textsl{flowfram} package.
+It is intended to illustrated what can be done. See the full
+manual (ffuserguide.pdf) for
+a comprehensive description, as some parts of this document
+may now be out of date.
+If the columns are very narrow, it may be better to
+use \cmdname{raggedright}, otherwise \TeX\ may have a
+problem working out the line breaks.
+
+This is column~\thedisplayedframe.
+
+The main type of frame is the flow frame. This is described on
+column~\ref{flow:flowframe} on page~\pageref{flow:flowframe}.
+The order used to draw the contents of each frame on the page
+is described in column~\ref{flow:stacking} on
+page~\pageref{flow:stacking}. Floats are describe in
+column~\ref{flow:floats} on page~\pageref{flow:floats}.
+
+\chapter{Setting up Frames}
+
+This is column~\thedisplayedframe.
+
+The \textsl{flowfram} package provides three types of frame:
+{flow frames}, {static
+frames} and {dynamic frames}.
+
+\section*{Flow Frames}
+
+\labelflow{flow:flowframe}
+The flow frame is the principle type of frame.
+The text of the \env{document} environment will flow from
+one frame to the next in order of definition. Each
+flow frame has an associated width, height,
+position on the page, and optionally a border.
+
+It is recommended that all the flow frames in a document
+have the same width, otherwise problems may occur
+when a paragraph spans to flow frames of unequal
+widths. This is because \TeX's output routine does not
+register the change in \cmdname{hsize} until it reaches
+a paragraph break. If it is absolutely necessary for
+flow frames to have unequal widths, judicious use of
+\cmdname{framebreak} is required.
+
+\section*{Static Frames}
+
+A static frame is a rectangular area in which text neither
+flows into, nor flows out of. The contents must be set
+explicitly, and once set, the contents of the static frame will
+remain the same on each page until it is explicitly
+changed. Thus, a static frame can be used, for example, to make
+a company logo appear in the same place on every page.
+
+\section*{Dynamic Frames}
+
+A dynamic frame is similar to a static frame, but its contents
+are re-typeset on each page. (A static frame stores its
+contents in a savebox, whereas a dynamic frame stores its
+contents in a macro).
+
+This is column~\thedisplayedframe.
+
+\chapter{Frame Attributes}
+\label{sec:modattr}
+
+Once you have defined the {flow frames}, {static frames} and
+{dynamic frames}, their attributes can be changed.
+The three types of frame mostly have the
+same set of attributes, but some are specific to a certain type.
+The available attributes are as follows
+(\textsuperscript{\textbf{F}} indicates the key is
+only available for {flow frames},
+\textsuperscript{\textbf{S}} indicates the key is only available
+for {static frames}
+and \textsuperscript{\textbf{D}} indicates the key
+is only available for {dynamic frames}):
+
+\begin{description}
+\item[width=\meta{length}]\mbox{}\par The width of the frame.
+
+\item[height=\meta{length}]\mbox{}\par The height of the frame.
+
+\item[x=\meta{length}]\mbox{}\par The x-coordinate of the frame.
+
+\item[y=\meta{length}]\mbox{}\par The y-coordinate of the frame.
+
+\item[border=\meta{style}]\mbox{}\par The style of the border around the
+frame, this can take the values: \texttt{none} (no border),
+\texttt{plain} (plain border) or the name of a \LaTeX\
+frame making command without the preceding backslash.
+The value \texttt{fbox} is equivalent to \texttt{plain}.
+
+\item[offset=\meta{offset}]\mbox{}\par The border offset, if it is a
+user-defined border. This is the distance from the outer
+edge of the left hand border to the left edge of the
+bounding box of the text inside the border. The \textsl{flowfram}
+package is able to compute the border for
+known frame making commands.
+If you define your own frame making command, you may need to
+specify the offset explicitly, or the frames
+may end up shifted to the right or left.
+
+\item[bordercolor=\meta{colour}]\mbox{}\par The colour of the border
+if you are using a standard frame making command.
+The colour can either be specified as, e.g.\ \texttt{green},
+or including the colour model, for example
+\verb/[rgb]{0,1,0}/.
+
+\item[textcolor=\meta{colour}]\mbox{}\par The text colour for that
+frame. Again, the colour can either be specified as,
+e.g.\ \texttt{green}, or including the colour model,
+for example \verb/[rgb]{0,1,0}/.
+
+\item[pages=\meta{page list}]\mbox{}\par The {list of
+pages} for which the frame
+should appear. This can either have the values: \texttt{all},
+\texttt{even}, \texttt{odd} or \texttt{none} (the latter
+removes the frame from that point on---useful if you
+have multiple pages with the same number), or it can be a
+comma-separated list of single pages, or
+{page ranges}.
+
+\item[margin=\meta{side}\textsuperscript{F}]\mbox{}\par The side of
+the flow frame that its corresponding margin should go on. This
+can take the values \texttt{left} or \texttt{right}.
+
+\item[clear=\meta{boolean}\textsuperscript{S}] If this value
+is set, the static frame will be cleared at the start of the
+next page.
+
+\item[style=\meta{cmd}\textsuperscript{D}]\mbox{}\par This should be
+the name of a command \emph{without} the preceding backslash,
+to be applied to the contents of the specified dynamic frame.
+The command may either be a declaration, for example \verb/style=large/
+which will set the contents of all the dynamic frames in a
+large font, or it can be a command that takes a single argument,
+for example \verb/style=textbf/
+which will make the text for all the dynamic frames come out in
+bold. To unset a style, do \verb/style=none/.
+
+\end{description}
+
+\chapter{Miscellaneous}
+
+\section*{Page Layout}
+
+The \textsl{flowfram} package has the package option \texttt{draft}
+which will draw the {bounding boxes} for
+each frame defined. At the bottom right of each
+bounding box (except for the bounding box denoting the
+typeblock), a marker will be shown to indictate the type
+of frame, its IDN and its IDL.
+
+You can see the layout for the current page (irrespective of
+whether or not the \texttt{draft} option has been set) using
+the command:\newline
+\cmdname{flowframeshowlayout}
+
+The headers and footers will appear as usual (but will not
+be shown in draft mode), according to the format given by
+\cmdname{pagestyle}.
+
+\section*{Frame Stacking Order}
+
+\labelflow{flow:stacking}
+The material on each page is placed in the following order:
+\begin{enumerate}
+\item Each static frame defined for that page in ascending
+order of IDN.
+
+\item Each flow frame defined for that page in ascending
+order of IDN.
+
+\item Each dynamic frame defined for that page in ascending
+order of IDN.
+
+\item {Bounding boxes} if the \texttt{draft}
+package option has been used.
+\end{enumerate}
+
+This ordering can be used to determine if you want something
+to overlay or underlay everything else on the page.
+
+\section*{Prematurely Ending a Flow Frame}
+
+You can force text to move immediately to the next defined
+flow frame using one of the standard \LaTeX\ page breaking commands
+which work in an analogous way to the way they
+work in standard two column mode.
+
+The command \cmdname{framebreak} is provided for situations
+where a paragraph spans two flow frames
+of different widths, as \TeX's output routine does not
+adjust to the new value of \cmdname{hsize} until the last
+paragraph of the previous frame has ended. As a
+result, the end of the paragraph at the beginning of the new
+flow frame retains the width of the previous flow frame.
+
+If you want to start a new page, rather than simply move to the
+next frame, use the command\newline
+\cmdname{finishthispage}.
+
+\section*{Floats}
+
+\labelflow{flow:floats}
+Since floats (such as figures and tables) can only go in
+{flow frames}, this package provides
+the additional environments:
+\env{staticfigure} and
+\env{statictable} which can be used in static frames
+and dynamic frames. Unlike their \env{figure} and
+\env{table} counterparts, they are fixed in place, and
+so do not take an optional placement specifier. The
+\cmdname{caption} and \cmdname{label} commands can
+be used within \env{staticfigure} and \env{statictable} as
+usual.
+
+The standard \env{figure} and \env{table} commands will
+behave as usual in the flow frames, but their starred versions,
+\env{figure*} and \env{table*} behave no differently
+from \env{figure} and \env{table}.
+
+\section*{Global Values}
+
+The following macros can be changed using\linebreak \cmdname{renewcommand}:
+
+\begin{itemize}
+\item \cmdname{setffdraftcolor}
+
+This sets the colour of the bounding box
+when it is displayed in draft mode.
+
+\item
+\cmdname{setffdrafttypeblockcolor}
+
+This sets the colour of
+the bounding box of the typeblock when it is displayed
+in draft mode.
+
+\item \cmdname{fflabelfont}
+
+This sets the font size for the bounding box markers in
+draft mode.
+
+\end{itemize}
+
+The following are lengths, which can be changed using
+\cmdname{setlength}:
+
+\begin{itemize}
+\item \cmdname{fflabelsep}
+
+This is the distance from the right hand side of the
+bounding box at which to place the bounding box marker.
+
+\item \cmdname{flowframesep}
+
+This is the gap between the text of the frame and
+its border, for the standard border types.
+
+\item \cmdname{flowframerule}
+
+This is the width of the frame's border, if using
+a border given by a frame making command that uses \cmdname{fboxsep}
+to set its border width.
+
+\item \cmdname{columnsep}
+
+This is the horizontal distance between flow frames when using one of the
+\cmdname{Ncolumn} type of commands
+
+\item \cmdname{vcolumnsep}
+
+This is the vertical distance between the flow frames and the static or
+dynamic frame when using one of the \cmdname{Ncolumntop} type of commands.
+\end{itemize}
+
+\label{lastpage}
+\end{document}
+%</test-brochure.tex>
+%<*test-casualcv.tex>
+\documentclass[11pt,a4paper]{bidimoderncv}
+\cvtheme[orange]{bidicasual} % you can use orange, red, green and blue as options
+\usepackage[scale=0.8]{geometry}
+\usepackage{fontspec}
+\usepackage[RTLdocument]{bidi}
+\def\refname{تألیفات}
+\setmainfont[Script=Arabic,Mapping=parsidigits]{XB Niloofar}
+\newfontfamily\rmfamily[Mapping=tex-text]{Linux Libertine}
+\AtBeginDocument{\recomputelengths}
+\resumename{رزومه}
+\firstname{سید محمد}
+\familyname{یزدی اصفهانی}
+\title{رزومهٔ من}
+\address{تهران، خیابان آزادی پلاک ۹}
+\mobile{۰۹۱۸۹۶۹۴۹۶}
+\phone{۹۸۹۰۸۳۴۱}
+\fax{۹۸۹۰۸۳۴۲}
+\email{vafakh84@gmail.com}
+\extrainfo{اطلاعات اضافی}
+\photo[64pt]{picture}
+\quote{نقل قول}
+\begin{document}
+\maketitle
+\section{تحصیلات}
+\cventry{سال--سال}{درجه}{دانشگاه}{شهر}{\textit{نمره}}{توضیح} % arguments 3 to 6 are optional
+\cventry{سال--سال}{درجه}{دانشگاه}{شهر}{\textit{نمره}}{توضیح} % arguments 3 to 6 are optional
+
+\section{پایان‌نامهٔ کارشناسی ارشد}
+\cvline{عنوان}{\emph{عنوان}}
+\cvline{استاد راهنما}{استاد راهنما}
+\cvline{توضیح}{\small چکیده کوچک پایان‌نامه}
+
+\section{تجربیات}
+\subsection{عنوان}
+\cventry{سال--سال}{نام شغل}{صاحب کار}{شهر}{}{توضیح} % arguments 3 to 6 are optional
+\cventry{سال--سال}{نام شغل}{صاحب کار}{شهر}{}{توضیح} % arguments 3 to 6 are optional
+\subsection{متفرقه}
+\cventry{سال--سال}{نام شغل}{صاحب کار}{شهر}{}{توضیح خط ۱\newline{}توضیح خط ۲}% arguments 3 to 6 are optional
+
+\section{زبانها}
+\cvlanguage{زبان ۱}{درجه مهارت}{نظر}
+\cvlanguage{زبان ۲}{درجه مهارت}{نظر}
+\cvlanguage{زبان ۳}{درجه مهارت}{نظر}
+
+\section{مهارتهای رایانه‌ای}
+\cvcomputer{طبقه ۱}{یک، دو، سه}{طبقه ۴}{یک، دو، سه}
+\cvcomputer{طبقه ۲}{یک، دو، سه}{طبقه ۵}{یک، دو، سه}
+\cvcomputer{طبقه ۳}{یک، دو، سه}{طبقه ۶}{یک، دو، سه}
+
+\section{علاقه‌ها}
+\cvline{علاقه ۱}{\small توضیح}
+\cvline{علاقه ۲}{\small توضیح}
+\cvline{علاقه ۳}{\small توضیح}
+
+\renewcommand{\listitemsymbol}{-} % change the symbol for lists
+
+\section{بعدی ۱}
+\cvlistitem{شماره ۱}
+\cvlistitem{شماره ۲}
+\cvlistitem[+]{شماره ۳} % optional other symbol
+
+\section{بعدی ۲}
+\cvlistdoubleitem[\Neutral]{شماره ۱}{شماره ۴}
+\cvlistdoubleitem[\Neutral]{شماره ۲}{شماره ۵}
+\cvlistdoubleitem[\Neutral]{شماره ۳}{}
+
+\nocite{*}
+\bibliographystyle{plain}
+\bibliography{publications} % 'publications' is the name of a BibTeX file
+
+\end{document}
+%</test-casualcv.tex>
+%<*test-classiccv.tex>
+\documentclass[11pt,a4paper]{bidimoderncv}
+\cvtheme[green]{bidiclassic} % you can use orange, red, green, grey and blue as options
+\usepackage[scale=0.8]{geometry}
+\usepackage{fontspec}
+\setmainfont[Script=Arabic,Mapping=parsidigits]{XB Zar}
+\newfontfamily\rmfamily[Mapping=tex-text]{Linux Libertine}
+\def\refname{تألیفات}
+\usepackage[RTLdocument]{bidi}
+\AtBeginDocument{\recomputelengths}
+\resumename{رزومه}
+\firstname{وفا}
+\familyname{خلیقی}
+\title{رزومهٔ من}
+\address{تهران، خیابان آزادی پلاک ۹}
+\mobile{۰۹۱۸۹۶۹۴۹۶}
+\phone{۹۸۹۰۸۳۴۱}
+\fax{۹۸۹۰۸۳۴۲}
+\email{vafakh84@gmail.com}
+\extrainfo{اطلاعات اضافی}
+\photo[64pt]{picture}
+\quote{نقل قول}
+\begin{document}
+\maketitle
+\section{تحصیلات}
+\cventry{سال--سال}{درجه}{دانشگاه}{شهر}{\textit{نمره}}{توضیح} % arguments 3 to 6 are optional
+\cventry{سال--سال}{درجه}{دانشگاه}{شهر}{\textit{نمره}}{توضیح} % arguments 3 to 6 are optional
+
+\section{پایان‌نامهٔ کارشناسی ارشد}
+\cvline{عنوان}{\emph{عنوان}}
+\cvline{استاد راهنما}{استاد راهنما}
+\cvline{توضیح}{\small چکیده کوچک پایان‌نامه}
+
+\section{تجربیات}
+\subsection{عنوان}
+\cventry{سال--سال}{نام شغل}{صاحب کار}{شهر}{}{توضیح} % arguments 3 to 6 are optional
+\cventry{سال--سال}{نام شغل}{صاحب کار}{شهر}{}{توضیح} % arguments 3 to 6 are optional
+\subsection{متفرقه}
+\cventry{سال--سال}{نام شغل}{صاحب کار}{شهر}{}{توضیح خط ۱\newline{}توضیح خط ۲}% arguments 3 to 6 are optional
+
+\section{زبانها}
+\cvlanguage{زبان ۱}{درجه مهارت}{نظر}
+\cvlanguage{زبان ۲}{درجه مهارت}{نظر}
+\cvlanguage{زبان ۳}{درجه مهارت}{نظر}
+
+\section{مهارتهای رایانه‌ای}
+\cvcomputer{طبقه ۱}{یک، دو، سه}{طبقه ۴}{یک، دو، سه}
+\cvcomputer{طبقه ۲}{یک، دو، سه}{طبقه ۵}{یک، دو، سه}
+\cvcomputer{طبقه ۳}{یک، دو، سه}{طبقه ۶}{یک، دو، سه}
+
+\section{علاقه‌ها}
+\cvline{علاقه ۱}{\small توضیح}
+\cvline{علاقه ۲}{\small توضیح}
+\cvline{علاقه ۳}{\small توضیح}
+
+\renewcommand{\listitemsymbol}{-} % change the symbol for lists
+
+\section{بعدی ۱}
+\cvlistitem{شماره ۱}
+\cvlistitem{شماره ۲}
+\cvlistitem[+]{شماره ۳} % optional other symbol
+
+\section{بعدی ۲}
+\cvlistdoubleitem[\Neutral]{شماره ۱}{شماره ۴}
+\cvlistdoubleitem[\Neutral]{شماره ۲}{شماره ۵}
+\cvlistdoubleitem[\Neutral]{شماره ۳}{}
+
+\nocite{*}
+\bibliographystyle{plain}
+\bibliography{publications} % 'publications' is the name of a BibTeX file
+
+\end{document}
+%</test-classiccv.tex>
+%<*test-color.tex>
+\documentclass{article}
+\usepackage{fontspec}
+\usepackage{xecolour} % for RTL coloured texts that spans more than a line
+\usepackage{fullpage}
+\usepackage{colortbl}
+\setmainfont[Scale=1,Script=Arabic,Mapping=farsidigits]{XB Kayhan}
+\usepackage{xcolor}
+\usepackage[RTLdocument]{bidi}
+\begin{document}
+این یک آزمایش است.
+
+\bigskip
+\fcolorbox{red}{yellow}{\begin{minipage}{0.8\textwidth}
+این یک متن است که من آن را داخل یک جعبهٔ زردرنگ قرار می‌دهم. این یک متن است که من آن را داخل یک جعبهٔ زردرنگ قرار می‌دهم
+\end{minipage}}
+
+این {\color{red} رنگ قرمز} است و این هم \textcolor{blue}{رنگ آبی} است همانطور که می‌بینید.
+
+\bigskip
+من اسم خودم {\color{red} وفا خلیقی} را با رنگ قرمز می‌نویسم.
+
+\bigskip
+من اسم خودم \textcolor{blue}{وفا خلیقی} را با رنگ آبی می‌نویسم.
+
+\bigskip
+\colorbox{yellow}{\begin{minipage}{0.8\textwidth}
+این یک متن است که من آن را داخل یک جعبهٔ زردرنگ قرار می‌دهم. این یک متن است که من آن را داخل یک جعبهٔ زردرنگ قرار می‌دهم
+\end{minipage}}
+
+\bigskip
+این یک پاراگراف با \blue{رنگ آبی اول است و همینطور و همینطور ما می‌توانیم از رنگاهی مختلف استفاده کنیم} و حالا
+\red{این روزها حجم اخبار و مطالب مرتبط با ایران و مسایل مربوط به آن بسیار زیاد شده وابزارهایی مانند گوگل ریدر برای مرور لیست بلند بالایی از سایتها و وبلاگ های به روز شده ، بیشتر مورد استفاده قرار میگیرد.} و حالا هم
+\darkred{یکی از مشکلاتی که در استفاده از گوگل ریدر داشتم، نامناسب بودن فونت فارسی آن بود. اگر چه عمده وبلاگها و سایتها از فونت تاهوما (مانند فونتی که این مطالب با آن نوشته شده است) استفاده می کنند اما تعدادی از وبلاگها از فونتهای دیگری که بعضی وقتها خیلی ریز هم هستند }استفاده می کنند که خواندن آن در گوگل ریدر بسیار دشوار است. متاسفانه در گوگل ریدر بخشی برای تغییر فونت وجود ندارد و نمیتوان نوع فونت یا اندازه مطالب آن را تغییر داد. بعد از کمی جستجو بر روی اینترنت راه حل جالبی را پیدا کردم که با کمی تغییر برای مطالب فارسی هم قابل استفاده است.
+اگر از فایرفاکس برای مرور مطالب جدید در گوگل ریدر استفاده می کنید، این راه حل را باری حل این مشکل به شما پیشنهاد میکنم
+
+\bigskip
+حالا نوبت جعبه‌های رنگی است یعنی مثلاً \colorbox{red}{{\color{white}سلام}} و \fcolorbox{yellow}{red}{{\color{white}این یک متن داخل جعبه رنگی است که کمی طولانی است}}
+
+
+
+
+
+
+\end{document}
+%</test-color.tex>
+%<*test-supertabular.tex>
+\documentclass{article}
+\usepackage{supertabular}
+\usepackage{bidi}
+\title{Testing \textsf{supertabular} package in RTL and LTR}
+\author{Vafa Khalighi}
+\begin{document}
+\maketitle
+\section{LTR}
+\tablecaption{The ISOGRK3 entity set}
+\tablehead
+ {\bfseries Entity&\bfseries Unicode Name&\bfseries Unicode\\ \hline}
+\tabletail
+ {\hline \multicolumn{3}{r}{\emph{Continued on next page}}\\}
+\tablelasttail{\hline}
+\begin{supertabular}{lll}
+alpha & GREEK SMALL LETTER ALPHA & 03B1\\
+beta & GREEK SMALL LETTER BETA & 03B2\\
+chi & GREEK SMALL LETTER CHI & 03C7\\
+Delta & GREEK CAPITAL LETTER DELTA & 0394\\
+delta & GREEK SMALL LETTER DELTA & 03B4\\
+epsi & GREEK SMALL LETTER EPSILON & 03B5\\
+epsis & GREEK LUNATE EPSILON SYMBOL & 03F5\\
+\empty
+epsiv & GREEK SMALL LETTER EPSILON & 03B5\\
+eta & GREEK SMALL LETTER ETA & 03B7\\
+Gamma & GREEK CAPITAL LETTER GAMMA & 0393\\
+gamma & GREEK SMALL LETTER GAMMA & 03B3\\
+gammad & GREEK SMALL LETTER DIGAMMA & 03DD\\
+iota & GREEK SMALL LETTER IOTA & 03B9\\
+kappa & GREEK SMALL LETTER KAPPA & 03BA\\
+kappav & GREEK KAPPA SYMBOL & 03F0\\
+Lambda & GREEK CAPITAL LETTER LAMDA & 039B\\
+lambda & GREEK SMALL LETTER LAMDA & 03BB\\
+mu & GREEK SMALL LETTER MU & 03BC\\
+nu & GREEK SMALL LETTER NU & 03BD\\
+Omega & GREEK CAPITAL LETTER OMEGA & 03A9\\
+omega & GREEK SMALL LETTER OMEGA & 03C9\\
+Phi & GREEK CAPITAL LETTER PHI & 03A6\\
+phis & GREEK PHI SYMBOL & 03D5\\
+phiv & GREEK SMALL LETTER PHI & 03C6\\
+Pi & GREEK CAPITAL LETTER PI & 03A0\\
+pi & GREEK SMALL LETTER PI & 03C0\\
+piv & GREEK PI SYMBOL & 03D6\\
+Psi & GREEK CAPITAL LETTER PSI & 03A8\\
+psi & GREEK SMALL LETTER PSI & 03C8\\
+rho & GREEK SMALL LETTER RHO & 03C1\\
+rhov & GREEK RHO SYMBOL & 03F1\\
+Sigma & GREEK CAPITAL LETTER SIGMA & 03A3\\
+sigma & GREEK SMALL LETTER SIGMA & 03C3\\
+sigmav & GREEK SMALL LETTER FINAL SIGMA & 03C2\\
+tau & GREEK SMALL LETTER TAU & 03C4\\
+Theta & GREEK CAPITAL LETTER THETA & 0398\\
+thetas & GREEK SMALL LETTER THETA & 03B8\\
+thetav & GREEK THETA SYMBOL & 03D1\\
+Upsi & GREEK UPSILON WITH HOOK SYMBOL & 03D2\\
+upsi & GREEK SMALL LETTER UPSILON & 03C5\\
+Xi & GREEK CAPITAL LETTER XI & 039E\\
+xi & GREEK SMALL LETTER XI & 03BE\\
+zeta & GREEK SMALL LETTER ZETA & 03B6\\
+\end{supertabular}
+\section{RTL}
+
+\setRTL
+\tablecaption{The ISOGRK3 entity set}
+\tablehead
+ {\bfseries Entity&\bfseries Unicode Name&\bfseries Unicode\\ \hline}
+\tabletail
+ {\hline \multicolumn{3}{l}{\emph{Continued on next page}}\\}
+\tablelasttail{\hline}
+\begin{supertabular}{rrr}
+alpha & GREEK SMALL LETTER ALPHA & 03B1\\
+beta & GREEK SMALL LETTER BETA & 03B2\\
+chi & GREEK SMALL LETTER CHI & 03C7\\
+Delta & GREEK CAPITAL LETTER DELTA & 0394\\
+delta & GREEK SMALL LETTER DELTA & 03B4\\
+epsi & GREEK SMALL LETTER EPSILON & 03B5\\
+epsis & GREEK LUNATE EPSILON SYMBOL & 03F5\\
+\empty
+epsiv & GREEK SMALL LETTER EPSILON & 03B5\\
+eta & GREEK SMALL LETTER ETA & 03B7\\
+Gamma & GREEK CAPITAL LETTER GAMMA & 0393\\
+gamma & GREEK SMALL LETTER GAMMA & 03B3\\
+gammad & GREEK SMALL LETTER DIGAMMA & 03DD\\
+iota & GREEK SMALL LETTER IOTA & 03B9\\
+kappa & GREEK SMALL LETTER KAPPA & 03BA\\
+kappav & GREEK KAPPA SYMBOL & 03F0\\
+Lambda & GREEK CAPITAL LETTER LAMDA & 039B\\
+lambda & GREEK SMALL LETTER LAMDA & 03BB\\
+mu & GREEK SMALL LETTER MU & 03BC\\
+nu & GREEK SMALL LETTER NU & 03BD\\
+Omega & GREEK CAPITAL LETTER OMEGA & 03A9\\
+omega & GREEK SMALL LETTER OMEGA & 03C9\\
+Phi & GREEK CAPITAL LETTER PHI & 03A6\\
+phis & GREEK PHI SYMBOL & 03D5\\
+phiv & GREEK SMALL LETTER PHI & 03C6\\
+Pi & GREEK CAPITAL LETTER PI & 03A0\\
+pi & GREEK SMALL LETTER PI & 03C0\\
+piv & GREEK PI SYMBOL & 03D6\\
+Psi & GREEK CAPITAL LETTER PSI & 03A8\\
+psi & GREEK SMALL LETTER PSI & 03C8\\
+rho & GREEK SMALL LETTER RHO & 03C1\\
+rhov & GREEK RHO SYMBOL & 03F1\\
+Sigma & GREEK CAPITAL LETTER SIGMA & 03A3\\
+sigma & GREEK SMALL LETTER SIGMA & 03C3\\
+sigmav & GREEK SMALL LETTER FINAL SIGMA & 03C2\\
+tau & GREEK SMALL LETTER TAU & 03C4\\
+Theta & GREEK CAPITAL LETTER THETA & 0398\\
+thetas & GREEK SMALL LETTER THETA & 03B8\\
+thetav & GREEK THETA SYMBOL & 03D1\\
+Upsi & GREEK UPSILON WITH HOOK SYMBOL & 03D2\\
+upsi & GREEK SMALL LETTER UPSILON & 03C5\\
+Xi & GREEK CAPITAL LETTER XI & 039E\\
+xi & GREEK SMALL LETTER XI & 03BE\\
+zeta & GREEK SMALL LETTER ZETA & 03B6\\
+\end{supertabular}
+\end{document}
+%</test-supertabular.tex>
+%<*test-tabular.tex>
+\documentclass{article}
+\usepackage{bidi}
+\title{Testing \LaTeX's Default Tabular in \textsf{RTL} and \textsf{LTR}}
+\author{Vafa Khalighi}
+\newcommand{\rb}[1]{\raisebox{1.5ex}[0mm]{#1}}
+\begin{document}
+\maketitle
+In this document we test \LaTeX's default tabular in \textsf{RTL} and \textsf{LTR}.
+\section{LTR}
+\begin{center}\small
+\begin{tabular}{|l||c|l|c|l|c|l|}
+\hline
+& \multicolumn{2}{c|}{6.15--7.15 pm} & \multicolumn{2}{c|}{7.20--8.20 pm}
+& \multicolumn{2}{c|}{8.30--9.30 pm} \\ \cline{2-7}
+&& Teacher && Teacher && Teacher \\ \cline{3-3}\cline{5-5}\cline{7-7}
+\rb{Day} & \rb{Subj.} & Room & \rb{Subj.} & Room & \rb{Subj.} & Room\\
+ \hline\hline
+&& Dr.~Smith && Ms.~Clark && Mr.~Mills\\
+\cline{3-3}\cline{5-5}\cline{7-7}
+\rb{Mon.} & \rb{UNIX} & Comp. Ctr & \rb{Fortran} & Hall A
+ & \rb{Math.} & Hall A \\ \hline
+&& Miss Baker && Ms.~Clark && Mr.~Mill\\
+\cline{3-3}\cline{5-5}\cline{7-7}
+\rb{Tues.} & \rb{\LaTeX} & Conf.~Room & \rb{Fortran} & Conf~Room
+ & \rb{Math.} & Hall A \\ \hline
+&& Dr.~Smith && Dr.~Jones && Dr.~Jones \\
+\cline{3-3}\cline{5-5}\cline{7-7}
+\rb{Wed.} & \rb{UNIX} & Comp. Ctr & \rb{C} & Hall A
+ & \rb{ComSci.} & Hall A \\ \hline
+&& Miss Baker && Ms. Clark & \multicolumn{2}{c|}{} \\
+\cline{3-3}\cline{5-5}
+\rb{Fri.} & \rb{\LaTeX} & Conf.~Room & \rb{C++} & Conf.~Room
+& \multicolumn{2}{c|}{\rb{canceled}}\\ \hline
+\end{tabular}\end{center}
+\section{RTL}
+
+\setRTL
+\begin{center}\small
+\begin{tabular}{|r||c|r|c|r|c|r|}
+\hline
+& \multicolumn{2}{c|}{6.15--7.15 pm} & \multicolumn{2}{c|}{7.20--8.20 pm}
+& \multicolumn{2}{c|}{8.30--9.30 pm} \\ \cline{2-7}
+&& Teacher && Teacher && Teacher \\ \cline{3-3}\cline{5-5}\cline{7-7}
+\rb{Day} & \rb{Subj.} & Room & \rb{Subj.} & Room & \rb{Subj.} & Room\\
+ \hline\hline
+&& Dr.~Smith && Ms.~Clark && Mr.~Mills\\
+\cline{3-3}\cline{5-5}\cline{7-7}
+\rb{Mon.} & \rb{UNIX} & Comp. Ctr & \rb{Fortran} & Hall A
+ & \rb{Math.} & Hall A \\ \hline
+&& Miss Baker && Ms.~Clark && Mr.~Mill\\
+\cline{3-3}\cline{5-5}\cline{7-7}
+\rb{Tues.} & \rb{\LaTeX} & Conf.~Room & \rb{Fortran} & Conf~Room
+ & \rb{Math.} & Hall A \\ \hline
+&& Dr.~Smith && Dr.~Jones && Dr.~Jones \\
+\cline{3-3}\cline{5-5}\cline{7-7}
+\rb{Wed.} & \rb{UNIX} & Comp. Ctr & \rb{C} & Hall A
+ & \rb{ComSci.} & Hall A \\ \hline
+&& Miss Baker && Ms. Clark & \multicolumn{2}{c|}{} \\
+\cline{3-3}\cline{5-5}
+\rb{Fri.} & \rb{\LaTeX} & Conf.~Room & \rb{C++} & Conf.~Room
+& \multicolumn{2}{c|}{\rb{canceled}}\\ \hline
+\end{tabular}\end{center}
+\end{document}
+%</test-tabular.tex>
+%<*test-tabularx.tex>
+\documentclass{article}
+\usepackage{tabularx}
+\usepackage{bidi}
+\title{Testing \textsf{tabularx} Package in RTL and LTR}
+\author{Vafa Khalighi}
+\begin{document}
+\maketitle
+\section{LTR}
+\begin{tabularx}{\linewidth}{|l|p{1.25cm}|p{1.5cm}|X|}\hline
+\multicolumn{1}{|c|}{\textbf{Animal}}
+ & \textbf{Hair Colour}
+ & \multicolumn{2}{c|}{\textbf{Favourite foods}} \\\hline\hline
+Elephant & Gray & Peanuts
+ & Unshelled, prepared in Sea Salt, and warmed over hot stone grill \\\cline{3-4}
+ & & Cabbage and Greens
+ & Sun dried until lightly browned (2-3 days minimum);
+ seasoned with Hyperchem super feed \\\cline{4-4}
+ & & & Boiled to British standard \\\hline\hline
+Lion & Yellow & Elephants & Tartare \\\cline{4-4}
+& & & Must be served warm, with no trace of
+ buckshot. Gaiminess considered desireable. \\\hline
+\end{tabularx}
+\section{RTL}
+
+\setRTL
+\begin{tabularx}{\linewidth}{|r|p{1.25cm}|p{1.5cm}|X|}\hline
+\multicolumn{1}{|c|}{\textbf{Animal}}
+ & \textbf{Hair Colour}
+ & \multicolumn{2}{c|}{\textbf{Favourite foods}} \\\hline\hline
+Elephant & Gray & Peanuts
+ & Unshelled, prepared in Sea Salt, and warmed over hot stone grill \\\cline{3-4}
+ & & Cabbage and Greens
+ & Sun dried until lightly browned (2-3 days minimum);
+ seasoned with Hyperchem super feed \\\cline{4-4}
+ & & & Boiled to British standard \\\hline\hline
+Lion & Yellow & Elephants & Tartare \\\cline{4-4}
+& & & Must be served warm, with no trace of
+ buckshot. Gaiminess considered desireable. \\\hline
+\end{tabularx}
+\end{document}
+%</test-tabularx.tex>
+%<*test-tabulary.tex>
+\documentclass{article}
+\usepackage{tabulary}
+\setlength\tymin{10pt}
+\setlength\tymax{\maxdimen}
+\usepackage{bidi}
+\title{Testing \textsf{tabulary} package in RTL and LTR}
+\author{Vafa Khalighi}
+\begin{document}
+\maketitle
+\section{LTR}
+\begin{tabulary}{200pt}{|C|C|C|C|}
+ a & b b b b &
+ c c c c c c c c c c c c c c c c c c &
+ d d d d d d d d d d d d d d d d d d
+\empty
+ d d d d d d d d d d d d d d
+ d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d
+ \end{tabulary}
+\section{RTL}
+
+\setRTL
+\begin{tabulary}{200pt}{|C|C|C|C|}
+ a & b b b b &
+ c c c c c c c c c c c c c c c c c c &
+ d d d d d d d d d d d d d d d d d d
+\empty
+ d d d d d d d d d d d d d d
+ d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d
+ \end{tabulary}
+\end{document}
+%</test-tabulary.tex>
+%\fi
+%
+% \typeout{*************************************************************}
+% \typeout{*}
+% \typeout{* To finish the installation you have to move the following}
+% \typeout{* file into a directory searched by TeX:}
+% \typeout{*}
+% \typeout{* \space\space\space all *.cls, *.sty and *.def files}
+% \typeout{*}
+% \typeout{* \space\space\space bibitem.pdf file}
+% \typeout{*************************************************************}
+%
+\endinput
+
diff --git a/Master/texmf-dist/source/latex/bidi/bidi.ins b/Master/texmf-dist/source/latex/bidi/bidi.ins
new file mode 100644
index 00000000000..6dc9b131387
--- /dev/null
+++ b/Master/texmf-dist/source/latex/bidi/bidi.ins
@@ -0,0 +1,247 @@
+%%
+%% This is file `bidi.ins',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `batchfile')
+%%
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\input docstrip.tex
+\keepsilent
+\preamble
+
+ ______________________________________
+ Copyright © 2009–2010 Vafa Khalighi
+
+ License information appended.
+
+\endpreamble
+\postamble
+
+Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.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.
+
+In addition to the terms of LPPL any distributed version
+(unchanged or modified) of bidi has to keep the statement
+about the moral obligation for using bidi. In case of major
+changes where this would not be appropriate the author of the
+changed version should contact the copyright holder.
+
+Moral obligation for using bidi:
+____________________________________
+
+Users of bidi who wish to include or use bidi or a modified
+version in a proprietary and commercially market product are asked
+under certain conditions (see below) for the payment of a license
+fee. The size of this fee is to be determined, in each instance,
+by the commercial user, depending on his/her judgment of the value of
+bidi for his/her product.
+
+The conditions for this are as follows:
+
+The producer of a proprietary and commercially market product
+that involves typesetting using bidi is asked to determine
+the value of a license fee for using bidi if
+
+ - the product is a document and the producer has decided to
+ include bidi to typeset (parts of) the document or has
+ directed the author of the document to include bidi (for
+ example, by providing a class file to be used by the author)
+
+ - the product is a LaTeX class or package that includes bidi
+
+There is no moral obligation in case
+
+ - the product is a document but producer has not directed
+ the author to include bidi (in that case the moral obligation
+ lies with the author of the document)
+
+ - the product does not involve typesetting, e.g., consists, for
+ example, of distributing bidi and its documentation.
+
+ - the product is not proprietary, i.e., is made available as free
+ software itself (which doesn't prohibit its commercial marketing)
+
+ - bidi is used for non-commercial purposes
+
+Determinating a license fee might result in a license fee of zero
+(i.e., no payment) in case a producer has determined that the use
+of bidi has no enhancing effect on the product. This is a
+plausible scenario, i.e., in the above two cases the producer is
+only asked to evaluate the value of bidi for the product
+not for the payment of a license fee per se (which might or might
+not follow from this evaluation).
+
+ The license fee, if any, can be payed to the author of
+ the program who can be contacted at
+
+ vafakhlgh@gmail.com
+
+\endpostamble
+\askforoverwritefalse
+\generate{\file{amsart-xetex-bidi.def}{\from{\jobname.dtx}{amsart-xetex-bidi.def}}}
+\generate{\file{amsbook-xetex-bidi.def}{\from{\jobname.dtx}{amsbook-xetex-bidi.def}}}
+\generate{\file{amsmath-xetex-bidi.def}{\from{\jobname.dtx}{amsmath-xetex-bidi.def}}}
+\generate{\file{amsthm-xetex-bidi.def}{\from{\jobname.dtx}{amsthm-xetex-bidi.def}}}
+\generate{\file{array-xetex-bidi.def}{\from{\jobname.dtx}{array-xetex-bidi.def}}}
+\generate{\file{article-xetex-bidi.def}{\from{\jobname.dtx}{article-xetex-bidi.def}}}
+\generate{\file{artikel1-xetex-bidi.def}{\from{\jobname.dtx}{artikel1-xetex-bidi.def}}}
+\generate{\file{artikel2-xetex-bidi.def}{\from{\jobname.dtx}{artikel2-xetex-bidi.def}}}
+\generate{\file{artikel3-xetex-bidi.def}{\from{\jobname.dtx}{artikel3-xetex-bidi.def}}}
+\generate{\file{arydshln-xetex-bidi.def}{\from{\jobname.dtx}{arydshln-xetex-bidi.def}}}
+\generate{\file{bidi.sty}{\from{\jobname.dtx}{bidi.sty}}}
+\generate{\file{bidi.tex}{\from{\jobname.dtx}{bidi.tex}}}
+\generate{\file{bidi2in1.sty}{\from{\jobname.dtx}{bidi2in1.sty}}}
+\generate{\file{bidicode.sty}{\from{\jobname.dtx}{bidicode.sty}}}
+\generate{\file{bidiftnxtra.sty}{\from{\jobname.dtx}{bidiftnxtra.sty}}}
+\generate{\file{bidimoderncv.cls}{\from{\jobname.dtx}{bidimoderncv.cls}}}
+\generate{\file{bidipoem.sty}{\from{\jobname.dtx}{bidipoem.sty}}}
+\generate{\file{bidipresentation.cls}{\from{\jobname.dtx}{bidipresentation.cls}}}
+\generate{\file{boek3-xetex-bidi.def}{\from{\jobname.dtx}{boek3-xetex-bidi.def}}}
+\generate{\file{boek-xetex-bidi.def}{\from{\jobname.dtx}{boek-xetex-bidi.def}}}
+\generate{\file{bookest-xetex-bidi.def}{\from{\jobname.dtx}{bookest-xetex-bidi.def}}}
+\generate{\file{book-xetex-bidi.def}{\from{\jobname.dtx}{book-xetex-bidi.def}}}
+\generate{\file{breqn-xetex-bidi.def}{\from{\jobname.dtx}{breqn-xetex-bidi.def}}}
+\generate{\file{caption-xetex-bidi.def}{\from{\jobname.dtx}{caption-xetex-bidi.def}}}
+\generate{\file{colortbl-xetex-bidi.def}{\from{\jobname.dtx}{colortbl-xetex-bidi.def}}}
+\generate{\file{color-xetex-bidi.def}{\from{\jobname.dtx}{color-xetex-bidi.def}}}
+\generate{\file{cvthemebidicasual.sty}{\from{\jobname.dtx}{cvthemebidicasual.sty}}}
+\generate{\file{cvthemebidiclassic.sty}{\from{\jobname.dtx}{cvthemebidiclassic.sty}}}
+\generate{\file{draftwatermark-xetex-bidi.def}{\from{\jobname.dtx}{draftwatermark-xetex-bidi.def}}}
+\generate{\file{extarticle-xetex-bidi.def}{\from{\jobname.dtx}{extarticle-xetex-bidi.def}}}
+\generate{\file{extbook-xetex-bidi.def}{\from{\jobname.dtx}{extbook-xetex-bidi.def}}}
+\generate{\file{extletter-xetex-bidi.def}{\from{\jobname.dtx}{extletter-xetex-bidi.def}}}
+\generate{\file{extreport-xetex-bidi.def}{\from{\jobname.dtx}{extreport-xetex-bidi.def}}}
+\generate{\file{fancyhdr-xetex-bidi.def}{\from{\jobname.dtx}{fancyhdr-xetex-bidi.def}}}
+\generate{\file{fleqn-xetex-bidi.def}{\from{\jobname.dtx}{fleqn-xetex-bidi.def}}}
+\generate{\file{flowfram-xetex-bidi.def}{\from{\jobname.dtx}{flowfram-xetex-bidi.def}}}
+\generate{\file{footnote-luatex-bidi.def}{\from{\jobname.dtx}{footnote-luatex-bidi.def}}}
+\generate{\file{footnote-xetex-bidi.def}{\from{\jobname.dtx}{footnote-xetex-bidi.def}}}
+\generate{\file{graphicx-xetex-bidi.def}{\from{\jobname.dtx}{graphicx-xetex-bidi.def}}}
+\generate{\file{hyperref-xetex-bidi.def}{\from{\jobname.dtx}{hyperref-xetex-bidi.def}}}
+\generate{\file{leqno-xetex-bidi.def}{\from{\jobname.dtx}{leqno-xetex-bidi.def}}}
+\generate{\file{letter-xetex-bidi.def}{\from{\jobname.dtx}{letter-xetex-bidi.def}}}
+\generate{\file{listings-xetex-bidi.def}{\from{\jobname.dtx}{listings-xetex-bidi.def}}}
+\generate{\file{loadingorder-bidi.def}{\from{\jobname.dtx}{loadingorder-bidi.def}}}
+\generate{\file{longtable-xetex-bidi.def}{\from{\jobname.dtx}{longtable-xetex-bidi.def}}}
+\generate{\file{luatex-bidi.def}{\from{\jobname.dtx}{luatex-bidi.def}}}
+\generate{\file{memoir-xetex-bidi.def}{\from{\jobname.dtx}{memoir-xetex-bidi.def}}}
+\generate{\file{minitoc-xetex-bidi.def}{\from{\jobname.dtx}{minitoc-xetex-bidi.def}}}
+\generate{\file{multicol-xetex-bidi.def}{\from{\jobname.dtx}{multicol-xetex-bidi.def}}}
+\generate{\file{pdfpages-xetex-bidi.def}{\from{\jobname.dtx}{pdfpages-xetex-bidi.def}}}
+\generate{\file{pgf-xetex-bidi.def}{\from{\jobname.dtx}{pgf-xetex-bidi.def}}}
+\generate{\file{plain-luatex-bidi.def}{\from{\jobname.dtx}{plain-luatex-bidi.def}}}
+\generate{\file{plain-xetex-bidi.def}{\from{\jobname.dtx}{plain-xetex-bidi.def}}}
+\generate{\file{pstricks-xetex-bidi.def}{\from{\jobname.dtx}{pstricks-xetex-bidi.def}}}
+\generate{\file{quotchap-xetex-bidi.def}{\from{\jobname.dtx}{quotchap-xetex-bidi.def}}}
+\generate{\file{ragged2e-xetex-bidi.def}{\from{\jobname.dtx}{ragged2e-xetex-bidi.def}}}
+\generate{\file{rapport1-xetex-bidi.def}{\from{\jobname.dtx}{rapport1-xetex-bidi.def}}}
+\generate{\file{rapport3-xetex-bidi.def}{\from{\jobname.dtx}{rapport3-xetex-bidi.def}}}
+\generate{\file{refrep-xetex-bidi.def}{\from{\jobname.dtx}{refrep-xetex-bidi.def}}}
+\generate{\file{report-xetex-bidi.def}{\from{\jobname.dtx}{report-xetex-bidi.def}}}
+\generate{\file{scrartcl-xetex-bidi.def}{\from{\jobname.dtx}{scrartcl-xetex-bidi.def}}}
+\generate{\file{scrbook-xetex-bidi.def}{\from{\jobname.dtx}{scrbook-xetex-bidi.def}}}
+\generate{\file{scrlettr-xetex-bidi.def}{\from{\jobname.dtx}{scrlettr-xetex-bidi.def}}}
+\generate{\file{scrreprt-xetex-bidi.def}{\from{\jobname.dtx}{scrreprt-xetex-bidi.def}}}
+\generate{\file{stabular-xetex-bidi.def}{\from{\jobname.dtx}{stabular-xetex-bidi.def}}}
+\generate{\file{subfigure-xetex-bidi.def}{\from{\jobname.dtx}{subfigure-xetex-bidi.def}}}
+\generate{\file{tabls-xetex-bidi.def}{\from{\jobname.dtx}{tabls-xetex-bidi.def}}}
+\generate{\file{tabulary-xetex-bidi.def}{\from{\jobname.dtx}{tabulary-xetex-bidi.def}}}
+\generate{\file{tikz-xetex-bidi.def}{\from{\jobname.dtx}{tikz-xetex-bidi.def}}}
+\generate{\file{titlesec-xetex-bidi.def}{\from{\jobname.dtx}{titlesec-xetex-bidi.def}}}
+\generate{\file{titletoc-xetex-bidi.def}{\from{\jobname.dtx}{titletoc-xetex-bidi.def}}}
+\generate{\file{tocbibind-xetex-bidi.def}{\from{\jobname.dtx}{tocbibind-xetex-bidi.def}}}
+\generate{\file{tocloft-xetex-bidi.def}{\from{\jobname.dtx}{tocloft-xetex-bidi.def}}}
+\generate{\file{tocstyle-xetex-bidi.def}{\from{\jobname.dtx}{tocstyle-xetex-bidi.def}}}
+\generate{\file{wrapfig-xetex-bidi.def}{\from{\jobname.dtx}{wrapfig-xetex-bidi.def}}}
+\generate{\file{xcolor-xetex-bidi.def}{\from{\jobname.dtx}{xcolor-xetex-bidi.def}}}
+\generate{\file{xetex-bidi.def}{\from{\jobname.dtx}{xetex-bidi.def}}}
+\generate{\file{xltxtra-xetex-bidi.def}{\from{\jobname.dtx}{xltxtra-xetex-bidi.def}}}
+\endbatchfile
+%%
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.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.
+%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
+%%
+%%
+%%
+%%
+%% End of file `bidi.ins'.
diff --git a/Master/texmf-dist/tex/latex/bidi/amsart-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/amsart-xetex-bidi.def
index 636d32ee940..52cde7535d2 100644
--- a/Master/texmf-dist/tex/latex/bidi/amsart-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/amsart-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `amsart-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `amsart-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -96,15 +100,75 @@
\endlist
}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/amsbook-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/amsbook-xetex-bidi.def
index 13d802d0b03..c0c465556db 100644
--- a/Master/texmf-dist/tex/latex/bidi/amsbook-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/amsbook-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `amsbook-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `amsbook-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -114,15 +118,75 @@
\skip@34\p@ \advance\skip@-\normalbaselineskip
\vskip\skip@ }
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/amsmath-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/amsmath-xetex-bidi.def
index f871af62684..d112aedef91 100644
--- a/Master/texmf-dist/tex/latex/bidi/amsmath-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/amsmath-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `amsmath-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `amsmath-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -24,15 +28,75 @@
\DeclareRobustCommand{\[}{\begin{equation*}}
\DeclareRobustCommand{\]}{\end{equation*}}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/amsthm-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/amsthm-xetex-bidi.def
index 94cc9b210ed..bf7cac5007c 100644
--- a/Master/texmf-dist/tex/latex/bidi/amsthm-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/amsthm-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `amsthm-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `amsthm-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -11,15 +15,75 @@
\ProvidesFile{amsthm-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for amsthm package for XeTeX engine]
\def\@thmcountersep{\@SepMark}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/array-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/array-xetex-bidi.def
index 465ad3df62c..a06ed5b298c 100644
--- a/Master/texmf-dist/tex/latex/bidi/array-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/array-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `array-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `array-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -65,15 +69,75 @@
\def\@tabarray{\@ifnextchar[{\@array}{\@array[c]}}
\def\endarray{\crcr \egroup\if@RTLtab\egroup\endR\egroup\fi \egroup \@arrayright \gdef\@preamble{}}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/article-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/article-xetex-bidi.def
index 81d1b0881b5..a6156c352b9 100644
--- a/Master/texmf-dist/tex/latex/bidi/article-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/article-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `article-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `article-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -190,15 +194,75 @@
{\@latex@warning{Empty `thebibliography' environment}}%
\endlist}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/artikel1-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/artikel1-xetex-bidi.def
index da8112e3546..dea5d544d43 100644
--- a/Master/texmf-dist/tex/latex/bidi/artikel1-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/artikel1-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `artikel1-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `artikel1-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -245,15 +249,75 @@
\vskip 1.5em}
\fi
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/artikel2-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/artikel2-xetex-bidi.def
index e40e1d4e28c..4c1eff19056 100644
--- a/Master/texmf-dist/tex/latex/bidi/artikel2-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/artikel2-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `artikel2-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `artikel2-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -248,15 +252,75 @@
\vskip 1.5em}
\fi
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/artikel3-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/artikel3-xetex-bidi.def
index c037160e5dc..d59f8580f4c 100644
--- a/Master/texmf-dist/tex/latex/bidi/artikel3-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/artikel3-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `artikel3-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `artikel3-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -256,15 +260,75 @@
\vskip 1.5em}
\fi
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/arydshln-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/arydshln-xetex-bidi.def
index c69964e91a8..e46ef620e66 100644
--- a/Master/texmf-dist/tex/latex/bidi/arydshln-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/arydshln-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `arydshln-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `arydshln-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -144,15 +148,75 @@
\let\adl@org@classz\@classz
}{}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/doc/latex/bidi/bibitem.pdf b/Master/texmf-dist/tex/latex/bidi/bibitem.pdf
index 49191743021..49191743021 100644..100755
--- a/Master/texmf-dist/doc/latex/bidi/bibitem.pdf
+++ b/Master/texmf-dist/tex/latex/bidi/bibitem.pdf
Binary files differ
diff --git a/Master/texmf-dist/tex/latex/bidi/bidi.sty b/Master/texmf-dist/tex/latex/bidi/bidi.sty
index 641a854ce0d..dc6aff8cc09 100644
--- a/Master/texmf-dist/tex/latex/bidi/bidi.sty
+++ b/Master/texmf-dist/tex/latex/bidi/bidi.sty
@@ -1,17 +1,21 @@
%%
%% This is file `bidi.sty',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `bidi.sty')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
%%
\NeedsTeXFormat{LaTeX2e}
-\def\bididate{2010/08/01}
-\def\bidiversion{v1.1.4c}
-\def\bidicommit{commit 81}
+\def\bididate{2010/09/28}
+\def\bidiversion{v1.1.5a}
+\def\bidicommit{commit 98}
\ProvidesPackage{bidi}[\bididate\space \bidiversion\space <\bidicommit>
Bidirectional typesetting in plain TeX and LaTeX]
\edef\bidiinfo{%
@@ -81,21 +85,80 @@ Location on CTAN: /macros/latex/contrib/bidi}
\PackageError{bidi}{TeX engines other than XeTeX and LuaTeX are not yet supported}
\fi
\fi
-%\@developmentversiontrue
\if@developmentversion
\PackageWarningNoLine{bidi}{Thanks for testing the development version of bidi package. The development version may not work correctly or may not work at all. The development version is not recommended to be used for production purposes and should only be used for testing purposes. You are encouraged to use the stable version of bidi package available on CTAN for production purposes}
\fi
\ProcessOptions
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/bidi.tex b/Master/texmf-dist/tex/latex/bidi/bidi.tex
index 9fca30bbefd..4898791e48b 100644
--- a/Master/texmf-dist/tex/latex/bidi/bidi.tex
+++ b/Master/texmf-dist/tex/latex/bidi/bidi.tex
@@ -1,16 +1,20 @@
%%
%% This is file `bidi.tex',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `bidi.tex')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
%%
-\def\bididate{2010/08/01}
+\def\bididate{2010/09/28}
\def\bidiversion{v0.1}
-\def\bidicommit{commit 81}
+\def\bidicommit{commit 98}
\catcode`@=11
\edef\bidiinfo{%
bidi package (Support for bidirectional typesetting in plain TeX and LaTeX)^^J
@@ -56,15 +60,75 @@ Location on CTAN: /macros/latex/contrib/bidi}
\fi
\catcode`@=12
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/bidi2in1.sty b/Master/texmf-dist/tex/latex/bidi/bidi2in1.sty
index 838670ca3f9..8256a9c44bc 100644
--- a/Master/texmf-dist/tex/latex/bidi/bidi2in1.sty
+++ b/Master/texmf-dist/tex/latex/bidi/bidi2in1.sty
@@ -1,9 +1,13 @@
%%
%% This is file `bidi2in1.sty',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `bidi2in1.sty')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -64,17 +68,76 @@
\global\let\date\relax
\global\let\and\relax
}
-
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/bidicode.sty b/Master/texmf-dist/tex/latex/bidi/bidicode.sty
index 2a81ecec73d..2b63e5b28d0 100644
--- a/Master/texmf-dist/tex/latex/bidi/bidicode.sty
+++ b/Master/texmf-dist/tex/latex/bidi/bidicode.sty
@@ -1,9 +1,13 @@
%%
%% This is file `bidicode.sty',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `bidicode.sty')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -12,58 +16,45 @@
\ProvidesPackage{bidicode}
\RequirePackage{xcolor}
\RequirePackage{showexpl}
-\definecolor{Orange}{rgb}{1,.4,.2}
-\definecolor{myblue}{rgb}{0.02,0.04,0.48}
-\definecolor{lightblue}{rgb}{0.61,.8,.8}
-\definecolor{myred}{rgb}{0.65,0.04,0.07}
-\definecolor{mygreen}{rgb}{0,.43,0}
-\definecolor{blendedred}{rgb}{0.9,0.1,0.1}
-\definecolor{blendedgreen}{rgb}{0.2,0.7,0.2}
-\definecolor{darkgray}{gray}{0.3}
-\definecolor{mygray}{gray}{0.6}
-\definecolor{skugga}{gray}{0.7}
-\definecolor{mybackground}{rgb}{1,0.8,0.5}
-\lstset{%
- language=[LaTeX]TEX,%
- float=hbp,%
- basicstyle=\ttfamily\small, %
- identifierstyle=\color{black}, %
- keywordstyle=\color{mygreen}, %
- stringstyle=\color{blue}, %
- commentstyle=\color{blue}, %
- columns=flexible, %
- tabsize=4, %
- frame=single, %
- extendedchars=true, %
- showspaces=false, %
- showstringspaces=false, %
- numbers=left,
- numbersep=12pt,
- numberstyle=\tiny, %
- breaklines=true, %
- breakautoindent=true,
+\definecolor{hellgelb}{rgb}{1,1,0.85}
+\definecolor{colKeys}{rgb}{0,0,1}
+\definecolor{colIdentifier}{rgb}{0,0,0}
+\definecolor{colComments}{rgb}{1,0,0}
+\definecolor{colString}{rgb}{0,0.5,0}
+\lstset{
+ language=[LaTeX]TEX,
+ float=hbp,
+ basicstyle=\ttfamily\small,
+ identifierstyle=\color{colIdentifier},
+ keywordstyle=\color{colKeys},
+ stringstyle=\color{colString},
+ commentstyle=\color{colComments},
+ columns=flexible,
+ tabsize=4,
+ gobble =1,
+ extendedchars=true,
+ showspaces=false,
+ showstringspaces=false,
captionpos=b,
xleftmargin=1em,
breaklines=true,
- backgroundcolor=\color{mybackground},
breakautoindent=true,
- rframe={},
- escapeinside=??,
- explpreset={numbers=left,numberstyle=\tiny,numbersep=12pt,
+ escapeinside=**,
+ pos=b,
+ explpreset={%
xleftmargin=1em,columns=flexible,language=[LaTeX]TEX},
- morekeywords={setLTR,setLR,setRTL,setRL,LRE,LR,RLE,RL,lr}
+ morekeywords={setLTR,setLR,setRTL,setRL,LRE,LR,RLE,RL,lr,bidiversion,bididate,%
+ bidicommit}
}
-\lstdefinestyle{syntax}{backgroundcolor=\color{blue!20},numbers=none,xleftmargin=0pt,xrightmargin=0pt,
- frame=single}
-\lstdefinestyle{code}{backgroundcolor=\color{red!20},numbers=left,xleftmargin=0pt,xrightmargin=0pt,
- frame=single}
+\lstdefinestyle{syntax}{backgroundcolor=\color{blue!20},numbers=none,xleftmargin=0pt,xrightmargin=0pt,pos=b}
+\lstdefinestyle{code}{backgroundcolor=\color{red!20},numbers=none,xleftmargin=0pt,xrightmargin=0pt,pos=b}
\lst@UserCommand\lstlistlistingname{List of Examples} % \lstlistoflistings
\lst@UserCommand\lstlistingname{Example}
\newcommand\HLON{%
\gdef\lst@alloverstyle##1{%
\fboxrule=0pt
\fboxsep=0pt
- \fcolorbox{orange}{orange}{\bfseries\strut##1}%
+ \fcolorbox{hellgelb}{hellgelb}{\bfseries\strut##1}%
}}
\newcommand\HLOFF{%
\xdef\lst@alloverstyle##1{##1}%
@@ -155,15 +146,75 @@
\def\OptArg@i*#1{\colorbox{black!20}{\texttt{#1}}\kern1pt}
\def\OptArg@ii*#1{\colorbox{black!20}{\texttt{[#1]}}\kern1pt}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/bidiftnxtra.sty b/Master/texmf-dist/tex/latex/bidi/bidiftnxtra.sty
index 9030af705dd..b1e08f3d043 100644
--- a/Master/texmf-dist/tex/latex/bidi/bidiftnxtra.sty
+++ b/Master/texmf-dist/tex/latex/bidi/bidiftnxtra.sty
@@ -1,9 +1,13 @@
%%
%% This is file `bidiftnxtra.sty',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `bidiftnxtra.sty')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -156,15 +160,75 @@
\color@endbox
}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/bidimoderncv.cls b/Master/texmf-dist/tex/latex/bidi/bidimoderncv.cls
index 64297954c4a..343c1c3a62f 100644
--- a/Master/texmf-dist/tex/latex/bidi/bidimoderncv.cls
+++ b/Master/texmf-dist/tex/latex/bidi/bidimoderncv.cls
@@ -1,9 +1,13 @@
%%
%% This is file `bidimoderncv.cls',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `bidimoderncv.cls')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -256,17 +260,76 @@
}
\newcommand\newblock{\hskip .11em\@plus.33em\@minus.07em}
\let\@openbib@code\@empty
-
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/bidipoem.sty b/Master/texmf-dist/tex/latex/bidi/bidipoem.sty
index a5aad6e1206..ad4b8d2a8e5 100644
--- a/Master/texmf-dist/tex/latex/bidi/bidipoem.sty
+++ b/Master/texmf-dist/tex/latex/bidi/bidipoem.sty
@@ -1,9 +1,13 @@
%%
%% This is file `bidipoem.sty',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `bidipoem.sty')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -205,15 +209,75 @@
\expandafter\def\csname modernpoem*\endcsname{\let\poem@obeylines=\obeylines\modernpoem}
\expandafter\def\csname endmodernpoem*\endcsname{\endmodernpoem}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/bidipresentation.cls b/Master/texmf-dist/tex/latex/bidi/bidipresentation.cls
index c2b43a5945e..729bff96e6c 100644
--- a/Master/texmf-dist/tex/latex/bidi/bidipresentation.cls
+++ b/Master/texmf-dist/tex/latex/bidi/bidipresentation.cls
@@ -1,9 +1,13 @@
%%
%% This is file `bidipresentation.cls',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `bidipresentation.cls')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -80,17 +84,76 @@
\setlength{\parskip}{0.1ex}%
\setlength{\parsep}{0ex}}
{\endlist}
-
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/boek-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/boek-xetex-bidi.def
index 2c67a4435be..8f728d0369c 100644
--- a/Master/texmf-dist/tex/latex/bidi/boek-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/boek-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `boek-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `boek-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -173,15 +177,75 @@
\global\let\and\relax
}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/boek3-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/boek3-xetex-bidi.def
index 9d6d642d76a..1adc0f3219a 100644
--- a/Master/texmf-dist/tex/latex/bidi/boek3-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/boek3-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `boek3-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `boek3-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -173,15 +177,75 @@
\global\let\and\relax
}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/book-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/book-xetex-bidi.def
index 93491873392..8d8459dc9ef 100644
--- a/Master/texmf-dist/tex/latex/bidi/book-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/book-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `book-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `book-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -208,15 +212,75 @@
{\@latex@warning{Empty `thebibliography' environment}}%
\endlist}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/bookest-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/bookest-xetex-bidi.def
index 3231a9305fb..82d72339c91 100644
--- a/Master/texmf-dist/tex/latex/bidi/bookest-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/bookest-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `bookest-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `bookest-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -42,15 +46,75 @@
\vskip 30\p@
}}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/breqn-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/breqn-xetex-bidi.def
index 4c8b7a243ea..22d2cd94c71 100644
--- a/Master/texmf-dist/tex/latex/bidi/breqn-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/breqn-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `breqn-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `breqn-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -64,15 +68,75 @@
}%
}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/caption-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/caption-xetex-bidi.def
index 4fbc3a472db..c9bc8fc1350 100644
--- a/Master/texmf-dist/tex/latex/bidi/caption-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/caption-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `caption-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `caption-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -11,15 +15,75 @@
\ProvidesFile{caption-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for caption package for XeTeX engine]
\let\@makecaption\caption@makecaption
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/color-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/color-xetex-bidi.def
index eaf647aca4d..cb12013610c 100644
--- a/Master/texmf-dist/tex/latex/bidi/color-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/color-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `color-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `color-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -50,15 +54,75 @@
\def\color@fbox#1#2#3{%
\color@b@x{\fboxsep\z@\bidicolor#1{#2}\fbox}{\bidicolor#1{#3}}}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/colortbl-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/colortbl-xetex-bidi.def
index e6d3c229808..858a0c0de08 100644
--- a/Master/texmf-dist/tex/latex/bidi/colortbl-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/colortbl-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `colortbl-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `colortbl-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -47,15 +51,75 @@
\unhbox\z@\if@RTL\endL\fi}%
\prepnext@tok}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/cvthemebidicasual.sty b/Master/texmf-dist/tex/latex/bidi/cvthemebidicasual.sty
index e120ec97174..98bbece0130 100644
--- a/Master/texmf-dist/tex/latex/bidi/cvthemebidicasual.sty
+++ b/Master/texmf-dist/tex/latex/bidi/cvthemebidicasual.sty
@@ -1,9 +1,13 @@
%%
%% This is file `cvthemebidicasual.sty',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `cvthemebidicasual.sty')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -106,17 +110,76 @@
}%
\pagestyle{plain}}
\AtBeginDocument{\makefooter}
-
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/cvthemebidiclassic.sty b/Master/texmf-dist/tex/latex/bidi/cvthemebidiclassic.sty
index 3021c30a342..d8355b813ca 100644
--- a/Master/texmf-dist/tex/latex/bidi/cvthemebidiclassic.sty
+++ b/Master/texmf-dist/tex/latex/bidi/cvthemebidiclassic.sty
@@ -1,9 +1,13 @@
%%
%% This is file `cvthemebidiclassic.sty',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `cvthemebidiclassic.sty')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -113,17 +117,76 @@
{}%
{\centering{\begin{minipage}{\quotewidth}\centering\quotestyle{\@quote}\end{minipage}}\\[2.5em]}%
}
-
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/draftwatermark-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/draftwatermark-xetex-bidi.def
index db6756a57ed..2fc2db8b37e 100644
--- a/Master/texmf-dist/tex/latex/bidi/draftwatermark-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/draftwatermark-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `draftwatermark-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `draftwatermark-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -12,15 +16,75 @@
\renewcommand\SetWatermarkText[1]{%
\def\sc@wm@text{\if@RTLmain\beginR\fi#1\if@RTLmain\endR\fi}}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/extarticle-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/extarticle-xetex-bidi.def
index 8ecaf0619f7..2e3dccc1f4e 100644
--- a/Master/texmf-dist/tex/latex/bidi/extarticle-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/extarticle-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `extarticle-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `extarticle-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -54,7 +58,7 @@
\markboth{}{}\par}%
\nobreak
\vskip 3ex
- \@afterheading}
+ \@afterheading}
\def\@spart#1{%
{\parindent \z@ \if@RTL\raggedleft\else\raggedright\fi
\interlinepenalty \@M
@@ -79,7 +83,7 @@
\sfcode`\.\@m}
{\def\@noitemerr
{\@latex@warning{Empty `thebibliography' environment}}%
- \endlist}
+ \endlist}
\renewcommand\left@footnote{%
\kern-3\p@
\hrule\@width.4\columnwidth
@@ -181,16 +185,77 @@
\renewcommand\thesubsection {\thesection\@SepMark\@arabic\c@subsection}
\renewcommand\thesubsubsection{\thesubsection \@SepMark\@arabic\c@subsubsection}
\renewcommand\theparagraph {\thesubsubsection\@SepMark\@arabic\c@paragraph}
-\renewcommand\thesubparagraph {\theparagraph\@SepMark\@arabic\c@subparagraph}%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+\renewcommand\thesubparagraph {\theparagraph\@SepMark\@arabic\c@subparagraph}%%
+%%
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/extbook-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/extbook-xetex-bidi.def
index 84874067e40..9f3048b454a 100644
--- a/Master/texmf-dist/tex/latex/bidi/extbook-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/extbook-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `extbook-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `extbook-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -182,15 +186,75 @@
{\@latex@warning{Empty `thebibliography' environment}}%
\endlist}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/extletter-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/extletter-xetex-bidi.def
index 0960b08b450..03b5e1a45a9 100644
--- a/Master/texmf-dist/tex/latex/bidi/extletter-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/extletter-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `extletter-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `extletter-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -44,15 +48,75 @@
\hrule \@width .4\columnwidth
\kern .6\p@}\hfil\endR}}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/extreport-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/extreport-xetex-bidi.def
index e4e016df8be..99112d5ac42 100644
--- a/Master/texmf-dist/tex/latex/bidi/extreport-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/extreport-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `extreport-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `extreport-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -186,15 +190,75 @@
\renewcommand\thetable{%
\ifnum \c@chapter>\z@\thechapter\@SepMark\fi\@arabic\c@table}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/fancyhdr-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/fancyhdr-xetex-bidi.def
index 2305dbc9865..56b0f365213 100644
--- a/Master/texmf-dist/tex/latex/bidi/fancyhdr-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/fancyhdr-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `fancyhdr-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `fancyhdr-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -21,15 +25,75 @@
\parbox[t]{\headwidth}{\centering\if@RTLmain\beginR\else\beginL\fi#3\if@RTLmain\endR\else\endL\fi}\hfill
\llap{\parbox[t]{\headwidth}{\raggedleft\if@RTLmain\beginR\else\beginL\fi#4\if@RTLmain\endR\else\endL\fi}}}}\endL}\if@RTLmain\beginR\else\beginL\fi#5\if@RTLmain\endR\else\endL\fi}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/fleqn-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/fleqn-xetex-bidi.def
index ac09ac70f17..ac0d95abf50 100644
--- a/Master/texmf-dist/tex/latex/bidi/fleqn-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/fleqn-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `fleqn-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `fleqn-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -39,15 +43,75 @@
\endL\egroup
\endtrivlist}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/flowfram-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/flowfram-xetex-bidi.def
index 77a2482bef2..6115fedf545 100644
--- a/Master/texmf-dist/tex/latex/bidi/flowfram-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/flowfram-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `flowfram-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `flowfram-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -86,14 +90,12 @@
\setcounter{displayedframe}{0}%
\let\firstmark\botmark}
-
\newcommand*\bidi@s@tfftextcol{\ifthenelse{\equal{\ff@txtcol}{}}{}{%
\expandafter\bidicolor\ff@txtcol}}
\newcommand{\bidi@ff@box}[3]{{\@ffbackground{\vbox to#2
{\hb@xt@ #1{\hss{\bidi@s@tfftextcol #3}\hss}\vss\kern\z@}}}}
-
\renewcommand*{\@docolbox}[1]{%
\edef\ff@frametype{%
\csname @ff@frametype@\romannumeral#1\endcsname}%
@@ -144,15 +146,75 @@
#2\relax
\fi}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/footnote-luatex-bidi.def b/Master/texmf-dist/tex/latex/bidi/footnote-luatex-bidi.def
index d29e2e66056..f210512b7c6 100644
--- a/Master/texmf-dist/tex/latex/bidi/footnote-luatex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/footnote-luatex-bidi.def
@@ -1,24 +1,88 @@
%%
%% This is file `footnote-luatex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `footnote-luatex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
%%
\ProvidesFile{footnote-luatex-bidi.def}[2010/07/25 v0.1 bidi footnote macros for LuaTeX engine]
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/footnote-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/footnote-xetex-bidi.def
index c612599becb..abbe0e7229b 100644
--- a/Master/texmf-dist/tex/latex/bidi/footnote-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/footnote-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `footnote-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `footnote-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -241,15 +245,75 @@
\@RTLfootnotetext}
\leftfootnoterule
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/graphicx-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/graphicx-xetex-bidi.def
index d6b51c90e4a..76d214714dc 100644
--- a/Master/texmf-dist/tex/latex/bidi/graphicx-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/graphicx-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `graphicx-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `graphicx-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -114,15 +118,75 @@
\Gscale@box\@tempa[\@tempb]{\box\@tempboxa}%
\@end@tempboxa}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/hyperref-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/hyperref-xetex-bidi.def
index df60a1a0c9c..4b26c2c9ad9 100644
--- a/Master/texmf-dist/tex/latex/bidi/hyperref-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/hyperref-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `hyperref-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `hyperref-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -236,15 +240,75 @@
}%
}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/leqno-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/leqno-xetex-bidi.def
index d5600cb9c8d..bd07376610d 100644
--- a/Master/texmf-dist/tex/latex/bidi/leqno-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/leqno-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `leqno-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `leqno-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -13,15 +17,75 @@
\rlap{\normalfont\normalcolor
\hskip -\displaywidth\if@RTL\beginR\fi(\theequation)\if@RTL\endR\fi}}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/letter-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/letter-xetex-bidi.def
index 25d74845ee2..05f614afc06 100644
--- a/Master/texmf-dist/tex/latex/bidi/letter-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/letter-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `letter-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `letter-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -33,15 +37,75 @@
\hrule \@width .4\columnwidth
\kern .6\p@}\hfil\endR}}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/listings-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/listings-xetex-bidi.def
index a7fa9d78051..c00cd9254e7 100644
--- a/Master/texmf-dist/tex/latex/bidi/listings-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/listings-xetex-bidi.def
@@ -1,14 +1,18 @@
%%
%% This is file `listings-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `listings-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
%%
-\ProvidesFile{listings-xetex-bidi.def}[2010/07/25 v0.4 bidi adaptations for listings package for XeTeX engine]
+\ProvidesFile{listings-xetex-bidi.def}[2010/07/25 v0.5 bidi adaptations for listings package for XeTeX engine]
\AtBeginDocument{
\@ifundefined{thechapter}{\let\lst@ifnumberbychapter\iffalse}{}
\lst@ifnumberbychapter
@@ -18,15 +22,75 @@
\gdef\thelstlisting{\@arabic\c@lstlisting}
\fi}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/loadingorder-bidi.def b/Master/texmf-dist/tex/latex/bidi/loadingorder-bidi.def
index 266950c1ace..3c72e77d425 100644
--- a/Master/texmf-dist/tex/latex/bidi/loadingorder-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/loadingorder-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `loadingorder-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `loadingorder-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -184,15 +188,75 @@
\fi%
}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/longtable-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/longtable-xetex-bidi.def
index 919b4845111..06b3b49e3f1 100644
--- a/Master/texmf-dist/tex/latex/bidi/longtable-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/longtable-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `longtable-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `longtable-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -20,15 +24,75 @@
\endgraf\vskip\baselineskip}%
\hss}}}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/luatex-bidi.def b/Master/texmf-dist/tex/latex/bidi/luatex-bidi.def
index d3fff38d3df..9541dabe4f4 100644
--- a/Master/texmf-dist/tex/latex/bidi/luatex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/luatex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `luatex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `luatex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -11,17 +15,76 @@
\ProvidesFile{luatex-bidi.def}[2010/07/25 v0.1 bidi adaptations for LuaTeX engine]
\directlua { tex.enableprimitives('',{'pagedir','bodydir','pardir','textdir','mathdir'}) }
\input{footnote-luatex-bidi.def}
-
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/memoir-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/memoir-xetex-bidi.def
index 5ebe743c842..6d5affc37f1 100644
--- a/Master/texmf-dist/tex/latex/bidi/memoir-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/memoir-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `memoir-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `memoir-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -165,15 +169,75 @@
\if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
\begin{bibitemlist}{#1}}{\end{bibitemlist}\postbibhook}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/minitoc-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/minitoc-xetex-bidi.def
index f7118b3e8ca..2d52ee15c16 100644
--- a/Master/texmf-dist/tex/latex/bidi/minitoc-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/minitoc-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `minitoc-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `minitoc-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -47,15 +51,75 @@
\par}%
\fi}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/multicol-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/multicol-xetex-bidi.def
index eb4ff77f5fb..c67f9439e74 100644
--- a/Master/texmf-dist/tex/latex/bidi/multicol-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/multicol-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `multicol-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `multicol-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -155,15 +159,75 @@
\rule\z@\footnotesep\ignorespaces\if@RTL@footnote#1\else\rmfamily#1\fi\@finalstrut\strutbox}%
\color@endgroup}}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/pdfpages-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/pdfpages-xetex-bidi.def
index 8e20d5f71ae..c110b5bcf75 100644
--- a/Master/texmf-dist/tex/latex/bidi/pdfpages-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/pdfpages-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `pdfpages-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `pdfpages-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -57,15 +61,75 @@
\AM@ClearShipoutPicture
}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/pgf-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/pgf-xetex-bidi.def
index a21f11bfc99..25701ae4b5f 100644
--- a/Master/texmf-dist/tex/latex/bidi/pgf-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/pgf-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `pgf-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `pgf-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -14,15 +18,75 @@
\def\pgfpicture{\ifmmode\else\beginL\fi\origin@pgfpicture}
\def\endpgfpicture{\origin@endpgfpicture\ifmmode\else\endL\fi}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/plain-luatex-bidi.def b/Master/texmf-dist/tex/latex/bidi/plain-luatex-bidi.def
index 25f8ed4b16f..dd69319b175 100644
--- a/Master/texmf-dist/tex/latex/bidi/plain-luatex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/plain-luatex-bidi.def
@@ -1,24 +1,88 @@
%%
%% This is file `plain-luatex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `plain-luatex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
-%%
+%%
\directlua { tex.enableprimitives('',tex.extraprimitives()) }
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/plain-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/plain-xetex-bidi.def
index d20d4cc5840..8ff5e9efa17 100644
--- a/Master/texmf-dist/tex/latex/bidi/plain-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/plain-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `plain-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `plain-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -91,15 +95,75 @@
\def\leftline#1{\line{\if@RTL\beginR\fi#1\if@RTL\endR\fi\hss}}
\def\rightline#1{\line{\hss\if@RTL\beginR\fi#1\if@RTL\endR\fi}}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/pstricks-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/pstricks-xetex-bidi.def
index 589d50963ca..892c0a6fcad 100644
--- a/Master/texmf-dist/tex/latex/bidi/pstricks-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/pstricks-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `pstricks-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `pstricks-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -14,15 +18,75 @@
\def\pspicture{\ifmmode\else\beginL\fi\origin@pspicture}
\def\endpspicture{\origin@endpspicture\ifmmode\else\endL\fi}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/quotchap-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/quotchap-xetex-bidi.def
index 996ea28cb3c..aed45d0ff59 100644
--- a/Master/texmf-dist/tex/latex/bidi/quotchap-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/quotchap-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `quotchap-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `quotchap-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -25,21 +29,77 @@
\vbox to\z@{\leavevmode\copy\@quotebox\vss}
\global\let\@printcites\relax}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
%%
%% End of file `quotchap-xetex-bidi.def'.
-
-
-
-
diff --git a/Master/texmf-dist/tex/latex/bidi/ragged2e-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/ragged2e-xetex-bidi.def
index 5087349d95b..3c17745e5f6 100644
--- a/Master/texmf-dist/tex/latex/bidi/ragged2e-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/ragged2e-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `ragged2e-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `ragged2e-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -95,15 +99,75 @@
\def\RaggedLeft{\if@RTL\origin@RaggedRight\else\origin@RaggedLeft\fi}
\def\RaggedRight{\if@RTL\origin@RaggedLeft\else\origin@RaggedRight\fi}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/rapport1-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/rapport1-xetex-bidi.def
index fcb4b2d0da8..397a608f90a 100644
--- a/Master/texmf-dist/tex/latex/bidi/rapport1-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/rapport1-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `rapport1-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `rapport1-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -251,15 +255,75 @@
\vskip 1.5em}
\fi
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/rapport3-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/rapport3-xetex-bidi.def
index 7aac92380e6..bd831e058b0 100644
--- a/Master/texmf-dist/tex/latex/bidi/rapport3-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/rapport3-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `rapport3-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `rapport3-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -273,15 +277,75 @@
\hyphenpenalty=\@M \exhyphenpenalty=\@M
\if@RTL\leftskip\else\rightskip\fi=0cm plus .7\hsize\relax}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/refrep-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/refrep-xetex-bidi.def
index 6bc9539492b..e52d20094a8 100644
--- a/Master/texmf-dist/tex/latex/bidi/refrep-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/refrep-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `refrep-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `refrep-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -192,15 +196,75 @@
{\@latex@warning{Empty `thebibliography' environment}}%
\endlist}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/report-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/report-xetex-bidi.def
index c14ca3634e1..bf7bed12d51 100644
--- a/Master/texmf-dist/tex/latex/bidi/report-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/report-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `report-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `report-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -198,15 +202,75 @@
{\@latex@warning{Empty `thebibliography' environment}}%
\endlist}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/scrartcl-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/scrartcl-xetex-bidi.def
index 86c1482339b..a4117efd059 100644
--- a/Master/texmf-dist/tex/latex/bidi/scrartcl-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/scrartcl-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `scrartcl-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `scrartcl-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -332,15 +336,75 @@
\marginpar[\if@RTL\raggedright\else\raggedleft\fi{#1}]{\if@RTL\raggedleft\else\raggedright\fi #1}%
}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/scrbook-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/scrbook-xetex-bidi.def
index d85755c3dc0..ad1e667ceb7 100644
--- a/Master/texmf-dist/tex/latex/bidi/scrbook-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/scrbook-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `scrbook-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `scrbook-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -388,15 +392,75 @@
\marginpar[\if@RTL\raggedright\else\raggedleft\fi{#1}]{\if@RTL\raggedleft\else\raggedright\fi #1}%
}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/scrlettr-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/scrlettr-xetex-bidi.def
index 0480a1f7846..6995a26b5ab 100644
--- a/Master/texmf-dist/tex/latex/bidi/scrlettr-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/scrlettr-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `scrlettr-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `scrlettr-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -88,15 +92,75 @@
\fromsig\strut}\par
\vspace{1.5\baselineskip}}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/scrreprt-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/scrreprt-xetex-bidi.def
index d4c9145a86f..ca490196160 100644
--- a/Master/texmf-dist/tex/latex/bidi/scrreprt-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/scrreprt-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `scrreprt-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `scrreprt-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -345,15 +349,75 @@
\marginpar[\if@RTL\raggedright\else\raggedleft\fi{#1}]{\if@RTL\raggedleft\else\raggedright\fi #1}%
}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/stabular-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/stabular-xetex-bidi.def
index 0a56cdb48a6..7c624e09759 100644
--- a/Master/texmf-dist/tex/latex/bidi/stabular-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/stabular-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `stabular-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `stabular-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -36,15 +40,75 @@
\if@RTLtab\hbox\bgroup\beginR\vbox\bgroup\fi
\@preamble}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/subfigure-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/subfigure-xetex-bidi.def
index 99520624782..722e78f0043 100644
--- a/Master/texmf-dist/tex/latex/bidi/subfigure-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/subfigure-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `subfigure-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `subfigure-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -14,15 +18,75 @@
\let\p@subtable=\thetable%
}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/tabls-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/tabls-xetex-bidi.def
index 56b36fd5847..9c55e7c6cc1 100644
--- a/Master/texmf-dist/tex/latex/bidi/tabls-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/tabls-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `tabls-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `tabls-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -44,15 +48,75 @@
\if@RTLtab\hbox\bgroup\beginR\vbox\bgroup\fi
\@preamble}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/tabulary-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/tabulary-xetex-bidi.def
index 45b04a916f5..d0343fa12f1 100644
--- a/Master/texmf-dist/tex/latex/bidi/tabulary-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/tabulary-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `tabulary-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `tabulary-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -39,15 +43,75 @@
\z@ \@chclass \z@ \@preamerr \z@ \fi \fi \fi \fi\fi \fi \fi\fi \fi
\fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/tikz-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/tikz-xetex-bidi.def
index 2547d4b12a4..074a624351f 100644
--- a/Master/texmf-dist/tex/latex/bidi/tikz-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/tikz-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `tikz-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `tikz-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -16,15 +20,75 @@
\def\tikzpicture{\ifmmode\else\beginL\fi\origin@tikzpicture}
\def\endtikzpicture{\origin@endtikzpicture\ifmmode\else\endL\fi}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/titlesec-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/titlesec-xetex-bidi.def
index c0c1c588276..6087359c8dd 100644
--- a/Master/texmf-dist/tex/latex/bidi/titlesec-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/titlesec-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `titlesec-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `titlesec-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -16,15 +20,75 @@
\advance\rightskip\z@ \@plus 1fil
\parfillskip\z@}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/titletoc-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/titletoc-xetex-bidi.def
index 7fcbe440927..2a8c9036c7f 100644
--- a/Master/texmf-dist/tex/latex/bidi/titletoc-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/titletoc-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `titletoc-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `titletoc-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -27,7 +31,7 @@
\else\ifnum\ttl@b<\ttl@a
\addpenalty{\@secpenalty}%
\else
- \addpenalty{\z@}%
+ \addpenalty{\z@}%
\fi\fi
\ttl@contentsstretch
\nobreak
@@ -35,7 +39,7 @@
\parindent\z@
\ifx\@nil#2%
\PackageError{titletoc}{Unimplemented}%
- {The optional argument is currently mandatory}%
+ {The optional argument is currently mandatory}%
\else
\if@RTL\setlength\rightskip{#2}\else
\setlength\leftskip{#2}\fi%
@@ -53,15 +57,75 @@
\advance\if@RTL\leftskip\else\rightskip\fi#2\relax
\def\@pnumwidth{#2}}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/tocbibind-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/tocbibind-xetex-bidi.def
index 312caec95dd..81fced33540 100644
--- a/Master/texmf-dist/tex/latex/bidi/tocbibind-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/tocbibind-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `tocbibind-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `tocbibind-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -40,15 +44,75 @@
\fi
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/tocloft-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/tocloft-xetex-bidi.def
index 3b51747c23e..5733209febf 100644
--- a/Master/texmf-dist/tex/latex/bidi/tocloft-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/tocloft-xetex-bidi.def
@@ -1,14 +1,19 @@
%%
%% This is file `tocloft-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `tocloft-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
%%
-\ProvidesFile{tocloft-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for tocloft package for XeTeX engine]
+\ProvidesFile{tocloft-xetex-bidi.def}[2010/07/25 v0.2 bidi adaptations for tocloft package for XeTeX engine]
+\let\cftdot\@SepMark
\if@cfthaspart
\renewcommand*{\l@part}[2]{
\@cftdopartfalse
@@ -252,7 +257,7 @@
\newcounter{#2}}%
{\newcounter{#2}[#1]%
\expandafter\edef\csname the#2\endcsname{%
- \expandafter\noexpand\csname the#1\endcsname.\noexpand\arabic{#2}}}
+ \expandafter\noexpand\csname the#1\endcsname\@SepMark\noexpand\arabic{#2}}}
\fi
\setcounter{#2}{0}
}
@@ -316,15 +321,75 @@
\if@RTL\leftskip\else\rightskip\fi \@tocrmarg\relax
\textit{#1}\protect\par}}}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/tocstyle-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/tocstyle-xetex-bidi.def
index 75006caf275..6bba0375ce3 100644
--- a/Master/texmf-dist/tex/latex/bidi/tocstyle-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/tocstyle-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `tocstyle-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `tocstyle-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -255,15 +259,75 @@
\@tempa
}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/wrapfig-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/wrapfig-xetex-bidi.def
index efda5dd6e15..ca974d32524 100644
--- a/Master/texmf-dist/tex/latex/bidi/wrapfig-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/wrapfig-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `wrapfig-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `wrapfig-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -85,15 +89,75 @@
\aftergroup\WF@startwrapping % after the \endgroup which immediately follows
\fi}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/xcolor-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/xcolor-xetex-bidi.def
index c37085811e5..f7a2508b878 100644
--- a/Master/texmf-dist/tex/latex/bidi/xcolor-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/xcolor-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `xcolor-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `xcolor-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -111,15 +115,75 @@
{\color@b@x{\fboxsep\z@\bidicolor#1{#2}\XC@fbox}%
{\@ifxempty{#3}{\bidicolor#1}{\bidicolor#3}{#4}}}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/xetex-bidi.def
index 719fe721731..cdeef5c3993 100644
--- a/Master/texmf-dist/tex/latex/bidi/xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -240,22 +244,22 @@ $\@@underline{\hbox{#1}}\m@th$\relax\fi\fi}
\hb@xt@\@pnumwidth{\hfil\normalfont \normalcolor #5}%
\par}%
\fi}
-\def\RTL@outputdblcol{%
+\def\RTL@outputdblcol{%
\if@firstcolumn \global\@firstcolumnfalse
- \global\setbox\@leftcolumn \box\@outputbox
+\global\setbox\@leftcolumn \box\@outputbox
\else \global\@firstcolumntrue
- \setbox\@outputbox \vbox {\hbox to\textwidth {%
- \hskip \columnwidth
- \hfil \vrule width\columnseprule \hfil
- \hbox to\columnwidth {\box\@leftcolumn \hss}%
- \hskip -\textwidth
- \hbox to\columnwidth{\box\@outputbox \hss}%
- \hskip \columnsep
- \hskip \columnwidth }}%
- \@combinedblfloats \@outputpage
- \begingroup \@dblfloatplacement \@startdblcolumn
- \@whilesw\if@fcolmade \fi
- {\@outputpage \@startdblcolumn }\endgroup
+\setbox\@outputbox \vbox {\hbox to\textwidth {%
+\hskip \columnwidth
+\hfil \vrule width\columnseprule \hfil
+\hbox to\columnwidth {\box\@leftcolumn \hss}%
+\hskip -\textwidth
+\hbox to\columnwidth{\box\@outputbox \hss}%
+\hskip \columnsep
+\hskip \columnwidth }}%
+\@combinedblfloats \@outputpage
+\begingroup \@dblfloatplacement \@startdblcolumn
+\@whilesw\if@fcolmade \fi
+{\@outputpage \@startdblcolumn }\endgroup
\fi}
\def\LTR@outputdblcol{%
\if@firstcolumn
@@ -520,15 +524,75 @@ $\@@underline{\hbox{#1}}\m@th$\relax\fi\fi}
\@ifpackageloaded{tocbibind}{\@ifclassloaded{memoir}{}{\input{tocbibind-xetex-bidi.def}}}{}
\@ifpackageloaded{tocloft}{\@ifclassloaded{memoir}{}{\input{tocloft-xetex-bidi.def}}}{}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%
diff --git a/Master/texmf-dist/tex/latex/bidi/xltxtra-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/xltxtra-xetex-bidi.def
index 860b89b917a..d6b68f5ef28 100644
--- a/Master/texmf-dist/tex/latex/bidi/xltxtra-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/xltxtra-xetex-bidi.def
@@ -1,9 +1,13 @@
%%
%% This is file `xltxtra-xetex-bidi.def',
-
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `xltxtra-xetex-bidi.def')
%%
-%% __________________________________
-%% Copyright © 2009-2010 Vafa Khalighi
+%% ______________________________________
+%% Copyright © 2009–2010 Vafa Khalighi
%%
%% License information appended.
%%
@@ -14,15 +18,75 @@
\let\@@XeLaTeX\XeLaTeX
\def\XeLaTeX{\@ensure@LTR{\@@XeLaTeX}}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%% Copyright © 2009–2010 Vafa Khalighi <vafakhlgh@gmail.com>
%%
-%% Distributable under the LaTeX Project Public License,
+%% 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 "maintained" (as per LPPL maintenance status)
+%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Vafa Khalighi.
%%
+%% In addition to the terms of LPPL any distributed version
+%% (unchanged or modified) of bidi has to keep the statement
+%% about the moral obligation for using bidi. In case of major
+%% changes where this would not be appropriate the author of the
+%% changed version should contact the copyright holder.
+%%
+%%
+%%
+%% Moral obligation for using bidi:
+%% ____________________________________
+%%
+%% Users of bidi who wish to include or use bidi or a modified
+%% version in a proprietary and commercially market product are asked
+%% under certain conditions (see below) for the payment of a license
+%% fee. The size of this fee is to be determined, in each instance,
+%% by the commercial user, depending on his/her judgment of the value of
+%% bidi for his/her product.
+%%
+%%
+%% The conditions for this are as follows:
+%%
+%% The producer of a proprietary and commercially market product
+%% that involves typesetting using bidi is asked to determine
+%% the value of a license fee for using bidi if
+%%
+%% - the product is a document and the producer has decided to
+%% include bidi to typeset (parts of) the document or has
+%% directed the author of the document to include bidi (for
+%% example, by providing a class file to be used by the author)
+%%
+%% - the product is a LaTeX class or package that includes bidi
+%%
+%%
+%% There is no moral obligation in case
+%%
+%% - the product is a document but producer has not directed
+%% the author to include bidi (in that case the moral obligation
+%% lies with the author of the document)
+%%
+%% - the product does not involve typesetting, e.g., consists, for
+%% example, of distributing bidi and its documentation.
+%%
+%% - the product is not proprietary, i.e., is made available as free
+%% software itself (which doesn't prohibit its commercial marketing)
+%%
+%% - bidi is used for non-commercial purposes
+%%
+%%
+%% Determinating a license fee might result in a license fee of zero
+%% (i.e., no payment) in case a producer has determined that the use
+%% of bidi has no enhancing effect on the product. This is a
+%% plausible scenario, i.e., in the above two cases the producer is
+%% only asked to evaluate the value of bidi for the product
+%% not for the payment of a license fee per se (which might or might
+%% not follow from this evaluation).
+%%
+%% The license fee, if any, can be payed to the author of
+%% the program who can be contacted at
+%%
+%% vafakhlgh@gmail.com
%%
%%
%%