summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/lualatex/beamer-rl/Example-of-use-ar.pdfbin124480 -> 125490 bytes
-rw-r--r--Master/texmf-dist/doc/lualatex/beamer-rl/Example-of-use-ar.texbin7334 -> 15023 bytes
-rw-r--r--Master/texmf-dist/doc/lualatex/beamer-rl/Example-of-use-en.pdfbin102473 -> 98613 bytes
-rw-r--r--Master/texmf-dist/doc/lualatex/beamer-rl/Example-of-use-en.tex31
-rw-r--r--Master/texmf-dist/doc/lualatex/beamer-rl/README.txt8
-rw-r--r--Master/texmf-dist/tex/lualatex/beamer-rl/beamer-rl.cls (renamed from Master/texmf-dist/tex/lualatex/beamer-rl/beamer-rl.sty)42
6 files changed, 62 insertions, 19 deletions
diff --git a/Master/texmf-dist/doc/lualatex/beamer-rl/Example-of-use-ar.pdf b/Master/texmf-dist/doc/lualatex/beamer-rl/Example-of-use-ar.pdf
index 31b4ff520f4..a3a333bf727 100644
--- a/Master/texmf-dist/doc/lualatex/beamer-rl/Example-of-use-ar.pdf
+++ b/Master/texmf-dist/doc/lualatex/beamer-rl/Example-of-use-ar.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/lualatex/beamer-rl/Example-of-use-ar.tex b/Master/texmf-dist/doc/lualatex/beamer-rl/Example-of-use-ar.tex
index 367358a7b33..da7a779f9b1 100644
--- a/Master/texmf-dist/doc/lualatex/beamer-rl/Example-of-use-ar.tex
+++ b/Master/texmf-dist/doc/lualatex/beamer-rl/Example-of-use-ar.tex
Binary files differ
diff --git a/Master/texmf-dist/doc/lualatex/beamer-rl/Example-of-use-en.pdf b/Master/texmf-dist/doc/lualatex/beamer-rl/Example-of-use-en.pdf
index 4629290c753..4811144d9f4 100644
--- a/Master/texmf-dist/doc/lualatex/beamer-rl/Example-of-use-en.pdf
+++ b/Master/texmf-dist/doc/lualatex/beamer-rl/Example-of-use-en.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/lualatex/beamer-rl/Example-of-use-en.tex b/Master/texmf-dist/doc/lualatex/beamer-rl/Example-of-use-en.tex
index 3593e937599..e0846e501be 100644
--- a/Master/texmf-dist/doc/lualatex/beamer-rl/Example-of-use-en.tex
+++ b/Master/texmf-dist/doc/lualatex/beamer-rl/Example-of-use-en.tex
@@ -1,7 +1,6 @@
-\documentclass{beamer}
+\documentclass[babel={layout=lists}]{beamer-rl}
\usepackage{hologo} % pdflatex, xelatex, lualatex logos
-\usepackage{beamer-rl}
\babelprovide[import=ar-DZ, main]{arabic}
\babelprovide[import,language=Default]{english}
\babelfont{sf}{Amiri}
@@ -43,8 +42,9 @@
%\mode<presentation>{\usetheme{Luebeck}}
%\mode<presentation>{\usetheme{Malmoe}}
%\mode<presentation>{\usetheme{Warsaw}}
+%\usetheme{Cuerna}\usecolortheme{default}
-\title{The beamer-rl package}
+\title{The beamer-rl class}
\author{Salim Bou}
@@ -73,6 +73,7 @@
\tableofcontents
\end{frame}
+
\section{Introduction}
\begin{frame}[fragile]
@@ -81,7 +82,7 @@ Creating beamer presentation for right to left language (like arabic) using \h
The \hologo{LuaTeX} team set solutions for these issues thanks to them and to \textit{Javier~Bezos} for his works on the package \verb|babel| and \verb|bidi| writing
-This package provides patchs of some beamer templates and commands
+This class provides patchs of some beamer templates and commands
for right to left presentation, this package call babel with \verb|bidi=basic-r| option and require lualatex engine
\end{frame}
@@ -94,8 +95,7 @@ for right to left presentation, this package call babel with \verb|bidi=basic-r|
\selectlanguage{nil}
\begin{verbatim}
-\documentclass{beamer}
-\usepackage{beamer-rl}
+\documentclass{beamer-rl}
\babelprovide[import=ar-DZ, main]{arabic}
\babelfont{sf}{Amiri}
@@ -235,8 +235,25 @@ number not in the first $p$ numbers.\qedhere
\frametitle{Some notes}
\begin{itemize}
+
+\item
+
+All options provided by \verb:beamer: can be added with \verb:beamer-rl:
+
+Additional options can also be passed to package
+ \verb:babel:
+ with \verb:beamer-rl: like this
+
+\medskip
+
+{\selectlanguage{nil}
+\verb:\documentclass[babel={<babel options>}]{beamer-rl}:
+}
+
+\medskip
+
\item
-The \verb:beamer-rl: package swap the definition of \verb:\blacktriangleright: with \verb:\blacktriangleleft: in RTL context.
+The \verb:beamer-rl: class swap the definition of \verb:\blacktriangleright: with \verb:\blacktriangleleft: in RTL context
\bigskip
diff --git a/Master/texmf-dist/doc/lualatex/beamer-rl/README.txt b/Master/texmf-dist/doc/lualatex/beamer-rl/README.txt
index a262ea9250c..c42d9bbb4b3 100644
--- a/Master/texmf-dist/doc/lualatex/beamer-rl/README.txt
+++ b/Master/texmf-dist/doc/lualatex/beamer-rl/README.txt
@@ -1,7 +1,7 @@
-The beamer-rl package
-v1.2
+The beamer-rl class
+v1.3
-This package provides patchs of some beamer templates and commands
+This class provides patchs of some beamer templates and commands
for right to left presentation, this package require babel with lualatex engine
If you want to report any bugs or typos and corrections in the
documentation then
@@ -9,7 +9,7 @@ please use the issue tracker:
<https://github.com/seloumi/beamer-rl/issues>
-Current version release date: 2019/04/03
+Current version release date: 2019/10/04
___________________
Salim Bou
diff --git a/Master/texmf-dist/tex/lualatex/beamer-rl/beamer-rl.sty b/Master/texmf-dist/tex/lualatex/beamer-rl/beamer-rl.cls
index b476c58fb0e..33fe45343b9 100644
--- a/Master/texmf-dist/tex/lualatex/beamer-rl/beamer-rl.sty
+++ b/Master/texmf-dist/tex/lualatex/beamer-rl/beamer-rl.cls
@@ -1,8 +1,37 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{beamer-rl}
-[2019/04/03 v1.2 LaTeX package to patch beamer for right to left presentation]
+\ProvidesClass{beamer-rl}
+[2019/10/04 v1.3 LaTeX class to patch beamer for right to left presentation with babel]
-\RequirePackage[nil,bidi=basic-r,layout=counters.lists.tabular]{babel}
+\RequirePackage{kvoptions}
+\RequirePackage{kvsetkeys}
+
+\SetupKeyvalOptions{
+ family=beamer-rl,
+ prefix=beamer-rl@,
+ setkeys=\kvsetkeys,
+}
+
+% babel options:
+\define@key{beamer-rl}{babel}{%
+ \PassOptionsToPackage{#1}{babel}%
+}
+
+\DeclareDefaultOption{%
+ \PassOptionsToClass{\CurrentOption}{beamer}%
+}
+
+\ProcessKeyvalOptions*\relax
+
+\RequirePackage{ifluatex}
+
+\ifluatex
+\else
+\ClassError{beamer-rl}{beamer-rl require luatex}
+\fi
+
+\LoadClass[hyperref={unicode}]{beamer}
+
+\RequirePackage[nil,bidi=basic-r]{babel}
\def\reset@temp#1#2{\expandafter\let\csname beamer@@tmpop@#1@#2\endcsname\relax}
\def\@@defbeamertemplate#1#2{\reset@temp{#1}{#2}\defbeamertemplate{#1}{#2}}
@@ -30,8 +59,6 @@
\let\oldpgfuseshading\pgfuseshading
\def\pgfuseshading#1{\babelsublr{\oldpgfuseshading{#1}}}
-\hypersetup{unicode}
-
%% beamerbasebox
@@ -78,10 +105,9 @@
\bmb@temp=\bmb@width%
\bmb@dima=\bmb@temp\advance\bmb@dima by2.2bp%
\bmb@dimb=\bmb@temp\advance\bmb@dimb by4bp%
+ \bmb@dimc=0pt%
\ifdim\wd\bmb@box=0pt
\bmb@dimc=\bmb@width%
- \else
- \bmb@dimc=0pt%
\fi
\hbox{%
\textdir TLT\begin{pgfpicture}{0bp}{+-\ht\bmb@box}{\bmb@dimc}{+-\ht\bmb@box}
@@ -451,7 +477,7 @@
}}%
\setbox\beamer@framebox=\vbox{%
- \nobreak\vbox{}\nobreak\par\nobreak\beamer@entrycode\nobreak%
+ \nobreak\vbox{}\nobreak\par\nobreak\beamer@entrycode\nobreak%
\nointerlineskip\unvbox\beamer@frametitlebox%
\nobreak%
\box\beamer@framebox %