From 2ad99f973638e1f794ef3d5ae4c6974f0c13e1db Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Fri, 10 Jun 2022 00:54:34 +0000
Subject: bidi (9jun22)

git-svn-id: svn://tug.org/texlive/trunk@63530 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/source/xelatex/bidi/bidi.dtx | 569 +++++++++++++++++++++++--
 1 file changed, 542 insertions(+), 27 deletions(-)

(limited to 'Master/texmf-dist/source/xelatex/bidi/bidi.dtx')

diff --git a/Master/texmf-dist/source/xelatex/bidi/bidi.dtx b/Master/texmf-dist/source/xelatex/bidi/bidi.dtx
index a0f01925bbd..c4ea1411632 100644
--- a/Master/texmf-dist/source/xelatex/bidi/bidi.dtx
+++ b/Master/texmf-dist/source/xelatex/bidi/bidi.dtx
@@ -5,7 +5,7 @@
 %<*readme>
 ___________________
 The bidi package
-v37.6
+v37.7
 
 This package provides a convenient interface for typesetting
 bidirectional texts in Plain TeX and LaTeX, using XeTeX engine.
@@ -30,7 +30,7 @@ The announcements for the new releases of the package will
 also appear in the Discussions space under the Announcements
 category.
   
-Current version release date: 2022/06/07
+Current version release date: 2022/06/09
 
 ___________________________________________
 Vafa Khalighi
@@ -89,17 +89,23 @@ by Vafa Khalighi.
 \generate{\file{beamerbasecolor-xetex-bidi.def}{\from{\jobname.dtx}{table,beamerbasecolor-xetex-bidi.def}}}
 \generate{\file{beamerbaseframecomponents-xetex-bidi.def}{\from{\jobname.dtx}{table,beamerbaseframecomponents-xetex-bidi.def}}}
 \generate{\file{beamerbaselocalstructure-xetex-bidi.def}{\from{\jobname.dtx}{table,beamerbaselocalstructure-xetex-bidi.def}}}
+\generate{\file{beamerbasenavigation-xetex-bidi.def}{\from{\jobname.dtx}{table,beamerbasenavigation-xetex-bidi.def}}}
 \generate{\file{beamerinnerthemedefault-xetex-bidi.def}{\from{\jobname.dtx}{table,beamerinnerthemedefault-xetex-bidi.def}}}
 \generate{\file{beamerinnerthemecircles-xetex-bidi.def}{\from{\jobname.dtx}{table,beamerinnerthemecircles-xetex-bidi.def}}}
+\generate{\file{beamerinnerthemeinmargin-xetex-bidi.def}{\from{\jobname.dtx}{table,beamerinnerthemeinmargin-xetex-bidi.def}}}
 \generate{\file{beamerinnerthemerectangles-xetex-bidi.def}{\from{\jobname.dtx}{table,beamerinnerthemerectangles-xetex-bidi.def}}}
 \generate{\file{beamerinnerthemerounded-xetex-bidi.def}{\from{\jobname.dtx}{table,beamerinnerthemerounded-xetex-bidi.def}}}
 \generate{\file{beamerouterthemedefault-xetex-bidi.def}{\from{\jobname.dtx}{table,beamerouterthemedefault-xetex-bidi.def}}}
 \generate{\file{beamerouterthemeinfolines-xetex-bidi.def}{\from{\jobname.dtx}{table,beamerouterthemeinfolines-xetex-bidi.def}}}
-\generate{\file{beamerouterthemeshadow-xetex-bidi.def}{\from{\jobname.dtx}{table,beamerouterthemeshadow-xetex-bidi.def}}}
+\generate{\file{beamerouterthememiniframes-xetex-bidi.def}{\from{\jobname.dtx}{table,beamerouterthememiniframes-xetex-bidi.def}}}
 \generate{\file{beamerouterthemesidebar-xetex-bidi.def}{\from{\jobname.dtx}{table,beamerouterthemesidebar-xetex-bidi.def}}}
 \generate{\file{beamerouterthemesplit-xetex-bidi.def}{\from{\jobname.dtx}{table,beamerouterthemesplit-xetex-bidi.def}}}
 \generate{\file{beamerouterthemeshadow-xetex-bidi.def}{\from{\jobname.dtx}{table,beamerouterthemeshadow-xetex-bidi.def}}}
+\generate{\file{beamerouterthemesmoothbars-xetex-bidi.def}{\from{\jobname.dtx}{table,beamerouterthemesmoothbars-xetex-bidi.def}}}
+\generate{\file{beamerouterthemesmoothtree-xetex-bidi.def}{\from{\jobname.dtx}{table,beamerouterthemesmoothtree-xetex-bidi.def}}}
+\generate{\file{beamerouterthemetree-xetex-bidi.def}{\from{\jobname.dtx}{table,beamerouterthemetree-xetex-bidi.def}}}
 \generate{\file{beamerthemeHannover-xetex-bidi.def}{\from{\jobname.dtx}{table,beamerthemeHannover-xetex-bidi.def}}}
+\generate{\file{beamerthemeSingapore-xetex-bidi.def}{\from{\jobname.dtx}{table,beamerthemeSingapore-xetex-bidi.def}}}
 \generate{\file{bidi.sty}{\from{\jobname.dtx}{table,bidi.sty}}}
 \generate{\file{bidi.tex}{\from{\jobname.dtx}{table,bidi.tex}}}
 \generate{\file{bidi2in1.sty}{\from{\jobname.dtx}{table,bidi2in1.sty}}}
