summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/xelatex/bidi
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/xelatex/bidi')
-rw-r--r--Master/texmf-dist/source/xelatex/bidi/bidi-doc-intro.ltx35
-rw-r--r--Master/texmf-dist/source/xelatex/bidi/bidi-doc-latex-basics.ltx409
-rw-r--r--Master/texmf-dist/source/xelatex/bidi/bidi-doc-latex-pkgs.ltx55
-rw-r--r--Master/texmf-dist/source/xelatex/bidi/bidi-doc-latex-pkgsupport.ltx49
-rw-r--r--Master/texmf-dist/source/xelatex/bidi/bidi-doc-latex-programming.ltx72
-rw-r--r--Master/texmf-dist/source/xelatex/bidi/bidi-doc-plain-basics.ltx134
-rw-r--r--Master/texmf-dist/source/xelatex/bidi/bidi-doc-plain-programming.ltx35
-rw-r--r--Master/texmf-dist/source/xelatex/bidi/bidi-doc-preamble.ltx95
-rw-r--r--Master/texmf-dist/source/xelatex/bidi/bidi-doc-title.ltx47
-rw-r--r--Master/texmf-dist/source/xelatex/bidi/bidi-doc.ltx20
-rw-r--r--Master/texmf-dist/source/xelatex/bidi/bidi.dtx1161
11 files changed, 1102 insertions, 1010 deletions
diff --git a/Master/texmf-dist/source/xelatex/bidi/bidi-doc-intro.ltx b/Master/texmf-dist/source/xelatex/bidi/bidi-doc-intro.ltx
new file mode 100644
index 00000000000..22011fc9050
--- /dev/null
+++ b/Master/texmf-dist/source/xelatex/bidi/bidi-doc-intro.ltx
@@ -0,0 +1,35 @@
+\documentclass{ltxdoc}
+\input{bidi-doc-preamble.ltx}
+\begin{document}
+\section*{Introduction}
+\textsf{bidi} provides a convenient interface for typesetting bidirectional texts in plain \TeX\ and \LaTeX, using the \XeTeX{} engine.
+
+\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{verbatim}
+****************************************************
+*
+* bidi package (Bidirectional typesetting in
+* plain TeX and LaTeX, using XeTeX engine)
+*
+* 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--2018 Vafa Khalighi
+*
+* v32.2, 2018/01/17
+*
+* License: LaTeX Project Public License, version
+* 1.3c or higher (your choice)
+*
+* Location on CTAN: /macros/xetex/latex/bidi
+*
+* Issue tracker: https://github.com/tex-xet/bidi/issues
+*
+* Support: persian-tex@tug.org
+*
+****************************************************
+\end{verbatim}
+\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/source/xelatex/bidi/bidi-doc-latex-basics.ltx b/Master/texmf-dist/source/xelatex/bidi/bidi-doc-latex-basics.ltx
new file mode 100644
index 00000000000..d796aab54de
--- /dev/null
+++ b/Master/texmf-dist/source/xelatex/bidi/bidi-doc-latex-basics.ltx
@@ -0,0 +1,409 @@
+\documentclass{ltxdoc}
+\input{bidi-doc-preamble.ltx}
+\begin{document}
+\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},numbers=none,frame=none,framexleftmargin=1mm]
+! 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{\textsf{bidi}'s Symbol}
+ As you may know lion symbolizes \TeX{} but lion does not symbolizes \textsf{bidi}. \textbf{Simorgh}\footnote{\textbf{Simorgh} is an Iranian benevolent, mythical flying creature which has been shown on the titlepage of this documentation. For more details see \url{http://en.wikipedia.org/wiki/Simurgh}} (shown on the first page of this documentation) symbolizes \textsf{bidi}.
+\subsection{Commands for Version number, and Date of The Package}
+\begin{BDef}
+\Lcs{bidiversion}\quad\Lcs{bididate}
+\end{BDef}
+\begin{itemize}
+\item \Lcs{bidiversion} gives the current version 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, \bididate.
+\end{document}
+\end{lstlisting}
+\subsection{Turning TeX-{-}XeT features on and off}
+The bidirectional typesetting in \XeTeX{} is based on TeX-{-}XeT algorithm and \textsf{bidi} package automatically turns the feature on for typesetting bidirectional texts. As the internal data structures built by TeX-{-}XeT differ from those built by \TeX, the typesetting of a document by TeX-{-}XeT may therefore differ from that performed by \TeX. So you may notice that some packages behave differently when TeX-{-}XeT feature is on and you may want to turn the feature off for a part of the text so that you get the default behaviour of original \TeX. Two commands are provided for this purpose:
+\begin{BDef}
+\Lcs{TeXXeTOn}\quad\Lcs{TeXXeTOff}
+\end{BDef}
+\begin{itemize}
+\item \Lcs{TeXXeTOn} turns TeX-{-}XeT feature on, which is active by default when \textsf{bidi} package is loaded.
+\item \Lcs{TeXXeTOff} turns TeX-{-}XeT feature off.
+\end{itemize}
+\subsection{Options of The Package\label{options}}
+There are three 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.
+
+There is also \texttt{extrafootnotefeatures} option that allows footnotes to be typeset in different formats:
+\begin{BDef}
+\Lcs{normalfootnotes}\\
+\Lcs{twocolumnfootnotes}\quad\Lcs{threecolumnfootnotes}\quad\Lcs{fourcolumnfootnotes}\\
+\Lcs{fivecolumnfootnotes}\quad\Lcs{sixcolumnfootnotes}\quad\Lcs{sevencolumnfootnotes}\\
+\Lcs{eightcolumnfootnotes}\quad\Lcs{ninecolumnfootnotes}\quad\Lcs{tencolumnfootnotes}\\
+\Lcs{RTLcolumnfootnotes}\quad\Lcs{LTRcolumnfootnotes}\\
+\Lcs{paragraphfootnotes}\\
+\Lcs{setLTRparagraphfootnotes}\quad\Lcs{setRTLparagraphfootnotes}
+\end{BDef}
+\begin{itemize}
+\item \Lcs{normalfootnotes} typesets footnotes in Standard \LaTeX{} format.
+\item \Lcs{twocolumnfootnotes} to \Lcs{tencolumnfootnotes}, typeset footnotes in two-columns to ten-columns, respectively.
+\item \Lcs{RTLcolumnfootnotes} typesets footnotes columns RTL (first column on the RHS and each next column to the left of the previous column) and \Lcs{LTRcolumnfootnotes} typesets footnotes columns LTR (first column on the LHS and each next column to the right of the previous column). \Lcs{LTRcolumnfootnotes} is active by default.
+\item \Lcs{paragraphfootnotes} typesets footnotes in paragraph format.
+\item \Lcs{setLTRparagraphfootnotes} makes footnotes run from left to right. This comand is active by default.
+\item \Lcs{setRTLparagraphfootnotes} makes footnotes run from right to left.
+\end{itemize}
+ Please note that when using \texttt{extrafootnotefeatures} option, the footnote rule will be as wide as the text width and \Lcs{autofootnoterule}, \Lcs{rightfootnoterule}, \Lcs{leftfootnoterule}, and \Lcs{textwidthfootnoterule} commands have no effects.
+
+
+
+ Please also note that if you redefine \Lcs{baselinestretch} command or change the value of \Lcs{baselineskip} primitive before \Lcs{paragraphfootnotes} command, then you may get Arithmetic Overflow error. You should change these after using \Lcs{paragraphfootnotes} command.
+\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{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}\quad\Lcs{SplitFootnoteRule}\\
+\Lcs{debugfootnotedirection}
+\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}.
+\item \Lcs{SplitFootnoteRule} puts a full-width rule above the split-off part of a split footnote.
+\item \Lcs{debugfootnotedirection} writes the direction of the first footnote on each page, in the log file.
+\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.
+
+Also please note that in \texttt{twocolumn} documents, the width of the \Lcs{footnoterule} will be equal to \Lcs{columnwidth} no matter which footnote-rule commands you use; indeed, in \texttt{twocolumn} documents only \Lcs{textwidthfootnoterule} is active and other footnote-rule commands will not be effective.
+\subsection{RTL cases}
+\marginpar{\Lcs{RTLcases} command was previously known as \Lcs{rcases} command but since there was a clash with \textsf{mathtools} package (mathtools defines \textsf{rcases} environment), we had to rename \Lcs{rcases} command to \Lcs{RTLcases} command.}
+\begin{BDef}
+\Lcs{RTLcases}\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{RTLcases} 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={RTLcases,text}]
+\documentclass{article}
+\usepackage{amsmath}
+\usepackage{bidi}
+\begin{document}
+\setRTL
+\[\RTLcases{\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}\\
+\quad\Lcs{item} \Larga{text}\\
+\quad\ldots\\
+\LEND{RTLitems}
+\end{BDef}
+ 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}\\
+\quad\Lcs{item} \Larga{text}\\
+\quad\ldots\\
+\LEND{LTRitems}
+\end{BDef}
+\subsection{\textsf{LTRbibitems} and \textsf{RTLbibitems} Environments}
+The syntax of \textsf{LTRbibitems} and \textsf{RTLbibitems} environments is exactly like the syntax of \textsf{LTRitems} and \textsf{RTLitems} environments but there are few differences:
+\begin{itemize}
+\item \textsf{LTRitems} and \textsf{RTLitems} environments should only be used for \textsf{list}-like environments (such as \textsf{itemize}, \textsf{enumerate} and \textsf{description} environments) but \textsf{LTRbibitems} and \textsf{RTLbibitems} environments should only be used for \textsf{thebibliography} environment.
+\item Clearly instead of \Lcs{item}, you have \Lcs{bibitem} inside \textsf{LTRbibitems} and \textsf{RTLbibitems} environments.
+\end{itemize}
+\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{RTLbibitems}
+\bibitem This is the second bibitem which is RTL.
+\end{RTLbibitems}
+\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 following commands are provided:
+\begin{BDef}
+\Lcs{setRTLmarginpar}\quad\Lcs{setLTRmarginpar}\quad\Lcs{setdefaultmarginpar}\\
+\Lcs{LTRmarginpar}\Largs{\Larga{left-text}}\Largb{\Larga{right-text}}\\
+\Lcs{RTLmarginpar}\Largs{\Larga{left-text}}\Largb{\Larga{right-text}}
+\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.
+\item \Lcs{LTRmarginpar} typesets \Larga{left-text} and \Larga{right-text} always LTR.
+\item \Lcs{RTLmarginpar} typesets \Larga{left-text} and \Larga{right-text} always RTL.
+\item in RTL mode, places of \Larga{left-text} and \Larga{right-text} swaps.
+\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.
+\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/source/xelatex/bidi/bidi-doc-latex-pkgs.ltx b/Master/texmf-dist/source/xelatex/bidi/bidi-doc-latex-pkgs.ltx
new file mode 100644
index 00000000000..c499565eac0
--- /dev/null
+++ b/Master/texmf-dist/source/xelatex/bidi/bidi-doc-latex-pkgs.ltx
@@ -0,0 +1,55 @@
+\documentclass{ltxdoc}
+\input{bidi-doc-preamble.ltx}
+\begin{document}
+\section{Extra \textsf{bidi} Packages and Classes}
+\subsection{\textsf{biditufte} bundle}
+A modified version of \textsf{tufte-latex}, \textsf{biditufte} bundle, mainly for RTL typesetting, is provided. If you never used \textsf{biditufte} bundle or \textsf{tufte-latex} package and you want to use \textsf{biditufte} bundle, then you need to look at \textsf{tufte-latex} package's manual and examples. In addition, for using \textsf{biditufte} bundle, you need to know the following notes:
+\begin{itemize}
+\item You need to use \textsf{biditufte-book} class instead \textsf{tufte-book} class and \textsf{biditufte-handout} class instead \textsf{tufte-handout} class.
+\item \textsf{biditufte} bundle provides the following extra commands:
+\begin{BDef}
+\Lcs{LTRsidenote}\quad\Lcs{RTLsidenote}\quad\Lcs{LTRmarginnote}\quad\Lcs{RTLmarginnote}
+\end{BDef}
+\item \textsf{biditufte} bundle unlike \textsf{tufts-latex} package, only provides justified lines.
+\item Some features of \textsf{tufte-latex} that does not make any sense in RTL, do not exist in \textsf{biditufte} bundle (no need for \textsf{soul}, \textsf{letterspace} and \textsf{macrotype} packages).
+\item If you want to configure \textsf{biditufte-book} class for your own needs, then you can create a file with the name \texttt{biditufte-book.cfg} and put your \LaTeX{} macros in that file; similarly, if you want to configure \textsf{biditufte-handout} class for your own needs, then you can create a file with the name \texttt{biditufte-handout.cfg} and put your \LaTeX{} macros in that file.
+\end{itemize}
+\subsection{Typesetting \TeX{} and \LaTeX{} Codes}
+The \LaTeX{} codes in this manual are typeset using the \textsf{bidicode} package.
+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.
+\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/source/xelatex/bidi/bidi-doc-latex-pkgsupport.ltx b/Master/texmf-dist/source/xelatex/bidi/bidi-doc-latex-pkgsupport.ltx
new file mode 100644
index 00000000000..d0235b39dd2
--- /dev/null
+++ b/Master/texmf-dist/source/xelatex/bidi/bidi-doc-latex-pkgsupport.ltx
@@ -0,0 +1,49 @@
+\documentclass{ltxdoc}
+\input{bidi-doc-preamble.ltx}
+\begin{document}
+\section{Support For Various Packages and Classes}
+The \textsf{bidi} package supports \textsf{amsmath}, \textsf{amstext}, \textsf{amsthm}, \textsf{array}, \textsf{arydshln}, \textsf{breqn}, \textsf{cals}, \textsf{caption}, \textsf{color}, \textsf{colortbl}, \textsf{crop}, \textsf{cuted}, \textsf{cutwin}, \textsf{dblfnote} \textsf{draftwatermark}, \textsf{empheq}, \textsf{fancyhdr}, \textsf{fancybox}, \textsf{fix2col}, \textsf{float}, \textsf{floatrow}, \textsf{flowfram}, \textsf{framed}, \textsf{ftnright}, \textsf{geometry}, \textsf{graphicx}, \textsf{hvfloat}, \textsf{hyperref}, \textsf{lettrine}, \textsf{listings}, \textsf{mdframed}, \textsf{midfloat}, \textsf{minitoc}, \textsf{multicol}, \textsf{multienum}, \textsf{newfloat}, \textsf{pdfpages}, \textsf{pstricks}, \textsf{quotchap}, \textsf{picinpar}, \textsf{ragged2e}, \textsf{rotating}, \textsf{sidecap}, \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{flashcards}, \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{scrartcl}, \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{xecolor} 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{The \textsf{dblfnote} package}
+The \textsf{dblfnote} package makes footnotes double-columned. In addition \textsf{bidi} package adds bidirectional support for the \textsf{dblfnote} package by providing the following commands:
+\begin{BDef}
+\Lcs{RTLdfnmakecol}\qquad\Lcs{LTRdfnmakecol}
+\end{BDef}
+\begin{itemize}
+\item \Lcs{RTLdfnmakecol} makes footnotes double-columned RTL.
+\item \Lcs{LTRdfnmakecol} makes footnotes double-columned LTR.
+\item If the main direction of the document is RTL, \Lcs{RTLdfnmakecol} is active and if the main direction of the document is LTR, \Lcs{LTRdfnmakecol} is active.
+\end{itemize}
+ Please note that when using \textsf{dblfnote} package, the footnote rule will be as wide as the footnote column and \Lcs{autofootnoterule}, \Lcs{rightfootnoterule}, \Lcs{leftfootnoterule}, and \Lcs{textwidthfootnoterule} commonds have no effects.
+\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{The \textsf{listings} package}
+ Suppose that the main direction of the document is RTL, and you want to typeset a piece of C code in LTR mode but you also have the requirement that the caption of that particular code should be RTL. Since the direction of the code is LTR, then the direction of the caption also will be LTR and this is not something you want; sadly there is no easy way to do this. For this very reason, the \textsf{bidi} package adds a key to the \textsf{listings} package, namely \texttt{captiondirection}. This key can have the following values:
+\begin{itemize}
+\item \texttt{textdirection} follows the direction of the text (default).
+\item \texttt{RTL} sets the direction of the caption to RTL.
+\item \texttt{LTR} sets the direction of the caption to LTR.
+\end{itemize}
+ Giving any other values gives you an error.
+
+
+\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. When using \textsf{multicol} package, the following two additional commands are proveded:
+\begin{BDef}
+\Lcs{RTLmulticolcolumns}\quad\Lcs{LTRmulticolcolumns}
+\end{BDef}
+If the main direction of the document is RTL, then you get RTL multi columns and if the main direction of the document is LTR, then you get LTR multi columns. In addition, \Lcs{RTLmulticolcolumns} allows you to have RTL multi columns and \Lcs{LTRmulticolcolumns} allows you to have LTR multi columns.
+
+In addition, you also can use \textsf{vwcol} package for variable width bidirectional column typesetting.
+\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/source/xelatex/bidi/bidi-doc-latex-programming.ltx b/Master/texmf-dist/source/xelatex/bidi/bidi-doc-latex-programming.ltx
new file mode 100644
index 00000000000..28b837d8aff
--- /dev/null
+++ b/Master/texmf-dist/source/xelatex/bidi/bidi-doc-latex-programming.ltx
@@ -0,0 +1,72 @@
+\documentclass{ltxdoc}
+\input{bidi-doc-preamble.ltx}
+\begin{document}
+\section{Some Useful Internal Macros and Programming Tips}
+There are some useful internal macros and programming tips that might be helpful for you. This section, explains all these useful internals and programming tips.
+\subsection{Equating Conditionals}
+\begin{BDef}
+\Lcs{eqnewif}\Largb{\Larga{\Lcs{newconditional1}}}\Largb{\Larga{\Lcs{newconditional2}}}
+\end{BDef}
+In standard \LaTeX, \Lcs{newif} command is provided that you can define a new conditional with it. \Lcs{eqnewif} command is similar to \Lcs{newif} command but:
+\begin{itemize}
+\item With \Lcs{eqnewif} command, you can define two new conditionals instead one, so clearly it has two mandatory arguments.
+\item \Lcs{newconditional1} will be identical to \Lcs{newconditional2}, so that whenever \Lcs{newconditional1} is true, then \Lcs{newconditional2} is also true and whenever \Lcs{newconditional1} is false, then \Lcs{newconditional2} is also false and vice versa.
+\end{itemize}
+\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@nonlatin}
+\end{BDef}
+The packages should set the value of \Lcs{if@nonlatin} inside any environment that uses LTR script to false (\Lcs{@nonlatinfalse}) and inside any environment that uses RTL script to true (\Lcs{@nonlatintrue}).
+\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}
+\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/source/xelatex/bidi/bidi-doc-plain-basics.ltx b/Master/texmf-dist/source/xelatex/bidi/bidi-doc-plain-basics.ltx
new file mode 100644
index 00000000000..b14374307a2
--- /dev/null
+++ b/Master/texmf-dist/source/xelatex/bidi/bidi-doc-plain-basics.ltx
@@ -0,0 +1,134 @@
+\documentclass{ltxdoc}
+\input{bidi-doc-preamble.ltx}
+\begin{document}
+\section{Basics}
+\subsection{Loading The Package}
+You can load the package in the ordinary way;
+\begin{BDef}
+\Lcs{input} \Larg{bidi}
+\end{BDef}
+
+When loading the package, it is important to know that:
+\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.
+\subsection{Commands for Version number, and Date of The Package}
+\begin{BDef}
+\Lcs{bidiversion}\quad\Lcs{bididate}
+\end{BDef}
+\begin{itemize}
+\item \Lcs{bidiversion} gives the current version of the package.
+\item \Lcs{bididate} gives the current date of the package.
+\end{itemize}
+\begin{lstlisting}
+\input bidi
+This is typeset by \textsf{bidi} package, \bidiversion, \bididate.
+\end
+\end{lstlisting}
+\subsection{Turning TeX-{-}XeT features on and off}
+The bidirectional typesetting in \XeTeX{} is based on TeX-{-}XeT algorithm and \textsf{bidi} package automatically turns the feature on for typesetting bidirectional texts. As the internal data structures built by TeX-{-}XeT differ from those built by \TeX, the typesetting of a document by TeX-{-}XeT may therefore differ from that performed by \TeX. So you may notice that some packages behave differently when TeX-{-}XeT feature is on and you may want to turn the feature off for a part of the text so that you get the default behaviour of original \TeX. Two commands are provided for this purpose:
+\begin{BDef}
+\Lcs{TeXXeTOn}\quad\Lcs{TeXXeTOff}
+\end{BDef}
+\begin{itemize}
+\item \Lcs{TeXXeTOn} turns TeX-{-}XeT feature on, which is active by default when \textsf{bidi} package is loaded.
+\item \Lcs{TeXXeTOff} turns TeX-{-}XeT feature off.
+\end{itemize}
+\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}]
+\input bidi
+\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
+\end{lstlisting}
+\subsection{Pargraph Switching Environments}
+\begin{BDef}
+\Lcs{LTR}\quad\Larga{text}\quad\Lcs{endLTR}\\
+\Lcs{RTL}\quad\Larga{text}\quad\Lcs{endRTL}
+\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}[morekeywords={RTL,endRTL,LTR,endLTR}]
+\input bidi
+\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.
+\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.
+\endLTR
+And we are still typesetting right to left.
+\endRTL
+\end
+\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}[morekeywords={RTL,endRTL,LTR,endLTR}]
+\input bidi
+\RTL
+Anyone who reads Old and Middle English \LRE{Short left to right 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.
+\LTR
+Anyone who reads Old and Middle English \RLE{Short right to left 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.
+\endLTR
+\endRTL
+\end
+\end{lstlisting}
+\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}
+\input bidi
+\setRTL
+\hbox{This is a Test}
+\end
+\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}
+\input bidi
+\setRTL
+\leavevmode\hbox{This is a Test}
+\end
+\end{lstlisting}
+\subsection{Typesetting Logos}
+\begin{BDef}
+\Lcs{XeTeX}
+\end{BDef}
+\textsf{bidi} defines \XeTeX\ logo and in addition, it makes sure that the logo, \TeX\ is typeset LTR.
+\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/source/xelatex/bidi/bidi-doc-plain-programming.ltx b/Master/texmf-dist/source/xelatex/bidi/bidi-doc-plain-programming.ltx
new file mode 100644
index 00000000000..607417a0ecf
--- /dev/null
+++ b/Master/texmf-dist/source/xelatex/bidi/bidi-doc-plain-programming.ltx
@@ -0,0 +1,35 @@
+\documentclass{ltxdoc}
+\input{bidi-doc-preamble.ltx}
+\begin{document}
+\section{Some Useful Internal Macros and Programming Tips}
+There are some useful internal macros and programming tips that might be helpful for you. This section, explains all these useful internals and programming tips.
+\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{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}
+\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/source/xelatex/bidi/bidi-doc-preamble.ltx b/Master/texmf-dist/source/xelatex/bidi/bidi-doc-preamble.ltx
new file mode 100644
index 00000000000..1e16d8f6361
--- /dev/null
+++ b/Master/texmf-dist/source/xelatex/bidi/bidi-doc-preamble.ltx
@@ -0,0 +1,95 @@
+\usepackage{docmute}
+\usepackage{fontspec}
+\setmainfont[Ligatures=TeX,Numbers=OldStyle]{Minion Pro}
+\setsansfont[Ligatures=TeX,Numbers=OldStyle]{Myriad Pro}
+\usepackage{calc}
+\usepackage{pifont}
+\usepackage{bbding}
+\usepackage{bidicode}
+\usepackage{microtype}
+\definecolor{bidiblue}{rgb}{0.1,0.2,0.8}
+\usepackage[numbered]{hypdoc}
+\hypersetup{%
+ pdfauthor={Vafa Khalighi <persian-tex@tug.org>},%
+ linkcolor=bidiblue,%
+ urlcolor=bidiblue,%
+ citecolor=bidiblue%
+}
+\setlength\columnseprule{.4pt}
+\newcommand\XeTeX{Xe\TeX}
+\newcommand\XeLaTeX{Xe\LaTeX}
+\makeatletter
+\pdfstringdefDisableCommands{%
+\renewcommand\Lcs[1]{\textbackslash#1}
+}
+\renewcommand\tableofcontents{\relax
+ \begin{multicols}{2}[\section*{\contentsname}]\small
+ \@starttoc{toc}\relax
+ \end{multicols}}
+\newbox\bidilogobox
+\sbox{\bidilogobox}{\includegraphics[height=0.5in,keepaspectratio=true]{bidi-logo}}
+\def\ps@docheadings{%
+ \let\@oddhead\@empty
+ \def\@oddfoot{\parbox{\textwidth}{\hfill\leftmark\quad\thepage\qquad\raisebox{-0.2in}{\usebox\bidilogobox}}}%
+ \let\@mkboth\markboth
+ \def\sectionmark##1{%
+ \markboth {%
+ ##1}{}}}
+\def\@part[#1]#2{%
+ \ifnum \c@secnumdepth >\m@ne
+ \refstepcounter{part}%
+ \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
+ \else
+ \addcontentsline{toc}{part}{#1}%
+ \fi
+ {\parindent \z@ \raggedright
+ \interlinepenalty \@M
+ \normalfont
+ \ifnum \c@secnumdepth >\m@ne
+ \Large\bfseries\color{blue!65!black} \partname\nobreakspace\thepart
+ \par\nobreak
+ \fi
+ \huge \bfseries #2%
+ \markboth{}{}\par}%
+ \nobreak
+ \vskip 3ex
+ \@afterheading}
+\def\@spart#1{%
+ {\parindent \z@ \raggedright
+ \interlinepenalty \@M
+ \normalfont
+ \huge \bfseries\color{blue!65!black} #1\par}%
+ \nobreak
+ \vskip 3ex
+ \@afterheading}
+\renewcommand\section{\@startsection {section}{1}{\z@}%
+ {-3.5ex \@plus -1ex \@minus -.2ex}%
+ {2.3ex \@plus.2ex}%
+ {\normalfont\Large\bfseries\color{blue!65!black}}}
+\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
+ {-3.25ex\@plus -1ex \@minus -.2ex}%
+ {1.5ex \@plus .2ex}%
+ {\normalfont\large\bfseries\color{blue!65!black}}}
+\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
+ {-3.25ex\@plus -1ex \@minus -.2ex}%
+ {1.5ex \@plus .2ex}%
+ {\normalfont\normalsize\bfseries\color{blue!65!black}}}
+\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
+ {3.25ex \@plus1ex \@minus.2ex}%
+ {-1em}%
+ {\normalfont\normalsize\bfseries\color{blue!65!black}}}
+\renewcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
+ {3.25ex \@plus1ex \@minus .2ex}%
+ {-1em}%
+ {\normalfont\normalsize\bfseries\color{blue!65!black}}}
+\makeatother
+\pagestyle{docheadings}
+\newcounter{local}
+\renewcommand\theenumi{\protect\setcounter{local}%
+ {201+\the\value{enumi}}\protect\ding{\value{local}}}
+\renewcommand\labelenumi{\theenumi}
+\renewcommand\labelitemi{\HandRight}
+\renewcommand\labelitemii{\HandRightUp}
+\renewcommand\labelitemiii{\HandCuffRight}
+\renewcommand\labelitemiv{\HandPencilLeft}
+\renewcommand\partname{Part} \ No newline at end of file
diff --git a/Master/texmf-dist/source/xelatex/bidi/bidi-doc-title.ltx b/Master/texmf-dist/source/xelatex/bidi/bidi-doc-title.ltx
new file mode 100644
index 00000000000..627fa15bb49
--- /dev/null
+++ b/Master/texmf-dist/source/xelatex/bidi/bidi-doc-title.ltx
@@ -0,0 +1,47 @@
+\documentclass{ltxdoc}
+\input{bidi-doc-preamble.ltx}
+\begin{document}
+\title{\textcolor{blue!65!black}{\Huge The \textsf{bidi} \textit{Package}}\\
+\LARGE Bidirectional typesetting in plain \TeX{} and \LaTeX, using \XeTeX{} engine\\[5pt]
+\large User documentation for \textcolor{blue!65!black}{version 32.2}}
+ \author{Vafa Khalighi\\
+ \url{persian-tex@tug.org}}
+\setcounter{page}{0}
+\thispagestyle{empty}
+\includegraphics[width=.3\textwidth]{bidi-logo}\qquad
+\parindent 0pt
+\vbox{\Huge
+\textcolor{blue!65!black}{\Huge The \textsf{bidi} \textit{Package}}
+
+\Large
+User documentation for \textcolor{blue!65!black}{version 32.2}}
+
+\vskip 0pt plus 3fill
+\textit{\large to my Master, \textbf{Ferdowsi The Great}}
+
+\vskip 0pt plus 3fill
+{\color{red!85!black}\fbox{\begin{minipage}{\dimexpr\textwidth-2\fboxsep-2\fboxrule}
+If you want to report any bugs or typos and corrections in the documentation,
+or ask for any new features, or suggest any improvements, or ask any questions
+about the package, then please do not send any direct email to me; I will not
+answer any direct email. Instead please use the issue tracker:
+
+\medskip
+ \centerline{\url{https://github.com/tex-xet/bidi/issues}}
+
+\medskip
+In doing so, please always explain your issue well enough, always include
+a minimal working example showing the issue, and always choose the appropriate
+label for your query (i.e. if you are reporting any bugs, choose `Bug' label).
+\end{minipage}
+}}
+
+\vskip 0pt plus 3fill
+
+Copyright (c) 2007--2018 Vafa Khalighi
+
+\medskip
+Permission is granted to distribute and/or modify \emph{both the documentation and the code} under the conditions of the \LaTeX{} Project Public License, either version 1.3c of this license or (at your option) any later version.
+
+\clearpage
+\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/source/xelatex/bidi/bidi-doc.ltx b/Master/texmf-dist/source/xelatex/bidi/bidi-doc.ltx
new file mode 100644
index 00000000000..21ccd1563de
--- /dev/null
+++ b/Master/texmf-dist/source/xelatex/bidi/bidi-doc.ltx
@@ -0,0 +1,20 @@
+\documentclass{ltxdoc}
+\input{bidi-doc-preamble.ltx}
+\hypersetup{%
+ pdftitle={User documentation for version 32.2 of the bidi
+ package}%
+}
+\begin{document}
+\input{bidi-doc-title.ltx}
+\maketitle
+\tableofcontents
+\input{bidi-doc-intro.ltx}
+\part{\LaTeX{} Manual}
+\input{bidi-doc-latex-basics.ltx}
+\input{bidi-doc-latex-pkgsupport.ltx}
+\input{bidi-doc-latex-pkgs.ltx}
+\input{bidi-doc-latex-programming.ltx}
+\part{Plain \TeX{} Manual}
+\input{bidi-doc-plain-basics.ltx}
+\input{bidi-doc-plain-programming.ltx}
+\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/source/xelatex/bidi/bidi.dtx b/Master/texmf-dist/source/xelatex/bidi/bidi.dtx
index 90693316408..0e9cf1503fe 100644
--- a/Master/texmf-dist/source/xelatex/bidi/bidi.dtx
+++ b/Master/texmf-dist/source/xelatex/bidi/bidi.dtx
@@ -5,7 +5,7 @@
%<*readme>
___________________
The bidi package
-v32.1
+v32.2
This package provides a convenient interface for typesetting
bidirectional texts in Plain TeX and LaTeX, using XeTeX engine.
@@ -25,7 +25,7 @@ a minimal working example showing the issue, and always choose the appropriate
label for your query (i.e. if you are reporting any bugs, choose `Bug' label).
-Current version release date: 2018/01/08
+Current version release date: 2018/01/17
___________________
Vafa Khalighi
@@ -219,102 +219,18 @@ by Vafa Khalighi.
%
%<*driver>
\documentclass{ltxdoc}
-\usepackage{fontspec}
-\setmainfont[Ligatures=TeX,Numbers=OldStyle]{Iwona}
-\usepackage{calc}
-\usepackage{pifont}
-\usepackage{bbding}
-\usepackage{bidicode}
-\usepackage{microtype}
-\definecolor{bidiblue}{rgb}{0.1,0.2,0.8}
-\usepackage[numbered]{hypdoc}
-\hypersetup{pdftitle={The \textsf{bidi} Package (Bidirectional typesetting in plain \TeX{} and \LaTeX, using Xe\TeX{} engine)},pdfauthor={Vafa Khalighi <persian-tex@tug.org>},linkcolor=bidiblue,urlcolor=bidiblue,citecolor=bidiblue}
-\setlength\columnseprule{.4pt}
-\newcommand\XeTeX{Xe\TeX}
-\newcommand\XeLaTeX{Xe\LaTeX}
-\makeatletter
-\pdfstringdefDisableCommands{%
-\renewcommand\Lcs[1]{\textbackslash#1}
-}
-\renewcommand\tableofcontents{\relax
- \begin{multicols}{2}[\section*{\contentsname}]\small
- \@starttoc{toc}\relax
- \end{multicols}}
-\newbox\bidilogobox
-\sbox{\bidilogobox}{\includegraphics[height=0.5in,keepaspectratio=true]{bidi-logo}}
-\def\ps@docheadings{%
- \let\@oddhead\@empty
- \def\@oddfoot{\parbox{\textwidth}{\hfill\leftmark\quad\thepage\qquad\raisebox{-0.2in}{\usebox\bidilogobox}}}%
- \let\@mkboth\markboth
- \def\sectionmark##1{%
- \markboth {%
- ##1}{}}}
-\def\@part[#1]#2{%
- \ifnum \c@secnumdepth >\m@ne
- \refstepcounter{part}%
- \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
- \else
- \addcontentsline{toc}{part}{#1}%
- \fi
- {\parindent \z@ \raggedright
- \interlinepenalty \@M
- \normalfont
- \ifnum \c@secnumdepth >\m@ne
- \Large\bfseries\color{blue!65!black} \partname\nobreakspace\thepart
- \par\nobreak
- \fi
- \huge \bfseries #2%
- \markboth{}{}\par}%
- \nobreak
- \vskip 3ex
- \@afterheading}
-\def\@spart#1{%
- {\parindent \z@ \raggedright
- \interlinepenalty \@M
- \normalfont
- \huge \bfseries\color{blue!65!black} #1\par}%
- \nobreak
- \vskip 3ex
- \@afterheading}
-\renewcommand\section{\@startsection {section}{1}{\z@}%
- {-3.5ex \@plus -1ex \@minus -.2ex}%
- {2.3ex \@plus.2ex}%
- {\normalfont\Large\bfseries\color{blue!65!black}}}
-\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
- {-3.25ex\@plus -1ex \@minus -.2ex}%
- {1.5ex \@plus .2ex}%
- {\normalfont\large\bfseries\color{blue!65!black}}}
-\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
- {-3.25ex\@plus -1ex \@minus -.2ex}%
- {1.5ex \@plus .2ex}%
- {\normalfont\normalsize\bfseries\color{blue!65!black}}}
-\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
- {3.25ex \@plus1ex \@minus.2ex}%
- {-1em}%
- {\normalfont\normalsize\bfseries\color{blue!65!black}}}
-\renewcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
- {3.25ex \@plus1ex \@minus .2ex}%
- {-1em}%
- {\normalfont\normalsize\bfseries\color{blue!65!black}}}
-\makeatother
-\pagestyle{docheadings}
-\newcounter{local}
-\renewcommand\theenumi{\protect\setcounter{local}%
- {201+\the\value{enumi}}\protect\ding{\value{local}}}
-\renewcommand\labelenumi{\theenumi}
-\renewcommand\labelitemi{\HandRight}
-\renewcommand\labelitemii{\HandRightUp}
-\renewcommand\labelitemiii{\HandCuffRight}
-\renewcommand\labelitemiv{\HandPencilLeft}
-\renewcommand\partname{Part}
+\input{bidi-doc-preamble.ltx}
+\hypersetup{%
+ pdftitle={Source documentation for version 32.2 of the bidi
+ package}%
+}
\EnableCrossrefs
\CodelineIndex
-\RecordChanges
-%\OnlyDescription
+%\RecordChanges
\begin{document}
\DocInput{\jobname.dtx}
\PrintIndex
- \PrintChanges
+% \PrintChanges
\end{document}
%</driver>
%
@@ -322,10 +238,9 @@ by Vafa Khalighi.
% \fi
%
% \GetFileInfo{\jobname.dtx}
-%\changes{v13.9}{2013/09/23}{Added implementaion of the package.}
% \title{\textcolor{blue!65!black}{\Huge The \textsf{bidi} \textit{Package}}\\
%\LARGE Bidirectional typesetting in plain \TeX{} and \LaTeX, using \XeTeX{} engine\\[5pt]
-%\large Documentation for \textcolor{blue!65!black}{version 32.1}}
+%\large Source documentation for \textcolor{blue!65!black}{version 32.2}}
% \author{Vafa Khalighi\\
% \url{persian-tex@tug.org}}
%\setcounter{page}{0}
@@ -336,7 +251,7 @@ by Vafa Khalighi.
%\textcolor{blue!65!black}{\Huge The \textsf{bidi} \textit{Package}}
%
%\Large
-%Documentation for \textcolor{blue!65!black}{version 32.1}}
+%Source documentation for \textcolor{blue!65!black}{version 32.2}}
%
%\vskip 0pt plus 3fill
%\textit{\large to my Master, \textbf{Ferdowsi The Great}}
@@ -369,780 +284,12 @@ by Vafa Khalighi.
%\maketitle
% \tableofcontents
%\clearpage
-%\section*{Introduction}
-%\textsf{bidi} provides a convenient interface for typesetting bidirectional texts in plain \TeX\ and \LaTeX, using the \XeTeX{} engine.
-%
-%\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{verbatim}
-%****************************************************
-%*
-%* bidi package (Bidirectional typesetting in
-%* plain TeX and LaTeX, using XeTeX engine)
-%*
-%* 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--2018 Vafa Khalighi
-%*
-%* 2018/01/08, v32.1
-%*
-%* License: LaTeX Project Public License, version
-%* 1.3c or higher (your choice)
-%*
-%* Location on CTAN: /macros/xetex/latex/bidi
-%*
-%* Issue tracker: https://github.com/tex-xet/bidi/issues
-%*
-%* Support: persian-tex@tug.org
-%*
-%****************************************************
-%\end{verbatim}
-%\part{\LaTeX\ Manual}
-%\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},numbers=none,frame=none,framexleftmargin=1mm]
-%! 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{\textsf{bidi}'s Symbol}
-% As you may know lion symbolizes \TeX{} but lion does not symbolizes \textsf{bidi}. \textbf{Simorgh}\footnote{\textbf{Simorgh} is an Iranian benevolent, mythical flying creature which has been shown on the titlepage of this documentation. For more details see \url{http://en.wikipedia.org/wiki/Simurgh}} (shown on the first page of this documentation) symbolizes \textsf{bidi}.
-%\subsection{Commands for Version number, and Date of The Package}
-%\begin{BDef}
-%\Lcs{bidiversion}\quad\Lcs{bididate}
-%\end{BDef}
-%\begin{itemize}
-%\item \Lcs{bidiversion} gives the current version 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, \bididate.
-%\end{document}
-%\end{lstlisting}
-%\subsection{Turning TeX-{-}XeT features on and off}
-%The bidirectional typesetting in \XeTeX{} is based on TeX-{-}XeT algorithm and \textsf{bidi} package automatically turns the feature on for typesetting bidirectional texts. As the internal data structures built by TeX-{-}XeT differ from those built by \TeX, the typesetting of a document by TeX-{-}XeT may therefore differ from that performed by \TeX. So you may notice that some packages behave differently when TeX-{-}XeT feature is on and you may want to turn the feature off for a part of the text so that you get the default behaviour of original \TeX. Two commands are provided for this purpose:
-%\begin{BDef}
-%\Lcs{TeXXeTOn}\quad\Lcs{TeXXeTOff}
-%\end{BDef}
-%\begin{itemize}
-%\item \Lcs{TeXXeTOn} turns TeX-{-}XeT feature on, which is active by default when \textsf{bidi} package is loaded.
-%\item \Lcs{TeXXeTOff} turns TeX-{-}XeT feature off.
-%\end{itemize}
-%\subsection{Options of The Package\label{options}}
-%There are three 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.
-%
-%There is also \texttt{extrafootnotefeatures} option that allows footnotes to be typeset in different formats:
-%\begin{BDef}
-%\Lcs{normalfootnotes}\\
-%\Lcs{twocolumnfootnotes}\quad\Lcs{threecolumnfootnotes}\quad\Lcs{fourcolumnfootnotes}\\
-%\Lcs{fivecolumnfootnotes}\quad\Lcs{sixcolumnfootnotes}\quad\Lcs{sevencolumnfootnotes}\\
-%\Lcs{eightcolumnfootnotes}\quad\Lcs{ninecolumnfootnotes}\quad\Lcs{tencolumnfootnotes}\\
-%\Lcs{RTLcolumnfootnotes}\quad\Lcs{LTRcolumnfootnotes}\\
-%\Lcs{paragraphfootnotes}\\
-%\Lcs{setLTRparagraphfootnotes}\quad\Lcs{setRTLparagraphfootnotes}
-%\end{BDef}
-%\begin{itemize}
-%\item \Lcs{normalfootnotes} typesets footnotes in Standard \LaTeX{} format.
-%\item \Lcs{twocolumnfootnotes} to \Lcs{tencolumnfootnotes}, typeset footnotes in two-columns to ten-columns, respectively.
-%\item \Lcs{RTLcolumnfootnotes} typesets footnotes columns RTL (first column on the RHS and each next column to the left of the previous column) and \Lcs{LTRcolumnfootnotes} typesets footnotes columns LTR (first column on the LHS and each next column to the right of the previous column). \Lcs{LTRcolumnfootnotes} is active by default.
-%\item \Lcs{paragraphfootnotes} typesets footnotes in paragraph format.
-%\item \Lcs{setLTRparagraphfootnotes} makes footnotes run from left to right. This comand is active by default.
-%\item \Lcs{setRTLparagraphfootnotes} makes footnotes run from right to left.
-%\end{itemize}
-% Please note that when using \texttt{extrafootnotefeatures} option, the footnote rule will be as wide as the text width and \Lcs{autofootnoterule}, \Lcs{rightfootnoterule}, \Lcs{leftfootnoterule}, and \Lcs{textwidthfootnoterule} commands have no effects.
-%
-%
-%
-% Please also note that if you redefine \Lcs{baselinestretch} command or change the value of \Lcs{baselineskip} primitive before \Lcs{paragraphfootnotes} command, then you may get Arithmetic Overflow error. You should change these after using \Lcs{paragraphfootnotes} command.
-%\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{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}\quad\Lcs{SplitFootnoteRule}\\
-%\Lcs{debugfootnotedirection}
-%\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}.
-%\item \Lcs{SplitFootnoteRule} puts a full-width rule above the split-off part of a split footnote.
-%\item \Lcs{debugfootnotedirection} writes the direction of the first footnote on each page, in the log file.
-%\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.
-%
-%Also please note that in \texttt{twocolumn} documents, the width of the \Lcs{footnoterule} will be equal to \Lcs{columnwidth} no matter which footnote-rule commands you use; indeed, in \texttt{twocolumn} documents only \Lcs{textwidthfootnoterule} is active and other footnote-rule commands will not be effective.
-%\subsection{RTL cases}
-%\marginpar{\Lcs{RTLcases} command was previously known as \Lcs{rcases} command but since there was a clash with \textsf{mathtools} package (mathtools defines \textsf{rcases} environment), we had to rename \Lcs{rcases} command to \Lcs{RTLcases} command.}
-%\begin{BDef}
-%\Lcs{RTLcases}\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{RTLcases} 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={RTLcases,text}]
-%\documentclass{article}
-%\usepackage{amsmath}
-%\usepackage{bidi}
-%\begin{document}
-%\setRTL
-%\[\RTLcases{\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}\\
-%\quad\Lcs{item} \Larga{text}\\
-%\quad\ldots\\
-%\LEND{RTLitems}
-%\end{BDef}
-% 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}\\
-%\quad\Lcs{item} \Larga{text}\\
-%\quad\ldots\\
-%\LEND{LTRitems}
-%\end{BDef}
-%\subsection{\textsf{LTRbibitems} and \textsf{RTLbibitems} Environments}
-%The syntax of \textsf{LTRbibitems} and \textsf{RTLbibitems} environments is exactly like the syntax of \textsf{LTRitems} and \textsf{RTLitems} environments but there are few differences:
-%\begin{itemize}
-%\item \textsf{LTRitems} and \textsf{RTLitems} environments should only be used for \textsf{list}-like environments (such as \textsf{itemize}, \textsf{enumerate} and \textsf{description} environments) but \textsf{LTRbibitems} and \textsf{RTLbibitems} environments should only be used for \textsf{thebibliography} environment.
-%\item Clearly instead of \Lcs{item}, you have \Lcs{bibitem} inside \textsf{LTRbibitems} and \textsf{RTLbibitems} environments.
-%\end{itemize}
-%\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{RTLbibitems}
-%\bibitem This is the second bibitem which is RTL.
-%\end{RTLbibitems}
-%\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 following commands are provided:
-%\begin{BDef}
-%\Lcs{setRTLmarginpar}\quad\Lcs{setLTRmarginpar}\quad\Lcs{setdefaultmarginpar}\\
-%\Lcs{LTRmarginpar}\Largs{\Larga{left-text}}\Largb{\Larga{right-text}}\\
-%\Lcs{RTLmarginpar}\Largs{\Larga{left-text}}\Largb{\Larga{right-text}}
-%\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.
-%\item \Lcs{LTRmarginpar} typesets \Larga{left-text} and \Larga{right-text} always LTR.
-%\item \Lcs{RTLmarginpar} typesets \Larga{left-text} and \Larga{right-text} always RTL.
-%\item in RTL mode, places of \Larga{left-text} and \Larga{right-text} swaps.
-%\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{amstext}, \textsf{amsthm}, \textsf{array}, \textsf{arydshln}, \textsf{breqn}, \textsf{cals}, \textsf{caption}, \textsf{color}, \textsf{colortbl}, \textsf{crop}, \textsf{cuted}, \textsf{cutwin}, \textsf{dblfnote} \textsf{draftwatermark}, \textsf{empheq}, \textsf{fancyhdr}, \textsf{fancybox}, \textsf{fix2col}, \textsf{float}, \textsf{floatrow}, \textsf{flowfram}, \textsf{framed}, \textsf{ftnright}, \textsf{geometry}, \textsf{graphicx}, \textsf{hvfloat}, \textsf{hyperref}, \textsf{lettrine}, \textsf{listings}, \textsf{mdframed}, \textsf{midfloat}, \textsf{minitoc}, \textsf{multicol}, \textsf{multienum}, \textsf{newfloat}, \textsf{pdfpages}, \textsf{pstricks}, \textsf{quotchap}, \textsf{picinpar}, \textsf{ragged2e}, \textsf{rotating}, \textsf{sidecap}, \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{flashcards}, \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{scrartcl}, \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{xecolor} 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{The \textsf{dblfnote} package}
-%The \textsf{dblfnote} package makes footnotes double-columned. In addition \textsf{bidi} package adds bidirectional support for the \textsf{dblfnote} package by providing the following commands:
-%\begin{BDef}
-%\Lcs{RTLdfnmakecol}\qquad\Lcs{LTRdfnmakecol}
-%\end{BDef}
-%\begin{itemize}
-%\item \Lcs{RTLdfnmakecol} makes footnotes double-columned RTL.
-%\item \Lcs{LTRdfnmakecol} makes footnotes double-columned LTR.
-%\item If the main direction of the document is RTL, \Lcs{RTLdfnmakecol} is active and if the main direction of the document is LTR, \Lcs{LTRdfnmakecol} is active.
-%\end{itemize}
-% Please note that when using \textsf{dblfnote} package, the footnote rule will be as wide as the footnote column and \Lcs{autofootnoterule}, \Lcs{rightfootnoterule}, \Lcs{leftfootnoterule}, and \Lcs{textwidthfootnoterule} commonds have no effects.
-%\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{The \textsf{listings} package}
-% Suppose that the main direction of the document is RTL, and you want to typeset a piece of C code in LTR mode but you also have the requirement that the caption of that particular code should be RTL. Since the direction of the code is LTR, then the direction of the caption also will be LTR and this is not something you want; sadly there is no easy way to do this. For this very reason, the \textsf{bidi} package adds a key to the \textsf{listings} package, namely \texttt{captiondirection}. This key can have the following values:
-%\begin{itemize}
-%\item \texttt{textdirection} follows the direction of the text (default).
-%\item \texttt{RTL} sets the direction of the caption to RTL.
-%\item \texttt{LTR} sets the direction of the caption to LTR.
-%\end{itemize}
-% Giving any other values gives you an error.
-%
-%
-%\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. When using \textsf{multicol} package, the following two additional commands are proveded:
-%\begin{BDef}
-%\Lcs{RTLmulticolcolumns}\quad\Lcs{LTRmulticolcolumns}
-%\end{BDef}
-%If the main direction of the document is RTL, then you get RTL multi columns and if the main direction of the document is LTR, then you get LTR multi columns. In addition, \Lcs{RTLmulticolcolumns} allows you to have RTL multi columns and \Lcs{LTRmulticolcolumns} allows you to have LTR 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{\textsf{biditufte} bundle}
-%A modified version of \textsf{tufte-latex}, \textsf{biditufte} bundle, mainly for RTL typesetting, is provided. If you never used \textsf{biditufte} bundle or \textsf{tufte-latex} package and you want to use \textsf{biditufte} bundle, then you need to look at \textsf{tufte-latex} package's manual and examples. In addition, for using \textsf{biditufte} bundle, you need to know the following notes:
-%\begin{itemize}
-%\item You need to use \textsf{biditufte-book} class instead \textsf{tufte-book} class and \textsf{biditufte-handout} class instead \textsf{tufte-handout} class.
-%\item \textsf{biditufte} bundle provides the following extra commands:
-%\begin{BDef}
-%\Lcs{LTRsidenote}\quad\Lcs{RTLsidenote}\quad\Lcs{LTRmarginnote}\quad\Lcs{RTLmarginnote}
-%\end{BDef}
-%\item \textsf{biditufte} bundle unlike \textsf{tufts-latex} package, only provides justified lines.
-%\item Some features of \textsf{tufte-latex} that does not make any sense in RTL, do not exist in \textsf{biditufte} bundle (no need for \textsf{soul}, \textsf{letterspace} and \textsf{macrotype} packages).
-%\item If you want to configure \textsf{biditufte-book} class for your own needs, then you can create a file with the name \texttt{biditufte-book.cfg} and put your \LaTeX{} macros in that file; similarly, if you want to configure \textsf{biditufte-handout} class for your own needs, then you can create a file with the name \texttt{biditufte-handout.cfg} and put your \LaTeX{} macros in that file.
-%\end{itemize}
-%\subsection{Typesetting \TeX{} and \LaTeX{} Codes}
-%The \LaTeX{} codes in this manual are typeset using the \textsf{bidicode} package.
-%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.
-%
-%
-%
-%\section{Some Useful Internal Macros and Programming Tips}
-%There are some useful internal macros and programming tips that might be helpful for you. This section, explains all these useful internals and programming tips.
-%\subsection{Equating Conditionals}
-%\begin{BDef}
-%\Lcs{eqnewif}\Largb{\Larga{\Lcs{newconditional1}}}\Largb{\Larga{\Lcs{newconditional2}}}
-%\end{BDef}
-%In standard \LaTeX, \Lcs{newif} command is provided that you can define a new conditional with it. \Lcs{eqnewif} command is similar to \Lcs{newif} command but:
-%\begin{itemize}
-%\item With \Lcs{eqnewif} command, you can define two new conditionals instead one, so clearly it has two mandatory arguments.
-%\item \Lcs{newconditional1} will be identical to \Lcs{newconditional2}, so that whenever \Lcs{newconditional1} is true, then \Lcs{newconditional2} is also true and whenever \Lcs{newconditional1} is false, then \Lcs{newconditional2} is also false and vice versa.
-%\end{itemize}
-%\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@nonlatin}
-%\end{BDef}
-%The packages should set the value of \Lcs{if@nonlatin} inside any environment that uses LTR script to false (\Lcs{@nonlatinfalse}) and inside any environment that uses RTL script to true (\Lcs{@nonlatintrue}).
-%\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{Plain \TeX\ Manual}
-%\section{Basics}
-%\subsection{Loading The Package}
-%You can load the package in the ordinary way;
-%\begin{BDef}
-%\Lcs{input} \Larg{bidi}
-%\end{BDef}
-%
-%When loading the package, it is important to know that:
-%\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.
-%\subsection{Commands for Version number, and Date of The Package}
-%\begin{BDef}
-%\Lcs{bidiversion}\quad\Lcs{bididate}
-%\end{BDef}
-%\begin{itemize}
-%\item \Lcs{bidiversion} gives the current version of the package.
-%\item \Lcs{bididate} gives the current date of the package.
-%\end{itemize}
-%\begin{lstlisting}
-%\input bidi
-%This is typeset by \textsf{bidi} package, \bidiversion, \bididate.
-%\end
-%\end{lstlisting}
-%\subsection{Turning TeX-{-}XeT features on and off}
-%The bidirectional typesetting in \XeTeX{} is based on TeX-{-}XeT algorithm and \textsf{bidi} package automatically turns the feature on for typesetting bidirectional texts. As the internal data structures built by TeX-{-}XeT differ from those built by \TeX, the typesetting of a document by TeX-{-}XeT may therefore differ from that performed by \TeX. So you may notice that some packages behave differently when TeX-{-}XeT feature is on and you may want to turn the feature off for a part of the text so that you get the default behaviour of original \TeX. Two commands are provided for this purpose:
-%\begin{BDef}
-%\Lcs{TeXXeTOn}\quad\Lcs{TeXXeTOff}
-%\end{BDef}
-%\begin{itemize}
-%\item \Lcs{TeXXeTOn} turns TeX-{-}XeT feature on, which is active by default when \textsf{bidi} package is loaded.
-%\item \Lcs{TeXXeTOff} turns TeX-{-}XeT feature off.
-%\end{itemize}
-%\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}]
-%\input bidi
-%\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
-%\end{lstlisting}
-%\subsection{Pargraph Switching Environments}
-%\begin{BDef}
-%\Lcs{LTR}\quad\Larga{text}\quad\Lcs{endLTR}\\
-%\Lcs{RTL}\quad\Larga{text}\quad\Lcs{endRTL}
-%\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}[morekeywords={RTL,endRTL,LTR,endLTR}]
-%\input bidi
-%\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.
-%\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.
-%\endLTR
-%And we are still typesetting right to left.
-%\endRTL
-%\end
-%\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}[morekeywords={RTL,endRTL,LTR,endLTR}]
-%\input bidi
-%\RTL
-%Anyone who reads Old and Middle English \LRE{Short left to right 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.
-%\LTR
-%Anyone who reads Old and Middle English \RLE{Short right to left 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.
-%\endLTR
-%\endRTL
-%\end
-%\end{lstlisting}
-%\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}
-%\input bidi
-%\setRTL
-%\hbox{This is a Test}
-%\end
-%\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}
-%\input bidi
-%\setRTL
-%\leavevmode\hbox{This is a Test}
-%\end
-%\end{lstlisting}
-%\subsection{Typesetting Logos}
-%\begin{BDef}
-%\Lcs{XeTeX}
-%\end{BDef}
-%\textsf{bidi} defines \XeTeX\ logo and in addition, it makes sure that the logo, \TeX\ is typeset LTR.
-%\section{Some Useful Internal Macros and Programming Tips}
-%There are some useful internal macros and programming tips that might be helpful for you. This section, explains all these useful internals and programming tips.
-%\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{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}}
+% \section{File \texttt{amsart-xetex-bidi.def}}
%\iffalse
%<*table>
%\fi
-%% \CheckSum{49372}
+%% \CheckSum{49370}
%% \CharacterTable
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
@@ -1303,7 +450,7 @@ by Vafa Khalighi.
%</amsart-xetex-bidi.def>
%<*adjmulticol-xetex-bidi.def>
%\fi
-% \subsection{\textsf{adjmulticol-xetex-bidi.def}}
+% \section{File \texttt{adjmulticol-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{adjmulticol-xetex-bidi.def}[2015/04/25 v0.1 bidi adaptations for adjmulticol package for XeTeX engine]
\def\adjmulticols#1#2#3{\col@number#1\relax
@@ -1345,7 +492,7 @@ by Vafa Khalighi.
%</adjmulticol-xetex-bidi.def>
%<*algorithm2e-xetex-bidi.def>
%\fi
-% \subsection{\textsf{algorithm2e-xetex-bidi.def}}
+% \section{File \texttt{algorithm2e-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{algorithm2e-xetex-bidi.def}[2015/02/01 v0.1 bidi adaptations for algorithm2e package for XeTeX engine]
\expandafter\ifx\csname algocf@within\endcsname\relax% if \algocf@within doesn't exist
@@ -1394,7 +541,7 @@ by Vafa Khalighi.
%</algorithm2e-xetex-bidi.def>
%<*amsbook-xetex-bidi.def>
%\fi
-% \subsection{\textsf{amsbook-xetex-bidi.def}}
+% \section{File \texttt{amsbook-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{amsbook-xetex-bidi.def}[2017/08/09 v1.2 bidi adaptations for amsbook class for XeTeX engine]
\def\@tocline#1#2#3#4#5#6#7{\relax
@@ -1531,7 +678,7 @@ by Vafa Khalighi.
%</amsbook-xetex-bidi.def>
%<*amsmath-xetex-bidi.def>
%\fi
-% \subsection{\textsf{amsmath-xetex-bidi.def}}
+% \section{File \texttt{amsmath-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{amsmath-xetex-bidi.def}[2018/01/08 v1.1 bidi adaptations for amsmath package for XeTeX engine]
\let\veqno=\eqno
@@ -1549,7 +696,7 @@ by Vafa Khalighi.
%</amsmath-xetex-bidi.def>
%<*amstext-xetex-bidi.def>
%\fi
-% \subsection{\textsf{amstext-xetex-bidi.def}}
+% \section{File \texttt{amstext-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{amstext-xetex-bidi.def}[2016/09/12 v0.2 bidi adaptations for amstext package for XeTeX engine]
\def\textdef@#1#2#3{\hbox{{%
@@ -1561,7 +708,7 @@ by Vafa Khalighi.
%</amstext-xetex-bidi.def>
%<*amsthm-xetex-bidi.def>
%\fi
-% \subsection{\textsf{amsthm-xetex-bidi.def}}
+% \section{File \texttt{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}
@@ -1570,7 +717,7 @@ by Vafa Khalighi.
%</amsthm-xetex-bidi.def>
%<*array-xetex-bidi.def>
%\fi
-% \subsection{\textsf{array-xetex-bidi.def}}
+% \section{File \texttt{array-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{array-xetex-bidi.def}[2015/11/07 v0.3 bidi adaptations for array package for XeTeX engine]
\def\@testpach{\@chclass
@@ -1636,7 +783,7 @@ by Vafa Khalighi.
%</array-xetex-bidi.def>
%<*article-xetex-bidi.def>
%\fi
-% \subsection{\textsf{article-xetex-bidi.def}}
+% \section{File \texttt{article-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{article-xetex-bidi.def}[2017/06/09 v0.6 bidi adaptations for standard article class for XeTeX engine]
\if@titlepage
@@ -1838,7 +985,7 @@ by Vafa Khalighi.
%</article-xetex-bidi.def>
%<*artikel1-xetex-bidi.def>
%\fi
-% \subsection{\textsf{artikel1-xetex-bidi.def}}
+% \section{File \texttt{artikel1-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{artikel1-xetex-bidi.def}[2017/06/09 v0.4 bidi adaptations for artikel1 class for XeTeX engine]
\renewenvironment{theindex}{%
@@ -2094,7 +1241,7 @@ by Vafa Khalighi.
%</artikel1-xetex-bidi.def>
%<*artikel2-xetex-bidi.def>
%\fi
-% \subsection{\textsf{artikel2-xetex-bidi.def}}
+% \section{File \texttt{artikel2-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{artikel2-xetex-bidi.def}[2017/06/09 v0.4 bidi adaptations for artikel2 class for XeTeX engine]
\renewenvironment{theindex}{%
@@ -2353,7 +1500,7 @@ by Vafa Khalighi.
%</artikel2-xetex-bidi.def>
%<*artikel3-xetex-bidi.def>
%\fi
-% \subsection{\textsf{artikel3-xetex-bidi.def}}
+% \section{File \texttt{artikel3-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{artikel3-xetex-bidi.def}[2017/06/09 v0.5 bidi adaptations for artikel3 class for XeTeX engine]
\renewenvironment{theindex}{%
@@ -2620,7 +1767,7 @@ by Vafa Khalighi.
%</artikel3-xetex-bidi.def>
%<*arydshln-xetex-bidi.def>
%\fi
-% \subsection{\textsf{arydshln-xetex-bidi.def}}
+% \section{File \texttt{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}
@@ -2762,12 +1909,12 @@ by Vafa Khalighi.
%</arydshln-xetex-bidi.def>
%<*bidi.sty>
%\fi
-% \subsection{\textsf{bidi.sty}}
+% \section{File \texttt{bidi.sty}}
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\def\bididate{2018/01/08}
-\def\bidiversion{v32.1}
-\ProvidesPackage{bidi}[\bididate\space \bidiversion\space
+\def\bididate{2018/01/17}
+\def\bidi@version{32.2}
+\ProvidesPackage{bidi}[\bididate\space v\bidi@version\space
Bidirectional typesetting in plain TeX and LaTeX]
\edef\@bidi@info{****************************************************^^J%
* ^^J%
@@ -2781,7 +1928,7 @@ Bidirectional typesetting in plain TeX and LaTeX]
* ^^J%
* Copyright (c) 2009--2018 Vafa Khalighi^^J%
* ^^J%
-* \bididate, \bidiversion^^J%
+* v\bidi@version, \bididate^^J%
* ^^J%
* License: LaTeX Project Public License, version^^J%
* 1.3c or higher (your choice)^^J%
@@ -2796,21 +1943,21 @@ Bidirectional typesetting in plain TeX and LaTeX]
\typeout{\@bidi@info}
\edef\bidi@everyjob{\the\everyjob}
\everyjob{\bidi@everyjob\typeout{\@bidi@info}}
-\edef\@bidi@strip@v@bidiversion{\expandafter\@gobble\bidiversion}
+\newcommand*{\bidiversion}{$\bidi@version$}
\newcommand*{\IfbidiPackageVersionLater}[1]{%
- \ifdim\@bidi@strip@v@bidiversion pt > #1 pt %
+ \ifdim\bidi@version pt > #1 pt %
\expandafter\@firstoftwo
\else
\expandafter\@secondoftwo
\fi}
\newcommand*{\IfbidiPackageVersionBefore}[1]{%
- \ifdim\@bidi@strip@v@bidiversion pt < #1 pt %
+ \ifdim\bidi@version pt < #1 pt %
\expandafter\@firstoftwo
\else
\expandafter\@secondoftwo
\fi}
\newcommand*{\IfbidiPackageVersion}[1]{%
- \ifdim\@bidi@strip@v@bidiversion pt = #1 pt %
+ \ifdim\bidi@version pt = #1 pt %
\expandafter\@firstoftwo
\else
\expandafter\@secondoftwo
@@ -2950,7 +2097,6 @@ Bidirectional typesetting in plain TeX and LaTeX]
\XeTeXcharclass `\- \bidi@sepmark@charclass
\bidi@digits=`\0 \loop \XeTeXcharclass \bidi@digits \bidi@digits@charclass \ifnum\bidi@digits<`\9 \advance\bidi@digits \@ne \repeat
\bidi@digits=`\Û° \loop \XeTeXcharclass \bidi@digits \bidi@digits@charclass \ifnum\bidi@digits<`\Û¹ \advance\bidi@digits \@ne \repeat
-\XeTeXinterchartoks \bidi@digits@charclass \bidi@sepmark@charclass = {\DigitsDotDashInterCharToks}
\XeTeXinterchartoks \bidi@sepmark@charclass \bidi@digits@charclass = {\DigitsDotDashInterCharToks}
\newcommand*{\DigitsDotDashInterCharToks}{\if@nonlatin\char"200F \fi}
% \end{macrocode}
@@ -2958,10 +2104,10 @@ Bidirectional typesetting in plain TeX and LaTeX]
%</bidi.sty>
%<*bidi.tex>
%\fi
-% \subsection{\textsf{bidi.tex}}
+% \section{File \texttt{bidi.tex}}
% \begin{macrocode}
-\def\bididate{2018/01/08}
-\def\bidiversion{v0.3}
+\def\bididate{2018/01/17}
+\def\bidi@version{0.3}
\catcode`@=11
\let \protect \relax
\newlinechar`\^^J
@@ -2977,7 +2123,7 @@ Bidirectional typesetting in plain TeX and LaTeX]
* ^^J%
* Copyright (c) 2009--2018 Vafa Khalighi^^J%
* ^^J%
-* \bididate, \bidiversion^^J%
+* v\bidi@version, \bididate^^J%
* ^^J%
* License: LaTeX Project Public License, version^^J%
* 1.3c or higher (your choice)^^J%
@@ -2992,6 +2138,7 @@ Bidirectional typesetting in plain TeX and LaTeX]
\message{\@bidi@info}
\edef\bidi@everyjob{\the\everyjob}
\everyjob{\bidi@everyjob\message{\@bidi@info}}
+\def\bidiversion{$\bidi@version$}
\input iftex.sty
\RequireXeTeX
\newif\if@RTLmain
@@ -3021,7 +2168,7 @@ Bidirectional typesetting in plain TeX and LaTeX]
%</bidi.tex>
%<*bidi2in1.sty>
%\fi
-% \subsection{\textsf{bidi2in1.sty}}
+% \section{File \texttt{bidi2in1.sty}}
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{bidi2in1}
@@ -3084,7 +2231,7 @@ Bidirectional typesetting in plain TeX and LaTeX]
%</bidi2in1.sty>
%<*bidicode.sty>
%\fi
-% \subsection{\textsf{bidicode.sty}}
+% \section{File \texttt{bidicode.sty}}
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{bidicode}
@@ -3103,9 +2250,9 @@ Bidirectional typesetting in plain TeX and LaTeX]
keywordstyle=\color{colKeys},
stringstyle=\color{colString},
commentstyle=\color{colComments},
+ backgroundcolor=\color{hellgelb},
columns=flexible,
tabsize=4,
- gobble =1,
extendedchars=true,
showspaces=false,
showstringspaces=false,
@@ -3224,7 +2371,7 @@ Bidirectional typesetting in plain TeX and LaTeX]
%</bidicode.sty>
%<*bidiftnxtra.sty>
%\fi
-% \subsection{\textsf{bidiftnxtra.sty}}
+% \section{File \texttt{bidiftnxtra.sty}}
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{bidiftnxtra}
@@ -3423,7 +2570,7 @@ Bidirectional typesetting in plain TeX and LaTeX]
%</bidiftnxtra.sty>
%<*bidimoderncv.cls>
%\fi
-% \subsection{\textsf{bidimoderncv.cls}}
+% \section{File \texttt{bidimoderncv.cls}}
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{bidimoderncv}
@@ -3679,7 +2826,7 @@ Bidirectional typesetting in plain TeX and LaTeX]
%</bidimoderncv.cls>
%<*biditools.sty>
%\fi
-% \subsection{\textsf{biditools.sty}}
+% \section{File \texttt{biditools.sty}}
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{biditools}[2017/10/11 v1.2 Programming tools for bidi package]
@@ -5369,7 +4516,7 @@ ill-advised in the old versions of bidi package.%
%</biditools.sty>
%<*bidituftefloat.sty>
%\fi
-% \subsection{\textsf{bidituftefloat.sty}}
+% \section{File \texttt{bidituftefloat.sty}}
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{bidituftefloat}[2017/05/19 v0.2
@@ -5942,7 +5089,7 @@ bidi implementation of tufte float]
%</bidituftefloat.sty>
%<*bidituftesidenote.sty>
%\fi
-% \subsection{\textsf{bidituftesidenote.sty}}
+% \section{File \texttt{bidituftesidenote.sty}}
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{bidituftesidenote}[2017/08/09 v0.4
@@ -6491,7 +5638,7 @@ bidi implementation of tufte sidenote]
%</bidituftesidenote.sty>
%<*bidituftetoc.sty>
%\fi
-% \subsection{\textsf{bidituftetoc.sty}}
+% \section{File \texttt{bidituftetoc.sty}}
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{bidituftetoc}[2011/06/17 v0.1
@@ -6644,7 +5791,7 @@ bidi implementation of tufte toc]
%</bidituftetoc.sty>
%<*bidituftegeneralstructure.sty>
%\fi
-% \subsection{\textsf{bidituftegeneralstructure.sty}}
+% \section{File \texttt{bidituftegeneralstructure.sty}}
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{bidituftegeneralstructure}[2011/06/18 v0.1
@@ -6767,7 +5914,7 @@ bidi implementation of tufte general structure]
%</bidituftegeneralstructure.sty>
%<*bidituftehyperref.sty>
%\fi
-% \subsection{\textsf{bidituftehyperref.sty}}
+% \section{File \texttt{bidituftehyperref.sty}}
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{bidituftehyperref}[2011/06/18 v0.1
@@ -6801,7 +5948,7 @@ bidi implementation of tufte hyperref]
%</bidituftehyperref.sty>
%<*bidituftetitle.sty>
%\fi
-% \subsection{\textsf{bidituftetitle.sty}}
+% \section{File \texttt{bidituftetitle.sty}}
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{bidituftetitle}[2011/06/18 v0.1
@@ -6957,7 +6104,7 @@ bidi implementation of tufte title]
%</bidituftetitle.sty>
%<*biditufte-handout.cls>
%\fi
-% \subsection{\textsf{biditufte-handout.cls}}
+% \section{File \texttt{biditufte-handout.cls}}
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\ProvidesClass{biditufte-handout}[2011/06/18 v0.1 biditufte-handout class]
@@ -6988,7 +6135,7 @@ bidi implementation of tufte title]
%</biditufte-handout.cls>
%<*biditufte-book.cls>
%\fi
-% \subsection{\textsf{biditufte-book.cls}}
+% \section{File \texttt{biditufte-book.cls}}
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\ProvidesClass{biditufte-book}[2011/06/18 v0.1 biditufte-book class]
@@ -7060,7 +6207,7 @@ bidi implementation of tufte title]
%</biditufte-book.cls>
%<*bidipoem.sty>
%\fi
-% \subsection{\textsf{bidipoem.sty}}
+% \section{File \texttt{bidipoem.sty}}
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{bidipoem}%
@@ -7239,9 +6386,6 @@ bidi implementation of tufte title]
\fi
\xdef\new@poem@width{\z@}%
\global\versewidth=\poem@width
-% \end{macrocode}
-%\changes{v14.3}{2013/11/12}{Removed \cs{leavevmode} to avoid extra \cs{par}.}
-% \begin{macrocode}
\poemskip\par
\begingroup
\tabskip=\z@
@@ -7430,7 +6574,7 @@ bidi implementation of tufte title]
%</bidipoem.sty>
%<*boek3-xetex-bidi.def>
%\fi
-% \subsection{\textsf{boek3-xetex-bidi.def}}
+% \section{File \texttt{boek3-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{boek3-xetex-bidi.def}[2017/06/09 v0.4 bidi adaptations for boek3 class for XeTeX engine]
\renewenvironment{theindex}{%
@@ -7614,7 +6758,7 @@ bidi implementation of tufte title]
%</boek3-xetex-bidi.def>
%<*boek-xetex-bidi.def>
%\fi
-% \subsection{\textsf{boek-xetex-bidi.def}}
+% \section{File \texttt{boek-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{boek-xetex-bidi.def}[2017/06/09 v0.4 bidi adaptations for boek class for XeTeX engine]
\renewenvironment{theindex}{%
@@ -7798,7 +6942,7 @@ bidi implementation of tufte title]
%</boek-xetex-bidi.def>
%<*bookest-xetex-bidi.def>
%\fi
-% \subsection{\textsf{bookest-xetex-bidi.def}}
+% \section{File \texttt{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{%
@@ -7838,7 +6982,7 @@ bidi implementation of tufte title]
%</bookest-xetex-bidi.def>
%<*book-xetex-bidi.def>
%\fi
-% \subsection{\textsf{book-xetex-bidi.def}}
+% \section{File \texttt{book-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{book-xetex-bidi.def}[2017/06/09 v1.0 bidi adaptations for standard book class for XeTeX engine]
\renewenvironment{theindex}
@@ -8058,7 +7202,7 @@ bidi implementation of tufte title]
%</book-xetex-bidi.def>
%<*breqn-xetex-bidi.def>
%\fi
-% \subsection{\textsf{breqn-xetex-bidi.def}}
+% \section{File \texttt{breqn-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{breqn-xetex-bidi.def}[2016/09/12 v0.2 bidi adaptations for breqn package for XeTeX engine]
\def\@dmath[#1]{\if@RTL\@RTLfalse\fi%
@@ -8120,7 +7264,7 @@ bidi implementation of tufte title]
%</breqn-xetex-bidi.def>
%<*cals-xetex-bidi.def>
%\fi
-% \subsection{\textsf{cals-xetex-bidi.def}}
+% \section{File \texttt{cals-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{cals-xetex-bidi.def}[2016/11/30 v0.4 bidi adaptations for cals package for XeTeX engine]
\renewcommand\cals@setup@alignment[1]{%
@@ -8169,7 +7313,7 @@ bidi implementation of tufte title]
%</cals-xetex-bidi.def>
%<*caption-xetex-bidi.def>
%\fi
-% \subsection{\textsf{caption-xetex-bidi.def}}
+% \section{File \texttt{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
@@ -8178,7 +7322,7 @@ bidi implementation of tufte title]
%</caption-xetex-bidi.def>
%<*caption3-xetex-bidi.def>
%\fi
-% \subsection{\textsf{caption3-xetex-bidi.def}}
+% \section{File \texttt{caption3-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{caption3-xetex-bidi.def}[2013/04/01 v0.1 bidi adaptations for caption3 package for XeTeX engine]
\renewcommand*\caption@@par{%
@@ -8188,7 +7332,7 @@ bidi implementation of tufte title]
%</caption3-xetex-bidi.def>
%<*colortbl-xetex-bidi.def>
%\fi
-% \subsection{\textsf{colortbl-xetex-bidi.def}}
+% \section{File \texttt{colortbl-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{colortbl-xetex-bidi.def}[2012/06/10 v0.2 bidi adaptations for colortbl package for XeTeX engine]
\def\CT@setup{%
@@ -8233,7 +7377,7 @@ bidi implementation of tufte title]
%</colortbl-xetex-bidi.def>
%<*color-xetex-bidi.def>
%\fi
-% \subsection{\textsf{color-xetex-bidi.def}}
+% \section{File \texttt{color-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{color-xetex-bidi.def}[2013/04/08 v0.2 bidi adaptations for color package for XeTeX engine]
\long\def\color@b@x#1#2#3{%
@@ -8283,7 +7427,7 @@ bidi implementation of tufte title]
%</color-xetex-bidi.def>
%<*combine-xetex-bidi.def>
%\fi
-% \subsection{\textsf{combine-xetex-bidi.def}}
+% \section{File \texttt{combine-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{combine-xetex-bidi.def}[2011/09/23 v0.1 bidi adaptations for combine class for XeTeX engine]
\renewcommand{\c@ll@chapsecii}[2]{%
@@ -8305,7 +7449,7 @@ bidi implementation of tufte title]
%</combine-xetex-bidi.def>
%<*crop-xetex-bidi.def>
%\fi
-% \subsection{\textsf{crop-xetex-bidi.def}}
+% \section{File \texttt{crop-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{crop-xetex-bidi.def}[2013/04/10 v0.2 bidi adaptations for crop package for XeTeX engine]
\renewcommand*\CROP@@ulc{%
@@ -8408,7 +7552,7 @@ bidi implementation of tufte title]
%</crop-xetex-bidi.def>
%<*cutwin-xetex-bidi.def>
%\fi
-% \subsection{\textsf{cutwin-xetex-bidi.def}}
+% \section{File \texttt{cutwin-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{cutwin-xetex-bidi.def}[2011/11/12 v0.1 bidi adaptations for cutwin package for XeTeX engine]
\renewcommand*{\c@twcompctr}[2]{%
@@ -8453,7 +7597,7 @@ bidi implementation of tufte title]
%</cutwin-xetex-bidi.def>
%<*cuted-xetex-bidi.def>
%\fi
-% \subsection{\textsf{cuted-xetex-bidi.def}}
+% \section{File \texttt{cuted-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{cuted-xetex-bidi.def}[2017/05/06 v0.6 bidi adaptations for cuted package for XeTeX engine]
@@ -8885,7 +8029,7 @@ bidi implementation of tufte title]
%</cuted-xetex-bidi.def>
%<*cvthemebidicasual.sty>
%\fi
-% \subsection{\textsf{cvthemebidicasual.sty}}
+% \section{File \texttt{cvthemebidicasual.sty}}
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{cvthemebidicasual}
@@ -8990,7 +8134,7 @@ bidi implementation of tufte title]
%</cvthemebidicasual.sty>
%<*cvthemebidiclassic.sty>
%\fi
-% \subsection{\textsf{cvthemebidiclassic.sty}}
+% \section{File \texttt{cvthemebidiclassic.sty}}
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{cvthemebidiclassic}
@@ -9102,7 +8246,7 @@ bidi implementation of tufte title]
%</cvthemebidiclassic.sty>
%<*dblfnote-xetex-bidi.def>
%\fi
-% \subsection{\textsf{dblfnote-xetex-bidi.def}}
+% \section{File \texttt{dblfnote-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{dblfnote-xetex-bidi.def}[2012/12/12 v0.3 bidi adaptations for dblfnote package for XeTeX engine]
\let\autofootnoterule\relax
@@ -9274,7 +8418,7 @@ bidi implementation of tufte title]
%</dblfnote-xetex-bidi.def>
%<*diagbox-xetex-bidi.def>
%\fi
-% \subsection{\textsf{diagbox-xetex-bidi.def}}
+% \section{File \texttt{diagbox-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{diagbox-xetex-bidi.def}[2017/12/30 v0.2 bidi adaptations for diagbox package for XeTeX engine]
\bidi@patchcmd{\diagbox@double}{%
@@ -9400,7 +8544,7 @@ bidi implementation of tufte title]
%</diagbox-xetex-bidi.def>
%<*draftwatermark-xetex-bidi.def>
%\fi
-% \subsection{\textsf{draftwatermark-xetex-bidi.def}}
+% \section{File \texttt{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]{%
@@ -9410,7 +8554,7 @@ bidi implementation of tufte title]
%</draftwatermark-xetex-bidi.def>
%<*eso-pic-xetex-bidi.def>
%\fi
-% \subsection{\textsf{eso-pic-xetex-bidi.def}}
+% \section{File \texttt{eso-pic-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{eso-pic-xetex-bidi.def}[2013/04/10 v0.2 bidi adaptations for eso-pic package for XeTeX engine]
\renewcommand\AtPageLowerLeft[1]{\AtPageUpperLeft{%
@@ -9456,7 +8600,7 @@ bidi implementation of tufte title]
%</eso-pic-xetex-bidi.def>
%<*empheq-xetex-bidi.def>
%\fi
-% \subsection{\textsf{empheq-xetex-bidi.def}}
+% \section{File \texttt{empheq-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{empheq-xetex-bidi.def}[2018/01/08 v0.2 bidi adaptations for empheq package for XeTeX engine]
\MHInternalSyntaxOn
@@ -9625,7 +8769,7 @@ bidi implementation of tufte title]
%</empheq-xetex-bidi.def>
%<*extarticle-xetex-bidi.def>
%\fi
-% \subsection{\textsf{extarticle-xetex-bidi.def}}
+% \section{File \texttt{extarticle-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{extarticle-xetex-bidi.def}[2017/06/09 v0.4 bidi adaptations for extarticle class for XeTeX engine]
\renewcommand*\l@section[2]{%
@@ -9805,7 +8949,7 @@ bidi implementation of tufte title]
%</extarticle-xetex-bidi.def>
%<*extbook-xetex-bidi.def>
%\fi
-% \subsection{\textsf{extbook-xetex-bidi.def}}
+% \section{File \texttt{extbook-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{extbook-xetex-bidi.def}[2017/06/09 v0.4 bidi adaptations for extbook class for XeTeX engine]
\if@titlepage
@@ -9986,7 +9130,7 @@ bidi implementation of tufte title]
%</extbook-xetex-bidi.def>
%<*extletter-xetex-bidi.def>
%\fi
-% \subsection{\textsf{extletter-xetex-bidi.def}}
+% \section{File \texttt{extletter-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{extletter-xetex-bidi.def}[2015/11/14 v0.2 bidi adaptations for extletter class for XeTeX engine]
\renewcommand*{\opening}[1]{\ifx\@empty\fromaddress
@@ -10026,7 +9170,7 @@ bidi implementation of tufte title]
%</extletter-xetex-bidi.def>
%<*extrafootnotefeatures-xetex-bidi.def>
%\fi
-% \subsection{\textsf{extrafootnotefeatures-xetex-bidi.def}}
+% \section{File \texttt{extrafootnotefeatures-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{extrafootnotefeatures-xetex-bidi.def}[2017/05/19 v1.1 bidi extra footnote features for XeTeX engine]
\newcommand*{\@bidi@before@Hy@hyperfootnotes}{%
@@ -11976,7 +11120,7 @@ bidi implementation of tufte title]
%</extrafootnotefeatures-xetex-bidi.def>
%<*extreport-xetex-bidi.def>
%\fi
-% \subsection{\textsf{extreport-xetex-bidi.def}}
+% \section{File \texttt{extreport-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{extreport-xetex-bidi.def}[2017/06/09 v0.3 bidi adaptations for extreport class for XeTeX engine]
\renewcommand*\l@part[2]{%
@@ -12159,7 +11303,7 @@ bidi implementation of tufte title]
%</extreport-xetex-bidi.def>
%<*fancybox-xetex-bidi.def>
%\fi
-% \subsection{\textsf{fancybox-xetex-bidi.def}}
+% \section{File \texttt{fancybox-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{fancybox-xetex-bidi.def}[2013/05/01 v0.1 bidi adaptations for fancybox package for XeTeX engine]
\def\fancy@@oval#1#2#3{%
@@ -12195,7 +11339,7 @@ bidi implementation of tufte title]
%</fancybox-xetex-bidi.def>
%<*fancyhdr-xetex-bidi.def>
%\fi
-% \subsection{\textsf{fancyhdr-xetex-bidi.def}}
+% \section{File \texttt{fancyhdr-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{fancyhdr-xetex-bidi.def}[2016/11/30 v0.6 bidi adaptations for fancyhdr package for XeTeX engine]
@@ -12218,7 +11362,7 @@ bidi implementation of tufte title]
%</fancyhdr-xetex-bidi.def>
%<*fix2col-xetex-bidi.def>
%\fi
-% \subsection{\textsf{fix2col-xetex-bidi.def}}
+% \section{File \texttt{fix2col-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{fix2col-xetex-bidi.def}[2017/05/06 v0.4 bidi adaptations for fix2col package for XeTeX engine]
\def\RTL@outputdblcol{%
@@ -12302,7 +11446,7 @@ bidi implementation of tufte title]
%</fix2col-xetex-bidi.def>
%<*fleqn-xetex-bidi.def>
%\fi
-% \subsection{\textsf{fleqn-xetex-bidi.def}}
+% \section{File \texttt{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
@@ -12339,7 +11483,7 @@ bidi implementation of tufte title]
%</fleqn-xetex-bidi.def>
%<*float-xetex-bidi.def>
%\fi
-% \subsection{\textsf{float-xetex-bidi.def}}
+% \section{File \texttt{float-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{float-xetex-bidi.def}[2013/04/04 v0.2 bidi adaptations for float package for XeTeX engine]
\renewcommand\floatc@plain[2]{\setbox\@tempboxa\hbox{{\@fs@cfont #1:} #2}%
@@ -12355,7 +11499,7 @@ bidi implementation of tufte title]
%</float-xetex-bidi.def>
%<*floatrow-xetex-bidi.def>
%\fi
-% \subsection{\textsf{floatrow-xetex-bidi.def}}
+% \section{File \texttt{floatrow-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{floatrow-xetex-bidi.def}[2013/04/08 v0.1 bidi adaptations for floatrow package for XeTeX engine]
\renewcommand\flnew@within[1]{\@addtoreset{\FB@captype}{#1}%
@@ -12367,7 +11511,7 @@ bidi implementation of tufte title]
%</floatrow-xetex-bidi.def>
%<*flowfram-xetex-bidi.def>
%\fi
-% \subsection{\textsf{flowfram-xetex-bidi.def}}
+% \section{File \texttt{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{%
@@ -12509,7 +11653,7 @@ bidi implementation of tufte title]
%</flowfram-xetex-bidi.def>
%<*footnote-xetex-bidi.def>
%\fi
-% \subsection{\textsf{footnote-xetex-bidi.def}}
+% \section{File \texttt{footnote-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{footnote-xetex-bidi.def}[2017/08/09 v1.1 bidi footnote macros for XeTeX engine]
\if@RTLmain\@RTL@footnotetrue\else\@RTL@footnotefalse\fi
@@ -12856,7 +12000,7 @@ bidi implementation of tufte title]
%</footnote-xetex-bidi.def>
%<*framed-xetex-bidi.def>
%\fi
-% \subsection{\textsf{framed-xetex-bidi.def}}
+% \section{File \texttt{framed-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{framed-xetex-bidi.def}[2012/06/05 v0.3 bidi adaptations for framed package for XeTeX engine]
\renewcommand\TitleBarFrame[3][]{\begingroup
@@ -13040,7 +12184,7 @@ bidi implementation of tufte title]
%</framed-xetex-bidi.def>
%<*ftnright-xetex-bidi.def>
%\fi
-% \subsection{\textsf{ftnright-xetex-bidi.def}}
+% \section{File \texttt{ftnright-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{ftnright-xetex-bidi.def}[2017/05/06 v0.5 bidi adaptations for ftnright package for XeTeX engine]
@@ -13157,7 +12301,7 @@ bidi implementation of tufte title]
%</ftnright-xetex-bidi.def>
%<*graphicx-xetex-bidi.def>
%\fi
-% \subsection{\textsf{graphicx-xetex-bidi.def}}
+% \section{File \texttt{graphicx-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{graphicx-xetex-bidi.def}[2017/06/17 v0.5 bidi adaptations for graphicx package for XeTeX engine]
\def\Grot@box@std#1#2{\ifmmode\else\if@RTL\beginL\fi\fi%
@@ -13291,7 +12435,7 @@ bidi implementation of tufte title]
%</graphicx-xetex-bidi.def>
%<*geometry-xetex-bidi.def>
%\fi
-% \subsection{\textsf{geometry-xetex-bidi.def}}
+% \section{File \texttt{geometry-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{geometry-xetex-bidi.def}[2017/01/14 v0.2 bidi adaptations for geometry package for XeTeX engine]
\renewcommand*{\Gm@vrules@mpi}{%
@@ -13340,7 +12484,7 @@ bidi implementation of tufte title]
%</geometry-xetex-bidi.def>
%<*hvfloat-xetex-bidi.def>
%\fi
-% \subsection{\textsf{hvfloat-xetex-bidi.def}}
+% \section{File \texttt{hvfloat-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{hvfloat-xetex-bidi.def}[2012/04/18 v0.2 bidi adaptations for hvfloat package for XeTeX engine]
\def\do@@hvFloat[#1]#2#3{%
@@ -13648,7 +12792,7 @@ bidi implementation of tufte title]
%</hvfloat-xetex-bidi.def>
%<*hyperref-xetex-bidi.def>
%\fi
-% \subsection{\textsf{hyperref-xetex-bidi.def}}
+% \section{File \texttt{hyperref-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{hyperref-xetex-bidi.def}[2017/08/09 v1.0 bidi adaptations for hyperref package for XeTeX engine]
\AtBeginDocument{%
@@ -14233,7 +13377,7 @@ bidi implementation of tufte title]
%</hyperref-xetex-bidi.def>
%<*imsproc-xetex-bidi.def>
%\fi
-% \subsection{\textsf{imsproc-xetex-bidi.def}}
+% \section{File \texttt{imsproc-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{imsproc-xetex-bidi.def}[2017/06/09 v0.1 bidi adaptations for imsproc class for XeTeX engine]
\newenvironment{thebibliography}[1]{%
@@ -14326,7 +13470,7 @@ bidi implementation of tufte title]
%</imsproc-xetex-bidi.def>
%<*leqno-xetex-bidi.def>
%\fi
-% \subsection{\textsf{leqno-xetex-bidi.def}}
+% \section{File \texttt{leqno-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{leqno-xetex-bidi.def}[2018/01/07 v0.2 bidi adaptations for leqno tag for XeTeX engine]
\renewcommand\@eqnnum{\hb@xt@.01\p@{}%
@@ -14337,7 +13481,7 @@ bidi implementation of tufte title]
%</leqno-xetex-bidi.def>
%<*letter-xetex-bidi.def>
%\fi
-% \subsection{\textsf{letter-xetex-bidi.def}}
+% \section{File \texttt{letter-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{letter-xetex-bidi.def}[2015/11/14 v0.3 bidi adaptations for standard letter class for XeTeX engine]
\renewcommand*{\opening}[1]{\ifx\@empty\fromaddress
@@ -14366,7 +13510,7 @@ bidi implementation of tufte title]
%</letter-xetex-bidi.def>
%<*lettrine-xetex-bidi.def>
%\fi
-% \subsection{\textsf{lettrine-xetex-bidi.def}}
+% \section{File \texttt{lettrine-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{lettrine-xetex-bidi.def}[2015/02/17 v0.5 bidi adaptations for lettrine package for XeTeX engine]
\def\@lettrine[#1]#2#3{%
@@ -14484,7 +13628,7 @@ bidi implementation of tufte title]
%</lettrine-xetex-bidi.def>
%<*listings-xetex-bidi.def>
%\fi
-% \subsection{\textsf{listings-xetex-bidi.def}}
+% \section{File \texttt{listings-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{listings-xetex-bidi.def}[2017/01/14 v1.4 bidi adaptations for listings package for XeTeX engine]
\lst@Key{captiondirection}{textdirection}{%
@@ -14595,7 +13739,7 @@ bidi implementation of tufte title]
%</listings-xetex-bidi.def>
%<*loadingorder-xetex-bidi.def>
%\fi
-% \subsection{\textsf{loadingorder-xetex-bidi.def}}
+% \section{File \texttt{loadingorder-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{loadingorder-xetex-bidi.def}[2017/12/29 v0.97 making sure that bidi is the last package loaded]
\bidi@isloaded{amsmath}
@@ -14892,7 +14036,7 @@ bidi implementation of tufte title]
%</loadingorder-xetex-bidi.def>
%<*longtable-xetex-bidi.def>
%\fi
-% \subsection{\textsf{longtable-xetex-bidi.def}}
+% \section{File \texttt{longtable-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{longtable-xetex-bidi.def}[2016/09/09 v0.4 bidi adaptations for longtable package for XeTeX engine]
\def\LT@array[#1]#2{%
@@ -15028,7 +14172,7 @@ bidi implementation of tufte title]
%</longtable-xetex-bidi.def>
%<*mathtools-xetex-bidi.def>
%\fi
-% \subsection{\textsf{mathtools-xetex-bidi.def}}
+% \section{File \texttt{mathtools-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{mathtools-xetex-bidi.def}[2018/01/07 v0.1 bidi adaptations for mathtools package for XeTeX engine]
\MHInternalSyntaxOn
@@ -15043,7 +14187,7 @@ bidi implementation of tufte title]
%</mathtools-xetex-bidi.def>
%<*mdframed-xetex-bidi.def>
%\fi
-% \subsection{\textsf{mdframed-xetex-bidi.def}}
+% \section{File \texttt{mdframed-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{mdframed-xetex-bidi.def}[2013/09/22 v0.4 bidi adaptations for mdframed package for XeTeX engine]
\newif\if@bidi@mdf@RTL
@@ -15125,7 +14269,7 @@ bidi implementation of tufte title]
%</mdframed-xetex-bidi.def>
%<*bidi-media9.sty>
%\fi
-% \subsection{\textsf{bidi-media9.sty}}
+% \section{File \texttt{bidi-media9.sty}}
% \begin{macrocode}
\ProvidesExplPackage{bidi-media9}{2017/08/27}{0.3}
{bidi fixes for media9 package for the XeTeX engine}
@@ -15716,7 +14860,7 @@ bidi implementation of tufte title]
%</bidi-media9.sty>
%<*memoir-xetex-bidi.def>
%\fi
-% \subsection{\textsf{memoir-xetex-bidi.def}}
+% \section{File \texttt{memoir-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{memoir-xetex-bidi.def}[2017/06/09 v0.6 bidi adaptations for memoir class for XeTeX engine]
\renewcommand{\keepthetitle}{%
@@ -15880,7 +15024,7 @@ bidi implementation of tufte title]
%</memoir-xetex-bidi.def>
%<*midfloat-xetex-bidi.def>
%\fi
-% \subsection{\textsf{midfloat-xetex-bidi.def}}
+% \section{File \texttt{midfloat-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{midfloat-xetex-bidi.def}[2017/05/06 v0.4 bidi adaptations for midfloat package for XeTeX engine]
\def\RTL@outputdblcol{%
@@ -16125,7 +15269,7 @@ bidi implementation of tufte title]
%</midfloat-xetex-bidi.def>
%<*minitoc-xetex-bidi.def>
%\fi
-% \subsection{\textsf{minitoc-xetex-bidi.def}}
+% \section{File \texttt{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{%
@@ -16170,12 +15314,9 @@ bidi implementation of tufte title]
%</minitoc-xetex-bidi.def>
%<*multicol-xetex-bidi.def>
%\fi
-% \subsection{\textsf{multicol-xetex-bidi.def}}
+% \section{File \texttt{multicol-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{multicol-xetex-bidi.def}[2016/11/27 v0.8 bidi adaptations for multicol package for XeTeX engine]
-% \end{macrocode}
-%\changes{v14.2}{2013/11/11}{Fixed the wrong order of toc, lot, lof, etc with \textsf{multicol} package.}
-% \begin{macrocode}
\def\page@sofar{%
\process@cols\mult@rightbox
{\ifvoid\count@
@@ -16310,7 +15451,7 @@ bidi implementation of tufte title]
%</multicol-xetex-bidi.def>
%<*multienum-xetex-bidi.def>
%\fi
-% \subsection{\textsf{multienum-xetex-bidi.def}}
+% \section{File \texttt{multienum-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{multienum-xetex-bidi.def}[2011/04/16 v0.1 bidi adaptations for multienum package for XeTeX engine]
\renewcommand{\itemx}[1]{\parbox[t]%
@@ -16384,7 +15525,7 @@ bidi implementation of tufte title]
%</multienum-xetex-bidi.def>
%<*natbib-xetex-bidi.def>
%\fi
-% \subsection{\textsf{natbib-xetex-bidi.def}}
+% \section{File \texttt{natbib-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{natbib-xetex-bidi.def}[2017/06/09 v0.2 bidi adaptations for natbib package for XeTeX engine]
\renewenvironment{thebibliography}[1]{%
@@ -16419,7 +15560,7 @@ bidi implementation of tufte title]
%</natbib-xetex-bidi.def>
%<*newfloat-xetex-bidi.def>
%\fi
-% \subsection{\textsf{newfloat-xetex-bidi.def}}
+% \section{File \texttt{newfloat-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{newfloat-xetex-bidi.def}[2013/05/22 v0.1 bidi adaptations for newfloat package for XeTeX engine]
\renewcommand*\newfloat@setwithin[2]{%
@@ -16464,7 +15605,7 @@ bidi implementation of tufte title]
%</newfloat-xetex-bidi.def>
%<*ntheorem-xetex-bidi.def>
%\fi
-% \subsection{\textsf{ntheorem-xetex-bidi.def}}
+% \section{File \texttt{ntheorem-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{ntheorem-xetex-bidi.def}[2012/05/01 v0.1 bidi adaptations for ntheorem package for XeTeX engine]
\gdef\@thm#1#2#3{%
@@ -16492,7 +15633,7 @@ bidi implementation of tufte title]
%</ntheorem-xetex-bidi.def>
%<*ntheorem-hyper-xetex-bidi.def>
%\fi
-% \subsection{\textsf{ntheorem-hyper-xetex-bidi.def}}
+% \section{File \texttt{ntheorem-hyper-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{ntheorem-hyper-xetex-bidi.def}[2012/05/01 v0.1 bidi adaptations for ntheorem-hyper package for XeTeX engine]
\gdef\@thm#1#2#3{%
@@ -16519,7 +15660,7 @@ bidi implementation of tufte title]
%</ntheorem-hyper-xetex-bidi.def>
%<*overpic-xetex-bidi.def>
%\fi
-% \subsection{\textsf{overpic-xetex-bidi.def}}
+% \section{File \texttt{overpic-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{overpic-xetex-bidi.def}[2015/12/07 v0.1 bidi adaptations for overpic package for XeTeX engine]
\renewenvironment{overpic}[2][]{%
@@ -16560,7 +15701,7 @@ bidi implementation of tufte title]
%</overpic-xetex-bidi.def>
%<*pdfbase-xetex-bidi.def>
%\fi
-% \subsection{\textsf{pdfbase-xetex-bidi.def}}
+% \section{File \texttt{pdfbase-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{pdfbase-xetex-bidi.def}[2017/08/27 v0.1 bidi adaptations for pdfbase package for XeTeX engine]
\ExplSyntaxOn
@@ -16599,7 +15740,7 @@ bidi implementation of tufte title]
%</pdfbase-xetex-bidi.def>
%<*pdfpages-xetex-bidi.def>
%\fi
-% \subsection{\textsf{pdfpages-xetex-bidi.def}}
+% \section{File \texttt{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][]{%
@@ -16654,7 +15795,7 @@ bidi implementation of tufte title]
%</pdfpages-xetex-bidi.def>
%<*pgfcorescopes.code-xetex-bidi.def>
%\fi
-% \subsection{\textsf{pgfcorescopes.code-xetex-bidi.def}}
+% \section{File \texttt{pgfcorescopes.code-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{pgfcorescopes.code-xetex-bidi.def}[2015/11/14 v0.1 bidi adaptations for pgf package for XeTeX engine]
\def\pgfpicture{%
@@ -16725,7 +15866,7 @@ bidi implementation of tufte title]
%</pgfcorescopes.code-xetex-bidi.def>
%<*picinpar-xetex-bidi.def>
%\fi
-% \subsection{\textsf{picinpar-xetex-bidi.def}}
+% \section{File \texttt{picinpar-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{picinpar-xetex-bidi.def}[2013/04/08 v0.2 bidi adaptations for picinpar package for XeTeX engine]
\long\def\@makewincaption#1#2{%
@@ -16859,7 +16000,7 @@ to\rtside{\box\bslice\hfil}}
%</picinpar-xetex-bidi.def>
%<*plain-xetex-bidi.def>
%\fi
-% \subsection{\textsf{plain-xetex-bidi.def}}
+% \section{File \texttt{plain-xetex-bidi.def}}
% \begin{macrocode}
\def\TeXXeTOn{\TeXXeTstate=1 }
\def\TeXXeTOff{\TeXXeTstate=0 }
@@ -16954,7 +16095,7 @@ to\rtside{\box\bslice\hfil}}
%</plain-xetex-bidi.def>
%<*pstricks-xetex-bidi.def>
%\fi
-% \subsection{\textsf{pstricks-xetex-bidi.def}}
+% \section{File \texttt{pstricks-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{pstricks-xetex-bidi.def}[2015/11/18 v0.5 bidi adaptations for pstricks package for XeTeX engine]
\def\pspicture{\begingroup\ifmmode\else\@RTLfalse\beginL\fi\pst@ifstar\pst@picture}
@@ -17002,7 +16143,7 @@ to\rtside{\box\bslice\hfil}}
%</pstricks-xetex-bidi.def>
%<*quotchap-xetex-bidi.def>
%\fi
-% \subsection{\textsf{quotchap-xetex-bidi.def}}
+% \section{File \texttt{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]{%
@@ -17025,7 +16166,7 @@ to\rtside{\box\bslice\hfil}}
%</quotchap-xetex-bidi.def>
%<*ragged2e-xetex-bidi.def>
%\fi
-% \subsection{\textsf{ragged2e-xetex-bidi.def}}
+% \section{File \texttt{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}{%
@@ -17118,7 +16259,7 @@ to\rtside{\box\bslice\hfil}}
%</ragged2e-xetex-bidi.def>
%<*rapport1-xetex-bidi.def>
%\fi
-% \subsection{\textsf{rapport1-xetex-bidi.def}}
+% \section{File \texttt{rapport1-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{rapport1-xetex-bidi.def}[2017/06/09 v0.4 bidi adaptations for rapport1 class for XeTeX engine]
\renewenvironment{theindex}{%
@@ -17380,7 +16521,7 @@ to\rtside{\box\bslice\hfil}}
%</rapport1-xetex-bidi.def>
%<*rapport3-xetex-bidi.def>
%\fi
-% \subsection{\textsf{rapport3-xetex-bidi.def}}
+% \section{File \texttt{rapport3-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{rapport3-xetex-bidi.def}[2017/06/09 v0.6 bidi adaptations for rapport3 class for XeTeX engine]
\renewenvironment{theindex}{%
@@ -17664,7 +16805,7 @@ to\rtside{\box\bslice\hfil}}
%</rapport3-xetex-bidi.def>
%<*refrep-xetex-bidi.def>
%\fi
-% \subsection{\textsf{refrep-xetex-bidi.def}}
+% \section{File \texttt{refrep-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{refrep-xetex-bidi.def}[2017/06/09 v0.5 bidi adaptations for refrep class for XeTeX engine]
\if@titlepage
@@ -17853,7 +16994,7 @@ to\rtside{\box\bslice\hfil}}
%</refrep-xetex-bidi.def>
%<*report-xetex-bidi.def>
%\fi
-% \subsection{\textsf{report-xetex-bidi.def}}
+% \section{File \texttt{report-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{report-xetex-bidi.def}[2017/06/09 v0.8 bidi adaptations for standard report class for XeTeX engine]
\renewenvironment{theindex}
@@ -18063,7 +17204,7 @@ to\rtside{\box\bslice\hfil}}
%</report-xetex-bidi.def>
%<*rotating-xetex-bidi.def>
%\fi
-% \subsection{\textsf{rotating-xetex-bidi.def}}
+% \section{File \texttt{rotating-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{rotating-xetex-bidi.def}[2013/05/22 v0.2 bidi adaptations for rotating package for XeTeX engine]
\def\end@rotfloat{%
@@ -18199,7 +17340,7 @@ to\rtside{\box\bslice\hfil}}
%</rotating-xetex-bidi.def>
%<*scrartcl-xetex-bidi.def>
%\fi
-% \subsection{\textsf{scrartcl-xetex-bidi.def}}
+% \section{File \texttt{scrartcl-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{scrartcl-xetex-bidi.def}[2017/06/09 v1.1 bidi adaptations for scrartcl class for XeTeX engine]
\newcommand{\scr@saved@LTRfootnotetext}{}
@@ -18755,7 +17896,7 @@ to\rtside{\box\bslice\hfil}}
%</scrartcl-xetex-bidi.def>
%<*scrbook-xetex-bidi.def>
%\fi
-% \subsection{\textsf{scrbook-xetex-bidi.def}}
+% \section{File \texttt{scrbook-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{scrbook-xetex-bidi.def}[2017/06/09 v1.1 bidi adaptations for scrbook class for XeTeX engine]
\newcommand{\scr@saved@LTRfootnotetext}{}
@@ -19353,7 +18494,7 @@ to\rtside{\box\bslice\hfil}}
%</scrbook-xetex-bidi.def>
%<*scrlettr-xetex-bidi.def>
%\fi
-% \subsection{\textsf{scrlettr-xetex-bidi.def}}
+% \section{File \texttt{scrlettr-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{scrlettr-xetex-bidi.def}[2015/11/14 v0.3 bidi adaptations for scrlettr class for XeTeX engine]
\renewcommand\deffootnote[4][]{%
@@ -19468,7 +18609,7 @@ to\rtside{\box\bslice\hfil}}
%</scrlettr-xetex-bidi.def>
%<*scrreprt-xetex-bidi.def>
%\fi
-% \subsection{\textsf{scrreprt-xetex-bidi.def}}
+% \section{File \texttt{scrreprt-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{scrreprt-xetex-bidi.def}[2017/06/09 v1.1 bidi adaptations for scrreprt class for XeTeX engine]
\newcommand{\scr@saved@LTRfootnotetext}{}
@@ -20050,7 +19191,7 @@ to\rtside{\box\bslice\hfil}}
%</scrreprt-xetex-bidi.def>
%<*sidecap-xetex-bidi.def>
%\fi
-% \subsection{\textsf{sidecap-xetex-bidi.def}}
+% \section{File \texttt{sidecap-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{sidecap-xetex-bidi.def}[2010/08/01 v0.1 bidi adaptations for sidecap package for XeTeX engine]
\renewcommand*{\SC@FLOAT}[2]{\if@RTL%
@@ -20064,7 +19205,7 @@ to\rtside{\box\bslice\hfil}}
%</sidecap-xetex-bidi.def>
%<*soul-xetex-bidi.def>
%\fi
-% \subsection{\textsf{soul-xetex-bidi.def}}
+% \section{File \texttt{soul-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{soul-xetex-bidi.def}[2015/10/16 v0.1 bidi adaptations for soul package for XeTeX engine]
\long\def\SOUL@start#1{{%
@@ -20131,7 +19272,7 @@ to\rtside{\box\bslice\hfil}}
%</soul-xetex-bidi.def>
%<*stabular-xetex-bidi.def>
%\fi
-% \subsection{\textsf{stabular-xetex-bidi.def}}
+% \section{File \texttt{stabular-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{stabular-xetex-bidi.def}[2015/11/07 v0.3 bidi adaptations for stabular package for XeTeX engine]
\def\@stabular{%
@@ -20164,7 +19305,7 @@ to\rtside{\box\bslice\hfil}}
%</stabular-xetex-bidi.def>
%<*subfigure-xetex-bidi.def>
%\fi
-% \subsection{\textsf{subfigure-xetex-bidi.def}}
+% \section{File \texttt{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{%
@@ -20176,7 +19317,7 @@ to\rtside{\box\bslice\hfil}}
%</subfigure-xetex-bidi.def>
%<*tabls-xetex-bidi.def>
%\fi
-% \subsection{\textsf{tabls-xetex-bidi.def}}
+% \section{File \texttt{tabls-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{tabls-xetex-bidi.def}[2015/11/07 v0.3 bidi adaptations for tabls package for XeTeX engine]
\def\endtabular{\endarray $\if@RTLtab\endR\fi\egroup}
@@ -20217,7 +19358,7 @@ to\rtside{\box\bslice\hfil}}
%</tabls-xetex-bidi.def>
%<*tabularx-xetex-bidi.def>
%\fi
-% \subsection{\textsf{tabularx-xetex-bidi.def}}
+% \section{File \texttt{tabularx-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{tabularx-xetex-bidi.def}[2014/11/08 v0.1 bidi adaptations for tabularx package for XeTeX engine]
\def\TX@endtabularx{%
@@ -20299,7 +19440,7 @@ to\rtside{\box\bslice\hfil}}
%</tabularx-xetex-bidi.def>
%<*tabulary-xetex-bidi.def>
%\fi
-% \subsection{\textsf{tabulary-xetex-bidi.def}}
+% \section{File \texttt{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
@@ -20336,7 +19477,7 @@ to\rtside{\box\bslice\hfil}}
%</tabulary-xetex-bidi.def>
%<*tc-xetex-bidi.def>
%\fi
-% \subsection{\textsf{tc-xetex-bidi.def}}
+% \section{File \texttt{tc-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{tc-xetex-bidi.def}[2014/07/08 v0.1 bidi adaptations for Clipping driver for XeTeX engine]
\def\@cliptoboxdim#1{%
@@ -20362,7 +19503,7 @@ to\rtside{\box\bslice\hfil}}
%</tc-xetex-bidi.def>
%<*tcolorbox-xetex-bidi.def>
%\fi
-% \subsection{\textsf{tcolorbox-xetex-bidi.def}}
+% \section{File \texttt{tcolorbox-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{tcolorbox-xetex-bidi.def}[2017/08/15 v0.1 bidi adaptations for tcolorbox package for XeTeX engine]
\let\endtcb@lrbox=\endminipage
@@ -20386,7 +19527,7 @@ to\rtside{\box\bslice\hfil}}
%</tcolorbox-xetex-bidi.def>
%<*titlesec-xetex-bidi.def>
%\fi
-% \subsection{\textsf{titlesec-xetex-bidi.def}}
+% \section{File \texttt{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{%
@@ -20422,7 +19563,7 @@ to\rtside{\box\bslice\hfil}}
%</titlesec-xetex-bidi.def>
%<*titletoc-xetex-bidi.def>
%\fi
-% \subsection{\textsf{titletoc-xetex-bidi.def}}
+% \section{File \texttt{titletoc-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{titletoc-xetex-bidi.def}[2013/04/10 v0.2 bidi adaptations for titletoc package for XeTeX engine]
\renewcommand\filright{%
@@ -20478,7 +19619,7 @@ to\rtside{\box\bslice\hfil}}
%</titletoc-xetex-bidi.def>
%<*tocbibind-xetex-bidi.def>
%\fi
-% \subsection{\textsf{tocbibind-xetex-bidi.def}}
+% \section{File \texttt{tocbibind-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{tocbibind-xetex-bidi.def}[2017/06/09 v0.4 bidi adaptations for tocbibind package for XeTeX engine]
\if@dotocbib
@@ -20566,7 +19707,7 @@ to\rtside{\box\bslice\hfil}}
%</tocbibind-xetex-bidi.def>
%<*tocloft-xetex-bidi.def>
%\fi
-% \subsection{\textsf{tocloft-xetex-bidi.def}}
+% \section{File \texttt{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
@@ -20881,7 +20022,7 @@ to\rtside{\box\bslice\hfil}}
%</tocloft-xetex-bidi.def>
%<*tocbasic-xetex-bidi.def>
%\fi
-% \subsection{\textsf{tocbasic-xetex-bidi.def}}
+% \section{File \texttt{tocbasic-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{tocbasic-xetex-bidi.def}[2016/09/14 v0.2 bidi adaptations for tocbasic package for XeTeX engine]
\bidi@undef\scr@dte@def@l@undottedtocline
@@ -21543,7 +20684,7 @@ to\rtside{\box\bslice\hfil}}
%</tocbasic-xetex-bidi.def>
%<*tocstyle-xetex-bidi.def>
%\fi
-% \subsection{\textsf{tocstyle-xetex-bidi.def}}
+% \section{File \texttt{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]{%
@@ -21796,7 +20937,7 @@ to\rtside{\box\bslice\hfil}}
%</tocstyle-xetex-bidi.def>
%<*todonotes-xetex-bidi.def>
%\fi
-% \subsection{\textsf{todonotes-xetex-bidi.def}}
+% \section{File \texttt{todonotes-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{todonotes-xetex-bidi.def}[2016/11/08 v0.4 bidi adaptations for todonotes package for XeTeX engine]
\newif\if@bidi@todonotes@textdirection@RTL
@@ -21932,7 +21073,7 @@ to\rtside{\box\bslice\hfil}}
%</todonotes-xetex-bidi.def>
%<*wrapfig-xetex-bidi.def>
%\fi
-% \subsection{\textsf{wrapfig-xetex-bidi.def}}
+% \section{File \texttt{wrapfig-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{wrapfig-xetex-bidi.def}[2014/04/23 v0.3 bidi adaptations for wrapfig package for XeTeX engine]
\let\WF@@everypar\bidi@n@everypar
@@ -22015,7 +21156,7 @@ to\rtside{\box\bslice\hfil}}
%</wrapfig-xetex-bidi.def>
%<*xcolor-xetex-bidi.def>
%\fi
-% \subsection{\textsf{xcolor-xetex-bidi.def}}
+% \section{File \texttt{xcolor-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{xcolor-xetex-bidi.def}[2013/04/08 v0.2 bidi adaptations for xcolor package for XeTeX engine]
\long\def\color@b@x#1#2#3%
@@ -22126,7 +21267,7 @@ to\rtside{\box\bslice\hfil}}
%</xcolor-xetex-bidi.def>
%<*latex-xetex-bidi.def>
%\fi
-% \subsection{\textsf{latex-xetex-bidi.def}}
+% \section{File \texttt{latex-xetex-bidi.def}}
% \begin{macrocode}
\ProvidesFile{latex-xetex-bidi.def}[2017/12/29 v1.3.2 bidi adaptations for `latex.ltx' for XeTeX engine]
\newcommand{\TeXXeTOn}{\TeXXeTstate=1 }
@@ -22997,7 +22138,7 @@ $\@@underline{\hbox{#1}}\m@th$\relax\fi\fi}
%</latex-xetex-bidi.def>
%<*xltxtra-xetex-bidi.def>
%\fi
-% \subsection{\textsf{xltxtra-xetex-bidi.def}}
+% \section{File \texttt{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