summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-04-06 12:57:38 +0000
committerKarl Berry <karl@freefriends.org>2010-04-06 12:57:38 +0000
commit8df732286e6f6d11222d83f90b15ec42f7059d7c (patch)
tree04fb5a730eee52af7014cc53775154aeb6b92dc2 /Master/texmf-dist/doc
parentfdfb1ff9a50249aa81781f5f117ae3f628bcc41e (diff)
bidi update (5apr10)
git-svn-id: svn://tug.org/texlive/trunk@17733 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc')
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/README12
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/bidi-doc.pdfbin153141 -> 322849 bytes
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/bidi-doc.tex118
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/bidisample2e.pdfbin0 -> 39027 bytes
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/bidismall2e.pdfbin0 -> 16532 bytes
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/picture.jpgbin0 -> 1693 bytes
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/presentation-sample.pdfbin0 -> 39748 bytes
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/presentation-sample.tex6
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/test-arydshln.pdfbin0 -> 11023 bytes
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/test-arydshln.tex27
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/test-bidi.pdfbin0 -> 16009 bytes
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/test-brochure.pdfbin0 -> 52113 bytes
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/test-brochure.tex360
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/test-casualcv.pdfbin0 -> 59545 bytes
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/test-casualcv.tex71
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/test-classiccv.pdfbin0 -> 57591 bytes
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/test-classiccv.tex71
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/test-color.pdfbin0 -> 23982 bytes
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/test-color.tex44
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/test-supertabular.pdfbin0 -> 24818 bytes
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/test-supertabular.tex4
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/test-tabular.pdfbin0 -> 24715 bytes
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/test-tabular.tex2
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/test-tabularx.pdfbin0 -> 18883 bytes
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/test-tabularx.tex2
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/test-tabulary.pdfbin0 -> 11034 bytes
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/test1-colortbl.pdfbin0 -> 18966 bytes
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/test1-colortbl.tex47
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/test1-wrapfig.pdfbin0 -> 10310 bytes
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/test2-colortbl.pdfbin0 -> 27868 bytes
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/test2-colortbl.tex28
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/test2-wrapfig.pdfbin0 -> 7437 bytes
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/test3-wrapfig.pdfbin0 -> 773628 bytes
33 files changed, 719 insertions, 73 deletions
diff --git a/Master/texmf-dist/doc/xelatex/bidi/README b/Master/texmf-dist/doc/xelatex/bidi/README
index f33ff8852d9..e81b5d56b1f 100644
--- a/Master/texmf-dist/doc/xelatex/bidi/README
+++ b/Master/texmf-dist/doc/xelatex/bidi/README
@@ -1,19 +1,17 @@
_________________
The bidi package
-v1.0.4
+v1.0.5
This package provides a convenient interface for typesetting
bidirectional texts with XeLaTeX.
-This version fixes all the bugs that were present in v1.0.3 and in
-addition it provides new features explained in the documentation.
-The support for bidibeamer and bidimoderncv is removed in this version
-and it will be back in version 1.0.5 (hopefully ready for MiKTeX 2.9
-and TeXLive 2010).
-
+This version fixes almost most of the bugs that were present in v1.0.4.
+The support for bidimoderncv is back in this version.
To get help, please subscribe to the XeTeX mailing list and ask your question there.
+The next release is planned to be ready for MikTeX 2.9 and TeXLive 2010.
+
______________
Vafa Khalighi
vafa@users.berlios.de
diff --git a/Master/texmf-dist/doc/xelatex/bidi/bidi-doc.pdf b/Master/texmf-dist/doc/xelatex/bidi/bidi-doc.pdf
index a1623eab8f4..a1745aaf9d5 100644
--- a/Master/texmf-dist/doc/xelatex/bidi/bidi-doc.pdf
+++ b/Master/texmf-dist/doc/xelatex/bidi/bidi-doc.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/xelatex/bidi/bidi-doc.tex b/Master/texmf-dist/doc/xelatex/bidi/bidi-doc.tex
index f7d3bdb3034..e4f6815b678 100644
--- a/Master/texmf-dist/doc/xelatex/bidi/bidi-doc.tex
+++ b/Master/texmf-dist/doc/xelatex/bidi/bidi-doc.tex
@@ -1,12 +1,9 @@
-\documentclass{article}
-\usepackage{fontspec}
+\documentclass{artikel3}
\usepackage{calc}
\usepackage{pifont}
\usepackage{bbding}
-\usepackage[left=2.5cm,right=2.5cm,top=2.5cm,bottom=2.5cm,nohead]{geometry}
\usepackage[colorlinks=true,linkcolor=mybrown,urlcolor=mygreen]{hyperref}
\usepackage{bidicode}
-\usepackage{bidi}
\newcounter{local}
\renewcommand\theenumi{\protect\setcounter{local}%
{201+\the\value{enumi}}\protect\ding{\value{local}}}
@@ -18,41 +15,31 @@
\definecolor{mybrown}{rgb}{.6,0,0}
\definecolor{mygreen}{rgb}{0,.43,0}
\definecolor{Orange}{rgb}{1,.4,.2}
+\newcommand\XeTeX{Xe\TeX}
+\newcommand\XeLaTeX{Xe\LaTeX}
\title{The \textsf{bidi} Package\\ \href{http://bidi.berlios.de}{\texttt{http://bidi.berlios.de}}}
\author{Vafa Khalighi\\ \href{mailto:vafa@users.berlios.de}{\texttt{vafa@users.berlios.de}}}
-\date{Version 1.0.4}
+\date{Version 1.0.5}
\begin{document}
\maketitle
\tableofcontents
-\lstlistoflistings
\section{Introduction}
\textsf{bidi} provides a convenient interface for typesetting bidirectional texts with \XeLaTeX. The package includes adaptations for use with many other commonly-used packages.
-The \textsf{bidi} package at the moment only works with \XeTeX\ engine, but we will support Lua\TeX\ engine as well in our next release.
+The \textsf{bidi} package at the moment only works with \XeTeX\ engine, but we will support other \TeX\ engines as well in the future.
\subsection{\textsf{bidi} Info On The Terminal and In The Log File}
If you use \textsf{bidi} package to write any input \TeX\ document, and then run \texttt{xelatex} on your document, \textsf{bidi} writes some information about itself to the terminal and to the log file. The information is something like:
-\begin{center}
-\colorbox{lightgray}{\begin{minipage}{0.9\textwidth}\ttfamily
-bidi package (Support for bidirectional typesetting with XeLaTeX)\\
-Description: A convenient interface for typesetting bidirectional\\
-texts with XeLaTeX. The package includes adaptations for use\\
-with many other commonly-used packages.\\
-Copyright © 2009-2010 Vafa Khalighi\\
-\bidiversion, <\bidirevision>, \bididate\\
-License: LaTeX Project Public License, version 1.3c or higher (your choice)\\
-Home: http://bidi.berlios.de\\
+\begin{lstlisting}[numbers=none,backgroundcolor=\color{skugga}]
+bidi package (Support for bidirectional typesetting with XeLaTeX and LuaLaTeX)
+Description: A convenient interface for typesetting bidirectional
+texts with XeLaTeX and LuaLaTeX. The package includes adaptations for use
+with many other commonly-used packages.
+Copyright (c) 2009-2010 Vafa Khalighi
+v1.0.5, <revision 253>, 2010/07/25
+License: LaTeX Project Public License, version 1.3c or higher (your choice)
+Home: http://bidi.berlios.de
Location on CTAN: /macros/xetex/latex/bidi
-\end{minipage}}
-\end{center}
-\subsection{PDF Creator of \textsf{bidi} Documents}
-If you use \textsf{bidi} package to produce a PDF file, the \textsf{bidi} package writes itself to the Application field of the PDF file and hyperref would have no effect since this is done at the beggining of the document. Thus if you produce a PDF file using the \textsf{bidi} package and then you look at the application field in the properties of the PDF file, you will see this:
-
-\begin{center}
-\colorbox{yellow}{\begin{minipage}{0.6\textwidth}%
-Bidi \bidiversion\ <\bidirevision> Copyright © 2009-2010 Vafa Khalighi
-\end{minipage}}
-\end{center}
-Check out the properties of this document to verify this.
+\end{lstlisting}
\section{Basics}
\subsection{Loading The Package}
You can load the package in the ordinary way;
@@ -63,13 +50,13 @@ 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 loade, because otherwise you are certainly going to overwrite \textsf{bidi}'s definitions and consequently, you will not get the expected output.
+\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}[caption={Wrong Order Of Loading \textsf{bidi} Package},captionpos=t]
+\begin{lstlisting}
\documentclass{minimal}
\usepackage{bidi}
\usepackage{graphicx}
@@ -78,7 +65,7 @@ This is just a test.
\end{document}
\end{lstlisting}
Where \textsf{graphicx} is loaded after \textsf{bidi}. If you run \texttt{xelatex} on this document, you will get an error which looks like this:
-\begin{lstlisting}[numbers=none]
+\begin{lstlisting}[numbers=none,backgroundcolor=\color{skugga}]
! Package bidi Error: Oops! you have loaded package graphicx after bidi package
. Please load package graphicx before bidi package, and then try to run xelatex
on your document again.
@@ -102,7 +89,7 @@ l.4 \begin{document}
\item \Lcs{bidirevision} gives the current subversion revision of the package.
\item \Lcs{bididate} gives the current date of the package.
\end{itemize}
-\begin{lstlisting}[morekeywords={bidiversion,bidirevision,bididate},captionpos=t,caption={Version, SVN Revision and Date Commands}]
+\begin{lstlisting}[morekeywords={bidiversion,bidirevision,bididate}]
\documentclass{article}
\usepackage{bidi}
\begin{document}
@@ -122,15 +109,19 @@ It is clear that if you do not pass any of these options to the package, you wil
\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={setRTL,setLTR},captionpos=t,caption={Paragraph Direction Switching}]
+\begin{lstlisting}
\documentclass{article}
\usepackage{bidi}
\begin{document}
\setRTL%
-Anyone who reads Old and Middle English literary texts will be familiar with the mid-brown volumes of the EETS, with the symbol of Alfred's jewel embossed on the front cover.
+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.
+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}
@@ -142,14 +133,18 @@ Anyone who reads Old and Middle English literary texts will be familiar with the
\item With \texttt{LTR} environment, you can typeset LTR paragraphs.
\item With \texttt{RTL} environment, you can typeset RTL paragraphs.
\end{itemize}
-\begin{lstlisting}[captionpos=t,caption={\texttt{RTL} and \texttt{LTR} Environments}]
+\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.
+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.
+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}
@@ -164,20 +159,26 @@ And we are still typesetting RTL.
\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={LRE,RLE},captionpos=t,caption={Typesetting Short LTR and RTL texts}]
+\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.
+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.
+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{footnote}\OptArg{num}\Largb{\Larga{text}}\quad\Lcs{LTRfootnote}\OptArg{num}\Largb{\Larga{text}}\\
+\Lcs{RTLfootnote}\OptArg{num}\Largb{\Larga{text}}\quad
+\Lcs{setfootnoteRL}\quad\Lcs{setfootnoteLR}\\
+\Lcs{unsetfootnoteRL}\quad
\Lcs{thanks}\Largb{\Larga{text}}\quad\Lcs{LTRthanks}\Largb{\Larga{text}}\quad\Lcs{RTLthanks}\Largb{\Larga{text}}
\end{BDef}
\begin{itemize}
@@ -191,7 +192,8 @@ Anyone who reads Old and Middle English \RLE{Short RTL text} literary texts will
\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}}\quad\Lcs{RTLfootnotetext}\OptArg{num}\Largb{\Larga{text}}
+\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.
@@ -218,10 +220,10 @@ If you pass the \texttt{twocolumn} option to the class file and if the main dire
\subsection{RTL cases}
\begin{BDef}
\Lcs{rcases}\Largb{\Lcs{text}\Largb{\Larga{brach1}}\Lcs{cr}\Lcs{text}\Largb{\Larga{brach2}}\Lcs{cr}%
-\Lcs{text}\Largb{\Larga{brach3}}\ldots}\Lcs{text}\Largb{\Larga{main}}
+\Lcs{text}\Largb{\Larga{brach3}}\ldots}\\\Lcs{text}\Largb{\Larga{main}}
\end{BDef}
\Lcs{rcases} is defined in bidi for typesetting RTL cases. \Lcs{text} is defined in \textsf{amsmath} package, so this means that you need to load \textsf{amsmath} package too.
-\begin{lstlisting}[morekeywords={setRTL,rcases,text},captionpos=t,caption={RTL Cases}]
+\begin{lstlisting}[morekeywords={rcases,text}]
\documentclass{article}
\usepackage{amsmath}
\usepackage{bidi}
@@ -242,7 +244,7 @@ If you pass the \texttt{twocolumn} option to the class file and if the main dire
\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},captionpos=t,caption={Using A Dash Instead A Dot For Seperation Marks}]
+\begin{lstlisting}[morekeywords={SepMark,subsection,subsubsection}]
\documentclass{article}
\usepackage{bidi}
\SepMark{-}
@@ -255,7 +257,7 @@ Generally in Standard \LaTeX, dot is used for separation between section numbers
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={SepMark,theequation,thesection},captionpos=t,caption={Redefining \Lcs{theequation}}]
+\begin{lstlisting}[morekeywords={theequation,thesection,SepMark}]
\documentclass{article}
\usepackage{bidi}
\SepMark{-}
@@ -273,14 +275,12 @@ x^2+y^2=z^2
\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{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.
-
-Please note that if you would like to define any page style for headers and footers such as \Lcs{pagestyle}\Largb{headings}, you should do it after loading \textsf{bidi} package because \textsf{bidi} for proper direction typesetting of headers and footers redefines page styles for headers and footers and so if you change your headers and footers before loading \textsf{bidi} package, your definitions for headers and footers would have no effect at all.
\subsection{Tabular Typesetting}
In RTL mode, tabular are typeset RTL and in LTR mode, tabular are typeset LTR.
\subsection{Equation Numbers}
For \texttt{reqno}, equation numbers are on the right hand side and for \texttt{leqno}, equation numbers are on the left hand side, independent on the current mode.
\section{Support For Various Packages and Classes}
-The \textsf{bidi} package supports \textsf{amsmath}, \textsf{amsthm}, \textsf{array}, \textsf{arydshln}, \textsf{breqn}, \textsf{color}, \textsf{colortbl}, \textsf{draftwatermark}, \textsf{fancyhdr}, \textsf{flowfram}, \textsf{graphicx}, \textsf{hyperref}, \textsf{listings}, \textsf{minitoc}, \textsf{multicol}, \textsf{pdfpages}, \textsf{pstricks}, \textsf{ragged2e}, \textsf{stabular}, \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{standrad article}, \textsf{standard book}, \textsf{bookest}, \textsf{extbook}, \textsf{standard letter}, \textsf{memoir}, \textsf{rapport3}, \textsf{refrep}, \textsf{standard report}, \textsf{scartcl}, \textsf{scrbook}, \textsf{scrreprt} classes and any other packages and classes that relies on these packages and classes. This means, you can use all these packages and classes in addition to other packages and classes that rely on these packages and classes and use their functionality fully for your bidirectional documents.
+The \textsf{bidi} package supports \textsf{amsmath}, \textsf{amsthm}, \textsf{array}, \textsf{arydshln}, \textsf{breqn}, \textsf{caption}, \textsf{color}, \textsf{colortbl}, \textsf{draftwatermark}, \textsf{fancyhdr}, \textsf{flowfram}, \textsf{graphicx}, \textsf{hyperref}, \textsf{listings}, \textsf{minitoc}, \textsf{multicol}, \textsf{pdfpages}, \textsf{pstricks}, \textsf{ragged2e}, \textsf{stabular}, \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{standrad article}, \textsf{standard book}, \textsf{bookest}, \textsf{extbook}, \textsf{standard letter}, \textsf{memoir}, \textsf{rapport3}, \textsf{refrep}, \textsf{standard report}, \textsf{scartcl}, \textsf{scrbook}, \textsf{scrreprt} classes and any other packages and classes that relies on these packages and classes. This means, you can use all these packages and classes in addition to other packages and classes that rely on these packages and classes and use their functionality fully for your bidirectional documents.
We now give some details that you should know about the supported packages or classes.
\subsection{Color}
@@ -292,8 +292,7 @@ For having coloured tabular, you can use \textsf{colortbl} package.
\subsection{Hyperref}
The \textsf{hyperref} package works fine with bidirectional documents if and only if, your link will not span more than a line. If your link spans more than a line, then your whole document, or page or paragraph may be linked.
-\subsection{\textsf{fancyhdr} Package}
-When using \textsf{fancyhdr} package, any commands of \textsf{fancyhdr} package such as \Lcs{pagestyle}\Largb{fancy}, should be done after loading \textsf{bidi} package.
+
\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}
@@ -330,6 +329,8 @@ If you need to change the default distance between two verses, you can do just t
\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.
@@ -356,7 +357,7 @@ The class is used with
article class will be appropriate for a presentation class, e. g. twocolumn.
A simple example document:
-\begin{lstlisting}[caption={\textsf{bidipresentation} Sample},morekeywords={AddToShipoutPicture,includegraphics,distance}]
+\begin{lstlisting}[morekeywords={AddToShipoutPicture,includegraphics,distance}]
\documentclass[12pt]{bidipresentation}
\usepackage{eso-pic}
\usepackage[RTLdocument]{bidi}
@@ -433,12 +434,14 @@ If the main direction of the document is RTL, \Lcs{if@RTLmain} is true and if th
\Lcs{if@Latin} inside any environment that uses Latin font is true and inside any environment that uses RTL font is false.
\subsection{Tags Internal Macro}
\begin{BDef}
-\Lcs{@iftagsloaded}\Largb{\Larga{tags name}}\Largb{\Larga{do thing(s) if the tag is loaded}}\Largb{\Larga{do thing(s) if the tag is not loaded}}
+\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}}\\
+\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.
@@ -454,7 +457,8 @@ If the tabular is typeset RTL, \Lcs{if@RTLtab} is true and if the tabular is typ
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}}\quad\Lcs{@ensure@LR}\Largb{\Larga{text}}\\
+\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}
diff --git a/Master/texmf-dist/doc/xelatex/bidi/bidisample2e.pdf b/Master/texmf-dist/doc/xelatex/bidi/bidisample2e.pdf
new file mode 100644
index 00000000000..a4bb1e0d994
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/bidisample2e.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/xelatex/bidi/bidismall2e.pdf b/Master/texmf-dist/doc/xelatex/bidi/bidismall2e.pdf
new file mode 100644
index 00000000000..4961db4e01a
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/bidismall2e.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/xelatex/bidi/picture.jpg b/Master/texmf-dist/doc/xelatex/bidi/picture.jpg
new file mode 100644
index 00000000000..ef48e69ce85
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/picture.jpg
Binary files differ
diff --git a/Master/texmf-dist/doc/xelatex/bidi/presentation-sample.pdf b/Master/texmf-dist/doc/xelatex/bidi/presentation-sample.pdf
new file mode 100644
index 00000000000..a8dd715930a
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/presentation-sample.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/xelatex/bidi/presentation-sample.tex b/Master/texmf-dist/doc/xelatex/bidi/presentation-sample.tex
index b7464609633..e562e9d83e9 100644
--- a/Master/texmf-dist/doc/xelatex/bidi/presentation-sample.tex
+++ b/Master/texmf-dist/doc/xelatex/bidi/presentation-sample.tex
@@ -1,13 +1,9 @@
\documentclass[12pt,twoside]{bidipresentation}
-\usepackage{eso-pic}
-\usepackage{graphicx}
\usepackage{fontspec}
\setmainfont[Script=Arabic,Mapping=farsidigits]{XB Niloofar}
\usepackage[RTLdocument]{bidi}
\pagestyle{pres}
-\AddToShipoutPicture{
-\includegraphics{gradient.png}
-}
+
\begin{document}
\begin{titlepage}
diff --git a/Master/texmf-dist/doc/xelatex/bidi/test-arydshln.pdf b/Master/texmf-dist/doc/xelatex/bidi/test-arydshln.pdf
new file mode 100644
index 00000000000..5a250e1d019
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/test-arydshln.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/xelatex/bidi/test-arydshln.tex b/Master/texmf-dist/doc/xelatex/bidi/test-arydshln.tex
new file mode 100644
index 00000000000..a19c6994bd1
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/test-arydshln.tex
@@ -0,0 +1,27 @@
+\documentclass{article}
+\usepackage{arydshln}
+\usepackage{bidi}
+\title{Testing \textsf{arydshln} Package in LTR and RTL modes}
+\author{}
+\date{}
+\begin{document}
+\maketitle
+\section{LTR Mode}
+\begin{center}
+\begin{tabular}{|l::c;{2pt/2pt}r|}\hline
+A&B&C\\\hdashline[1pt/1pt]
+AAA&BBB&CCC\\\cdashline{1-2}[.4pt/1pt]
+\multicolumn{2}{|l;{2pt/2pt}}{AB}&C\\\hdashline\hdashline
+\end{tabular}
+\end{center}
+\section{RTL Mode}
+\begin{RTL}
+\begin{center}
+\begin{tabular}{|r::c;{2pt/2pt}l|}\hline
+A&B&C\\\hdashline[1pt/1pt]
+AAA&BBB&CCC\\\cdashline{1-2}[.4pt/1pt]
+\multicolumn{2}{|r;{2pt/2pt}}{AB}&C\\\hdashline\hdashline
+\end{tabular}
+\end{center}
+\end{RTL}
+\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/doc/xelatex/bidi/test-bidi.pdf b/Master/texmf-dist/doc/xelatex/bidi/test-bidi.pdf
new file mode 100644
index 00000000000..7f2a8336f4f
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/test-bidi.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/xelatex/bidi/test-brochure.pdf b/Master/texmf-dist/doc/xelatex/bidi/test-brochure.pdf
new file mode 100644
index 00000000000..42956be42c8
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/test-brochure.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/xelatex/bidi/test-brochure.tex b/Master/texmf-dist/doc/xelatex/bidi/test-brochure.tex
new file mode 100644
index 00000000000..3066e0e4b41
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/test-brochure.tex
@@ -0,0 +1,360 @@
+\documentclass[a4paper]{report}
+
+\usepackage[landscape,margin=1in]{geometry}
+\usepackage{color}
+\usepackage[RL]{flowfram}% we enable `RL' option for RTL multicolumn typesetting (see flowfram package documentation)
+\usepackage[colorlinks,setpagesize=false]{hyperref}
+
+\usepackage[RTLdocument]{bidi}
+% adjust \textheight so that it is an integer multiple of
+% \baselineskip
+\adjustheight{\textheight}
+
+% set up pagelayout. One column for title page
+% two columns for the rest.
+\onecolumninarea[1,2]{0.6\textwidth}{\textheight}{0.4\textwidth}{0pt}
+\twocolumninarea[>2]{0.6\textwidth}{\textheight}{0.4\textwidth}{0pt}
+
+% Set up dynamic frame on the left. This is where
+% the headings will go.
+
+\newdynamicframe{0.4\textwidth}{\textheight}{0pt}{0pt}[left]
+
+% put the chapter headings in this frame
+\dfchaphead*{left}
+% Modify the default style
+\renewcommand{\DFchapterstyle}[1]{%
+\raggedright\Huge\slshape\MakeUppercase{#1}\par}
+
+% Make static frames for background (only for page 1)
+\vtwotone[1]{0.6\paperwidth}{[cmyk]{0.65,0.13,0,0}}{backleft}%
+{0.4\paperwidth}{[cmyk]{0.94,0.54,0,0}}{backright}
+
+% Make a border along the top of each page
+\vtwotonetop{1cm}{0.6\paperwidth}{[cmyk]{0.65,0.13,0,0}}{topleft}%
+{0.4\paperwidth}{[cmyk]{0.94,0.54,0,0}}{topright}
+
+% make a static frame for the logo
+\newstaticframe{0.2\textwidth}{0.25\textheight}{0pt}{0pt}[logo]
+
+% empty page style, because I am going to make my own
+\pagestyle{empty}
+
+% Each new chapter sets \thispagestyle{\chapterfirstpagestyle}, change this empty as well
+\renewcommand{\chapterfirstpagestyle}{empty}
+
+% Now make a frame in which to put my own customized footer
+\newdynamicframe[>1]{\textwidth}{\headheight}{0pt}{-\footskip}[footer]
+
+% set the contents of the frame:
+\setdynamiccontents*{footer}{%
+School of Computing Sciences, University of East Anglia\hfill
+http://www.cmp.uea.ac.uk/\hfill
+page \thepage\ of \pageref*{lastpage}}
+
+
+\newcommand{\env}[1]{\texttt{#1}}
+\newcommand{\cmdname}[1]{\texttt{\symbol{92}#1}}
+\newcommand{\meta}[1]{\textnormal{\textless\textit{#1}\textgreater}}
+
+\begin{document}
+
+% not a very interesting logo
+\setstaticcontents*{logo}{\sffamily{\Huge\slshape FLF} Flowfram}
+
+{\noindent
+\slshape\Huge\MakeUppercase{A Sample Brochure}\par
+\vskip0.5in
+\noindent\large\MakeUppercase{Nicola Talbot}\\
+}
+
+
+\chapter{Introduction}
+
+The \textsl{flowfram} package is designed to enable you to create
+frames in a document such that the
+contents of the \env{document} environment flow from one
+frame to the next in the order that they were defined.
+This is useful for creating posters
+or magazines or any other form of document that does not
+conform to the standard one or two column layout.
+
+This is a modified version of the manual for the \textsl{flowfram} package.
+It is intended to illustrated what can be done. See the full
+manual (ffuserguide.pdf) for
+a comprehensive description, as some parts of this document
+may now be out of date.
+If the columns are very narrow, it may be better to
+use \cmdname{raggedright}, otherwise \TeX\ may have a
+problem working out the line breaks.
+
+This is column~\thedisplayedframe.
+
+The main type of frame is the flow frame. This is described on
+column~\ref{flow:flowframe} on page~\pageref{flow:flowframe}.
+The order used to draw the contents of each frame on the page
+is described in column~\ref{flow:stacking} on
+page~\pageref{flow:stacking}. Floats are describe in
+column~\ref{flow:floats} on page~\pageref{flow:floats}.
+
+\chapter{Setting up Frames}
+
+This is column~\thedisplayedframe.
+
+The \textsl{flowfram} package provides three types of frame:
+{flow frames}, {static
+frames} and {dynamic frames}.
+
+\section*{Flow Frames}
+
+\labelflow{flow:flowframe}
+The flow frame is the principle type of frame.
+The text of the \env{document} environment will flow from
+one frame to the next in order of definition. Each
+flow frame has an associated width, height,
+position on the page, and optionally a border.
+
+It is recommended that all the flow frames in a document
+have the same width, otherwise problems may occur
+when a paragraph spans to flow frames of unequal
+widths. This is because \TeX's output routine does not
+register the change in \cmdname{hsize} until it reaches
+a paragraph break. If it is absolutely necessary for
+flow frames to have unequal widths, judicious use of
+\cmdname{framebreak} is required.
+
+\section*{Static Frames}
+
+A static frame is a rectangular area in which text neither
+flows into, nor flows out of. The contents must be set
+explicitly, and once set, the contents of the static frame will
+remain the same on each page until it is explicitly
+changed. Thus, a static frame can be used, for example, to make
+a company logo appear in the same place on every page.
+
+\section*{Dynamic Frames}
+
+A dynamic frame is similar to a static frame, but its contents
+are re-typeset on each page. (A static frame stores its
+contents in a savebox, whereas a dynamic frame stores its
+contents in a macro).
+
+This is column~\thedisplayedframe.
+
+\chapter{Frame Attributes}
+\label{sec:modattr}
+
+Once you have defined the {flow frames}, {static frames} and
+{dynamic frames}, their attributes can be changed.
+The three types of frame mostly have the
+same set of attributes, but some are specific to a certain type.
+The available attributes are as follows
+(\textsuperscript{\textbf{F}} indicates the key is
+only available for {flow frames},
+\textsuperscript{\textbf{S}} indicates the key is only available
+for {static frames}
+and \textsuperscript{\textbf{D}} indicates the key
+is only available for {dynamic frames}):
+
+\begin{description}
+\item[width=\meta{length}]\mbox{}\par The width of the frame.
+
+\item[height=\meta{length}]\mbox{}\par The height of the frame.
+
+\item[x=\meta{length}]\mbox{}\par The x-coordinate of the frame.
+
+\item[y=\meta{length}]\mbox{}\par The y-coordinate of the frame.
+
+\item[border=\meta{style}]\mbox{}\par The style of the border around the
+frame, this can take the values: \texttt{none} (no border),
+\texttt{plain} (plain border) or the name of a \LaTeX\
+frame making command without the preceding backslash.
+The value \texttt{fbox} is equivalent to \texttt{plain}.
+
+\item[offset=\meta{offset}]\mbox{}\par The border offset, if it is a
+user-defined border. This is the distance from the outer
+edge of the left hand border to the left edge of the
+bounding box of the text inside the border. The \textsl{flowfram}
+package is able to compute the border for
+known frame making commands.
+If you define your own frame making command, you may need to
+specify the offset explicitly, or the frames
+may end up shifted to the right or left.
+
+\item[bordercolor=\meta{colour}]\mbox{}\par The colour of the border
+if you are using a standard frame making command.
+The colour can either be specified as, e.g.\ \texttt{green},
+or including the colour model, for example
+\verb/[rgb]{0,1,0}/.
+
+\item[textcolor=\meta{colour}]\mbox{}\par The text colour for that
+frame. Again, the colour can either be specified as,
+e.g.\ \texttt{green}, or including the colour model,
+for example \verb/[rgb]{0,1,0}/.
+
+\item[pages=\meta{page list}]\mbox{}\par The {list of
+pages} for which the frame
+should appear. This can either have the values: \texttt{all},
+\texttt{even}, \texttt{odd} or \texttt{none} (the latter
+removes the frame from that point on---useful if you
+have multiple pages with the same number), or it can be a
+comma-separated list of single pages, or
+{page ranges}.
+
+\item[margin=\meta{side}\textsuperscript{F}]\mbox{}\par The side of
+the flow frame that its corresponding margin should go on. This
+can take the values \texttt{left} or \texttt{right}.
+
+\item[clear=\meta{boolean}\textsuperscript{S}] If this value
+is set, the static frame will be cleared at the start of the
+next page.
+
+\item[style=\meta{cmd}\textsuperscript{D}]\mbox{}\par This should be
+the name of a command \emph{without} the preceding backslash,
+to be applied to the contents of the specified dynamic frame.
+The command may either be a declaration, for example \verb/style=large/
+which will set the contents of all the dynamic frames in a
+large font, or it can be a command that takes a single argument,
+for example \verb/style=textbf/
+which will make the text for all the dynamic frames come out in
+bold. To unset a style, do \verb/style=none/.
+
+\end{description}
+
+\chapter{Miscellaneous}
+
+\section*{Page Layout}
+
+The \textsl{flowfram} package has the package option \texttt{draft}
+which will draw the {bounding boxes} for
+each frame defined. At the bottom right of each
+bounding box (except for the bounding box denoting the
+typeblock), a marker will be shown to indictate the type
+of frame, its IDN and its IDL.
+
+You can see the layout for the current page (irrespective of
+whether or not the \texttt{draft} option has been set) using
+the command:\newline
+\cmdname{flowframeshowlayout}
+
+The headers and footers will appear as usual (but will not
+be shown in draft mode), according to the format given by
+\cmdname{pagestyle}.
+
+\section*{Frame Stacking Order}
+
+\labelflow{flow:stacking}
+The material on each page is placed in the following order:
+\begin{enumerate}
+\item Each static frame defined for that page in ascending
+order of IDN.
+
+\item Each flow frame defined for that page in ascending
+order of IDN.
+
+\item Each dynamic frame defined for that page in ascending
+order of IDN.
+
+\item {Bounding boxes} if the \texttt{draft}
+package option has been used.
+\end{enumerate}
+
+This ordering can be used to determine if you want something
+to overlay or underlay everything else on the page.
+
+\section*{Prematurely Ending a Flow Frame}
+
+You can force text to move immediately to the next defined
+flow frame using one of the standard \LaTeX\ page breaking commands
+which work in an analogous way to the way they
+work in standard two column mode.
+
+The command \cmdname{framebreak} is provided for situations
+where a paragraph spans two flow frames
+of different widths, as \TeX's output routine does not
+adjust to the new value of \cmdname{hsize} until the last
+paragraph of the previous frame has ended. As a
+result, the end of the paragraph at the beginning of the new
+flow frame retains the width of the previous flow frame.
+
+If you want to start a new page, rather than simply move to the
+next frame, use the command\newline
+\cmdname{finishthispage}.
+
+\section*{Floats}
+
+\labelflow{flow:floats}
+Since floats (such as figures and tables) can only go in
+{flow frames}, this package provides
+the additional environments:
+\env{staticfigure} and
+\env{statictable} which can be used in static frames
+and dynamic frames. Unlike their \env{figure} and
+\env{table} counterparts, they are fixed in place, and
+so do not take an optional placement specifier. The
+\cmdname{caption} and \cmdname{label} commands can
+be used within \env{staticfigure} and \env{statictable} as
+usual.
+
+The standard \env{figure} and \env{table} commands will
+behave as usual in the flow frames, but their starred versions,
+\env{figure*} and \env{table*} behave no differently
+from \env{figure} and \env{table}.
+
+\section*{Global Values}
+
+The following macros can be changed using\linebreak \cmdname{renewcommand}:
+
+\begin{itemize}
+\item \cmdname{setffdraftcolor}
+
+This sets the colour of the bounding box
+when it is displayed in draft mode.
+
+\item
+\cmdname{setffdrafttypeblockcolor}
+
+This sets the colour of
+the bounding box of the typeblock when it is displayed
+in draft mode.
+
+\item \cmdname{fflabelfont}
+
+This sets the font size for the bounding box markers in
+draft mode.
+
+\end{itemize}
+
+The following are lengths, which can be changed using
+\cmdname{setlength}:
+
+\begin{itemize}
+\item \cmdname{fflabelsep}
+
+This is the distance from the right hand side of the
+bounding box at which to place the bounding box marker.
+
+\item \cmdname{flowframesep}
+
+This is the gap between the text of the frame and
+its border, for the standard border types.
+
+\item \cmdname{flowframerule}
+
+This is the width of the frame's border, if using
+a border given by a frame making command that uses \cmdname{fboxsep}
+to set its border width.
+
+\item \cmdname{columnsep}
+
+This is the horizontal distance between flow frames when using one of the
+\cmdname{Ncolumn} type of commands
+
+\item \cmdname{vcolumnsep}
+
+This is the vertical distance between the flow frames and the static or
+dynamic frame when using one of the \cmdname{Ncolumntop} type of commands.
+\end{itemize}
+
+\label{lastpage}
+\end{document}
diff --git a/Master/texmf-dist/doc/xelatex/bidi/test-casualcv.pdf b/Master/texmf-dist/doc/xelatex/bidi/test-casualcv.pdf
new file mode 100644
index 00000000000..6578ceb310d
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/test-casualcv.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/xelatex/bidi/test-casualcv.tex b/Master/texmf-dist/doc/xelatex/bidi/test-casualcv.tex
new file mode 100644
index 00000000000..7e6c03378e1
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/test-casualcv.tex
@@ -0,0 +1,71 @@
+\documentclass[11pt,a4paper]{bidimoderncv}
+\cvtheme[orange]{bidicasual} % you can use orange, red, green and blue as options
+\usepackage[scale=0.8]{geometry}
+\usepackage{fontspec}
+\usepackage[RTLdocument]{bidi}
+\def\refname{تألیفات}
+\setmainfont[Script=Arabic,Mapping=parsidigits]{XB Niloofar}
+\newfontfamily\rmfamily[Mapping=tex-text]{Linux Libertine}
+\AtBeginDocument{\recomputelengths}
+\resumename{رزومه}
+\firstname{سید محمد}
+\familyname{یزدی اصفهانی}
+\title{رزومهٔ من}
+\address{تهران، خیابان آزادی پلاک ۹}
+\mobile{۰۹۱۸۹۶۹۴۹۶}
+\phone{۹۸۹۰۸۳۴۱}
+\fax{۹۸۹۰۸۳۴۲}
+\email{vafa@users.berlios.de}
+\extrainfo{اطلاعات اضافی}
+\photo[64pt]{picture}
+\quote{نقل قول}
+\begin{document}
+\maketitle
+\section{تحصیلات}
+\cventry{سال--سال}{درجه}{دانشگاه}{شهر}{\textit{نمره}}{توضیح} % arguments 3 to 6 are optional
+\cventry{سال--سال}{درجه}{دانشگاه}{شهر}{\textit{نمره}}{توضیح} % arguments 3 to 6 are optional
+
+\section{پایان‌نامهٔ کارشناسی ارشد}
+\cvline{عنوان}{\emph{عنوان}}
+\cvline{استاد راهنما}{استاد راهنما}
+\cvline{توضیح}{\small چکیده کوچک پایان‌نامه}
+
+\section{تجربیات}
+\subsection{عنوان}
+\cventry{سال--سال}{نام شغل}{صاحب کار}{شهر}{}{توضیح} % arguments 3 to 6 are optional
+\cventry{سال--سال}{نام شغل}{صاحب کار}{شهر}{}{توضیح} % arguments 3 to 6 are optional
+\subsection{متفرقه}
+\cventry{سال--سال}{نام شغل}{صاحب کار}{شهر}{}{توضیح خط ۱\newline{}توضیح خط ۲}% arguments 3 to 6 are optional
+
+\section{زبانها}
+\cvlanguage{زبان ۱}{درجه مهارت}{نظر}
+\cvlanguage{زبان ۲}{درجه مهارت}{نظر}
+\cvlanguage{زبان ۳}{درجه مهارت}{نظر}
+
+\section{مهارتهای رایانه‌ای}
+\cvcomputer{طبقه ۱}{یک، دو، سه}{طبقه ۴}{یک، دو، سه}
+\cvcomputer{طبقه ۲}{یک، دو، سه}{طبقه ۵}{یک، دو، سه}
+\cvcomputer{طبقه ۳}{یک، دو، سه}{طبقه ۶}{یک، دو، سه}
+
+\section{علاقه‌ها}
+\cvline{علاقه ۱}{\small توضیح}
+\cvline{علاقه ۲}{\small توضیح}
+\cvline{علاقه ۳}{\small توضیح}
+
+\renewcommand{\listitemsymbol}{-} % change the symbol for lists
+
+\section{بعدی ۱}
+\cvlistitem{شماره ۱}
+\cvlistitem{شماره ۲}
+\cvlistitem[+]{شماره ۳} % optional other symbol
+
+\section{بعدی ۲}
+\cvlistdoubleitem[\Neutral]{شماره ۱}{شماره ۴}
+\cvlistdoubleitem[\Neutral]{شماره ۲}{شماره ۵}
+\cvlistdoubleitem[\Neutral]{شماره ۳}{}
+
+\nocite{*}
+\bibliographystyle{plain}
+\bibliography{publications} % 'publications' is the name of a BibTeX file
+
+\end{document}
diff --git a/Master/texmf-dist/doc/xelatex/bidi/test-classiccv.pdf b/Master/texmf-dist/doc/xelatex/bidi/test-classiccv.pdf
new file mode 100644
index 00000000000..1764e6a5a11
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/test-classiccv.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/xelatex/bidi/test-classiccv.tex b/Master/texmf-dist/doc/xelatex/bidi/test-classiccv.tex
new file mode 100644
index 00000000000..a1fdd2c3437
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/test-classiccv.tex
@@ -0,0 +1,71 @@
+\documentclass[11pt,a4paper]{bidimoderncv}
+\cvtheme[green]{bidiclassic} % you can use orange, red, green, grey and blue as options
+\usepackage[scale=0.8]{geometry}
+\usepackage{fontspec}
+\setmainfont[Script=Arabic,Mapping=parsidigits]{XB Zar}
+\newfontfamily\rmfamily[Mapping=tex-text]{Linux Libertine}
+\def\refname{تألیفات}
+\usepackage[RTLdocument]{bidi}
+\AtBeginDocument{\recomputelengths}
+\resumename{رزومه}
+\firstname{وفا}
+\familyname{خلیقی}
+\title{رزومهٔ من}
+\address{تهران، خیابان آزادی پلاک ۹}
+\mobile{۰۹۱۸۹۶۹۴۹۶}
+\phone{۹۸۹۰۸۳۴۱}
+\fax{۹۸۹۰۸۳۴۲}
+\email{me@you.com}
+\extrainfo{اطلاعات اضافی}
+\photo[64pt]{picture}
+\quote{نقل قول}
+\begin{document}
+\maketitle
+\section{تحصیلات}
+\cventry{سال--سال}{درجه}{دانشگاه}{شهر}{\textit{نمره}}{توضیح} % arguments 3 to 6 are optional
+\cventry{سال--سال}{درجه}{دانشگاه}{شهر}{\textit{نمره}}{توضیح} % arguments 3 to 6 are optional
+
+\section{پایان‌نامهٔ کارشناسی ارشد}
+\cvline{عنوان}{\emph{عنوان}}
+\cvline{استاد راهنما}{استاد راهنما}
+\cvline{توضیح}{\small چکیده کوچک پایان‌نامه}
+
+\section{تجربیات}
+\subsection{عنوان}
+\cventry{سال--سال}{نام شغل}{صاحب کار}{شهر}{}{توضیح} % arguments 3 to 6 are optional
+\cventry{سال--سال}{نام شغل}{صاحب کار}{شهر}{}{توضیح} % arguments 3 to 6 are optional
+\subsection{متفرقه}
+\cventry{سال--سال}{نام شغل}{صاحب کار}{شهر}{}{توضیح خط ۱\newline{}توضیح خط ۲}% arguments 3 to 6 are optional
+
+\section{زبانها}
+\cvlanguage{زبان ۱}{درجه مهارت}{نظر}
+\cvlanguage{زبان ۲}{درجه مهارت}{نظر}
+\cvlanguage{زبان ۳}{درجه مهارت}{نظر}
+
+\section{مهارتهای رایانه‌ای}
+\cvcomputer{طبقه ۱}{یک، دو، سه}{طبقه ۴}{یک، دو، سه}
+\cvcomputer{طبقه ۲}{یک، دو، سه}{طبقه ۵}{یک، دو، سه}
+\cvcomputer{طبقه ۳}{یک، دو، سه}{طبقه ۶}{یک، دو، سه}
+
+\section{علاقه‌ها}
+\cvline{علاقه ۱}{\small توضیح}
+\cvline{علاقه ۲}{\small توضیح}
+\cvline{علاقه ۳}{\small توضیح}
+
+\renewcommand{\listitemsymbol}{-} % change the symbol for lists
+
+\section{بعدی ۱}
+\cvlistitem{شماره ۱}
+\cvlistitem{شماره ۲}
+\cvlistitem[+]{شماره ۳} % optional other symbol
+
+\section{بعدی ۲}
+\cvlistdoubleitem[\Neutral]{شماره ۱}{شماره ۴}
+\cvlistdoubleitem[\Neutral]{شماره ۲}{شماره ۵}
+\cvlistdoubleitem[\Neutral]{شماره ۳}{}
+
+\nocite{*}
+\bibliographystyle{plain}
+\bibliography{publications} % 'publications' is the name of a BibTeX file
+
+\end{document}
diff --git a/Master/texmf-dist/doc/xelatex/bidi/test-color.pdf b/Master/texmf-dist/doc/xelatex/bidi/test-color.pdf
new file mode 100644
index 00000000000..22232053af4
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/test-color.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/xelatex/bidi/test-color.tex b/Master/texmf-dist/doc/xelatex/bidi/test-color.tex
new file mode 100644
index 00000000000..f2a9dcd7395
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/test-color.tex
@@ -0,0 +1,44 @@
+\documentclass{article}
+\usepackage{fontspec}
+\usepackage{xecolour} % for RTL coloured texts that spans more than a line
+\usepackage{fullpage}
+\usepackage{colortbl}
+\setmainfont[Scale=1,Script=Arabic,Mapping=farsidigits]{XB Kayhan}
+\usepackage{xcolor}
+\usepackage[RTLdocument]{bidi}
+\begin{document}
+این یک آزمایش است.
+
+\bigskip
+\fcolorbox{red}{yellow}{\begin{minipage}{0.8\textwidth}
+این یک متن است که من آن را داخل یک جعبهٔ زردرنگ قرار می‌دهم. این یک متن است که من آن را داخل یک جعبهٔ زردرنگ قرار می‌دهم
+\end{minipage}}
+
+این {\color{red} رنگ قرمز} است و این هم \textcolor{blue}{رنگ آبی} است همانطور که می‌بینید.
+
+\bigskip
+من اسم خودم {\color{red} وفا خلیقی} را با رنگ قرمز می‌نویسم.
+
+\bigskip
+من اسم خودم \textcolor{blue}{وفا خلیقی} را با رنگ آبی می‌نویسم.
+
+\bigskip
+\colorbox{yellow}{\begin{minipage}{0.8\textwidth}
+این یک متن است که من آن را داخل یک جعبهٔ زردرنگ قرار می‌دهم. این یک متن است که من آن را داخل یک جعبهٔ زردرنگ قرار می‌دهم
+\end{minipage}}
+
+\bigskip
+این یک پاراگراف با \blue{رنگ آبی اول است و همینطور و همینطور ما می‌توانیم از رنگاهی مختلف استفاده کنیم} و حالا
+\red{این روزها حجم اخبار و مطالب مرتبط با ایران و مسایل مربوط به آن بسیار زیاد شده وابزارهایی مانند گوگل ریدر برای مرور لیست بلند بالایی از سایتها و وبلاگ های به روز شده ، بیشتر مورد استفاده قرار میگیرد.} و حالا هم
+\darkred{یکی از مشکلاتی که در استفاده از گوگل ریدر داشتم، نامناسب بودن فونت فارسی آن بود. اگر چه عمده وبلاگها و سایتها از فونت تاهوما (مانند فونتی که این مطالب با آن نوشته شده است) استفاده می کنند اما تعدادی از وبلاگها از فونتهای دیگری که بعضی وقتها خیلی ریز هم هستند }استفاده می کنند که خواندن آن در گوگل ریدر بسیار دشوار است. متاسفانه در گوگل ریدر بخشی برای تغییر فونت وجود ندارد و نمیتوان نوع فونت یا اندازه مطالب آن را تغییر داد. بعد از کمی جستجو بر روی اینترنت راه حل جالبی را پیدا کردم که با کمی تغییر برای مطالب فارسی هم قابل استفاده است.
+اگر از فایرفاکس برای مرور مطالب جدید در گوگل ریدر استفاده می کنید، این راه حل را باری حل این مشکل به شما پیشنهاد میکنم
+
+\bigskip
+حالا نوبت جعبه‌های رنگی است یعنی مثلاً \colorbox{red}{{\color{white}سلام}} و \fcolorbox{yellow}{red}{{\color{white}این یک متن داخل جعبه رنگی است که کمی طولانی است}}
+
+
+
+
+
+
+\end{document}
diff --git a/Master/texmf-dist/doc/xelatex/bidi/test-supertabular.pdf b/Master/texmf-dist/doc/xelatex/bidi/test-supertabular.pdf
new file mode 100644
index 00000000000..d6c4539b883
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/test-supertabular.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/xelatex/bidi/test-supertabular.tex b/Master/texmf-dist/doc/xelatex/bidi/test-supertabular.tex
index 5e43860b849..af040d23c2c 100644
--- a/Master/texmf-dist/doc/xelatex/bidi/test-supertabular.tex
+++ b/Master/texmf-dist/doc/xelatex/bidi/test-supertabular.tex
@@ -65,9 +65,9 @@ zeta & GREEK SMALL LETTER ZETA & 03B6\\
\tablehead
{\bfseries Entity&\bfseries Unicode Name&\bfseries Unicode\\ \hline}
\tabletail
- {\hline \multicolumn{3}{r}{\emph{Continued on next page}}\\}
+ {\hline \multicolumn{3}{l}{\emph{Continued on next page}}\\}
\tablelasttail{\hline}
-\begin{supertabular}{lll}
+\begin{supertabular}{rrr}
alpha & GREEK SMALL LETTER ALPHA & 03B1\\
beta & GREEK SMALL LETTER BETA & 03B2\\
chi & GREEK SMALL LETTER CHI & 03C7\\
diff --git a/Master/texmf-dist/doc/xelatex/bidi/test-tabular.pdf b/Master/texmf-dist/doc/xelatex/bidi/test-tabular.pdf
new file mode 100644
index 00000000000..6da31ff5b8d
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/test-tabular.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/xelatex/bidi/test-tabular.tex b/Master/texmf-dist/doc/xelatex/bidi/test-tabular.tex
index ffc08ac933a..826f38c3515 100644
--- a/Master/texmf-dist/doc/xelatex/bidi/test-tabular.tex
+++ b/Master/texmf-dist/doc/xelatex/bidi/test-tabular.tex
@@ -36,7 +36,7 @@ In this document we test \LaTeX's default tabular in \textsf{RTL} and \textsf{LT
\setRTL
\begin{center}\small
-\begin{tabular}{|l||c|l|c|l|c|l|}
+\begin{tabular}{|r||c|r|c|r|c|r|}
\hline
& \multicolumn{2}{c|}{6.15--7.15 pm} & \multicolumn{2}{c|}{7.20--8.20 pm}
& \multicolumn{2}{c|}{8.30--9.30 pm} \\ \cline{2-7}
diff --git a/Master/texmf-dist/doc/xelatex/bidi/test-tabularx.pdf b/Master/texmf-dist/doc/xelatex/bidi/test-tabularx.pdf
new file mode 100644
index 00000000000..0e95eaa1d03
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/test-tabularx.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/xelatex/bidi/test-tabularx.tex b/Master/texmf-dist/doc/xelatex/bidi/test-tabularx.tex
index 2867c7cd17a..719c266896f 100644
--- a/Master/texmf-dist/doc/xelatex/bidi/test-tabularx.tex
+++ b/Master/texmf-dist/doc/xelatex/bidi/test-tabularx.tex
@@ -23,7 +23,7 @@ Lion & Yellow & Elephants & Tartare \\\cline{4-4}
\section{RTL}
\setRTL
-\begin{tabularx}{\linewidth}{|l|p{1.25cm}|p{1.5cm}|X|}\hline
+\begin{tabularx}{\linewidth}{|r|p{1.25cm}|p{1.5cm}|X|}\hline
\multicolumn{1}{|c|}{\textbf{Animal}}
& \textbf{Hair Colour}
& \multicolumn{2}{c|}{\textbf{Favourite foods}} \\\hline\hline
diff --git a/Master/texmf-dist/doc/xelatex/bidi/test-tabulary.pdf b/Master/texmf-dist/doc/xelatex/bidi/test-tabulary.pdf
new file mode 100644
index 00000000000..425eb03bfc7
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/test-tabulary.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/xelatex/bidi/test1-colortbl.pdf b/Master/texmf-dist/doc/xelatex/bidi/test1-colortbl.pdf
new file mode 100644
index 00000000000..ddb4b770f07
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/test1-colortbl.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/xelatex/bidi/test1-colortbl.tex b/Master/texmf-dist/doc/xelatex/bidi/test1-colortbl.tex
new file mode 100644
index 00000000000..97f20871db1
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/test1-colortbl.tex
@@ -0,0 +1,47 @@
+\documentclass{article}
+\usepackage{fontspec}
+\setmainfont[Mapping=farsidigits,Script=Arabic]{XB Kayhan}
+\usepackage{hhline}
+\usepackage{colortbl}
+\usepackage[RTLdocument]{bidi}
+\begin{document}
+این فقط یک آزمایش است
+\begin{center}
+\setlength\arrayrulewidth{5pt}
+\setlength\doublerulesep{5pt}
+ \renewcommand{\arraystretch}{2}
+ \definecolor{orange}{cmyk}{0,0.61,0.87,0}
+ \definecolor{indigo}{cmyk}{0.8,0.9,0,0}
+ \definecolor{violet}{cmyk}{0.6,0.9,0,0}
+ \newcommand\rainbowline[1]{%
+ \hhline{%
+ >{\arrayrulecolor {red}\doublerulesepcolor[rgb]{.3,.3,1}}%
+ |#1:=%
+ >{\arrayrulecolor{orange}\doublerulesepcolor[rgb]{.4,.4,1}}%
+ =%
+ >{\arrayrulecolor{yellow}\doublerulesepcolor[rgb]{.5,.5,1}}%
+ =%
+ >{\arrayrulecolor {green}\doublerulesepcolor[rgb]{.6,.6,1}}%
+ =%
+ >{\arrayrulecolor {blue}\doublerulesepcolor[rgb]{.7,.7,1}}%
+ =%
+ >{\arrayrulecolor{indigo}\doublerulesepcolor[rgb]{.8,.8,1}}%
+ =%
+ >{\arrayrulecolor{violet}\doublerulesepcolor[rgb]{.9,.9,1}}%
+ =:#1|%
+ }}
+ \arrayrulecolor{red}
+ \doublerulesepcolor[rgb]{.3,.3,1}
+ \begin{tabular}{||*7{>{\columncolor[gray]{.9}}c}||}
+ \rainbowline{t}%
+ \arrayrulecolor{violet}\doublerulesepcolor[rgb]{.9,.9,1}
+ وفا&خلیقی&یک&دانشجوی&ریاضی&است&
+ \multicolumn{1}{>{\columncolor[gray]{.9}}c||}{حرف آخر}\\
+ \rainbowline{}%
+ 1&2&3&4&5&6&
+ \multicolumn{1}{>{\columncolor[gray]{.9}}c||}{7}\\
+ \rainbowline{b}%
+ \end{tabular}
+ \end{center}
+این صرفاً یک آزمایش است
+\end{document}
diff --git a/Master/texmf-dist/doc/xelatex/bidi/test1-wrapfig.pdf b/Master/texmf-dist/doc/xelatex/bidi/test1-wrapfig.pdf
new file mode 100644
index 00000000000..2e2047a40aa
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/test1-wrapfig.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/xelatex/bidi/test2-colortbl.pdf b/Master/texmf-dist/doc/xelatex/bidi/test2-colortbl.pdf
new file mode 100644
index 00000000000..d682c51ce15
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/test2-colortbl.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/xelatex/bidi/test2-colortbl.tex b/Master/texmf-dist/doc/xelatex/bidi/test2-colortbl.tex
new file mode 100644
index 00000000000..63b50618837
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/test2-colortbl.tex
@@ -0,0 +1,28 @@
+\documentclass{article}
+\usepackage{fullpage}
+\usepackage{fontspec}
+\usepackage{colortbl}
+\setmainfont[Scale=1,Script=Arabic,Mapping=farsidigits]{XB Kayhan}
+\usepackage[RTLdocument]{bidi}
+\begin{document}
+این فقط یک آزمایش است
+
+\setlength{\extrarowheight}{2mm}
+\setlength{\tabcolsep}{2mm}
+\begin{center}
+\begin{tabular}{|l|%
+>{\columncolor{yellow}}c|c|>{\columncolor{yellow}}c|c|%
+>{\columncolor{red}\bfseries}c<{\textsc{GBP}}|}
+\hline
+\multicolumn{3}{>{\columncolor{red}}r}{\color{white}\textbf{لَنْدَنْ}}
+&\multicolumn{3}{>{\columncolor{red}}l}{\color{white}\textbf{قیمت}}
+\\[1pt]
+\hline
+سیدنی & OG4G &سشنبه ۱۰ اکتبر &دوشنبه ۲۱ اکتبر یا ۲۸‌ام &11 یا ۱۸ روز &999\\
+& &سشنبه ۱۷ اکتبر &دوشنبه ۲۱ اکتبر یا ۲۸‌ام & 4 یا ۱۱ روز &999\\
+& OG7A &یکشنبه ۱۱ اکتبر &دوشنبه ۲۱ اکتبر یا ۲۸‌ام & 8 یا ۱۵ روز &999\\
+& &یکشنبه ۲۰ اکتبر &دوشنبه ۲۸ اکتبر & 8 روز &999\\
+\hline
+\end{tabular}
+\end{center}
+\end{document}
diff --git a/Master/texmf-dist/doc/xelatex/bidi/test2-wrapfig.pdf b/Master/texmf-dist/doc/xelatex/bidi/test2-wrapfig.pdf
new file mode 100644
index 00000000000..e915bd611be
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/test2-wrapfig.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/xelatex/bidi/test3-wrapfig.pdf b/Master/texmf-dist/doc/xelatex/bidi/test3-wrapfig.pdf
new file mode 100644
index 00000000000..cf73f50ea25
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/test3-wrapfig.pdf
Binary files differ