@@ -252,7 +258,7 @@ by Vafa Khalighi.
 \documentclass{ltxdoc}
 \input{bidi-doc-preamble.ltx}
 \hypersetup{%
-  pdftitle={Source documentation for version 37.6 of the bidi
+  pdftitle={Source documentation for version 37.7 of the bidi
                 package}%
 }
 \EnableCrossrefs
@@ -271,7 +277,7 @@ by Vafa Khalighi.
 % \GetFileInfo{\jobname.dtx}
 % \title{\textcolor{blue!65!black}{\Huge The \textsf{bidi} \textit{Package}}\\
 %\LARGE Bidirectional typesetting in plain \TeX{} and \LaTeX, using \XeTeX{} engine\\[5pt]
-%\large Source documentation for \textcolor{blue!65!black}{version 37.6}}
+%\large Source documentation for \textcolor{blue!65!black}{version 37.7}}
 % \author{Vafa Khalighi\thanks{Thanks to the bidi-tex GitHub organization consisted of David Carlisle and other members of the  {\LaTeX} team to maintain the package in the period 2018--2020.}}
 %\setcounter{page}{0}
 %\thispagestyle{empty}
@@ -281,7 +287,7 @@ by Vafa Khalighi.
 %\textcolor{blue!65!black}{\Huge The \textsf{bidi} \textit{Package}}
 %
 %\Large
-%Source documentation for \textcolor{blue!65!black}{version 37.6}}
+%Source documentation for \textcolor{blue!65!black}{version 37.7}}
 %
 %\vskip 0pt plus 3fill
 %\textit{\large to my Master, \textbf{Ferdowsi The Great}}
@@ -330,7 +336,7 @@ by Vafa Khalighi.
 %\iffalse
 %<*table>
 %\fi
-%% \CheckSum{53191}
+%% \CheckSum{53787}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
@@ -2404,7 +2410,7 @@ by Vafa Khalighi.
 %\fi
 % \section{File \texttt{beamerbaseframecomponents-xetex-bidi.def}}
 %    \begin{macrocode}
-\ProvidesFile{beamerbaseframecomponents-xetex-bidi.def}[2022/06/06 v0.2 bidi adaptations for beamerbaseframecomponents package for XeTeX engine]
+\ProvidesFile{beamerbaseframecomponents-xetex-bidi.def}[2022/06/09 v0.3 bidi adaptations for beamerbaseframecomponents package for XeTeX engine]
 \renewcommand{\setbeamersize}[1]{%
   \beamer@dogeometryfalse%
   \setkeys{beamer@margin}{#1}%
@@ -2465,7 +2471,9 @@ by Vafa Khalighi.
                 \usebeamertemplate***{sidebar left}%
                 \vfil%
             }}%
