diff options
author | Karl Berry <karl@freefriends.org> | 2019-10-04 20:49:11 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-10-04 20:49:11 +0000 |
commit | 5c5c9bce35bf7563e8f7dd7983d537f083b2b731 (patch) | |
tree | de80593d23b1018669dc615def236e9d0fa3a955 /Master/texmf-dist/tex/lualatex/beamer-rl | |
parent | 4ae4c0f7b2ba8723d6be3e162b2b500104b60d69 (diff) |
beamer-rl (4oct19)
git-svn-id: svn://tug.org/texlive/trunk@52284 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/lualatex/beamer-rl')
-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 |
1 files changed, 34 insertions, 8 deletions
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 % |