summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/xelatex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/xelatex')
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/ChangeLog108
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/README.doc23
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/bibitem.pdfbin0 -> 2936 bytes
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/bidi-logo.pdfbin0 -> 12525 bytes
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/bidi-logo.tex704
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/bidi-manual.pdfbin0 -> 200068 bytes
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/bidi-manual.tex856
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/bidisample2e.tex198
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/bidismall2e.tex30
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/gull.jpgbin0 -> 761651 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.tex46
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/test-arydshln.tex27
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/test-bidi.tex43
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/test-brochure.tex342
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/test-casualcv.tex71
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/test-classiccv.tex71
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/test-color.tex39
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/test-supertabular.tex116
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/test-tabular.tex63
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/test-tabularx.tex40
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/test-tabulary.tex30
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/test1-colortbl.tex47
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/test1-wrapfig.tex40
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/test2-colortbl.tex28
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/test2-wrapfig.tex28
-rw-r--r--Master/texmf-dist/doc/xelatex/bidi/test3-wrapfig.tex75
27 files changed, 3025 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/xelatex/bidi/ChangeLog b/Master/texmf-dist/doc/xelatex/bidi/ChangeLog
new file mode 100644
index 00000000000..ed8b9222e05
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/ChangeLog
@@ -0,0 +1,108 @@
+2013/09/17 version 13.7 Vafa Khalighi
+ * Version 13.7 released.
+ * Synced `mdframed-xetex-bidi.def' with the new version of
+ mdframed package.
+
+2013/09/06 version 13.6 Vafa Khalighi
+ * Version 13.6 released.
+ * luatex-related files removed; those interested in luatex engine
+ can use `simurgh-bidi' package (to be released on CTAN later
+ this year).
+
+
+2013/05/28 version 13.5 Vafa Khalighi
+ * Version 13.5 released.
+ * Added alignment option to `calstable' environment.
+
+2013/05/26 version 13.4 Vafa Khalighi
+ * Version 13.4 released.
+ * Synced `cals-xetex-bidi.def' with version 2.1 of `cals' package.
+
+2013/05/22 version 13.3 Vafa Khalighi
+ * Version 13.3 released.
+ * `cals' package partially supported.
+ * Fixed `sideways' environment of `rotating' package in RTL mode.
+ * `newfloat' package supported.
+
+2013/05/01 version 13.2 Vafa Khalighi
+ * Version 13.2 released.
+ * `fancybox' package is supported.
+ * Removed redefinition of `\eqref' from `amsmath-xetex-bidi.def'.
+
+2013/04/27 version 13.1 Vafa Khalighi
+ * Version 13.1 released.
+ * Removed redefinition of `\@imakebox' from `xetex-bidi.def'.
+
+2013/04/26 version 13.0 Vafa Khalighi
+ * Version 13.0 released.
+ * Fixed wrong behaviour of `\autofootnoterule' with `\footnote'.
+
+2013/04/25 version 12.9 Vafa Khalighi
+ * Version 12.9 released.
+ * Fixed bad interaction of `\numberwithin' command of `amsmath' package
+ with `\SepMark' command in `LTR' environment.
+
+2013/04/24 version 12.8 Vafa Khalighi
+ * Version 12.8 released.
+ * Fixed footnotes inside `minipage' environment.
+ * Fixed footnote-rules inside `minipage' environment.
+ * Fixed footnote-rules with `mdframed' package.
+
+2013/04/16 version 12.7 Vafa Khalighi
+ * Version 12.7 released.
+ * Fixed `frametitle' of `mdframed' package in RTL.
+
+2013/04/12 version 12.6 Vafa Khalighi
+ * Version 12.6 released.
+ * `rotating' package supported.
+
+2013/04/10 version 12.5 Vafa Khalighi
+ * Version 12.5 released.
+ * Redefinition of `\endpicture' removed from `xetex-bidi.def'.
+ * Updated `crop-xetex-bidi.def'.
+ * Fixed the issue of `showframe' package when the main direction is RTL.
+ * `ftnright' package no longer loaded by `bidi' package; instead in two-columns
+ documents, only `\textwidthfootnoterule' works.
+
+2013/04/09 version 12.4 Vafa Khalighi
+ * Version 12.4 released.
+ * `midfloat' package supported.
+ * Fixed reported bug in `biditools' package.
+ * Fixed redefinitions of `\l@part' and `\l@chapter' when `titletoc' package loaded.
+ * Synced `lettrine-xetex-bidi.def' with version 1.64 of `lettrine' package.
+
+2013/04/08 version 12.3 Vafa Khalighi
+ * Version 12.3 released.
+ * Fixed `c' position of `window' environment of `picinpar' package in RTL.
+ * Disabled some frequently-used commands of `bidi' package in pdfstring
+ when `hyperref' package is used.
+ * Disabled footnote-rules when `ftnright' package is used.
+ * Fixed the issue of `\ref' not working in math-mode in RTL when `hyperref'
+ package is used.
+ * `biditufte' bundle and `bidi-longtable' package documented.
+ * Fixed wrong spacing of `\color' in RTL.
+ * `mdframed' package supported.
+ * `floatrow' package supported.
+ * Loaded `ftnright' package automatically in `bidi' package for two-columns documents.
+
+2013/04/04 version 12.2 Vafa Khalighi
+ * Version 12.2 released.
+ * Fixed the issue of `\ref' in math mode when `hyperref' loaded.
+ * Removed `\text' redefinitions from `amsmath-xetex-bidi.def', created a
+ new file `amstext-xetex-bidi.def', took the original definition of `\text' from
+ `amstext' package and put the modified version in `amstext-xetex-bidi.def'.
+ * Fixed the numbering issue of `float' package.
+
+2013/04/01 version 12.1 Vafa Khalighi
+ * Version 12.1 released.
+ * On page 17, line 2 of the documentation, `scartcl' changed to `scrartcl'.
+ * Fixed `format=hang' option of `caption' package in RTL.
+ * If any pages end inside `RTL/LTR' environment, then the direction of the
+ headers and footers do not get confused.
+ * Fixed `koma-script' and `caption' combination issue in RTL.
+ * Version 0.2 of `bidi.tex' released.
+ * Fixed `\setRTL' issue in plain xetex.
+ * Fixed horizontal alignment of `longtable'.
+ * `cuted' package supported.
+ * `ftnright' package supported.
+ * Fixed `showframe' option of geometry package.
diff --git a/Master/texmf-dist/doc/xelatex/bidi/README.doc b/Master/texmf-dist/doc/xelatex/bidi/README.doc
new file mode 100644
index 00000000000..377012cf851
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/README.doc
@@ -0,0 +1,23 @@
+___________________
+The bidi package
+v13.7
+
+This package provides a convenient interface for typesetting
+bidirectional texts in Plain TeX and LaTeX.
+
+This version fixes bugs and adds new features; for more details please see
+the ChangeLog.
+
+Current version release date: 2013/09/17
+
+___________________
+Vafa Khalighi
+persian-tex@tug.org
+
+Copyright © 2007–2013
+It may be distributed and/or modified under the LaTeX Project Public License,
+version 1.3c or higher (your choice). The latest version of
+this license is at: http://www.latex-project.org/lppl.txt
+
+This work is “maintained” (as per LPPL maintenance status)
+by Vafa Khalighi.
diff --git a/Master/texmf-dist/doc/xelatex/bidi/bibitem.pdf b/Master/texmf-dist/doc/xelatex/bidi/bibitem.pdf
new file mode 100644
index 00000000000..49191743021
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/bibitem.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/xelatex/bidi/bidi-logo.pdf b/Master/texmf-dist/doc/xelatex/bidi/bidi-logo.pdf
new file mode 100644
index 00000000000..700321cee9a
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/bidi-logo.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/xelatex/bidi/bidi-logo.tex b/Master/texmf-dist/doc/xelatex/bidi/bidi-logo.tex
new file mode 100644
index 00000000000..277f110c841
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/bidi-logo.tex
@@ -0,0 +1,704 @@
+\documentclass{article}
+\usepackage{pstricks}
+\pagestyle{empty}
+\begin{document}
+\psset{xunit=.5pt,yunit=.5pt,runit=.5pt}
+\begin{pspicture}(644,645)
+{
+\newrgbcolor{curcolor}{0.13725491 0.12156863 0.1254902}
+\pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor]
+{
+\newpath
+\moveto(279.26972,573.224136)
+\curveto(292.82326,550.186122)(301.06715,519.27798)(301.06715,486.79581)
+\curveto(301.06715,480.6428)(300.7877,474.48979)(300.08907,468.33678)
+\curveto(311.68642,456.17386)(321.04814,442.86618)(327.61532,432.42037)
+\curveto(329.85095,444.29711)(330.96876,456.74622)(330.96876,469.05224)
+\curveto(330.96876,521.28128)(312.10561,574.511975)(282.34373,600.268762)
+\curveto(268.92991,604.418465)(258.86957,601.699694)(255.51611,600.554948)
+\curveto(264.59837,593.972658)(272.56282,584.528503)(279.26972,573.224136)
+\closepath
+\moveto(294.63971,612.431688)
+\curveto(318.67278,610.714569)(343.82366,597.120709)(362.96628,572.222483)
+\curveto(382.1089,547.324257)(395.38298,512.69569)(395.38298,473.48814)
+\curveto(395.38298,430.56016)(379.45409,385.05651)(338.23458,338.5512)
+\curveto(347.17712,337.97882)(355.70047,334.54459)(361.84847,329.39323)
+\curveto(363.38546,329.67941)(364.92246,329.82251)(366.45946,329.82251)
+\lineto(367.43755,329.82251)
+\curveto(407.67897,367.88532)(423.46813,414.39062)(423.46813,459.3219)
+\curveto(423.46813,501.39132)(409.49542,541.88671)(388.39662,571.793203)
+\curveto(367.43755,601.699694)(339.63185,620.731097)(312.38506,620.588004)
+\curveto(302.88361,620.588004)(284.57936,615.865926)(275.35736,610.857662)
+\curveto(276.056,610.714569)(283.60126,613.147154)(294.63971,612.431688)
+\closepath
+\moveto(392.86789,574.798161)
+\curveto(414.52559,544.033112)(428.77777,502.53607)(428.91749,459.3219)
+\curveto(428.91749,414.39062)(413.40778,367.45603)(374.28417,328.96395)
+\curveto(382.6678,327.10373)(390.07335,322.52475)(394.54462,316.51483)
+\curveto(395.10352,315.65628)(395.66243,314.79772)(396.08162,313.93915)
+\curveto(440.79429,353.57599)(458.26019,401.94151)(458.26019,449.30538)
+\curveto(458.26019,496.52616)(440.65457,542.60218)(414.80505,576.801467)
+\curveto(389.09525,611.000755)(355.28129,633.037117)(323.4235,632.894024)
+\curveto(308.61243,632.894024)(293.94107,628.171946)(280.52727,617.439952)
+\curveto(290.86708,623.163682)(301.62607,625.882454)(312.38506,625.882454)
+\curveto(342.14693,625.739361)(371.21018,605.420119)(392.86789,574.798161)
+\closepath
+\moveto(267.11347,620.731097)
+\curveto(259.14902,621.589657)(250.90511,621.446564)(242.66121,620.158724)
+\curveto(249.64758,620.158724)(256.35448,618.870884)(262.78193,616.438299)
+\curveto(264.03946,617.869232)(265.43674,619.443258)(267.11347,620.731097)
+\closepath
+\moveto(233.57895,569.503711)
+\curveto(241.82285,555.337479)(246.7133,537.16464)(246.7133,519.99345)
+\curveto(246.7133,515.55755)(246.43385,511.12166)(245.73522,506.97196)
+\curveto(252.58184,503.8239)(260.26683,499.81729)(268.65046,494.37975)
+\curveto(268.92991,497.81399)(269.06965,501.24822)(269.06965,504.82556)
+\curveto(269.06965,527.14811)(263.06138,551.044682)(252.8613,569.217525)
+\curveto(242.66121,587.533462)(228.54878,599.696389)(212.61988,599.696389)
+\curveto(205.77325,599.696389)(198.50744,597.406897)(190.82244,592.398633)
+\curveto(193.89645,593.400285)(196.97044,593.829565)(199.90471,593.829565)
+\curveto(213.7377,593.829565)(225.47477,583.669944)(233.57895,569.503711)
+\closepath
+\moveto(255.93529,570.934644)
+\curveto(266.41482,552.046334)(272.56282,527.72048)(272.56282,504.82556)
+\curveto(272.56282,500.53277)(272.28337,496.38306)(271.86419,492.23335)
+\curveto(276.75464,488.9422)(281.92455,485.07869)(287.23417,480.78589)
+\curveto(290.72736,477.92403)(293.94107,474.91907)(297.01508,471.77102)
+\curveto(297.43426,476.77928)(297.71371,481.93064)(297.71371,486.9389)
+\curveto(297.71371,518.7056)(289.60953,549.184469)(276.33546,571.507017)
+\curveto(263.06138,593.829565)(245.03657,607.995797)(225.19532,607.995797)
+\curveto(217.65006,607.995797)(209.68561,605.992491)(201.58143,601.413507)
+\curveto(205.35407,602.558254)(209.1267,603.130627)(212.7596,603.130627)
+\curveto(230.50496,603.130627)(245.45576,589.67986)(255.93529,570.934644)
+\closepath
+\moveto(217.92951,516.98848)
+\curveto(223.23914,515.27137)(231.7625,512.98187)(242.38176,508.40289)
+\curveto(242.94066,512.12332)(243.22013,515.98683)(243.22013,519.99345)
+\curveto(243.22013,536.44917)(238.4694,554.192733)(230.64468,567.786592)
+\curveto(222.81996,581.380452)(211.92124,590.395327)(199.90471,590.252234)
+\curveto(193.05808,590.252234)(185.51282,587.390368)(177.54837,580.235706)
+\curveto(201.44171,591.110793)(229.38714,561.490489)(217.92951,516.98848)
+\closepath
+\moveto(254.81748,601.270414)
+\curveto(255.51611,603.416813)(257.19284,608.425077)(260.54629,613.433341)
+\curveto(254.81748,615.436646)(248.80921,616.581392)(242.52149,616.581392)
+\curveto(234.27758,616.581392)(225.6145,614.72118)(216.53224,610.571476)
+\curveto(219.4665,611.143849)(222.40078,611.430035)(225.19532,611.430035)
+\curveto(235.81458,611.430035)(245.73522,607.709611)(254.81748,601.270414)
+\closepath
+\moveto(471.11508,572.93795)
+\curveto(474.18909,569.360618)(476.56445,566.35566)(479.35899,562.492141)
+\curveto(480.61653,566.784939)(483.41107,571.220831)(483.41107,575.370534)
+\curveto(489.00016,571.65011)(498.22215,569.932991)(503.25233,563.923074)
+\lineto(503.53178,563.923074)
+\curveto(513.45241,578.2324)(538.18412,565.210913)(532.87448,550.758494)
+\lineto(531.19775,547.610443)
+\curveto(528.40321,543.46074)(524.91003,541.88671)(521.69631,541.74362)
+\curveto(517.36477,541.88671)(513.87159,544.605485)(513.87159,549.613749)
+\curveto(513.87159,551.760148)(514.57023,553.62036)(515.40859,555.051292)
+\curveto(516.38668,556.339132)(517.5045,557.054598)(518.48258,557.054598)
+\curveto(519.32095,557.054598)(520.15931,556.768412)(521.13741,555.623665)
+\curveto(522.25522,554.478919)(522.53467,553.62036)(522.53467,553.047986)
+\curveto(522.53467,552.475614)(522.25522,551.760148)(521.69631,551.330868)
+\curveto(521.13741,550.901589)(520.43876,550.615401)(520.15931,550.615401)
+\lineto(520.01958,550.615401)
+\curveto(519.18123,550.329215)(518.0634,550.758494)(517.64422,549.899935)
+\curveto(517.22505,549.041376)(517.5045,547.896629)(518.34286,547.46735)
+\lineto(518.34286,547.46735)
+\curveto(518.90177,547.181163)(519.46068,547.03807)(520.01958,547.03807)
+\curveto(522.6744,547.181163)(525.7484,549.327562)(525.88813,553.047986)
+\curveto(525.88813,554.765106)(525.04976,556.482225)(523.51277,558.05625)
+\curveto(521.97577,559.630277)(520.15931,560.488836)(518.34286,560.488836)
+\curveto(513.45241,560.345743)(510.23869,555.194385)(510.23869,549.613749)
+\curveto(510.23869,546.17951)(511.49623,543.17455)(513.73186,541.17125)
+\curveto(515.82777,539.16794)(518.62232,538.16629)(521.69631,538.16629)
+\lineto(521.69631,538.16629)
+\curveto(525.46895,538.16629)(529.52104,540.0265)(532.73476,543.74693)
+\curveto(549.08284,522.56913)(548.52392,496.23996)(542.65539,484.36322)
+\curveto(609.44496,556.768412)(518.76205,609.283636)(471.11508,572.93795)
+\closepath
+\moveto(462.03282,238.95829)
+\curveto(488.30152,268.00622)(515.12914,307.64306)(522.53467,367.16985)
+\curveto(523.79222,377.47256)(524.35113,387.48909)(524.35113,397.50562)
+\curveto(524.35113,410.5271)(523.37304,423.2624)(521.41686,435.71152)
+\lineto(521.41686,431.41872)
+\curveto(521.41686,365.30964)(491.93443,303.63644)(441.63266,263.99961)
+\lineto(441.63266,262.28249)
+\curveto(441.63266,261.28083)(441.63266,260.27918)(441.49294,259.42063)
+\curveto(448.19984,253.26761)(453.09029,243.53727)(453.09029,231.94672)
+\curveto(453.09029,231.08816)(453.09029,230.2296)(452.95056,229.37104)
+\curveto(456.02455,232.376)(458.95883,235.52405)(462.03282,238.95829)
+\closepath
+\moveto(490.81662,567.214219)
+\curveto(489.27962,568.072778)(487.60289,568.645152)(485.92616,569.503711)
+\curveto(485.50698,567.357312)(484.94808,566.641846)(484.24944,564.495447)
+\curveto(483.5508,562.635235)(482.99189,560.488836)(482.57272,558.771717)
+\curveto(486.6248,553.62036)(489.27962,549.756842)(491.51525,546.17951)
+\curveto(492.49334,544.319298)(496.26597,536.87845)(500.59751,528.43595)
+\curveto(505.48796,518.7056)(511.07705,507.54433)(513.31268,502.24988)
+\curveto(513.59214,501.53442)(514.29077,501.24822)(514.84968,501.24822)
+\curveto(515.12914,501.24822)(515.26886,501.24822)(515.54832,501.39132)
+\curveto(516.38668,501.8206)(516.80587,502.82225)(516.38668,503.68082)
+\curveto(512.75378,512.26641)(501.43588,534.44586)(496.54542,543.89002)
+\curveto(496.68515,550.329215)(498.08243,556.052946)(500.31806,560.631929)
+\curveto(497.66325,563.350702)(494.30979,565.497101)(490.81662,567.214219)
+\closepath
+\moveto(447.92039,580.235706)
+\curveto(475.86581,544.462392)(495.98652,497.67089)(495.98652,447.01589)
+\curveto(495.98652,396.07468)(475.44662,341.41306)(422.49004,290.90114)
+\curveto(422.7695,290.18568)(422.90922,289.6133)(423.18868,288.89783)
+\curveto(429.61613,286.46525)(434.22712,282.31554)(437.1614,277.87966)
+\curveto(438.97784,275.16088)(440.09566,272.29902)(440.79429,269.72334)
+\curveto(491.09607,307.92924)(516.38668,365.882)(516.38668,431.56181)
+\curveto(516.38668,446.30042)(514.84968,461.18212)(511.77568,476.06382)
+\curveto(499.89888,512.12332)(480.61653,544.176205)(457.56155,570.219177)
+\curveto(454.34783,573.653416)(451.1341,576.94456)(447.92039,580.235706)
+\closepath
+\moveto(527.00594,317.65958)
+\curveto(525.88813,317.65958)(524.7703,317.65958)(523.65249,317.80268)
+\curveto(520.15931,307.35687)(515.9675,297.48343)(511.3565,288.46856)
+\curveto(533.9923,296.91106)(556.34864,306.78449)(571.15972,325.8159)
+\curveto(598.96542,361.44612)(599.80378,437.28555)(532.87448,440.43359)
+\curveto(533.85258,434.70987)(534.55121,428.98614)(535.11012,423.11931)
+\lineto(535.11012,423.11931)
+\curveto(535.11012,423.11931)(535.94849,416.39393)(536.08821,411.52876)
+\curveto(538.18412,407.37905)(539.02248,403.65862)(539.02248,400.22439)
+\curveto(539.02248,395.9316)(537.6252,391.92498)(535.38957,388.20456)
+\lineto(535.38957,382.19463)
+\curveto(539.44166,387.34599)(542.51566,393.21282)(542.51566,400.22439)
+\curveto(542.51566,404.66027)(540.69921,410.09783)(537.76493,415.24918)
+\curveto(537.76493,415.24918)(537.6252,415.67846)(537.90465,416.10774)
+\curveto(544.47184,424.26406)(551.59792,427.41211)(562.35691,426.98283)
+\curveto(565.01172,422.40385)(565.15145,411.81494)(565.01172,405.23265)
+\curveto(551.59792,400.08129)(547.96501,389.63549)(548.10474,379.18968)
+\curveto(548.10474,369.45933)(550.75955,359.29971)(550.75955,351.00031)
+\curveto(550.75955,345.84896)(549.78147,341.69925)(546.98693,338.83738)
+\curveto(546.28828,338.12192)(546.28828,336.97717)(546.98693,336.40479)
+\curveto(547.26638,336.11861)(547.82529,335.83242)(548.24447,335.83242)
+\curveto(548.66364,335.83242)(549.08284,335.97552)(549.50201,336.40479)
+\curveto(553.27465,340.26832)(554.39246,345.56276)(554.39246,351.00031)
+\curveto(554.39246,359.87209)(551.73765,370.03171)(551.73765,379.18968)
+\curveto(551.87737,389.49239)(553.27465,398.22108)(566.68845,402.94316)
+\curveto(566.96791,403.08626)(568.92409,403.08626)(569.48299,403.08626)
+\curveto(578.56525,402.80007)(585.9708,392.92663)(585.9708,392.92663)
+\curveto(559.84182,395.35922)(592.81743,317.65958)(527.00594,317.65958)
+\closepath
+\moveto(152.39748,502.39297)
+\lineto(152.39748,499.53111)
+\lineto(152.39748,499.24492)
+\lineto(152.39748,498.95874)
+\curveto(152.39748,498.81564)(152.25775,498.10017)(151.9783,496.95543)
+\curveto(158.82493,498.38636)(166.50993,499.10184)(175.03328,499.10184)
+\curveto(221.14323,499.10184)(287.65335,475.49144)(319.93032,397.21943)
+\curveto(323.56323,401.79841)(327.0564,406.3774)(330.27013,411.24257)
+\lineto(329.85095,411.67185)
+\curveto(324.40159,421.68838)(306.51652,453.31198)(281.92455,473.63122)
+\curveto(268.09155,485.07869)(255.51611,492.51953)(244.89685,497.52781)
+\curveto(214.2966,511.12166)(181.74018,514.98518)(151.69885,513.55425)
+\curveto(152.39748,509.97691)(152.39748,506.39958)(152.39748,502.39297)
+\closepath
+\moveto(418.99686,579.806425)
+\curveto(445.40529,544.748578)(463.4301,497.67089)(463.4301,449.16228)
+\curveto(463.4301,401.22604)(445.68475,351.71577)(401.25152,311.36347)
+\curveto(406.28169,309.64636)(410.75296,306.49831)(414.24614,303.06406)
+\curveto(416.48178,300.77458)(418.43796,298.34199)(419.97496,295.76631)
+\curveto(471.25481,345.13348)(490.67689,397.7918)(490.67689,446.87279)
+\curveto(490.67689,500.24657)(467.62191,549.470656)(436.60248,585.530156)
+\curveto(428.07912,595.403591)(418.99686,604.275372)(409.63515,611.859316)
+\curveto(382.6678,629.745972)(354.58265,639.7625)(330.27013,639.7625)
+\curveto(319.93032,639.7625)(310.42888,638.0453809)(301.62607,634.4680495)
+\curveto(308.75215,636.7575417)(316.15769,637.9022876)(323.56323,637.9022876)
+\curveto(357.79638,638.0453809)(392.58844,614.864274)(418.99686,579.806425)
+\closepath
+\moveto(273.68064,329.25013)
+\curveto(276.89436,330.25178)(279.96837,330.82416)(283.04236,330.82416)
+\curveto(284.29991,330.82416)(285.55744,330.68106)(286.67527,330.53798)
+\curveto(288.9109,332.97056)(291.84517,334.68768)(294.77943,335.97552)
+\curveto(299.39044,337.83573)(304.56034,338.83738)(309.73024,338.83738)
+\curveto(314.62069,338.69429)(319.37142,338.12192)(323.56323,335.83242)
+\curveto(327.0564,337.54954)(330.82904,338.4081)(334.60167,338.69429)
+\curveto(375.12254,384.91341)(390.3528,431.99109)(390.3528,473.63122)
+\curveto(390.3528,511.69404)(377.4979,545.177858)(359.05392,569.074432)
+\curveto(343.96339,588.678208)(317.69469,607.280331)(293.52189,607.566518)
+\curveto(305.11924,603.416813)(318.95224,601.413507)(338.37431,574.082695)
+\curveto(355.00183,550.472308)(367.717,516.98848)(367.717,484.50632)
+\curveto(367.717,471.05555)(365.48137,457.31859)(360.59092,443.86784)
+\curveto(346.75794,406.52049)(323.28378,381.0499)(299.53016,356.43785)
+\curveto(290.72736,347.42298)(282.06427,338.5512)(273.68064,329.25013)
+\closepath
+\moveto(352.06756,457.89097)
+\curveto(364.36356,530.29616)(320.20977,578.518587)(296.59589,593.686471)
+\curveto(294.77943,594.831218)(292.96299,595.83287)(291.14653,596.834523)
+\curveto(318.11387,568.358966)(334.32222,518.41942)(334.46195,469.19534)
+\curveto(334.46195,455.31529)(333.2044,441.43524)(330.40986,428.12758)
+\curveto(332.36604,424.83643)(334.04277,421.97457)(335.3003,419.68507)
+\curveto(340.60994,428.41376)(345.22094,437.85791)(348.99357,448.16063)
+\curveto(350.25111,451.30868)(351.22921,454.59983)(352.06756,457.89097)
+\closepath
+\moveto(234.97623,274.30233)
+\lineto(234.97623,274.30233)
+\lineto(234.97623,274.30233)
+\lineto(234.97623,274.30233)
+\closepath
+\moveto(425.42431,202.18332)
+\curveto(428.77777,205.47447)(429.75585,207.33468)(433.66821,211.77057)
+\lineto(436.32303,215.77718)
+\lineto(437.02167,217.20812)
+\curveto(439.95594,222.50256)(440.93402,227.36774)(440.93402,231.94672)
+\curveto(441.07375,241.10469)(436.04357,248.68863)(431.43258,251.69359)
+\lineto(427.10104,254.55546)
+\lineto(429.19695,259.42063)
+\lineto(429.19695,259.56372)
+\curveto(429.19695,259.70681)(429.33667,259.8499)(429.33667,260.1361)
+\curveto(429.4764,260.70846)(429.4764,261.42393)(429.4764,262.28249)
+\curveto(429.4764,264.85817)(428.77777,268.14932)(426.96131,271.01118)
+\curveto(425.00513,273.87305)(422.07087,276.59181)(416.20232,278.16584)
+\lineto(411.73106,279.31059)
+\lineto(411.73106,284.03267)
+\curveto(411.87078,285.4636)(409.9146,290.47186)(406.00224,294.04919)
+\curveto(402.08988,297.91272)(397.0597,300.4884)(392.02953,300.4884)
+\lineto(386.02126,300.4884)
+\lineto(386.02126,306.78449)
+\curveto(386.02126,306.78449)(385.88153,307.64306)(385.04316,308.7878)
+\curveto(384.20481,309.93254)(382.6678,311.50657)(380.71162,312.7944)
+\curveto(376.79927,315.37008)(371.34991,317.37339)(366.73892,317.37339)
+\curveto(365.06219,317.37339)(363.52519,317.08721)(362.12792,316.65793)
+\lineto(358.63474,315.51318)
+\lineto(356.11965,318.08886)
+\curveto(352.20729,322.23857)(343.82366,326.10208)(336.55785,326.10208)
+\curveto(332.78522,326.10208)(329.43177,325.24352)(326.77695,323.24022)
+\lineto(322.58513,320.23526)
+\lineto(318.95224,323.95569)
+\curveto(318.25359,324.95734)(314.34124,326.38827)(309.73024,326.38827)
+\curveto(306.09734,326.38827)(302.18498,325.6728)(299.39044,324.52805)
+\curveto(296.45616,323.38331)(295.0589,321.66619)(295.0589,321.38001)
+\lineto(292.82326,315.51318)
+\lineto(287.09445,317.80268)
+\curveto(286.11635,318.23196)(284.71909,318.51814)(283.04236,318.51814)
+\curveto(277.59299,318.51814)(270.46691,315.65628)(266.69428,308.50161)
+\lineto(265.01756,305.35356)
+\lineto(254.11884,305.35356)
+\curveto(247.13248,295.90941)(240.70503,285.60669)(235.11595,274.30233)
+\lineto(235.11595,274.30233)
+\lineto(235.11595,274.30233)
+\curveto(235.11595,274.30233)(232.60087,270.72499)(229.52686,263.71343)
+\curveto(244.19821,288.18237)(268.92991,308.50161)(307.4946,308.64471)
+\curveto(319.79059,308.64471)(333.34412,306.64139)(348.43465,301.91933)
+\curveto(395.80215,287.4669)(407.95842,259.27753)(407.95842,232.376)
+\curveto(407.95842,207.0485)(397.47888,182.72264)(396.36107,171.70446)
+\curveto(396.22135,170.27353)(396.08162,168.98569)(396.08162,167.69785)
+\curveto(396.08162,152.81615)(405.30361,145.94767)(413.82696,145.94767)
+\curveto(419.41604,145.94767)(424.58595,148.80954)(427.24077,154.39018)
+\curveto(426.96131,154.10399)(426.68186,153.9609)(426.40241,153.67471)
+\curveto(424.16677,152.10068)(421.51195,151.38522)(418.71741,151.38522)
+\curveto(415.64342,151.38522)(412.15023,152.38687)(409.49542,154.96255)
+\curveto(406.70087,157.53823)(402.2296,163.40505)(404.04606,173.13539)
+\curveto(405.86251,182.72264)(415.0845,191.88061)(425.42431,202.18332)
+\closepath
+\moveto(171.5401,182.29336)
+\curveto(178.66619,177.142)(186.77036,172.70611)(193.61698,171.13209)
+\curveto(184.53472,184.58286)(177.12919,201.18167)(173.49628,221.35782)
+\curveto(170.0031,222.35948)(166.78938,223.07494)(163.99484,223.64731)
+\lineto(163.43592,224.21969)
+\curveto(163.57565,223.36113)(163.57565,222.50256)(163.57565,221.64401)
+\curveto(163.57565,215.491)(161.34001,205.90375)(153.09612,200.18002)
+\curveto(155.47148,196.17341)(162.87702,188.58947)(171.5401,182.29336)
+\closepath
+\moveto(237.07213,80.98333)
+\curveto(248.11058,86.13469)(248.94893,100.15783)(248.94893,106.45394)
+\curveto(248.94893,108.88652)(247.41193,112.32076)(244.61739,115.03953)
+\curveto(242.80094,116.89974)(240.42558,118.47377)(237.91049,119.33232)
+\curveto(235.3954,119.61852)(232.88032,120.04779)(230.50496,120.62017)
+\curveto(227.57068,121.33563)(224.91587,121.62182)(222.40078,121.62182)
+\curveto(211.22261,121.62182)(204.79516,114.61025)(197.8088,107.88487)
+\curveto(197.11017,105.59537)(196.55126,102.73351)(196.55126,99.58546)
+\curveto(196.55126,93.71864)(198.08826,87.13634)(201.86089,82.12808)
+\curveto(204.79516,78.40766)(208.84725,75.40269)(214.71578,74.11486)
+\curveto(219.74597,73.54248)(229.24741,75.97507)(237.07213,80.55405)
+\lineto(237.07213,80.98333)
+\closepath
+\moveto(199.20607,80.12477)
+\curveto(194.73481,85.9916)(193.05808,93.28935)(193.05808,99.72855)
+\curveto(193.05808,101.15948)(193.1978,102.59041)(193.33753,103.87826)
+\curveto(188.30736,99.44236)(182.57854,95.72194)(174.33464,95.00647)
+\curveto(170.14283,94.72029)(165.81129,94.5772)(161.47975,94.5772)
+\curveto(157.84684,94.5772)(154.21393,94.5772)(150.58102,94.72029)
+\curveto(146.94813,94.72029)(143.45494,94.86338)(139.96177,94.86338)
+\curveto(120.95888,94.86338)(105.16971,92.71699)(105.02998,77.11982)
+\curveto(105.16971,69.96515)(108.38344,60.09171)(115.92869,46.49786)
+\curveto(115.92869,46.49786)(117.04652,44.63765)(119.14243,41.91888)
+\curveto(117.18624,46.78404)(116.06842,51.79231)(116.06842,56.94367)
+\curveto(116.06842,61.95193)(117.18624,66.9602)(119.70133,71.39608)
+\curveto(121.79724,75.11651)(125.15069,77.406)(128.92332,78.55075)
+\curveto(132.69595,79.6955)(136.74804,79.98168)(141.07958,79.98168)
+\curveto(146.66867,79.98168)(152.53721,79.5524)(158.1263,79.5524)
+\curveto(166.64965,79.5524)(174.19491,80.69715)(178.80592,85.56232)
+\lineto(178.80592,85.56232)
+\curveto(179.784,86.56398)(181.46073,86.56398)(182.43881,85.56232)
+\curveto(183.41691,84.56066)(183.41691,82.84355)(182.43881,81.8419)
+\curveto(176.01137,75.25961)(166.9291,74.25796)(157.98657,74.25796)
+\curveto(152.11803,74.25796)(146.24948,74.83033)(140.93986,74.68723)
+\curveto(136.88777,74.68723)(133.11513,74.40104)(130.32059,73.39939)
+\curveto(127.38633,72.39774)(125.43015,71.1099)(124.03287,68.67732)
+\curveto(122.07669,65.24307)(121.09861,61.23646)(121.09861,56.94367)
+\curveto(121.09861,49.78901)(123.75342,42.06197)(128.08496,35.90896)
+\curveto(132.4165,29.75595)(138.14532,25.60625)(144.15358,24.74769)
+\curveto(145.41112,24.60459)(146.66867,24.4615)(147.64676,24.4615)
+\curveto(154.07421,24.60459)(157.14821,27.03718)(159.52357,31.18688)
+\curveto(161.89893,35.33659)(162.87702,41.4896)(163.71539,47.35642)
+\curveto(163.85511,48.07189)(164.27429,48.78736)(164.97292,49.21664)
+\curveto(180.34291,58.94698)(181.74018,66.10164)(186.35118,70.82371)
+\curveto(187.32927,71.82536)(189.00599,71.82536)(189.98409,70.82371)
+\curveto(190.96217,69.82206)(190.96217,68.10495)(189.98409,67.10329)
+\curveto(187.04981,64.24142)(183.97582,55.22655)(168.74556,45.35311)
+\curveto(167.9072,39.62938)(166.9291,33.61946)(164.13456,28.46811)
+\curveto(161.61948,23.74604)(157.28794,20.02561)(150.86049,19.16705)
+\curveto(156.03039,17.87921)(161.61948,17.59303)(167.62774,18.59468)
+\curveto(190.82244,29.61285)(205.35407,57.80223)(211.36234,71.253)
+\curveto(206.19243,73.2563)(202.00061,76.40435)(199.20607,80.12477)
+\closepath
+\moveto(121.37806,182.29336)
+\curveto(126.68768,176.85582)(139.54258,174.9956)(145.8303,181.29171)
+\curveto(148.76458,173.85086)(168.32638,124.48368)(250.62566,125.62843)
+\curveto(241.5434,128.49029)(228.54878,134.50022)(214.71578,146.80624)
+\curveto(208.84725,152.10068)(203.11844,158.1106)(197.8088,165.26526)
+\curveto(188.30736,165.69455)(177.68809,171.41827)(168.46611,178.00056)
+\curveto(159.94275,184.29666)(152.81666,191.16515)(149.32349,196.3165)
+\curveto(145.55085,195.31485)(142.05767,194.88556)(138.98368,194.88556)
+\curveto(131.15895,194.88556)(125.01097,197.74743)(120.95888,202.18332)
+\curveto(116.90679,206.61921)(115.09034,212.34294)(115.09034,217.78049)
+\curveto(115.09034,220.92854)(115.64924,223.93349)(116.90679,226.65227)
+\curveto(111.45743,223.07494)(107.12589,218.92523)(105.02998,216.06337)
+\curveto(59.059754,221.93019)(34.467771,218.49595)(25.245783,210.62583)
+\curveto(17.979976,195.60103)(11.83198,166.41001)(58.500849,152.52996)
+\curveto(56.684394,154.39018)(56.963847,156.25039)(58.081658,157.96751)
+\curveto(52.352853,159.39844)(47.322668,161.68793)(43.130865,164.6929)
+\curveto(35.166415,170.41662)(30.555421,178.85912)(30.555421,188.87565)
+\curveto(30.555421,189.59112)(30.555421,190.30658)(30.695147,191.02205)
+\curveto(30.9746,196.45959)(33.489686,200.4662)(37.262322,202.6126)
+\curveto(41.034958,204.759)(45.645952,205.33138)(50.676125,205.33138)
+\curveto(60.317303,205.33138)(72.054378,203.18497)(82.533915,203.18497)
+\curveto(93.572357,203.18497)(102.65462,205.33138)(107.6848,213.34459)
+\lineto(107.6848,213.34459)
+\curveto(108.52316,214.63244)(110.06016,214.91862)(111.3177,214.06007)
+\curveto(112.57525,213.20151)(112.8547,211.62748)(112.01634,210.33964)
+\curveto(105.44916,200.03692)(93.991536,197.74743)(82.533915,197.74743)
+\curveto(71.355746,197.74743)(59.61866,199.89384)(50.676125,199.89384)
+\curveto(46.065131,199.89384)(42.152769,199.32146)(39.777408,197.89052)
+\curveto(37.402048,196.45959)(36.144499,194.74248)(35.865046,190.59277)
+\lineto(35.865046,188.73255)
+\curveto(35.865046,180.43315)(39.358229,173.85086)(46.204857,168.84259)
+\curveto(52.772032,164.12052)(62.552937,161.25865)(74.988643,161.11556)
+\curveto(79.459911,165.98073)(81.555818,170.98899)(81.416092,174.42323)
+\curveto(81.416092,175.28179)(81.276366,175.99725)(81.136639,176.56963)
+\curveto(80.857186,177.57128)(81.136639,178.57293)(81.835283,179.2884)
+\curveto(83.511999,181.00553)(85.607907,181.57789)(87.564088,182.00718)
+\curveto(89.659995,182.43646)(91.895629,182.86573)(94.270989,183.58121)
+\curveto(99.021709,185.01214)(104.33135,187.44472)(109.7807,194.74248)
+\curveto(110.61907,195.88721)(112.2958,196.17341)(113.41361,195.31485)
+\curveto(114.53143,194.45628)(114.81088,192.73917)(113.97251,191.59442)
+\curveto(104.89025,179.14531)(94.270989,178.14365)(88.821637,176.85582)
+\curveto(87.84354,176.71272)(87.144909,176.42654)(86.586003,176.14035)
+\curveto(86.725729,175.56797)(86.725729,174.9956)(86.725729,174.42323)
+\curveto(86.725729,168.6995)(83.651726,162.4034)(77.922921,156.67966)
+\curveto(77.643468,156.39348)(77.224277,156.10729)(76.805098,155.96421)
+\curveto(76.805098,154.96255)(76.385919,153.9609)(75.268096,152.81615)
+\curveto(86.166824,151.8145)(100.55871,148.38025)(107.54507,155.53492)
+\curveto(114.3917,162.68958)(116.48761,177.2851)(121.37806,182.29336)
+\closepath
+\moveto(64.229654,386.34434)
+\curveto(66.046108,388.49074)(82.254462,405.66194)(92.454534,413.10278)
+\curveto(82.673641,410.6702)(66.884478,402.08461)(53.470664,391.06642)
+\curveto(56.125488,389.06311)(61.015935,386.77363)(64.229654,386.34434)
+\closepath
+\moveto(67.443384,365.16654)
+\curveto(74.569464,372.60739)(98.742257,400.51058)(97.205266,405.94812)
+\curveto(88.821637,397.64871)(81.975009,391.4957)(78.3421,387.20291)
+\curveto(72.892736,380.7637)(69.120112,375.32616)(67.443384,365.16654)
+\closepath
+\moveto(29.158145,244.39583)
+\curveto(29.158145,260.1361)(54.867939,258.13279)(59.199481,275.16088)
+\curveto(64.089927,294.19229)(44.10895,295.05084)(53.470664,309.93254)
+\curveto(39.917135,319.23361)(25.944427,314.08225)(25.944427,325.6728)
+\curveto(25.944427,337.40645)(51.793947,342.98708)(61.574841,377.32947)
+\curveto(61.574841,377.32947)(58.920028,370.03171)(51.374757,363.59252)
+\curveto(30.415694,345.84896)(6.2428949,344.56111)(5.4045319,321.09382)
+\curveto(4.4264414,295.62322)(32.511602,278.88131)(22.451244,268.57859)
+\curveto(12.670339,258.56207)(24.267698,249.4041)(29.158145,244.39583)
+\closepath
+\moveto(139.68231,483.64776)
+\curveto(147.64676,473.63122)(167.20856,446.44352)(167.20856,419.68507)
+\curveto(167.20856,409.09617)(163.99484,398.36418)(155.61121,389.3493)
+\curveto(215.55415,362.16159)(171.5401,311.93585)(178.38673,223.93349)
+\curveto(184.11554,190.0204)(200.8828,166.41001)(218.20897,150.81285)
+\curveto(234.8365,135.78805)(249.7873,126.48699)(262.22301,126.48699)
+\curveto(262.50246,126.48699)(263.89974,126.77318)(264.17919,126.91628)
+\curveto(245.31602,133.92784)(227.98986,151.24213)(219.88569,167.69785)
+\curveto(215.97333,175.71107)(212.61988,185.58451)(211.08289,193.88391)
+\curveto(209.68561,201.75404)(209.54588,205.61756)(209.54588,215.20481)
+\curveto(209.54588,255.27092)(224.21724,279.73987)(224.21724,279.73987)
+\curveto(241.96258,315.79937)(267.25319,340.5545)(290.86708,365.02345)
+\curveto(299.66989,374.03832)(308.19325,383.1963)(316.01796,392.64045)
+\curveto(284.99854,470.62627)(219.88569,493.80738)(174.89355,493.80738)
+\curveto(165.67156,493.80738)(157.42766,492.80573)(150.4413,491.2317)
+\lineto(150.4413,491.2317)
+\curveto(150.02212,491.0886)(149.60294,491.0886)(149.18376,491.2317)
+\curveto(147.22758,488.65602)(144.29331,485.79416)(139.68231,483.64776)
+\closepath
+\moveto(362.96628,97.72525)
+\curveto(357.93611,91.28605)(348.71412,84.84685)(332.78522,79.98168)
+\curveto(314.76042,74.54414)(297.85344,71.68228)(282.90263,71.68228)
+\curveto(268.65046,71.68228)(255.93529,74.25796)(245.1763,79.26622)
+\curveto(243.91876,78.26457)(242.52149,77.26291)(240.98448,76.40435)
+\curveto(237.77076,69.67897)(233.02004,65.38617)(226.73232,62.66739)
+\curveto(283.74099,40.63104)(380.15272,56.80058)(405.44333,79.5524)
+\lineto(405.44333,81.26952)
+\curveto(405.44333,85.13304)(405.58306,88.56728)(405.86251,91.71532)
+\lineto(404.46524,91.71532)
+\curveto(386.85962,91.71532)(373.16636,94.5772)(362.96628,97.72525)
+\closepath
+\moveto(425.42431,88.56728)
+\curveto(430.17503,88.56728)(434.92576,89.42584)(439.2573,90.99986)
+\curveto(450.43547,93.28935)(460.91501,98.01143)(468.87945,102.16114)
+\curveto(444.4272,94.72029)(424.02705,92.00152)(407.12006,91.71532)
+\curveto(412.01051,89.85512)(418.01878,88.56728)(425.42431,88.56728)
+\closepath
+\moveto(451.27383,77.97837)
+\curveto(445.82448,58.51769)(478.10145,57.22985)(491.37552,60.23481)
+\curveto(489.00016,61.66574)(487.04398,63.95524)(485.92616,67.53257)
+\curveto(484.38917,72.39774)(486.06589,76.97672)(488.86044,80.12477)
+\curveto(479.9179,84.84685)(456.58347,96.86668)(451.27383,77.97837)
+\closepath
+\moveto(644.79592,393.6421)
+\curveto(641.72193,495.81068)(576.18989,609.569823)(471.11508,621.160376)
+\curveto(463.29037,612.288595)(456.44374,603.559906)(450.43547,594.974311)
+\curveto(455.88483,589.67986)(461.19446,584.242316)(466.36436,578.375493)
+\curveto(466.64381,578.089307)(466.92327,577.660026)(467.20273,577.37384)
+\curveto(468.04109,578.089307)(469.01918,578.804773)(469.85754,579.520239)
+\curveto(495.28789,597.836176)(547.12665,601.127321)(568.92409,555.337479)
+\curveto(590.44207,510.12001)(549.64174,475.77763)(549.64174,475.77763)
+\curveto(545.03075,471.62792)(536.78684,467.47821)(527.14566,465.47491)
+\curveto(528.82239,459.17881)(530.21967,452.88271)(531.47721,446.44352)
+\lineto(531.75667,446.44352)
+\curveto(559.00345,448.5899)(589.6037,431.848)(595.19279,391.4957)
+\curveto(606.0915,312.50822)(528.96212,281.45699)(503.95097,272.5852)
+\curveto(500.31806,270.86809)(499.20024,268.29241)(499.20024,268.29241)
+\curveto(505.76742,267.29076)(511.49623,261.9963)(514.98941,254.84164)
+\curveto(516.66614,251.26431)(517.36477,248.11626)(517.36477,245.2544)
+\curveto(517.36477,238.38591)(513.03323,233.23456)(507.02496,229.65722)
+\curveto(501.01669,226.07989)(493.19198,224.36278)(487.60289,224.36278)
+\curveto(485.0878,224.36278)(482.85217,224.79206)(481.59462,225.36443)
+\curveto(480.89599,225.65062)(480.47681,225.93681)(480.33708,226.22299)
+\curveto(480.47681,226.79536)(480.61653,227.51082)(480.89599,228.0832)
+\curveto(485.78643,239.24447)(512.3346,226.65227)(507.58387,251.40741)
+\curveto(506.04688,259.13444)(501.85506,262.56868)(496.12624,263.14105)
+\curveto(475.02744,231.66053)(450.01629,209.91036)(433.38876,193.45463)
+\curveto(423.18868,183.58121)(415.36396,176.9989)(413.68724,171.84756)
+\curveto(413.12832,170.13044)(411.73106,164.97908)(414.94477,161.54484)
+\curveto(415.78314,160.68627)(417.04068,159.54154)(418.29823,159.39844)
+\curveto(426.82159,157.96751)(427.79967,167.69785)(427.79967,167.69785)
+\curveto(429.19695,165.83763)(430.0353,163.69123)(430.0353,161.40175)
+\curveto(430.0353,160.82937)(429.89558,160.257)(429.89558,159.68462)
+\lineto(429.89558,159.25534)
+\curveto(428.49831,149.38192)(421.09277,144.23056)(413.40778,144.23056)
+\lineto(413.26806,144.23056)
+\curveto(408.51733,144.23056)(403.62688,146.23386)(399.85424,150.09738)
+\curveto(396.08162,154.10399)(393.70625,159.97082)(393.70625,167.84094)
+\curveto(393.70625,169.12878)(393.84598,170.55971)(393.98571,171.99064)
+\curveto(395.24325,183.58121)(405.58306,207.62086)(405.58306,232.5191)
+\curveto(405.58306,258.84825)(394.12544,285.89288)(347.31684,300.3453)
+\curveto(332.36604,304.92428)(318.95224,306.92759)(306.79597,306.92759)
+\curveto(262.6422,306.92759)(236.93241,279.73987)(223.93778,250.54884)
+\curveto(221.00351,240.96159)(218.34869,228.65557)(217.65006,213.63079)
+\curveto(217.3706,207.33468)(217.92951,199.75074)(218.62815,194.1701)
+\curveto(219.4665,188.44637)(222.95969,176.42654)(226.73232,168.41331)
+\curveto(234.8365,151.8145)(246.85303,135.93115)(262.92165,129.06267)
+\lineto(265.43674,128.06101)
+\curveto(273.68064,129.92123)(278.43136,131.63834)(287.3739,134.92949)
+\lineto(289.46981,135.64495)
+\curveto(303.72198,140.93941)(317.13578,145.94767)(330.1304,145.94767)
+\curveto(338.51403,145.94767)(345.77984,144.08746)(352.34702,139.79466)
+\curveto(353.18539,139.36538)(353.88402,138.79301)(354.58265,138.22063)
+\lineto(358.63474,134.92949)
+\lineto(358.63474,134.92949)
+\lineto(359.61283,133.92784)
+\curveto(364.64301,128.49029)(368.41564,120.62017)(367.85673,112.32076)
+\curveto(367.57727,108.88652)(366.59919,104.87991)(364.22383,100.8733)
+\curveto(374.00472,97.86833)(386.99935,95.29266)(403.7666,95.29266)
+\curveto(423.74758,95.29266)(449.31765,99.01308)(481.17544,110.31745)
+\lineto(481.31517,110.31745)
+\curveto(481.45489,110.31745)(481.45489,110.46055)(481.45489,110.46055)
+\curveto(534.83066,110.46055)(513.59214,75.11651)(507.72359,82.12808)
+\curveto(501.29614,89.56893)(486.06589,78.98002)(490.39743,66.8171)
+\curveto(496.9646,47.92879)(527.00594,64.6707)(530.21967,77.11982)
+\curveto(524.07167,35.90896)(461.47392,53.50943)(447.08202,55.51273)
+\curveto(430.17503,57.94533)(423.3284,41.91888)(425.70376,27.18027)
+\curveto(427.65994,15.01735)(420.25441,3.85608)(416.90095,0.56493)
+\curveto(440.79429,-4.15716)(452.1122,16.59137)(461.47392,23.17366)
+\curveto(470.97536,29.89905)(505.34823,26.6079)(524.7703,41.91888)
+\curveto(544.19238,57.08676)(541.67729,93.71864)(541.67729,98.01143)
+\curveto(546.14856,99.87164)(561.23909,106.16775)(561.23909,123.91131)
+\curveto(561.23909,139.36538)(550.06092,147.09242)(538.6033,145.66149)
+\curveto(525.88813,144.08746)(522.11549,128.06101)(536.50739,127.77483)
+\curveto(533.29366,131.06597)(537.0663,136.07424)(541.39784,133.64165)
+\curveto(547.96501,129.92123)(540.55948,118.75995)(527.00594,121.04945)
+\curveto(522.25522,121.908)(511.49623,123.48203)(501.29614,124.91296)
+\curveto(578.70498,166.41001)(649.12746,251.26431)(644.79592,393.6421)
+\closepath
+\moveto(480.61653,222.07328)
+\curveto(482.57272,221.21473)(485.0878,220.92854)(488.02207,220.92854)
+\curveto(494.44952,220.92854)(502.55369,222.78875)(509.26059,226.65227)
+\curveto(515.9675,230.51579)(521.41686,236.81189)(521.41686,245.2544)
+\curveto(521.41686,248.68863)(520.57849,252.40906)(518.62232,256.41567)
+\curveto(517.64422,258.41897)(516.66614,259.993)(515.40859,261.42393)
+\curveto(522.11549,256.12948)(525.46895,250.97813)(526.86621,246.39913)
+\curveto(527.14566,245.2544)(527.42513,244.10965)(527.70458,243.10799)
+\curveto(527.84431,241.96325)(527.98403,240.96159)(527.98403,239.95994)
+\curveto(527.98403,236.38261)(527.14566,233.23456)(526.16758,230.80197)
+\curveto(521.41686,217.3512)(508.98114,211.05511)(495.14816,210.91201)
+\curveto(492.91253,210.91201)(490.53715,211.05511)(488.30152,211.48439)
+\curveto(484.5289,213.63079)(481.17544,217.6374)(480.47681,222.35948)
+\curveto(480.47681,222.07328)(480.47681,222.07328)(480.61653,222.07328)
+\closepath
+\moveto(481.45489,209.19489)
+\curveto(485.92616,207.90705)(490.53715,207.33468)(495.00843,207.33468)
+\lineto(495.14816,207.33468)
+\curveto(509.8195,207.33468)(523.79222,214.34625)(529.24157,229.22795)
+\curveto(528.82239,215.92027)(522.25522,210.05346)(513.31268,205.33138)
+\curveto(504.0907,200.4662)(492.49334,197.46124)(484.10971,190.30658)
+\curveto(477.4028,184.58286)(474.60827,177.57128)(474.60827,170.55971)
+\curveto(474.60827,160.54319)(480.05763,150.52665)(487.04398,142.22725)
+\curveto(437.99975,172.9923)(459.79719,203.18497)(481.45489,209.19489)
+\closepath
+\moveto(504.50987,178.71603)
+\curveto(486.6248,172.56302)(489.41934,150.95593)(491.37552,142.37034)
+\curveto(483.83025,150.66975)(478.10145,160.97247)(478.10145,170.41662)
+\curveto(478.10145,176.42654)(480.33708,182.29336)(486.34535,187.44472)
+\curveto(493.89061,194.02701)(505.20851,197.03196)(514.84968,202.04023)
+\curveto(524.49085,207.0485)(532.73476,214.77552)(532.73476,230.0865)
+\curveto(532.73476,234.09312)(532.17585,238.52901)(531.05803,243.53727)
+\curveto(529.80049,252.12287)(523.51277,262.1394)(506.1866,271.58355)
+\curveto(520.29904,270.5819)(546.56774,264.14271)(551.17874,236.6688)
+\curveto(556.34864,206.33303)(527.00594,186.44307)(504.50987,178.71603)
+\closepath
+\moveto(265.01756,121.76492)
+\curveto(258.59011,120.19089)(252.16266,119.18924)(245.59549,119.04614)
+\curveto(246.15439,118.61686)(246.57357,118.18759)(247.13248,117.7583)
+\curveto(250.34621,114.46716)(252.44212,110.60363)(252.58184,106.59702)
+\curveto(252.58184,101.87496)(252.30239,92.2877)(246.99275,84.98995)
+\curveto(250.06676,81.8419)(265.71619,78.55075)(265.71619,78.55075)
+\curveto(267.67237,78.26457)(268.92991,78.40766)(270.32719,78.40766)
+\curveto(274.93818,78.40766)(278.29164,80.98333)(280.80672,85.13304)
+\curveto(283.18208,89.28274)(284.43963,95.00647)(284.43963,100.44401)
+\curveto(284.43963,101.87496)(284.29991,103.44897)(284.16018,104.87991)
+\curveto(282.62318,115.75499)(276.056,122.0511)(265.99565,122.0511)
+\curveto(265.57647,121.76492)(265.29701,121.76492)(265.01756,121.76492)
+\closepath
+\moveto(289.74926,129.92123)
+\curveto(284.43963,127.91793)(279.13,125.91461)(273.68064,124.1975)
+\curveto(281.36563,121.47872)(286.53554,114.46716)(287.65335,105.023)
+\curveto(287.79308,103.44897)(287.9328,101.87496)(287.9328,100.15783)
+\curveto(287.9328,94.14792)(286.53554,87.85181)(283.74099,82.98665)
+\curveto(282.48345,80.84024)(280.94645,78.98002)(279.13,77.54909)
+\curveto(289.19035,77.26291)(299.25071,78.26457)(308.75215,79.98168)
+\lineto(308.75215,79.98168)
+\curveto(320.07005,81.5557)(326.4975,95.43575)(326.4975,107.1694)
+\curveto(326.4975,108.74343)(326.35777,110.31745)(326.07832,111.74838)
+\curveto(324.40159,122.33728)(314.48097,134.07094)(301.62607,134.07094)
+\curveto(297.85344,132.92619)(293.80135,131.35216)(289.74926,129.92123)
+\closepath
+\moveto(350.39084,135.07259)
+\curveto(344.24284,139.22229)(337.67566,140.79631)(330.82904,140.79631)
+\curveto(323.98241,140.79631)(316.7166,139.22229)(309.17133,136.7897)
+\curveto(320.3495,133.21237)(328.0345,122.62347)(329.71123,112.60695)
+\curveto(329.99068,110.88983)(330.1304,109.1727)(330.1304,107.3125)
+\curveto(330.1304,98.86999)(327.0564,88.99656)(321.04814,82.84355)
+\curveto(324.68104,83.7021)(328.0345,84.70376)(331.38794,85.70541)
+\curveto(344.24284,89.56893)(362.68683,99.29928)(363.66491,112.75003)
+\lineto(363.66491,112.60695)
+\curveto(363.66491,113.17931)(363.80465,113.6086)(363.80465,114.18096)
+\curveto(363.52519,123.76822)(355.70047,131.20907)(350.39084,135.07259)
+\closepath
+\moveto(46.204857,390.20786)
+\curveto(66.465287,406.66359)(95.249085,420.25745)(100.69844,414.67681)
+\curveto(106.1478,409.09617)(84.070917,374.61069)(60.736482,350.71412)
+\curveto(80.018828,350.71412)(100.41898,354.57765)(144.15358,393.35592)
+\curveto(149.46321,401.51223)(151.55912,409.95473)(151.55912,418.39724)
+\curveto(151.69885,445.01257)(130.04114,471.34174)(121.23833,480.78589)
+\curveto(110.06016,482.50301)(106.28753,490.65933)(106.1478,491.0886)
+\lineto(106.00808,491.51788)
+\lineto(105.86835,491.94717)
+\curveto(105.86835,492.23335)(104.6108,498.67255)(105.30943,507.25815)
+\curveto(74.709191,500.24657)(51.23503,489.2284)(42.152769,481.50136)
+\curveto(42.152769,481.50136)(44.807582,478.06712)(43.689771,471.05555)
+\curveto(48.719944,468.90916)(57.103573,481.07208)(68.980386,475.92072)
+\curveto(79.180458,471.34174)(88.542184,461.89758)(98.881983,463.32852)
+\lineto(99.860079,458.89262)
+\curveto(88.68191,455.60148)(78.481826,467.04894)(68.002289,471.05555)
+\curveto(57.103573,475.34835)(48.580217,463.32852)(42.711674,466.90585)
+\curveto(42.292495,465.47491)(41.593863,463.7578)(40.755493,462.04067)
+\curveto(41.593863,455.74457)(45.506225,447.87445)(51.374757,443.15236)
+\curveto(51.514483,443.00927)(51.654209,442.72309)(51.654209,442.43691)
+\curveto(51.654209,442.15071)(51.514483,441.86453)(51.374757,441.72143)
+\curveto(46.903489,438.00101)(21.053968,418.82652)(14.347067,412.10113)
+\curveto(14.766246,411.81494)(15.185437,411.52876)(15.744342,411.24257)
+\curveto(24.96633,405.37575)(36.144499,399.65201)(43.130865,399.65201)
+\lineto(44.388402,399.65201)
+\curveto(48.021312,402.65697)(78.481826,423.4055)(96.22717,423.54858)
+\curveto(101.81626,423.54858)(106.42725,421.2591)(107.82453,415.39227)
+\curveto(107.96426,414.96299)(107.6848,414.39062)(107.26561,414.24753)
+\curveto(106.84643,414.10444)(106.28753,414.39062)(106.1478,414.81991)
+\curveto(104.89025,419.68507)(101.39708,421.54528)(96.22717,421.54528)
+\curveto(79.180458,421.68838)(46.624036,399.36583)(45.366499,397.9349)
+\curveto(45.226761,397.7918)(45.087034,397.64871)(44.807582,397.64871)
+\curveto(44.248676,397.64871)(43.689771,397.50562)(43.130865,397.50562)
+\curveto(29.158145,397.64871)(4.1469875,416.39393)(-1.0229167,420.40054)
+\curveto(2.889443,408.95308)(23.010149,393.7852)(46.204857,390.20786)
+\closepath
+\moveto(62.133746,442.29381)
+\curveto(48.999396,444.44021)(47.462406,459.465)(47.462406,459.465)
+\curveto(50.676125,467.33513)(69.259838,468.90916)(80.018828,453.88436)
+\curveto(80.018828,453.88436)(72.473557,440.57669)(62.133746,442.29381)
+\closepath
+\moveto(130.46032,233.09147)
+\curveto(124.59178,230.0865)(120.39996,224.64896)(120.39996,217.92358)
+\curveto(120.53969,209.33798)(125.98905,200.32311)(139.1234,200.18002)
+\curveto(141.91794,200.18002)(145.13167,200.6093)(148.76458,201.61095)
+\curveto(157.70712,205.90375)(160.2222,215.491)(160.2222,221.50091)
+\curveto(160.2222,222.64566)(160.08248,223.64731)(159.94275,224.36278)
+\curveto(159.6633,225.65062)(159.38384,226.93846)(158.96465,227.94011)
+\curveto(149.32349,235.09478)(139.26313,235.52405)(130.46032,233.09147)
+\closepath
+\moveto(12.810065,413.24588)
+\curveto(19.237514,419.68507)(42.991127,437.57173)(49.278849,442.43691)
+\curveto(43.829497,447.15897)(40.336314,453.45508)(39.358229,459.60809)
+\curveto(38.93905,458.74954)(38.380133,457.74788)(37.681501,456.88932)
+\curveto(29.018419,443.00927)(9.8757994,431.848)(-1.0229167,422.69003)
+\curveto(-0.04482616,421.97457)(5.5442594,417.68177)(12.670339,412.95969)
+\curveto(12.810065,413.10278)(12.810065,413.24588)(12.810065,413.24588)
+\closepath
+\moveto(163.71539,419.68507)
+\curveto(163.85511,445.44186)(143.45494,473.48814)(136.18914,482.35991)
+\curveto(135.49049,482.21683)(134.93159,481.93064)(134.23296,481.78754)
+\curveto(131.43842,481.07208)(128.78359,480.78589)(126.26851,480.6428)
+\curveto(136.18914,469.33843)(154.91257,444.72639)(155.0523,418.54032)
+\curveto(155.0523,409.81163)(152.9564,401.08295)(147.64676,392.64045)
+\curveto(149.18376,392.06807)(150.72076,391.4957)(152.11803,390.92332)
+\lineto(152.11803,390.92332)
+\curveto(160.64138,399.36583)(163.71539,409.38235)(163.71539,419.68507)
+\closepath
+\moveto(95.109359,510.12001)
+\curveto(91.895629,516.41612)(85.747633,522.28294)(68.421468,531.44091)
+\curveto(58.500849,520.13653)(57.802205,507.11505)(59.478933,497.09852)
+\curveto(69.539291,502.24988)(81.555818,506.68578)(95.109359,510.12001)
+\closepath
+\moveto(133.25486,486.08034)
+\curveto(146.94813,489.51458)(148.06594,499.6742)(148.06594,499.6742)
+\curveto(148.06594,512.12332)(150.02212,518.27633)(128.64387,540.16959)
+\curveto(103.63271,525.28789)(110.06016,493.09191)(110.06016,493.09191)
+\curveto(110.06016,493.09191)(115.23006,481.50136)(133.25486,486.08034)
+\closepath
+}
+}
+\end{pspicture}
+\end{document}
diff --git a/Master/texmf-dist/doc/xelatex/bidi/bidi-manual.pdf b/Master/texmf-dist/doc/xelatex/bidi/bidi-manual.pdf
new file mode 100644
index 00000000000..826bbfec2ed
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/bidi-manual.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/xelatex/bidi/bidi-manual.tex b/Master/texmf-dist/doc/xelatex/bidi/bidi-manual.tex
new file mode 100644
index 00000000000..dcc7068f6a8
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/bidi-manual.tex
@@ -0,0 +1,856 @@
+\documentclass{article}
+\usepackage{calc}
+\usepackage{pifont}
+\usepackage{bbding}
+\usepackage{bidicode}
+\usepackage{fontspec}
+\definecolor{bidiblue}{rgb}{0.1,0.2,0.8}
+\usepackage[numbered]{hypdoc}
+\hypersetup{pdftitle={The \textsf{bidi} Package (Support for bidirectional typesetting in plain \TeX{} and \LaTeXe)},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}}
+\makeatother
+\newcounter{local}
+\renewcommand\theenumi{\protect\setcounter{local}%
+ {201+\the\value{enumi}}\protect\ding{\value{local}}}
+\renewcommand\labelenumi{\theenumi}
+\renewcommand\labelitemi{\HandRight}
+\renewcommand\labelitemii{\HandRightUp}
+\renewcommand\labelitemiii{\HandCuffRight}
+\renewcommand\labelitemiv{\HandPencilLeft}
+ \title{The \textsf{bidi} Package\\[10pt]
+ \includegraphics[width=0.5\textwidth]{bidi-logo}\\[10pt]
+ Support for bidirectional typesetting in plain \TeX{} and \LaTeXe}
+ \author{Vafa Khalighi\\
+ \url{persian-tex@tug.org}}
+ \date{\today\qquad Version 13.6}
+\begin{document}
+\maketitle
+ \tableofcontents
+\section*{Introduction}
+\textsf{bidi} provides a convenient interface for typesetting bidirectional texts in plain \TeX\ and \LaTeX.
+
+The \textsf{bidi} package at the moment only works with \XeTeX\ engine, but we will support other \TeX\ engines as well in the future.
+\subsection*{\textsf{bidi} Info On The Terminal and In The Log File}
+If you use \textsf{bidi} package to write any input \TeX\ document, and then run \texttt{xelatex} on your document, \textsf{bidi} writes some information about itself to the terminal and to the log file. The information is something like:
+\begin{lstlisting}[backgroundcolor=\color{blue!20},numbers=none,frame=none,framexleftmargin=1mm]
+bidi package (Support for bidirectional typesetting in plain TeX and LaTeX)
+Description: A convenient interface for typesetting bidirectional texts
+in plain TeX and LaTeX. The package includes adaptations for use
+with many other commonly-used packages.
+Copyright (c) 2009-2013 Vafa Khalighi
+v13.6, 2013/09/06
+License: LaTeX Project Public License, version 1.3c or higher (your choice)
+Location on CTAN: /macros/latex/contrib/bidi
+\end{lstlisting}
+\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{fontspec}
+\newfontfamily\Parsifont[Script=Arabic]{Yas}
+\usepackage{bidi}
+\begin{document}
+\setRTL%
+Anyone who reads Old and Middle English literary texts will be
+ familiar with the mid-brown volumes of the EETS, with the symbol
+ of Alfred's jewel embossed on the front cover.
+
+\setLTR% Notice the blank line before \setLTR
+Anyone who reads Old and Middle English literary texts will be
+ familiar with the mid-brown volumes of the EETS, with the symbol
+ of Alfred's jewel embossed on the front cover.
+\end{document}
+\end{lstlisting}
+\subsection{Pargraph Switching Environments}
+\begin{BDef}
+\LBEG{LTR}\quad\Larga{text}\quad\LEND{LTR}\\
+\LBEG{RTL}\quad\Larga{text}\quad\LEND{RTL}
+\end{BDef}
+\begin{itemize}
+\item With \texttt{LTR} environment, you can typeset LTR paragraphs.
+\item With \texttt{RTL} environment, you can typeset RTL paragraphs.
+\end{itemize}
+\begin{lstlisting}
+\documentclass{article}
+\usepackage{bidi}
+\begin{document}
+\begin{RTL}
+Anyone who reads Old and Middle English literary texts will be familiar
+ with the mid-brown volumes of the EETS, with the symbol
+ of Alfred's jewel embossed on the front cover.
+\begin{LTR}
+Anyone who reads Old and Middle English literary texts will be familiar
+ with the mid-brown volumes of the EETS, with the symbol
+ of Alfred's jewel embossed on the front cover.
+\end{LTR}
+And we are still typesetting RTL.
+\end{RTL}
+\end{document}
+\end{lstlisting}
+\subsection{Typesetting Short LTR and RTL Texts}
+\begin{BDef}
+\Lcs{LRE}\Largb{\Larga{text}}\quad\Lcs{LR}\Largb{\Larga{text}}\\
+\Lcs{RLE}\Largb{\Larga{text}}\quad\Lcs{RL}\Largb{\Larga{text}}
+\end{BDef}
+\begin{itemize}
+\item With any of the commands in the first row, you can typeset short LTR text inside RTL paragraphs.
+\item With any of the commands in the second row, you can typeset short RTL text inside LTR paragraphs.
+\end{itemize}
+\begin{lstlisting}
+\begin{document}
+\begin{RTL}
+Anyone who reads Old and Middle English \LRE{Short LTR text} literary texts will be familiar
+ with the mid-brown volumes of the EETS, with the symbol
+ of Alfred's jewel embossed on the front cover.
+\begin{LTR}
+Anyone who reads Old and Middle English \RLE{Short RTL text} literary texts will be familiar
+ with the mid-brown volumes of the EETS, with the symbol
+ of Alfred's jewel embossed on the front cover.
+\end{LTR}
+\end{RTL}
+\end{document}
+\end{lstlisting}
+\subsection{Footnotes}
+\begin{BDef}
+\Lcs{footnote}\OptArg{num}\Largb{\Larga{text}}\quad\Lcs{LTRfootnote}\OptArg{num}\Largb{\Larga{text}}\quad\Lcs{RTLfootnote}\OptArg{num}\Largb{\Larga{text}}\\
+\Lcs{setfootnoteRL}\quad\Lcs{setfootnoteLR}\quad\Lcs{unsetfootnoteRL}\\
+\Lcs{thanks}\Largb{\Larga{text}}\quad\Lcs{LTRthanks}\Largb{\Larga{text}}\quad\Lcs{RTLthanks}\Largb{\Larga{text}}
+\end{BDef}
+\begin{itemize}
+\item \Lcs{footnote} in RTL mode produces an RTL footnote while in LTR mode it produces an LTR footnote.
+\item \Lcs{LTRfootnote} will always produce an LTR footnote, independent on the current mode.
+\item \Lcs{RTLfootnote} will always produce an RTL footnote, independent on the current mode.
+\item Specifying a \Lcs{setfootnoteRL} command anywhere will make \Lcs{footnote} produce an RTL footnote.
+\item Specifying either a \Lcs{setfootnoteLR} or an \Lcs{unsetfootnoteRL} command anywhere will make \Lcs{footnote} produce an LTR footnote.
+\item \Lcs{thanks} (to be used only inside \Lcs{author} or \Lcs{title} argument) in RTL mode produces an RTL footnote while in LTR mode it produces an LTR footnote.
+\item \Lcs{LTRthanks} (to be used only inside \Lcs{author} or \Lcs{title} argument) will always produce an LTR footnote, independent on the current mode.
+\item \Lcs{RTLthanks} (to be used only inside \Lcs{author} or \Lcs{title} argument) will always produce an RTL footnote, independent on the current mode.
+\end{itemize}
+\begin{BDef}
+\Lcs{footnotetext}\OptArg{num}\Largb{\Larga{text}}\quad\Lcs{LTRfootnotetext}\OptArg{num}\Largb{\Larga{text}}\\
+\Lcs{RTLfootnotetext}\OptArg{num}\Largb{\Larga{text}}
+\end{BDef}
+\begin{itemize}
+\item \Lcs{footnotetext} used in conjunction with \Lcs{footnotemark}, in RTL mode produces an RTL footnote while in LTR mode it produces an LTR footnote.
+\item \Lcs{LTRfootnotetext} used in conjunction with \Lcs{footnotemark}, will always produce an LTR footnote, independent on the current mode.
+\item \Lcs{RTLfootnotetext} used in conjunction with \Lcs{footnotemark}, will always produce an RTL footnote, independent on the current mode.
+\end{itemize}
+\subsubsection{Footnote Rule\label{footnoterule}}
+The behavior of footnote rules can also be controlled.
+\begin{BDef}
+\Lcs{autofootnoterule}\quad\Lcs{rightfootnoterule}\quad\Lcs{leftfootnoterule}\\
+\Lcs{LRfootnoterule}\quad\Lcs{textwidthfootnoterule}\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{\textsf{flowfram} Package}
+You can use \textsf{flowfram} package for your bidirectional documents. Please note that \textsf{flowfram} package provides support for bidirectional column typesetting, for details, see its manual.
+\subsection{Multicolumn Typesetting}
+In the previous versions of \textsf{bidi} package, it was recommended that you need to use \textsf{fmultico} package instead the original \textsf{multicol} package for RTL multicolumn typesetting. This is not the case any more and you should not use buggy \textsf{fmultico} package any more. Simply load the original \textsf{multicol} package before loading \textsf{bidi}. \textsf{bidi} now supports \textsf{multicol} package and you can typeset bidirectional multi columns.
+
+In addition, you also can use \textsf{vwcol} package for variable width bidirectional column typesetting.
+\section{Extra \textsf{bidi} Packages and Classes}
+\subsection{\textsf{bidi-longtable} package}
+ For typesetting RTL tables with \textsf{longtable} package, an experimental package, \textsf{bidi-longtable} package, is provided. \textsf{bidi-longtable} package should be loaded after \textsf{longtable} package.
+\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-book} and \textsf{biditufte-handout} classes provide two extra options; \textsf{RTLgeometry} (active when loading either of classes) and \textsf{LTRgeometry}.
+\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.
+
+\subsubsection{\textsf{bidipresentation} Class}
+\textsf{bidipresentation} is a simple class for presentations to be shown on
+screen or beamer. It is derived from \LaTeX's article class. The “virtual paper
+size” of documents produced by this class: width=128mm, height=96mm.
+\textsf{bidipresentation} requires that the \textsf{fancyhdr} and \textsf{geometry} packages
+are available on the system. Enhancements to the \textsf{bidipresentation}
+class are easily made available by other packages, these include slides with
+a background from a bitmap (\textsf{eso-pic} package).
+
+\paragraph{Usage:}
+The class is used with
+\begin{BDef}
+\Lcs{documentclass}\OptArgs\Largb{bidipresentation}
+\end{BDef}
+ Options of the article class are also available to \textsf{bidipresentation}, e. g.
+ 10pt, 11pt, 12pt for selection of font size. However, not all options of the
+ article class will be appropriate for a presentation class, e. g. twocolumn.
+
+A simple example document:
+\begin{lstlisting}[morekeywords={AddToShipoutPicture,includegraphics,distance}]
+ \documentclass[12pt]{bidipresentation}
+ \usepackage{eso-pic}
+ \usepackage[RTLdocument]{bidi}
+ \pagestyle{pres}
+ \AddToShipoutPicture{
+ \includegraphics{gradient2.png}
+}
+ \begin{document}
+ \begin{titlepage}
+\centering
+ \distance{1}
+ {
+\Huge \bfseries Title of the presentation \par
+}
+ \vspace{1.3ex} \large
+ Author\\[2ex]Institution
+ \distance{2}
+ \end{titlepage}
+ \begin{plainslide}[Title of Page]
+The first page
+\end{plainslide}
+\begin{rawslide}
+The second page
+ \end{rawslide}
+\end{document}
+\end{lstlisting}
+The title page can be created within the \texttt{titlepage} environment, the \Lcs{maketitle}
+command is not available. Slides may be created with the \texttt{plainslide} environment, you may add the title of the slide with the optional parameter. The
+contents of the slide are centered vertically. Another environment generating a slide is \texttt{rawslide}: slides are written without title, contents are not
+vertically centered.
+
+The \Lcs{distance}\Largb{\Larga{number}} command allows to introduce vertical space into
+slides constructed with the \texttt{rawslide} and \texttt{titlepage} environments. You should
+use pairs of \Lcs{distance}\Largb{} commands with numbers indicating the relative
+height of empty space, see the titlepage in the example above.
+
+Pictures can be included with the \Lcs{includegraphics} command of the \textsf{graphicx} package. Please be aware that the dimensions of the pages are 128mm $\times$
+96mm and therefore included graphics are scaled appropriately.
+
+\paragraph{Enhancements to \textsf{bidipresentation}:}
+
+\subparagraph{Fill background of a presentation with bitmaps:}
+\textsf{eso-pic} package allows you to paint the background with a picture:
+\begin{lstlisting}[morekeywords={AddToShipoutPicture,includegraphics}]
+\usepackage{eso-pic}
+...
+\AddToShipoutPicture{
+\includegraphics{gradient2.png}
+}
+\end{lstlisting}
+\Lcs{AddToShipoutPicture}\Largb{} puts the picture on every page, \Lcs{AddToShipoutPicture*}\Largb{}
+puts it on to the current page, \Lcs{ClearShipoutPicture} clears the background
+beginning with the current page. Details of \textsf{eso-pic}’s commands can be
+found in its own documentation.
+
+
+
+\section{Some Useful Internal Macros 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@Latin}
+\end{BDef}
+\Lcs{if@Latin} inside any environment that uses Latin font is true and inside any environment that uses RTL font is false.
+\subsection{Tags Internal Macro}
+\begin{BDef}
+\Lcs{@iftagsloaded}\Largb{\Larga{tags name}}\Largb{\Larga{do thing(s) if the tag is loaded}}\\
+\Largb{\Larga{do thing(s) if the tag is not loaded}}
+\end{BDef}
+As you can see, the syntax of \Lcs{@iftagsloaded} is exactly the same as the syntax of \Lcs{@ifpackageloaded} and \Lcs{@ifclassloaded}. By tags, we mean things like \texttt{leqno} or \texttt{reqno}. Please note that in the argument \Larga{tags name}, the extension \texttt{clo} should not be given.
+\subsection{Definition File Loaded Internal Macro}
+\begin{BDef}
+\Lcs{@ifdefinitionfileloaded}\Largb{\Larga{definition file name}}\\
+\Largb{\Larga{do thing(s) if the definition file is loaded}}\\
+\Largb{\Larga{do thing(s) if the definition file is not loaded}}
+\end{BDef}
+As you can see, the syntax of \Lcs{@ifdefinitionfileloaded} is exactly the same as the syntax of \Lcs{@ifpackageloaded} and \Lcs{@ifclassloaded}. By definition file, we mean things like \texttt{hyperref-bidi.def} or \texttt{wrapfig-bidi.def}. Please note that in the argument \Larga{definition file name}, the extension \texttt{def} should not be given.
+\subsection{Tabular Conditional}
+\begin{BDef}
+\Lcs{if@RTLtab}
+\end{BDef}
+If the tabular is typeset RTL, \Lcs{if@RTLtab} is true and if the tabular is typeset LTR, \Lcs{if@RTLtab} is false.
+\subsection{Footnote Conditional}
+\begin{BDef}
+\Lcs{if@RTL@footnote}
+\end{BDef}
+When footnotes are typeset RTL, \Lcs{if@RTL@footnote} is true and when footnotes are typeset LTR, \Lcs{if@RTL@footnote} is false.
+\subsection{Direction Ensuring Macros}
+\begin{BDef}
+\Lcs{@ensure@RTL}\Largb{\Larga{text}}\quad\Lcs{@ensure@RL}\Largb{\Larga{text}}\quad\Lcs{@ensure@LTR}\Largb{\Larga{text}}\\
+\Lcs{@ensure@LR}\Largb{\Larga{text}}\quad
+\Lcs{@ensure@dir}\Largb{\Larga{text}}\quad\Lcs{@ensure@maindir}\Largb{\Larga{text}}
+\end{BDef}
+\begin{itemize}
+\item \Lcs{@ensure@RTL} and \Lcs{@ensure@RL} internals make sure that \Larga{text} is always typeset RTL, independent on the current mode.
+\item \Lcs{@ensure@LTR} and \Lcs{@ensure@LR} internals make sure that \Larga{text} is always typeset LTR, independent on the current mode.
+\item \Lcs{@ensure@dir} and \Lcs{@ensure@maindir} if used in RTL mode, they put \Larga{text} inside \Lcs{RLE} and if used in LTR mode, they put the text as it is.
+\end{itemize}
+\subsection{Reset Direction Macro}
+\begin{BDef}
+\Lcs{save@dir}\quad\Lcs{saved@@dir}\quad\Lcs{reset@dir}
+\end{BDef}
+\begin{itemize}
+\item \Lcs{save@dir}, if the direction of typesetting is RTL, defines \Lcs{saved@@dir} to be RTL and if the direction of typesetting is LTR, defines \Lcs{saved@@dir} to be LTR.
+\item \Lcs{reset@dir}, if \Lcs{saved@@dir} is defined as RTL, inserts \Lcs{setRTL} otherwise, if \Lcs{saved@@dir} is defined as LTR, inserts \Lcs{setLTR}, otherwise does nothing.
+\end{itemize}
+\part{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}
+\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/doc/xelatex/bidi/bidisample2e.tex b/Master/texmf-dist/doc/xelatex/bidi/bidisample2e.tex
new file mode 100644
index 00000000000..b05e6488567
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/bidisample2e.tex
@@ -0,0 +1,198 @@
+\documentclass{article} % Specifies the document class
+\usepackage[RTLdocument]{bidi}
+ % The preamble begins here.
+\title{An Example Document} % Declares the document's title.
+\author{Leslie Lamport} % Declares the author's name.
+\date{January 21, 1994} % Deleting this command produces today's date.
+
+\newcommand{\ip}[2]{(#1, #2)}
+ % Defines \ip{arg1}{arg2} to mean
+ % (arg1, arg2).
+
+ % This is an alternative definition of
+ % \ip that is commented out.
+
+\begin{document} % End of preamble and beginning of text.
+
+\maketitle % Produces the title.
+
+This is an example input file. Comparing it with
+the output it generates can show you how to
+produce a simple document of your own.
+
+\section{Ordinary Text} % Produces section heading. Lower-level
+ % sections are begun with similar
+ % \subsection and \subsubsection commands.
+
+The ends of words and sentences are marked
+ by spaces. It doesn't matter how many
+spaces you type; one is as good as 100. The
+end of a line counts as a space.
+
+One or more blank lines denote the end
+of a paragraph.
+
+Since any number of consecutive spaces are treated
+like a single one, the formatting of the input
+file makes no difference to
+ \LaTeX, % The \LaTeX command generates the LaTeX logo.
+but it makes a difference to you. When you use
+\LaTeX, making your input file as easy to read
+as possible will be a great help as you write
+your document and when you change it. This sample
+file shows how you can add comments to your own input
+file.
+
+Because printing is different from typewriting,
+there are a number of things that you have to do
+differently when preparing an input file than if
+you were just typing the document directly.
+Quotation marks like
+ ``this''
+have to be handled specially, as do quotes within
+quotes:
+ ``\,`this' % \, separates the double and single quote.
+ is what I just
+ wrote, not `that'\,''.
+
+Dashes come in three sizes: an
+ intra-word
+dash, a medium dash for number ranges like
+ 1--2,
+and a punctuation
+ dash---like
+this.
+
+A sentence-ending space should be larger than the
+space between words within a sentence. You
+sometimes have to type special commands in
+conjunction with punctuation characters to get
+this right, as in the following sentence.
+ Gnats, gnus, etc.\ all % `\ ' makes an inter-word space.
+ begin with G\@. % \@ marks end-of-sentence punctuation.
+You should check the spaces after periods when
+reading your output to make sure you haven't
+forgotten any special cases. Generating an
+ellipsis
+ \ldots\ % `\ ' is needed after `\ldots' because TeX
+ % ignores spaces after command names like \ldots
+ % made from \ + letters.
+ %
+ % Note how a `%' character causes TeX to ignore
+ % the end of the input line, so these blank lines
+ % do not start a new paragraph.
+ %
+with the right spacing around the periods requires
+a special command.
+
+\LaTeX\ interprets some common characters as
+commands, so you must type special commands to
+generate them. These characters include the
+following:
+ \$ \& \% \# \{ and \}.
+
+In printing, text is usually emphasized with an
+ \emph{italic}
+type style.
+
+\begin{em}
+ A long segment of text can also be emphasized
+ in this way. Text within such a segment can be
+ given \emph{additional} emphasis.
+\end{em}
+
+It is sometimes necessary to prevent \LaTeX\ from
+breaking a line where it might otherwise do so.
+This may be at a space, as between the ``Mr.''\ and
+``Jones'' in
+ ``Mr.~Jones'', % ~ produces an unbreakable interword space.
+or within a word---especially when the word is a
+symbol like
+ \mbox{\emph{itemnum}}
+that makes little sense when hyphenated across
+lines.
+
+Footnotes\footnote{This is an example of a footnote.}
+pose no problem.
+
+\LaTeX\ is good at typesetting mathematical formulas
+like
+ \( x-3y + z = 7 \)
+or
+ \( a_{1} > x^{2n} + y^{2n} > x' \)
+or
+ \( \ip{A}{B} = \sum_{i} a_{i} b_{i} \).
+The spaces you type in a formula are
+ignored. Remember that a letter like
+ $x$ % $ ... $ and \( ... \) are equivalent
+is a formula when it denotes a mathematical
+symbol, and it should be typed as one.
+
+\section{Displayed Text}
+
+Text is displayed by indenting it from the left
+margin. Quotations are commonly displayed. There
+are short quotations
+\begin{quote}
+ This is a short quotation. It consists of a
+ single paragraph of text. See how it is formatted.
+\end{quote}
+and longer ones.
+\begin{quotation}
+ This is a longer quotation. It consists of two
+ paragraphs of text, neither of which are
+ particularly interesting.
+
+ This is the second paragraph of the quotation. It
+ is just as dull as the first paragraph.
+\end{quotation}
+Another frequently-displayed structure is a list.
+The following is an example of an \emph{itemized}
+list.
+\begin{itemize}
+ \item This is the first item of an itemized list.
+ Each item in the list is marked with a ``tick''.
+ You don't have to worry about what kind of tick
+ mark is used.
+
+ \item This is the second item of the list. It
+ contains another list nested inside it. The inner
+ list is an \emph{enumerated} list.
+ \begin{enumerate}
+ \item This is the first item of an enumerated
+ list that is nested within the itemized list.
+
+ \item This is the second item of the inner list.
+ \LaTeX\ allows you to nest lists deeper than
+ you really should.
+ \end{enumerate}
+ This is the rest of the second item of the outer
+ list. It is no more interesting than any other
+ part of the item.
+ \item This is the third item of the list.
+\end{itemize}
+You can even display poetry.
+\begin{verse}
+ There is an environment
+ for verse \\ % The \\ command separates lines
+ Whose features some poets % within a stanza.
+ will curse.
+
+ % One or more blank lines separate stanzas.
+
+ For instead of making\\
+ Them do \emph{all} line breaking, \\
+ It allows them to put too many words on a line when they'd rather be
+ forced to be terse.
+\end{verse}
+
+Mathematical formulas may also be displayed. A
+displayed formula
+is
+one-line long; multiline
+formulas require special formatting instructions.
+ \[ \ip{\Gamma}{\psi'} = x'' + y^{2} + z_{i}^{n}\]
+Don't start a paragraph with a displayed equation,
+nor make one a paragraph by itself.
+
+\end{document} % End of document.
diff --git a/Master/texmf-dist/doc/xelatex/bidi/bidismall2e.tex b/Master/texmf-dist/doc/xelatex/bidi/bidismall2e.tex
new file mode 100644
index 00000000000..ea4c975d485
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/bidismall2e.tex
@@ -0,0 +1,30 @@
+\documentclass{article} % Your input file must contain these two lines
+\usepackage[RTLdocument]{bidi}
+\begin{document} % plus the \end{document} command at the end.
+
+\section{Simple Text} % This command makes a section title.
+
+Words are separated by one or more spaces. Paragraphs are separated by
+one or more blank lines. The output is not affected by adding extra
+spaces or extra blank lines to the input file.
+
+Double quotes are typed like this: ``quoted text''.
+Single quotes are typed like this: `single-quoted text'.
+
+Long dashes are typed as three dash characters---like this.
+
+Emphasized text is typed like this: \emph{this is emphasized}.
+Bold text is typed like this: \textbf{this is bold}.
+
+\subsection{A Warning or Two} % This command makes a subsection title.
+
+If you get too much space after a mid-sentence period---abbreviations
+like etc.\ are the common culprits)---then type a backslash followed by
+a space after the period, as in this sentence.
+
+Remember, don't type the 10 special characters (such as dollar sign and
+backslash) except as directed! The following seven are printed by
+typing a backslash in front of them: \$ \& \# \% \_ \{ and \}.
+The manual tells how to make other symbols.
+
+\end{document} % The input file ends with this command.
diff --git a/Master/texmf-dist/doc/xelatex/bidi/gull.jpg b/Master/texmf-dist/doc/xelatex/bidi/gull.jpg
new file mode 100644
index 00000000000..a77d1bd3421
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/gull.jpg
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.tex b/Master/texmf-dist/doc/xelatex/bidi/presentation-sample.tex
new file mode 100644
index 00000000000..c82e05fc44b
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/presentation-sample.tex
@@ -0,0 +1,46 @@
+\documentclass[12pt,twoside]{bidipresentation}
+\usepackage{fontspec}
+\setmainfont[Script=Arabic,Mapping=farsidigits]{XB Niloofar}
+\usepackage[RTLdocument]{bidi}
+\pagestyle{pres}
+
+\begin{document}
+\begin{titlepage}
+\distance{1}
+\centering \LARGE
+ \bfseries عنوان اسلاید
+
+\distance{1}
+\large
+وفا خلیقی\\[1ex]نام دانشگاه
+\distance{2}
+\end{titlepage}
+
+\begin{plainslide}[این عنوان یک صفحه است.]
+این اولین صفحه اسلاید ما است که من در حال نوشتن آن هستم و کمی بیشتر می‌نویسم تا به خط بعدی بروم
+\footnote{این یک زیرنویس فارسی است.}\LTRfootnote{This is an English footnote.}
+\begin{equation}
+(a+b)^2=a^2+2ab+b^2
+\end{equation}
+\begin{itemize}
+ \item یک
+ \item دو
+\end{itemize}
+
+\begin{enumerate}
+ \item یک
+ \item دو
+\end{enumerate}
+
+\begin{description}
+ \item [یک:] اولین عدد
+ \item [دو:] دومین عدد
+\end{description}
+
+\end{plainslide}
+\begin{rawslide}
+دومین صفحه
+
+\end{rawslide}
+
+\end{document}
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..c6b7cc8029f
--- /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}
diff --git a/Master/texmf-dist/doc/xelatex/bidi/test-bidi.tex b/Master/texmf-dist/doc/xelatex/bidi/test-bidi.tex
new file mode 100644
index 00000000000..e81a1dc599b
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/test-bidi.tex
@@ -0,0 +1,43 @@
+\documentclass{article}
+\usepackage{bidi}
+\title{Testing Basic Bidi Direction Change}
+\author{Vafa Khalighi}
+\begin{document}
+\maketitle
+In this document we test bidi direction change in \textsf{RTL} and \textsf{LTR}. These tests includes \texttt{flushleft}, \texttt{flushright} environments and \verb|\centerline{...}|, \verb|\leftline{...}|,\verb|\rightline{...}|,\verb|\raggedleft| and \verb|\raggedright| macros.
+\section{RTL Test}
+\setRTL
+\begin{flushleft}
+This is left in RTL
+\end{flushleft}
+\begin{flushright}
+This is right in RTL
+\end{flushright}
+\centerline{This is center in RTL}
+
+\leftline{This is left in RTL}
+
+\rightline{This is right in RTL}
+
+\raggedleft This is raggedleft in RTL
+
+\raggedright This is raggedright in RTL
+
+\setLTR
+\section{LTR Test}
+\begin{flushleft}
+This is left in LTR
+\end{flushleft}
+\begin{flushright}
+This is right in LTR
+\end{flushright}
+\centerline{This is center in LTR}
+
+\leftline{This is left in LTR}
+
+\rightline{This is right in LTR}
+
+\raggedleft This is raggedleft in LTR
+
+\raggedright This is raggedright in LTR
+\end{document}
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..f37b160a726
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/test-brochure.tex
@@ -0,0 +1,342 @@
+\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}
+\adjustheight{\textheight}
+
+\onecolumninarea[1,2]{0.6\textwidth}{\textheight}{0.4\textwidth}{0pt}
+\twocolumninarea[>2]{0.6\textwidth}{\textheight}{0.4\textwidth}{0pt}
+
+
+\newdynamicframe{0.4\textwidth}{\textheight}{0pt}{0pt}[left]
+
+\dfchaphead*{left}
+\renewcommand{\DFchapterstyle}[1]{%
+\raggedright\Huge\slshape\MakeUppercase{#1}\par}
+
+\vtwotone[1]{0.6\paperwidth}{[cmyk]{0.65,0.13,0,0}}{backleft}%
+{0.4\paperwidth}{[cmyk]{0.94,0.54,0,0}}{backright}
+
+\vtwotonetop{1cm}{0.6\paperwidth}{[cmyk]{0.65,0.13,0,0}}{topleft}%
+{0.4\paperwidth}{[cmyk]{0.94,0.54,0,0}}{topright}
+
+\newstaticframe{0.2\textwidth}{0.25\textheight}{0pt}{0pt}[logo]
+
+\pagestyle{empty}
+
+\renewcommand{\chapterfirstpagestyle}{empty}
+
+\newdynamicframe[>1]{\textwidth}{\headheight}{0pt}{-\footskip}[footer]
+
+\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}
+
+\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.tex b/Master/texmf-dist/doc/xelatex/bidi/test-casualcv.tex
new file mode 100644
index 00000000000..a8b3197bae7
--- /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{vafakh@me.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-classiccv.tex b/Master/texmf-dist/doc/xelatex/bidi/test-classiccv.tex
new file mode 100644
index 00000000000..e5369c6b605
--- /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{vafakh@me.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.tex b/Master/texmf-dist/doc/xelatex/bidi/test-color.tex
new file mode 100644
index 00000000000..a7156706564
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/test-color.tex
@@ -0,0 +1,39 @@
+\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.tex b/Master/texmf-dist/doc/xelatex/bidi/test-supertabular.tex
new file mode 100644
index 00000000000..af040d23c2c
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/test-supertabular.tex
@@ -0,0 +1,116 @@
+\documentclass{article}
+\usepackage{supertabular}
+\usepackage{bidi}
+\title{Testing \textsf{supertabular} package in RTL and LTR}
+\author{Vafa Khalighi}
+\begin{document}
+\maketitle
+\section{LTR}
+\tablecaption{The ISOGRK3 entity set}
+\tablehead
+ {\bfseries Entity&\bfseries Unicode Name&\bfseries Unicode\\ \hline}
+\tabletail
+ {\hline \multicolumn{3}{r}{\emph{Continued on next page}}\\}
+\tablelasttail{\hline}
+\begin{supertabular}{lll}
+alpha & GREEK SMALL LETTER ALPHA & 03B1\\
+beta & GREEK SMALL LETTER BETA & 03B2\\
+chi & GREEK SMALL LETTER CHI & 03C7\\
+Delta & GREEK CAPITAL LETTER DELTA & 0394\\
+delta & GREEK SMALL LETTER DELTA & 03B4\\
+epsi & GREEK SMALL LETTER EPSILON & 03B5\\
+epsis & GREEK LUNATE EPSILON SYMBOL & 03F5\\
+\empty
+epsiv & GREEK SMALL LETTER EPSILON & 03B5\\
+eta & GREEK SMALL LETTER ETA & 03B7\\
+Gamma & GREEK CAPITAL LETTER GAMMA & 0393\\
+gamma & GREEK SMALL LETTER GAMMA & 03B3\\
+gammad & GREEK SMALL LETTER DIGAMMA & 03DD\\
+iota & GREEK SMALL LETTER IOTA & 03B9\\
+kappa & GREEK SMALL LETTER KAPPA & 03BA\\
+kappav & GREEK KAPPA SYMBOL & 03F0\\
+Lambda & GREEK CAPITAL LETTER LAMDA & 039B\\
+lambda & GREEK SMALL LETTER LAMDA & 03BB\\
+mu & GREEK SMALL LETTER MU & 03BC\\
+nu & GREEK SMALL LETTER NU & 03BD\\
+Omega & GREEK CAPITAL LETTER OMEGA & 03A9\\
+omega & GREEK SMALL LETTER OMEGA & 03C9\\
+Phi & GREEK CAPITAL LETTER PHI & 03A6\\
+phis & GREEK PHI SYMBOL & 03D5\\
+phiv & GREEK SMALL LETTER PHI & 03C6\\
+Pi & GREEK CAPITAL LETTER PI & 03A0\\
+pi & GREEK SMALL LETTER PI & 03C0\\
+piv & GREEK PI SYMBOL & 03D6\\
+Psi & GREEK CAPITAL LETTER PSI & 03A8\\
+psi & GREEK SMALL LETTER PSI & 03C8\\
+rho & GREEK SMALL LETTER RHO & 03C1\\
+rhov & GREEK RHO SYMBOL & 03F1\\
+Sigma & GREEK CAPITAL LETTER SIGMA & 03A3\\
+sigma & GREEK SMALL LETTER SIGMA & 03C3\\
+sigmav & GREEK SMALL LETTER FINAL SIGMA & 03C2\\
+tau & GREEK SMALL LETTER TAU & 03C4\\
+Theta & GREEK CAPITAL LETTER THETA & 0398\\
+thetas & GREEK SMALL LETTER THETA & 03B8\\
+thetav & GREEK THETA SYMBOL & 03D1\\
+Upsi & GREEK UPSILON WITH HOOK SYMBOL & 03D2\\
+upsi & GREEK SMALL LETTER UPSILON & 03C5\\
+Xi & GREEK CAPITAL LETTER XI & 039E\\
+xi & GREEK SMALL LETTER XI & 03BE\\
+zeta & GREEK SMALL LETTER ZETA & 03B6\\
+\end{supertabular}
+\section{RTL}
+
+\setRTL
+\tablecaption{The ISOGRK3 entity set}
+\tablehead
+ {\bfseries Entity&\bfseries Unicode Name&\bfseries Unicode\\ \hline}
+\tabletail
+ {\hline \multicolumn{3}{l}{\emph{Continued on next page}}\\}
+\tablelasttail{\hline}
+\begin{supertabular}{rrr}
+alpha & GREEK SMALL LETTER ALPHA & 03B1\\
+beta & GREEK SMALL LETTER BETA & 03B2\\
+chi & GREEK SMALL LETTER CHI & 03C7\\
+Delta & GREEK CAPITAL LETTER DELTA & 0394\\
+delta & GREEK SMALL LETTER DELTA & 03B4\\
+epsi & GREEK SMALL LETTER EPSILON & 03B5\\
+epsis & GREEK LUNATE EPSILON SYMBOL & 03F5\\
+\empty
+epsiv & GREEK SMALL LETTER EPSILON & 03B5\\
+eta & GREEK SMALL LETTER ETA & 03B7\\
+Gamma & GREEK CAPITAL LETTER GAMMA & 0393\\
+gamma & GREEK SMALL LETTER GAMMA & 03B3\\
+gammad & GREEK SMALL LETTER DIGAMMA & 03DD\\
+iota & GREEK SMALL LETTER IOTA & 03B9\\
+kappa & GREEK SMALL LETTER KAPPA & 03BA\\
+kappav & GREEK KAPPA SYMBOL & 03F0\\
+Lambda & GREEK CAPITAL LETTER LAMDA & 039B\\
+lambda & GREEK SMALL LETTER LAMDA & 03BB\\
+mu & GREEK SMALL LETTER MU & 03BC\\
+nu & GREEK SMALL LETTER NU & 03BD\\
+Omega & GREEK CAPITAL LETTER OMEGA & 03A9\\
+omega & GREEK SMALL LETTER OMEGA & 03C9\\
+Phi & GREEK CAPITAL LETTER PHI & 03A6\\
+phis & GREEK PHI SYMBOL & 03D5\\
+phiv & GREEK SMALL LETTER PHI & 03C6\\
+Pi & GREEK CAPITAL LETTER PI & 03A0\\
+pi & GREEK SMALL LETTER PI & 03C0\\
+piv & GREEK PI SYMBOL & 03D6\\
+Psi & GREEK CAPITAL LETTER PSI & 03A8\\
+psi & GREEK SMALL LETTER PSI & 03C8\\
+rho & GREEK SMALL LETTER RHO & 03C1\\
+rhov & GREEK RHO SYMBOL & 03F1\\
+Sigma & GREEK CAPITAL LETTER SIGMA & 03A3\\
+sigma & GREEK SMALL LETTER SIGMA & 03C3\\
+sigmav & GREEK SMALL LETTER FINAL SIGMA & 03C2\\
+tau & GREEK SMALL LETTER TAU & 03C4\\
+Theta & GREEK CAPITAL LETTER THETA & 0398\\
+thetas & GREEK SMALL LETTER THETA & 03B8\\
+thetav & GREEK THETA SYMBOL & 03D1\\
+Upsi & GREEK UPSILON WITH HOOK SYMBOL & 03D2\\
+upsi & GREEK SMALL LETTER UPSILON & 03C5\\
+Xi & GREEK CAPITAL LETTER XI & 039E\\
+xi & GREEK SMALL LETTER XI & 03BE\\
+zeta & GREEK SMALL LETTER ZETA & 03B6\\
+\end{supertabular}
+\end{document}
diff --git a/Master/texmf-dist/doc/xelatex/bidi/test-tabular.tex b/Master/texmf-dist/doc/xelatex/bidi/test-tabular.tex
new file mode 100644
index 00000000000..826f38c3515
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/test-tabular.tex
@@ -0,0 +1,63 @@
+\documentclass{article}
+\usepackage{bidi}
+\title{Testing \LaTeX's Default Tabular in \textsf{RTL} and \textsf{LTR}}
+\author{Vafa Khalighi}
+\newcommand{\rb}[1]{\raisebox{1.5ex}[0mm]{#1}}
+\begin{document}
+\maketitle
+In this document we test \LaTeX's default tabular in \textsf{RTL} and \textsf{LTR}.
+\section{LTR}
+\begin{center}\small
+\begin{tabular}{|l||c|l|c|l|c|l|}
+\hline
+& \multicolumn{2}{c|}{6.15--7.15 pm} & \multicolumn{2}{c|}{7.20--8.20 pm}
+& \multicolumn{2}{c|}{8.30--9.30 pm} \\ \cline{2-7}
+&& Teacher && Teacher && Teacher \\ \cline{3-3}\cline{5-5}\cline{7-7}
+\rb{Day} & \rb{Subj.} & Room & \rb{Subj.} & Room & \rb{Subj.} & Room\\
+ \hline\hline
+&& Dr.~Smith && Ms.~Clark && Mr.~Mills\\
+\cline{3-3}\cline{5-5}\cline{7-7}
+\rb{Mon.} & \rb{UNIX} & Comp. Ctr & \rb{Fortran} & Hall A
+ & \rb{Math.} & Hall A \\ \hline
+&& Miss Baker && Ms.~Clark && Mr.~Mill\\
+\cline{3-3}\cline{5-5}\cline{7-7}
+\rb{Tues.} & \rb{\LaTeX} & Conf.~Room & \rb{Fortran} & Conf~Room
+ & \rb{Math.} & Hall A \\ \hline
+&& Dr.~Smith && Dr.~Jones && Dr.~Jones \\
+\cline{3-3}\cline{5-5}\cline{7-7}
+\rb{Wed.} & \rb{UNIX} & Comp. Ctr & \rb{C} & Hall A
+ & \rb{ComSci.} & Hall A \\ \hline
+&& Miss Baker && Ms. Clark & \multicolumn{2}{c|}{} \\
+\cline{3-3}\cline{5-5}
+\rb{Fri.} & \rb{\LaTeX} & Conf.~Room & \rb{C++} & Conf.~Room
+& \multicolumn{2}{c|}{\rb{canceled}}\\ \hline
+\end{tabular}\end{center}
+\section{RTL}
+
+\setRTL
+\begin{center}\small
+\begin{tabular}{|r||c|r|c|r|c|r|}
+\hline
+& \multicolumn{2}{c|}{6.15--7.15 pm} & \multicolumn{2}{c|}{7.20--8.20 pm}
+& \multicolumn{2}{c|}{8.30--9.30 pm} \\ \cline{2-7}
+&& Teacher && Teacher && Teacher \\ \cline{3-3}\cline{5-5}\cline{7-7}
+\rb{Day} & \rb{Subj.} & Room & \rb{Subj.} & Room & \rb{Subj.} & Room\\
+ \hline\hline
+&& Dr.~Smith && Ms.~Clark && Mr.~Mills\\
+\cline{3-3}\cline{5-5}\cline{7-7}
+\rb{Mon.} & \rb{UNIX} & Comp. Ctr & \rb{Fortran} & Hall A
+ & \rb{Math.} & Hall A \\ \hline
+&& Miss Baker && Ms.~Clark && Mr.~Mill\\
+\cline{3-3}\cline{5-5}\cline{7-7}
+\rb{Tues.} & \rb{\LaTeX} & Conf.~Room & \rb{Fortran} & Conf~Room
+ & \rb{Math.} & Hall A \\ \hline
+&& Dr.~Smith && Dr.~Jones && Dr.~Jones \\
+\cline{3-3}\cline{5-5}\cline{7-7}
+\rb{Wed.} & \rb{UNIX} & Comp. Ctr & \rb{C} & Hall A
+ & \rb{ComSci.} & Hall A \\ \hline
+&& Miss Baker && Ms. Clark & \multicolumn{2}{c|}{} \\
+\cline{3-3}\cline{5-5}
+\rb{Fri.} & \rb{\LaTeX} & Conf.~Room & \rb{C++} & Conf.~Room
+& \multicolumn{2}{c|}{\rb{canceled}}\\ \hline
+\end{tabular}\end{center}
+\end{document}
diff --git a/Master/texmf-dist/doc/xelatex/bidi/test-tabularx.tex b/Master/texmf-dist/doc/xelatex/bidi/test-tabularx.tex
new file mode 100644
index 00000000000..719c266896f
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/test-tabularx.tex
@@ -0,0 +1,40 @@
+\documentclass{article}
+\usepackage{tabularx}
+\usepackage{bidi}
+\title{Testing \textsf{tabularx} Package in RTL and LTR}
+\author{Vafa Khalighi}
+\begin{document}
+\maketitle
+\section{LTR}
+\begin{tabularx}{\linewidth}{|l|p{1.25cm}|p{1.5cm}|X|}\hline
+\multicolumn{1}{|c|}{\textbf{Animal}}
+ & \textbf{Hair Colour}
+ & \multicolumn{2}{c|}{\textbf{Favourite foods}} \\\hline\hline
+Elephant & Gray & Peanuts
+ & Unshelled, prepared in Sea Salt, and warmed over hot stone grill \\\cline{3-4}
+ & & Cabbage and Greens
+ & Sun dried until lightly browned (2-3 days minimum);
+ seasoned with Hyperchem super feed \\\cline{4-4}
+ & & & Boiled to British standard \\\hline\hline
+Lion & Yellow & Elephants & Tartare \\\cline{4-4}
+& & & Must be served warm, with no trace of
+ buckshot. Gaiminess considered desireable. \\\hline
+\end{tabularx}
+\section{RTL}
+
+\setRTL
+\begin{tabularx}{\linewidth}{|r|p{1.25cm}|p{1.5cm}|X|}\hline
+\multicolumn{1}{|c|}{\textbf{Animal}}
+ & \textbf{Hair Colour}
+ & \multicolumn{2}{c|}{\textbf{Favourite foods}} \\\hline\hline
+Elephant & Gray & Peanuts
+ & Unshelled, prepared in Sea Salt, and warmed over hot stone grill \\\cline{3-4}
+ & & Cabbage and Greens
+ & Sun dried until lightly browned (2-3 days minimum);
+ seasoned with Hyperchem super feed \\\cline{4-4}
+ & & & Boiled to British standard \\\hline\hline
+Lion & Yellow & Elephants & Tartare \\\cline{4-4}
+& & & Must be served warm, with no trace of
+ buckshot. Gaiminess considered desireable. \\\hline
+\end{tabularx}
+\end{document}
diff --git a/Master/texmf-dist/doc/xelatex/bidi/test-tabulary.tex b/Master/texmf-dist/doc/xelatex/bidi/test-tabulary.tex
new file mode 100644
index 00000000000..81067943c49
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/test-tabulary.tex
@@ -0,0 +1,30 @@
+\documentclass{article}
+\usepackage{tabulary}
+\setlength\tymin{10pt}
+\setlength\tymax{\maxdimen}
+\usepackage{bidi}
+\title{Testing \textsf{tabulary} package in RTL and LTR}
+\author{Vafa Khalighi}
+\begin{document}
+\maketitle
+\section{LTR}
+\begin{tabulary}{200pt}{|C|C|C|C|}
+ a & b b b b &
+ c c c c c c c c c c c c c c c c c c &
+ d d d d d d d d d d d d d d d d d d
+\empty
+ d d d d d d d d d d d d d d
+ d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d
+ \end{tabulary}
+\section{RTL}
+
+\setRTL
+\begin{tabulary}{200pt}{|C|C|C|C|}
+ a & b b b b &
+ c c c c c c c c c c c c c c c c c c &
+ d d d d d d d d d d d d d d d d d d
+\empty
+ d d d d d d d d d d d d d d
+ d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d
+ \end{tabulary}
+\end{document}
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.tex b/Master/texmf-dist/doc/xelatex/bidi/test1-wrapfig.tex
new file mode 100644
index 00000000000..a0fd4b7f8e5
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/test1-wrapfig.tex
@@ -0,0 +1,40 @@
+\documentclass{article}
+\usepackage{wrapfig}
+\usepackage{bidi}
+\newcommand\sample{Some text for our page
+ that might get reused over and over again. }
+\begin{document}
+\section{LTR}
+The starting place for the wrapfigure
+environment was manually determined in
+the current ex-
+
+\begin{wrapfigure}[7]{r}[0.2\width]{0pt}
+ \centering
+ \fbox{This is ``wrapfigure''.}
+ \caption{An example of the
+ \texttt{wrapfigure} environment}
+\end{wrapfigure}
+sample by first setting the text without
+the figure to find the linebreaks.
+
+\sample \sample \sample\sample \sample \sample\sample
+
+\section{RTL}
+
+\setRTL
+The starting place for the wrapfigure
+environment was manually determined in
+the current ex-
+
+\begin{wrapfigure}[7]{l}[0.2\width]{0pt}
+ \centering
+ \fbox{This is ``wrapfigure''.}
+ \caption{An example of the
+ \texttt{wrapfigure} environment}
+\end{wrapfigure}
+sample by first setting the text without
+the figure to find the linebreaks.
+
+\sample \sample \sample\sample \sample \sample\sample
+\end{document}
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.tex b/Master/texmf-dist/doc/xelatex/bidi/test2-wrapfig.tex
new file mode 100644
index 00000000000..ab655dac412
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/test2-wrapfig.tex
@@ -0,0 +1,28 @@
+\documentclass{article}
+\usepackage{wrapfig}
+\usepackage{bidi}
+\newcommand\sample{Some text for our page
+ that might get reused over and over again. }
+\begin{document}
+\section{LTR}
+\begin{wraptable}[4]{l}{4cm}
+ \centering
+\fbox{This is ``wraptable''.}
+ \caption{The Caption}\label{T1}
+\end{wraptable}
+
+\sample \sample Reference to Table~\ref{T1}.
+\sample
+
+\section{RTL}
+\setRTL
+
+\begin{wraptable}[4]{r}{4cm}
+ \centering
+\fbox{This is ``wraptable''.}
+ \caption{The Caption}\label{T2}
+\end{wraptable}
+
+\sample \sample Reference to Table~\ref{T2}.
+\sample
+\end{document}
diff --git a/Master/texmf-dist/doc/xelatex/bidi/test3-wrapfig.tex b/Master/texmf-dist/doc/xelatex/bidi/test3-wrapfig.tex
new file mode 100644
index 00000000000..8d648fc4b13
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/bidi/test3-wrapfig.tex
@@ -0,0 +1,75 @@
+\documentclass[a4paper,12pt]{article}
+
+\usepackage{graphicx}
+\usepackage{wrapfig}
+\usepackage{bidi}
+\begin{document}
+\section{LTR}
+\subsection*{Wrapfig test}
+
+Gulls are birds in the family Laridae. They are most closely
+ related to the terns (family Sternidae), auks and skimmers,
+and more distantly to the waders. Most gulls belong to the
+large genus Larus.
+
+\begin{wrapfigure}{r}{0.5\textwidth}
+ \begin{center}
+ \includegraphics[width=0.48\textwidth]{gull}
+ \end{center}
+ \caption{A gull}
+\end{wrapfigure}
+
+They are in general medium to large birds, typically grey or white,
+often with black markings on the head or wings. They have stout,
+longish bills and webbed feet.
+
+Most gulls, particularly Larus species, are ground nesting carnivores,
+which will take live food or scavenge opportunistically. The live food
+often includes crabs and small fish. Apart from the kittiwakes, gulls
+are typically coastal or inland species, rarely venturing far out to sea.
+The large species take up to four years to attain full adult plumage,
+but two years is typical for small gulls.
+
+Gulls---the larger species in particular---are resourceful and
+highly intelligent birds, demonstrating complex methods of communication
+and a highly developed social structure. Certain species (e.g. the
+Herring Gull) have exhibited tool use behaviour. Many species of gull have
+learned to co-exist successfully with man and have thrived in human habitats.
+Others rely on kleptoparasitism to get their food.
+
+\newpage
+\section{RTL}
+
+\setRTL
+\subsection*{Wrapfig test}
+
+Gulls are birds in the family Laridae. They are most closely
+ related to the terns (family Sternidae), auks and skimmers,
+and more distantly to the waders. Most gulls belong to the
+large genus Larus.
+
+\begin{wrapfigure}{l}{0.5\textwidth}
+ \begin{center}
+ \includegraphics[width=0.48\textwidth]{gull}
+ \end{center}
+ \caption{A gull}
+\end{wrapfigure}
+
+They are in general medium to large birds, typically grey or white,
+often with black markings on the head or wings. They have stout,
+longish bills and webbed feet.
+
+Most gulls, particularly Larus species, are ground nesting carnivores,
+which will take live food or scavenge opportunistically. The live food
+often includes crabs and small fish. Apart from the kittiwakes, gulls
+are typically coastal or inland species, rarely venturing far out to sea.
+The large species take up to four years to attain full adult plumage,
+but two years is typical for small gulls.
+
+Gulls---the larger species in particular---are resourceful and
+highly intelligent birds, demonstrating complex methods of communication
+and a highly developed social structure. Certain species (e.g. the
+Herring Gull) have exhibited tool use behaviour. Many species of gull have
+learned to co-exist successfully with man and have thrived in human habitats.
+Others rely on kleptoparasitism to get their food.
+\end{document}