-            \hskip-\textwidth
+            \@ifpackageloaded{beamerinnerthemeinmargin}{}{%
+              \hskip-\textwidth
+            }%
             \fi
             {\setbox\beamer@tempbox=\hbox{\vbox to \sidebarheight{%
                   \usebeamercolor*{sidebar left}%
@@ -2875,6 +2883,66 @@ by Vafa Khalighi.
 %    \end{macrocode}
 % \iffalse
 %</beamerbaselocalstructure-xetex-bidi.def>
+%<*beamerbasenavigation-xetex-bidi.def>
+%\fi
+% \section{File \texttt{beamerbasenavigation-xetex-bidi.def}}
+%    \begin{macrocode}
+\ProvidesFile{beamerbasenavigation-xetex-bidi.def}[2022/06/09 v0.1 bidi adaptations for beamerbasenavigation package for XeTeX engine]
+\def\slideentry#1#2#3#4#5#6{%
+  %section number, subsection number, slide number, first/last frame, page number, part number
+  \ifnum#6=\c@part\ifnum#1>0\ifnum#3>0%
+    \ifbeamer@compress%
+      \advance\beamer@xpos by1\relax%
+    \else%
+      \ifnum#2=0%
+        \beamer@ypos@offset=1\relax%
+      \fi
+      \beamer@xpos=#3\relax%
+      \beamer@ypos=#2\relax%
+      \advance\beamer@ypos by \beamer@ypos@offset\relax
+    \fi%
+  \hbox to 0pt{%
+    \beamer@tempdim=-\beamer@vboxoffset%
+    \advance\beamer@tempdim by-\beamer@boxsize%
+    \multiply\beamer@tempdim by\beamer@ypos%
+    \advance\beamer@tempdim by -.05cm%
+    \raise\beamer@tempdim\hbox{%
+      \beamer@tempdim=\beamer@boxsize%
+      \multiply\beamer@tempdim by\beamer@xpos%
+      \advance\beamer@tempdim by -\beamer@boxsize%
+      \advance\beamer@tempdim by 1pt%
+      \kern\beamer@tempdim
+      \global\beamer@section@min@dim\beamer@tempdim
+      \hbox{\beamer@link(#4){{%
+          \usebeamerfont{mini frame}%
+          \ifnum\c@section=#1%
+            \ifnum\c@subsection=#2%
+              \usebeamercolor[fg]{mini frame}%
+              \ifnum\c@subsectionslide=#3%
+                \usebeamertemplate{mini frame}%\beamer@minislidehilight%
+              \else%
+                \usebeamertemplate{mini frame in current subsection}%\beamer@minisliderowhilight%
+              \fi%
+            \else%
+              \usebeamercolor{mini frame}%
+              %\color{fg!50!bg}%
+              \usebeamertemplate{mini frame in other subsection}%\beamer@minislide%
+            \fi%
+          \else%
+            \usebeamercolor{mini frame}%
+            %\color{fg!50!bg}%
+            \usebeamertemplate{mini frame in other subsection}%\beamer@minislide%
+          \fi%
+        }}}}\hskip-10cm plus 1fil%
+  }\fi\fi%
+  \else%
+  \fakeslideentry{#1}{#2}{#3}{#4}{#5}{#6}%
+  \fi\ignorespaces
+  }
+
+%    \end{macrocode}
+% \iffalse
+%</beamerbasenavigation-xetex-bidi.def>
 %<*beamerinnerthemedefault-xetex-bidi.def>
 %\fi
 % \section{File \texttt{beamerinnerthemedefault-xetex-bidi.def}}
@@ -3028,6 +3096,108 @@ by Vafa Khalighi.
 %    \end{macrocode}
 % \iffalse
 %</beamerinnerthemecircles-xetex-bidi.def>
+%<*beamerinnerthemeinmargin-xetex-bidi.def>
+%\fi
+% \section{File \texttt{beamerinnerthemeinmargin-xetex-bidi.def}}
+%    \begin{macrocode}
+\ProvidesFile{beamerinnerthemeinmargin-xetex-bidi.def}[2022/06/09 v0.1 bidi adaptations for beamerinnerthemeinmargin package for XeTeX engine]
+\AtBeginDocument{%
+  \setbeamersize{sidebar width left=.25\paperwidth}%
+}
+
+\bidi@csundef{beamer@@tmpop@section in toc@inmargin}
+
+\bidi@csundef{beamer@@tmpop@title page@inmargin}
+
+\bidi@csundef{beamer@@tmpop@block begin@inmargin}
+
+\bidi@csundef{beamer@@tmpop@block end@inmargin}
+
+\bidi@csundef{beamer@@tmpop@block alerted begin@inmargin}
+
+\bidi@csundef{beamer@@tmpop@block alerted end@inmargin}
+
+\bidi@csundef{beamer@@tmpop@block example begin@inmargin}
+
+\bidi@csundef{beamer@@tmpop@block example end@inmargin}
+
+\defbeamertemplate*{section in toc}{inmargin}
+{\leavevmode
+  \beamer@putleft{{\usebeamercolor[fg]{section in toc}\inserttocsection}\strut}{2.5ex}}
+  
+\defbeamertemplate*{title page}{inmargin}
+{
+  \begin{block}{\inserttitleindicator}
+    \bgroup\usebeamercolor[fg]{title}\usebeamerfont{title}\inserttitle\egroup\par
+    \usebeamercolor[fg]{subtitle}\usebeamerfont{subtitle}\insertsubtitle
+  \end{block}
+  \vfill
+  \ifx\insertauthor\@empty
+  \else
+  \begin{block}{\insertauthorindicator}
+    \bgroup\usebeamercolor[fg]{author}\usebeamerfont{author}\insertauthor\egroup\par
+  \end{block}
+  \fi
+  \ifx\insertinstitute\@empty
+  \else
+  \begin{block}{\insertinstituteindicator}
+    \bgroup\usebeamercolor[fg]{institute}\usebeamerfont{institute}\insertinstitute\egroup\par
+  \end{block}
+  \fi
+  \ifx\insertdate\@empty
+  \else
+  \begin{block}{\insertdateindicator}
+    \bgroup\usebeamercolor[fg]{date}\usebeamerfont{date}\insertdate\egroup\par
+  \end{block}
+  \fi
+}
+
+\defbeamertemplate*{block begin}{inmargin}
+{
+  \par\vskip\medskipamount%
+  \leavevmode%
+  \beamer@putleft{\normalfont{\usebeamercolor[fg]{block title}\usebeamerfont*{block title}\insertblocktitle}}{2.5ex}%
+  \beginL\beamer@putright
+  %\usebeamercolor[fg]{block body}% to be done!
+}
+
+\defbeamertemplate*{block end}{inmargin}
+{\endbeamer@putright\endL\vskip\smallskipamount}
+
+\defbeamertemplate*{block alerted begin}{inmargin}
+{
+  \par\vskip\medskipamount%
+  \leavevmode%
+  \beamer@putleft{\normalfont{\usebeamercolor[fg]{block title alerted}\usebeamerfont*{block title alerted}\insertblocktitle}}{2.5ex}%
+  \beginL\beamer@putright
+  %\usebeamercolor[fg]{block body alerted}% to be done!
+}
+
+\defbeamertemplate*{block alerted end}{inmargin}
+{\endbeamer@putright\endL\vskip\smallskipamount}
+
+\defbeamertemplate*{block example begin}{inmargin}
+{
+  \par\vskip\medskipamount%
+  \leavevmode%
+  \beamer@putleft{\normalfont{\usebeamercolor[fg]{block title example}\usebeamerfont*{block title example}\insertblocktitle}}{2.5ex}%
+  \beginL\beamer@putright
+  %\usebeamercolor[fg]{block body example}% to be done
+}
+
+\defbeamertemplate*{block example end}{inmargin}
+{\endbeamer@putright\endL\vskip\smallskipamount}
+
+\bidi@AfterFile{beamerinnerthemerectangles-xetex-bidi.def}{%
+  \setbeamertemplate{section in toc}[inmargin]%
+  \setbeamertemplate{subsection in toc}[inmargin]%
+  \setbeamertemplate{subsubsection in toc}[inmargin]%
+}
+
+
+%    \end{macrocode}
+% \iffalse
+%</beamerinnerthemeinmargin-xetex-bidi.def>
 %<*beamerinnerthemerectangles-xetex-bidi.def>
 %\fi
 % \section{File \texttt{beamerinnerthemerectangles-xetex-bidi.def}}
@@ -3074,7 +3244,7 @@ by Vafa Khalighi.
 %\fi
 % \section{File \texttt{beamerouterthemeinfolines-xetex-bidi.def}}
 %    \begin{macrocode}
-\ProvidesFile{beamerouterthemeinfolines-xetex-bidi.def}[2022/06/01 v0.1 bidi adaptations for beamerouterthemeinfolines package for XeTeX engine]
+\ProvidesFile{beamerouterthemeinfolines-xetex-bidi.def}[2022/06/09 v0.2 bidi adaptations for beamerouterthemeinfolines package for XeTeX engine]
 \bidi@csundef{beamer@@tmpop@footline@infolines theme}
 
 \defbeamertemplate*{footline}{infolines theme}
@@ -3101,23 +3271,71 @@ by Vafa Khalighi.
   \vskip0pt%
 }
 
+\bidi@csundef{beamer@@tmpop@headline@infolines theme}
+
+\defbeamertemplate*{headline}{infolines theme}
+{%
+  \leavevmode%
+  \hbox{%
+  \if@RTL
+  \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.65ex,dp=1.5ex,left]{section in head/foot}%
+\else
+  \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.65ex,dp=1.5ex,right]{section in head/foot}%
+\fi
+    \usebeamerfont{section in head/foot}\insertsectionhead\hspace*{2ex}
+  \end{beamercolorbox}%
+\if@RTL
+  \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.65ex,dp=1.5ex,right]{subsection in head/foot}%
+\else
+  \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.65ex,dp=1.5ex,left]{subsection in head/foot}%
+\fi
+    \usebeamerfont{subsection in head/foot}\hspace*{2ex}\insertsubsectionhead
+  \end{beamercolorbox}}%
+  \vskip0pt%
+}
+
+\bidi@AfterFile{beamerouterthemesplit-xetex-bidi.def}{%
+  \setbeamertemplate{footline}[infolines theme]%
+}
 
 %    \end{macrocode}
 % \iffalse
 %</beamerouterthemeinfolines-xetex-bidi.def>
-%<*beamerouterthemeshadow-xetex-bidi.def>
+%<*beamerouterthememiniframes-xetex-bidi.def>
 %\fi
-% \section{File \texttt{beamerouterthemeshadow-xetex-bidi.def}}
+% \section{File \texttt{beamerouterthememiniframes-xetex-bidi.def}}
 %    \begin{macrocode}
-\ProvidesFile{beamerouterthemeshadow-xetex-bidi.def}[2022/06/07 v0.1 bidi adaptations for beamerouterthemeshadow package for XeTeX engine]
-\AtBeginDocument{%
-  \setbeamertemplate{frametitle}[shadow theme]%
+\ProvidesFile{beamerouterthememiniframes-xetex-bidi.def}[2022/06/09 v0.1 bidi adaptations for beamerouterthememiniframes package for XeTeX engine]
+\bidi@csundef{beamer@@tmpop@headline@miniframes theme}
+
+\defbeamertemplate*{headline}{miniframes theme}
+{%
+  \begin{beamercolorbox}[colsep=1.5pt]{upper separation line head}
+  \end{beamercolorbox}
+  \begin{beamercolorbox}{section in head/foot}
+    \vskip2pt\if@RTL\beginR\fi\insertnavigation{\paperwidth}\if@RTL\endR\fi\vskip2pt
+  \end{beamercolorbox}%
+  \ifbeamer@theme@subsection%
+    \begin{beamercolorbox}[colsep=1.5pt]{middle separation line head}
+    \end{beamercolorbox}
+    \if@RTL
+    \begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%
+      rightskip=.3cm,leftskip=.3cm plus1fil]{subsection in head/foot}
+    \else
+    \begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%
+      leftskip=.3cm,rightskip=.3cm plus1fil]{subsection in head/foot}
+    \fi
+      \usebeamerfont{subsection in head/foot}\insertsubsectionhead
+    \end{beamercolorbox}%
+  \fi%
+  \begin{beamercolorbox}[colsep=1.5pt]{lower separation line head}
+  \end{beamercolorbox}
 }
 
 
 %    \end{macrocode}
 % \iffalse
-%</beamerouterthemeshadow-xetex-bidi.def>
+%</beamerouterthememiniframes-xetex-bidi.def>
 %<*beamerouterthemesidebar-xetex-bidi.def>
 %\fi
 % \section{File \texttt{beamerouterthemesidebar-xetex-bidi.def}}
@@ -3249,16 +3467,23 @@ by Vafa Khalighi.
 %\fi
 % \section{File \texttt{beamerouterthemesplit-xetex-bidi.def}}
 %    \begin{macrocode}
-\ProvidesFile{beamerouterthemesplit-xetex-bidi.def}[2022/06/01 v0.1 bidi adaptations for beamerouterthemesplit package for XeTeX engine]
+\ProvidesFile{beamerouterthemesplit-xetex-bidi.def}[2022/06/09 v0.2 bidi adaptations for beamerouterthemesplit package for XeTeX engine]
 \bidi@csundef{beamer@@tmpop@footline@split theme}
 
 \defbeamertemplate*{footline}{split theme}
 {%
   \leavevmode%
-  \hbox{\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm plus1fill,rightskip=.3cm]{author in head/foot}%
+  \hbox{\if@RTL\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,rightskip=.3cm plus1fill,leftskip=.3cm]{author in head/foot}%
+\else
+\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm plus1fill,rightskip=.3cm]{author in head/foot}%
+\fi
     \usebeamerfont{author in head/foot}\insertshortauthor
   \end{beamercolorbox}%
+ \if@RTL
+   \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,rightskip=.3cm,leftskip=.3cm plus1fil]{title in head/foot}%
+\else
   \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}%
+\fi
     \usebeamerfont{title in head/foot}\insertshorttitle\nobreak\hfill\bgroup\usebeamercolor[fg]{page number in head/foot}\usebeamerfont{page number in head/foot}\usebeamertemplate{page number in head/foot}\egroup
   \end{beamercolorbox}}%
   \vskip0pt%
@@ -3272,7 +3497,7 @@ by Vafa Khalighi.
 %\fi
 % \section{File \texttt{beamerouterthemeshadow-xetex-bidi.def}}
 %    \begin{macrocode}
-\ProvidesFile{beamerouterthemeshadow-xetex-bidi.def}[2022/06/01 v0.1 bidi adaptations for beamerouterthemeshadow package for XeTeX engine]
+\ProvidesFile{beamerouterthemeshadow-xetex-bidi.def}[2022/06/07 v0.2 bidi adaptations for beamerouterthemeshadow package for XeTeX engine]
 \bidi@csundef{beamer@@tmpop@frametitle@shadow theme}
 
 \defbeamertemplate*{frametitle}{shadow theme}
@@ -3321,10 +3546,277 @@ by Vafa Khalighi.
   \vskip-2pt
 }
 
+\AtBeginDocument{%
+  \setbeamertemplate{frametitle}[shadow theme]%
+}
+
 
 %    \end{macrocode}
 % \iffalse
 %</beamerouterthemeshadow-xetex-bidi.def>
+%<*beamerouterthemesmoothbars-xetex-bidi.def>
+%\fi
+% \section{File \texttt{beamerouterthemesmoothbars-xetex-bidi.def}}
+%    \begin{macrocode}
+\ProvidesFile{beamerouterthemesmoothbars-xetex-bidi.def}[2022/06/09 v0.1 bidi adaptations for beamerouterthemesmoothbars package for XeTeX engine]
+\bidi@csundef{beamer@@tmpop@headline@smoothbars theme}
+
+\bidi@csundef{beamer@@tmpop@frametitle@smoothbars theme}
+
+\defbeamertemplate*{headline}{smoothbars theme}
+{%
+  \pgfuseshading{beamer@barshade}%
+  \vskip-0.05ex%
+  \begin{beamercolorbox}[wd=\paperwidth,ht=1ex,dp=0ex]{empty}
+  \begin{pgfpicture}
+    \begin{pgfscope}%
+      \ifbeamer@sb@subsection%
+        \pgfsetfillcolor{subsection in head/foot.bg}%
+      \else%
+        \pgfsetfillcolor{section in head/foot.bg}%
+      \fi%
+      \pgfpathrectangle{\pgfpoint{-.5\paperwidth}{-0.5ex}}{\pgfpoint{\paperwidth}{1ex}}%
+      \pgfsetfading{beamer@belowframetitlemask}{}%
+      \pgfusepath{fill}%
+    \end{pgfscope}%
+  \end{pgfpicture}%
+  \end{beamercolorbox}%
+  \ifbeamer@sb@subsection%
+    \vskip-9.75ex%
+  \else%
+    \vskip-6.85ex%
+  \fi%
+  \begin{beamercolorbox}[ignorebg,ht=2.25ex,dp=3.75ex]{section in head/foot}
+    \insertnavigation{\paperwidth}
+  \end{beamercolorbox}%
+  \ifbeamer@sb@subsection%
+  \if@RTL
+      \begin{beamercolorbox}[ignorebg,ht=2.125ex,dp=1.125ex,%
+      rightskip=.3cm,leftskip=.3cm plus1fil]{subsection in head/foot}
+    \else
+    \begin{beamercolorbox}[ignorebg,ht=2.125ex,dp=1.125ex,%
+      leftskip=.3cm,rightskip=.3cm plus1fil]{subsection in head/foot}
+    \fi
+      \usebeamerfont{subsection in head/foot}\insertsubsectionhead
+    \end{beamercolorbox}%
+  \fi%
+}%
+
+\defbeamertemplate*{frametitle}{smoothbars theme}
+{%
+  \nointerlineskip%
+  \vskip-0.19ex%
+  \usebeamerfont{headline}%
+  \begin{beamercolorbox}[wd=\paperwidth,ht=1ex,dp=1ex,vmode]{empty}
+    \pgfuseshading{beamer@aboveframetitle}%
+  \end{beamercolorbox}%
+  \vskip-1ex%
+  \nointerlineskip%
+  \if@RTL
+  \begin{beamercolorbox}[wd=\paperwidth,rightskip=.3cm,leftskip=.3cm plus1fil,vmode]{frametitle}
+  \else
+  \begin{beamercolorbox}[wd=\paperwidth,leftskip=.3cm,rightskip=.3cm plus1fil,vmode]{frametitle}
+  \fi
+    \vskip0.5ex%
+    \usebeamerfont*{frametitle}\strut\insertframetitle%
+      \ifx\insertframesubtitle\@empty%
+        \strut\par%
+      \else
+        \par{\usebeamerfont*{framesubtitle}{\usebeamercolor[fg]{framesubtitle}\strut\insertframesubtitle}\strut\par}%
+      \fi%%
+    \usebeamerfont{headline}%
+    \vskip0.05ex%
+  \end{beamercolorbox}%
+  \nointerlineskip%
+  \vskip-0.05ex%
+  \begin{beamercolorbox}[wd=\paperwidth,ht=1ex,dp=0ex]{empty}
+  \begin{pgfpicture}
+    \begin{pgfscope}%
+      \pgfsetfillcolor{frametitle.bg}%
+      \pgfpathrectangle{\pgfpoint{-.5\paperwidth}{-.5ex}}{\pgfpoint{\paperwidth}{1ex}}%
+      \pgfsetfading{beamer@belowframetitlemask}{}%
+      \pgfusepath{fill}%
+    \end{pgfscope}%
+  \end{pgfpicture}%
+  \end{beamercolorbox}%
+}
+
+\AtBeginDocument{%
+  \setbeamertemplate{frametitle}[smoothbars theme]%
+}
+
+
+%    \end{macrocode}
+% \iffalse
+%</beamerouterthemesmoothbars-xetex-bidi.def>
+%<*beamerouterthemesmoothtree-xetex-bidi.def>
+%\fi
+% \section{File \texttt{beamerouterthemesmoothtree-xetex-bidi.def}}
+%    \begin{macrocode}
+\ProvidesFile{beamerouterthemesmoothtree-xetex-bidi.def}[2022/06/09 v0.1 bidi adaptations for beamerouterthemesmoothtree package for XeTeX engine]
+\bidi@csundef{beamer@@tmpop@headline@smoothtree theme}
+
+\bidi@csundef{beamer@@tmpop@frametitle@smoothtree theme}
+
+\defbeamertemplate*{headline}{smoothtree theme}
+{%
+  \pgfuseshading{beamer@treeshade}%
+  \vskip-0.05ex%
+  \begin{beamercolorbox}[wd=\paperwidth,ht=1ex,dp=0ex]{empty}
+  \begin{pgfpicture}
+    \begin{pgfscope}%
+      \pgfsetfillcolor{subsection in head/foot.bg}%
+      \pgfpathrectangle{\pgfpoint{-.5\paperwidth}{-0.5ex}}{\pgfpoint{\paperwidth}{1ex}}%
+      \pgfsetfading{beamer@belowframetitlemask}{}%
+      \pgfusepath{fill}%
+    \end{pgfscope}%
+  \end{pgfpicture}%
+  \end{beamercolorbox}%  
+  \vskip-9.15ex%
+  \if@RTL
+  \begin{beamercolorbox}[wd=\paperwidth,ht=1.125ex,dp=1.125ex,ignorebg,%
+    rightskip=.3cm,leftskip=.3cm plus1fil]{title in head/foot}
+  \else
+  \begin{beamercolorbox}[wd=\paperwidth,ht=1.125ex,dp=1.125ex,ignorebg,%
+    leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}
+    \fi
+    \usebeamerfont{title in head/foot}\insertshorttitle
+  \end{beamercolorbox}
+  \if@RTL
+    \begin{beamercolorbox}[wd=\paperwidth,ht=2.125ex,dp=1.125ex,ignorebg,%
+    rightskip=.3cm,leftskip=.3cm plus1fil]{section in head/foot}
+  \else
+  \begin{beamercolorbox}[wd=\paperwidth,ht=2.125ex,dp=1.125ex,ignorebg,%
+    leftskip=.3cm,rightskip=.3cm plus1fil]{section in head/foot}
+    \fi
+    \usebeamerfont{section in head/foot}%
+    \hskip6pt\insertsectionhead
+  \end{beamercolorbox}
+  \if@RTL
+  \begin{beamercolorbox}[wd=\paperwidth,ht=2.125ex,dp=1.125ex,ignorebg,%
+      rightskip=.3cm,leftskip=.3cm plus1fil]{subsection in head/foot}
+  \else
+  \begin{beamercolorbox}[wd=\paperwidth,ht=2.125ex,dp=1.125ex,ignorebg,%
+      leftskip=.3cm,rightskip=.3cm plus1fil]{subsection in head/foot}
+    \fi
+    \usebeamerfont{subsection in head/foot}%
+    \hskip12pt\insertsubsectionhead
+  \end{beamercolorbox}
+  \vskip-0.4ex%
+}
+
+\defbeamertemplate*{frametitle}{smoothtree theme}
+{%
+  \nointerlineskip%
+  \vskip-0.05ex%
+  \usebeamerfont{headline}%
+  \begin{beamercolorbox}[wd=\paperwidth,ht=0.85ex,dp=0ex]{empty}
+    \pgfuseshading{beamer@aboveframetitle}%
+  \end{beamercolorbox}
+  \nointerlineskip%
+  \if@RTL
+  \begin{beamercolorbox}[wd=\paperwidth,rightskip=.935cm,leftskip=.3cm plus1fil]{frametitle}
+ \else
+  \begin{beamercolorbox}[wd=\paperwidth,leftskip=.935cm,rightskip=.3cm plus1fil]{frametitle}
+  \fi
+    \vskip-1.2ex%
+    \usebeamerfont*{frametitle}\strut\insertframetitle%
+      \ifx\insertframesubtitle\@empty%
+        \strut\par%
+      \else
+        \par{\usebeamerfont*{framesubtitle}{\usebeamercolor[fg]{framesubtitle}\strut\insertframesubtitle}\strut\par}%
+      \fi%%
+    \usebeamerfont{headline}%
+  \end{beamercolorbox}%
+  \nointerlineskip
+  \vskip-0.2ex%
+  \begin{beamercolorbox}[wd=\paperwidth,ht=1ex,dp=0ex]{empty}
+  \begin{pgfpicture}
+    \begin{pgfscope}%
+      \pgfsetfillcolor{frametitle.bg}%
+      \pgfpathrectangle{\pgfpoint{-.5\paperwidth}{-0.5ex}}{\pgfpoint{\paperwidth}{1ex}}%
+      \pgfsetfading{beamer@belowframetitlemask}{}%
+      \pgfusepath{fill}%
+    \end{pgfscope}%
+  \end{pgfpicture}%
+  \end{beamercolorbox}%  
+}
+
+
+\AtBeginDocument{%
+  \setbeamertemplate{frametitle}[smoothtree theme]%
+}
+
+
+%    \end{macrocode}
+% \iffalse
+%</beamerouterthemesmoothtree-xetex-bidi.def>
+%<*beamerouterthemetree-xetex-bidi.def>
+%\fi
+% \section{File \texttt{beamerouterthemetree-xetex-bidi.def}}
+%    \begin{macrocode}
+\ProvidesFile{beamerouterthemetree-xetex-bidi.def}[2022/06/09 v0.1 bidi adaptations for beamerouterthemetree package for XeTeX engine]
+\bidi@csundef{beamer@@tmpop@headline@tree theme}
+
+\defbeamertemplate*{headline}{tree theme}
+{%
+    \begin{beamercolorbox}[wd=\paperwidth,colsep=1.5pt]{upper separation line head}
+    \end{beamercolorbox}
+    \if@RTL
+    \begin{beamercolorbox}[wd=\paperwidth,ht=2.5ex,dp=1.125ex,%
+      rightskip=.3cm,leftskip=.3cm plus1fil]{title in head/foot}
+    \else
+    \begin{beamercolorbox}[wd=\paperwidth,ht=2.5ex,dp=1.125ex,%
+      leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}
+    \fi
+      \usebeamerfont{title in head/foot}\insertshorttitle
+    \end{beamercolorbox}
+    \if@RTL
+    \begin{beamercolorbox}[wd=\paperwidth,ht=2.5ex,dp=1.125ex,%
+      rightskip=.3cm,leftskip=.3cm plus1fil]{section in head/foot}
+    \else
+    \begin{beamercolorbox}[wd=\paperwidth,ht=2.5ex,dp=1.125ex,%
+      leftskip=.3cm,rightskip=.3cm plus1fil]{section in head/foot}
+    \fi
+      \usebeamerfont{section in head/foot}%
+      \ifbeamer@tree@showhooks
+        \setbox\beamer@tempbox=\hbox{\insertsectionhead}%
+        \ifdim\wd\beamer@tempbox>1pt%
+          \hskip2pt\raise1.9pt\hbox{\vrule width0.4pt height1.875ex\vrule width 5pt height0.4pt}%
+          \hskip1pt%
+        \fi%
+      \else%  
+        \hskip6pt%
+      \fi%
+      \insertsectionhead
+    \end{beamercolorbox}
+    \if@RTL
+    \begin{beamercolorbox}[wd=\paperwidth,ht=2.5ex,dp=1.125ex,%
+      rightskip=.3cm,leftskip=.3cm plus1fil]{subsection in head/foot}
+    \else
+    \begin{beamercolorbox}[wd=\paperwidth,ht=2.5ex,dp=1.125ex,%
+      leftskip=.3cm,rightskip=.3cm plus1fil]{subsection in head/foot}
+    \fi
+      \usebeamerfont{subsection in head/foot}%
+      \ifbeamer@tree@showhooks
+        \setbox\beamer@tempbox=\hbox{\insertsubsectionhead}%
+        \ifdim\wd\beamer@tempbox>1pt%
+          \hskip9.4pt\raise1.9pt\hbox{\vrule width0.4pt height1.875ex\vrule width 5pt height0.4pt}%
+          \hskip1pt%
+        \fi%
+      \else%  
+        \hskip12pt%
+      \fi%
+      \insertsubsectionhead
+    \end{beamercolorbox}
+    \begin{beamercolorbox}[wd=\paperwidth,colsep=1.5pt]{lower separation line head}
+    \end{beamercolorbox}
+}
+
+
+%    \end{macrocode}
+% \iffalse
+%</beamerouterthemetree-xetex-bidi.def>
 %<*beamerthemeHannover-xetex-bidi.def>
 %\fi
 % \section{File \texttt{beamerthemeHannover-xetex-bidi.def}}
@@ -3342,13 +3834,30 @@ by Vafa Khalighi.
 %    \end{macrocode}
 % \iffalse
 %</beamerthemeHannover-xetex-bidi.def>
+%<*beamerthemeSingapore-xetex-bidi.def>
+%\fi
+% \section{File \texttt{beamerthemeSingapore-xetex-bidi.def}}
+%    \begin{macrocode}
+\ProvidesFile{beamerthemeSingapore-xetex-bidi.def}[2022/06/09 v0.1 bidi adaptations for beamerthemeSingapore package for XeTeX engine]
+\addtoheadtemplate{\pgfuseshading{beamer@headfade}\vskip-1.25cm}{}
+
+\beamertemplatedotitem
+
+\AtBeginDocument{%
+  \setbeamertemplate{frametitle}[default][center]%
+}
+
+
+%    \end{macrocode}
+% \iffalse
+%</beamerthemeSingapore-xetex-bidi.def>
 %<*bidi.sty>
 %\fi
 % \section{File \texttt{bidi.sty}}
 %    \begin{macrocode}
 \NeedsTeXFormat{LaTeX2e}
-\def\bididate{2022/06/07}
-\def\bidi@version{37.6}
+\def\bididate{2022/06/09}
+\def\bidi@version{37.7}
 \ProvidesPackage{bidi}[\bididate\space v\bidi@version\space
 Bidirectional typesetting in plain TeX and LaTeX]
 \edef\@bidi@info{****************************************************^^J%
@@ -3436,7 +3945,7 @@ Bidirectional typesetting in plain TeX and LaTeX]
 }
 \newcommand*{\@bidi@pdfcustomproperties}{%
   This is the bidi package, Version \bidi@version,
-  Released June 7, 2022. 
+  Released June 9, 2022. 
 }
 \newcommand*{\bidi@beamer@ragged}{}
 \@RTLmainfalse
@@ -3680,9 +4189,9 @@ Bidirectional typesetting in plain TeX and LaTeX]
 %\fi
 % \section{File \texttt{bidi.tex}}
 %    \begin{macrocode}
-\def\bididate{2022/06/07}
+\def\bididate{2022/06/09}
 \catcode`@=11
-\def\bidi@version{37.6}
+\def\bidi@version{37.7}
 \let \protect \relax
 \newlinechar`\^^J
 \edef\@bidi@info{****************************************************^^J%
@@ -3784,7 +4293,7 @@ Bidirectional typesetting in plain TeX and LaTeX]
 }
 \def\@bidi@pdfcustomproperties{%
   This is the bidi package, Version \bidi@version,
-  Released June 7, 2022. 
+  Released June 9, 2022. 
 }
 \def\bidi@pdfm@mark{%
   \special{pdf:%
@@ -24215,7 +24724,7 @@ to\rtside{\box\bslice\hfil}}
 %\fi
 % \section{File \texttt{latex-xetex-bidi.def}}
 %    \begin{macrocode}
-\ProvidesFile{latex-xetex-bidi.def}[2022/06/07 v1.4.4 bidi adaptations  for `latex.ltx' for XeTeX engine]
+\ProvidesFile{latex-xetex-bidi.def}[2022/06/09 v1.4.5 bidi adaptations  for `latex.ltx' for XeTeX engine]
 \newcommand{\TeXXeTOn}{\TeXXeTstate\@ne}
 \newcommand{\TeXXeTOff}{\TeXXeTstate\z@}
 \TeXXeTOn
@@ -25173,17 +25682,23 @@ $\@@underline{\hbox{#1}}\m@th$\relax\fi\fi}
 \@ifpackageloaded{beamerbasecolor}{\input{beamerbasecolor-xetex-bidi.def}}{}
 \@ifpackageloaded{beamerbaseframecomponents}{\input{beamerbaseframecomponents-xetex-bidi.def}}{}
 \@ifpackageloaded{beamerbaselocalstructure}{\input{beamerbaselocalstructure-xetex-bidi.def}}{}
+\@ifpackageloaded{beamerbasenavigation}{\input{beamerbasenavigation-xetex-bidi.def}}{}
 \@ifpackageloaded{beamerinnerthemedefault}{\input{beamerinnerthemedefault-xetex-bidi.def}}{}
 \@ifpackageloaded{beamerinnerthemecircles}{\input{beamerinnerthemecircles-xetex-bidi.def}}{}
+\@ifpackageloaded{beamerinnerthemeinmargin}{\input{beamerinnerthemeinmargin-xetex-bidi.def}}{}
 \@ifpackageloaded{beamerinnerthemerectangles}{\input{beamerinnerthemerectangles-xetex-bidi.def}}{}
 \@ifpackageloaded{beamerinnerthemerounded}{\input{beamerinnerthemerounded-xetex-bidi.def}}{}
 \@ifpackageloaded{beamerouterthemedefault}{\input{beamerouterthemedefault-xetex-bidi.def}}{}
 \@ifpackageloaded{beamerouterthemeinfolines}{\input{beamerouterthemeinfolines-xetex-bidi.def}}{}
-\@ifpackageloaded{beamerouterthemeshadow}{\input{beamerouterthemeshadow-xetex-bidi.def}}{}
+\@ifpackageloaded{beamerouterthememiniframes}{\input{beamerouterthememiniframes-xetex-bidi.def}}{}
 \@ifpackageloaded{beamerouterthemesidebar}{\input{beamerouterthemesidebar-xetex-bidi.def}}{}
 \@ifpackageloaded{beamerouterthemesplit}{\input{beamerouterthemesplit-xetex-bidi.def}}{}
 \@ifpackageloaded{beamerouterthemeshadow}{\input{beamerouterthemeshadow-xetex-bidi.def}}{}
+\@ifpackageloaded{beamerouterthemesmoothbars}{\input{beamerouterthemesmoothbars-xetex-bidi.def}}{}
+\@ifpackageloaded{beamerouterthemesmoothtree}{\input{beamerouterthemesmoothtree-xetex-bidi.def}}{}
+\@ifpackageloaded{beamerouterthemetree}{\input{beamerouterthemetree-xetex-bidi.def}}{}
 \@ifpackageloaded{beamerthemeHannover}{\input{beamerthemeHannover-xetex-bidi.def}}{}
+\@ifpackageloaded{beamerthemeSingapore}{\input{beamerthemeSingapore-xetex-bidi.def}}{}
 %    \end{macrocode}
 % \iffalse
 %</latex-xetex-bidi.def>
-- 
cgit v1.2.3

