diff options
author | Karl Berry <karl@freefriends.org> | 2019-03-29 21:11:44 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-03-29 21:11:44 +0000 |
commit | 05885a3c3b175ce1d5a8847caec7d503fd1a8fdf (patch) | |
tree | d79f663010842b6e4888c7a7be07c0c892d65a09 | |
parent | 311515a4f8162234e35ceb5980d3e3b88a71950b (diff) |
beamer-rl (29mar19)
git-svn-id: svn://tug.org/texlive/trunk@50643 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/doc/lualatex/beamer-rl/README.txt | 4 | ||||
-rw-r--r-- | Master/texmf-dist/doc/lualatex/beamer-rl/beamer-rl-doc.pdf | bin | 107609 -> 0 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/lualatex/beamer-rl/test-beamer-rl.pdf | bin | 0 -> 103233 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/lualatex/beamer-rl/test-beamer-rl.tex (renamed from Master/texmf-dist/doc/lualatex/beamer-rl/beamer-rl-doc.tex) | 64 | ||||
-rw-r--r-- | Master/texmf-dist/tex/lualatex/beamer-rl/beamer-rl.sty | 491 |
5 files changed, 261 insertions, 298 deletions
diff --git a/Master/texmf-dist/doc/lualatex/beamer-rl/README.txt b/Master/texmf-dist/doc/lualatex/beamer-rl/README.txt index eaa9ec24d2a..85c4ed4557e 100644 --- a/Master/texmf-dist/doc/lualatex/beamer-rl/README.txt +++ b/Master/texmf-dist/doc/lualatex/beamer-rl/README.txt @@ -1,5 +1,5 @@ The beamer-rl package -v1.0 +v1.1 This package provides patchs of some beamer templates and commands for right to left presentation, this package require babel with lualatex engine @@ -9,7 +9,7 @@ please use the issue tracker: <https://github.com/seloumi/beamer-rl/issues> -Current version release date: 2019/03/13 +Current version release date: 2019/03/28 ___________________ Salim Bou diff --git a/Master/texmf-dist/doc/lualatex/beamer-rl/beamer-rl-doc.pdf b/Master/texmf-dist/doc/lualatex/beamer-rl/beamer-rl-doc.pdf Binary files differdeleted file mode 100644 index 9885bcb2fe3..00000000000 --- a/Master/texmf-dist/doc/lualatex/beamer-rl/beamer-rl-doc.pdf +++ /dev/null diff --git a/Master/texmf-dist/doc/lualatex/beamer-rl/test-beamer-rl.pdf b/Master/texmf-dist/doc/lualatex/beamer-rl/test-beamer-rl.pdf Binary files differnew file mode 100644 index 00000000000..784d343c135 --- /dev/null +++ b/Master/texmf-dist/doc/lualatex/beamer-rl/test-beamer-rl.pdf diff --git a/Master/texmf-dist/doc/lualatex/beamer-rl/beamer-rl-doc.tex b/Master/texmf-dist/doc/lualatex/beamer-rl/test-beamer-rl.tex index 95038edd4f9..8e061237c89 100644 --- a/Master/texmf-dist/doc/lualatex/beamer-rl/beamer-rl-doc.tex +++ b/Master/texmf-dist/doc/lualatex/beamer-rl/test-beamer-rl.tex @@ -1,12 +1,9 @@ \documentclass[hyperref=unicode]{beamer} \usepackage{hologo} % pdflatex, xelatex, lualatex logos -\usepackage{tikz} - -\usepackage[nil,bidi=basic-r]{babel} +\usepackage[nil,bidi=basic-r,layout=counters]{babel} \babelprovide[import=ar-DZ, main]{arabic} \babelprovide[import,language=Default]{english} -\babelfont{rm}{Amiri} \babelfont{sf}{Amiri} @@ -17,7 +14,7 @@ %\mode<presentation>{\usetheme{boxes}} %\mode<presentation>{\usetheme{Bergen}} %\mode<presentation>{\usetheme{Boadilla}} -%\mode<presentation>{\usetheme{Madrid}} +\mode<presentation>{\usetheme{Madrid}} %\mode<presentation>{\usetheme{AnnArbor}} %\mode<presentation>{\usetheme{CambridgeUS}} %\mode<presentation>{\usetheme{EastLansing}} @@ -48,25 +45,27 @@ %\mode<presentation>{\usetheme{Copenhagen}} %\mode<presentation>{\usetheme{Luebeck}} %\mode<presentation>{\usetheme{Malmoe}} -\mode<presentation>{\usetheme{Warsaw}} +%\mode<presentation>{\usetheme{Warsaw}} +\usepackage{tikz} \title{The beamer-rl package} \author{Salim Bou} -\institute{% -{\usebeamercolor[bg]{title} Repository: } https://github.com/seloumi/beamer-rl \par -{\usebeamercolor[bg]{title} Bug tracker: } https://github.com/seloumi/beamer-rl/issues +\institute[]{% +{\color{blue} Repository: } https://github.com/seloumi/beamer-rl \par +{\color{blue} Bug tracker: } https://github.com/seloumi/beamer-rl/issues } -\date{\selectlanguage{english}\today} +\date{{\selectlanguage{english} \today}} \setbeamercovered{transparent=10} \newtheorem*{thm}{نظرية.} + \begin{document} \begin{frame} @@ -98,7 +97,7 @@ The \hologo{LuaTeX} team set solutions for these issues thanks to them and to \ \begin{verbatim} \documentclass{beamer} -\usepackage[nil,bidi=basic-r]{babel} +\usepackage[nil,bidi=basic-r,layout=counters]{babel} \babelprovide[import=ar-DZ, main]{arabic} \babelfont{sf}{Amiri} \usepackage{beamer-rl} @@ -110,31 +109,40 @@ The \hologo{LuaTeX} team set solutions for these issues thanks to them and to \ \end{verbatim} - - \end{frame} - \section{Examples} \subsection{Blocks} - -\begin{frame} +\begin{frame}[fragile] \frametitle{Blocks} +{\selectlanguage{nil} +\verb:\setbeamertemplate{blocks}[default]: +} + +\setbeamertemplate{blocks}[default] + \begin{block}{Lorem} - \foreignlanguage*{nil}{On 21 April 1820, during a lecture, Ørsted + \selectlanguage{nil} + On 21 April 1820, during a lecture, Ørsted noticed a compass needle deflected from magnetic north when an - electric current from a battery was switched on and off.} + electric current from a battery was switched on and off. \end{block} +{\selectlanguage{nil} +\verb:\setbeamertemplate{blocks}[rounded][shadow=true]: +} + +\setbeamertemplate{blocks}[rounded][shadow=true] \begin{block}{أورستد} لاحظ هانز أورستد في 21 أبريل 1820 وهو يُعد أحد التجارب أن إبرة البوصلة تنحرف عن اتجاهها نحو الشمال عندما كان يغلق ويفتح التيار في دائرة كهربائية يُعدها. \end{block} + \end{frame} \subsection{enumerate, itemize} @@ -193,28 +201,34 @@ number not in the first $p$ numbers.\qedhere \subsection{zooming} - \begin{frame}[fragile] \frametitle{zooming} +\framezoom<1><2>[border=2](2cm,2cm)(2cm,2cm) +\pgfimage[height=5cm]{example-image} + \selectlanguage{nil} \begin{verbatim} \framezoom<1><2>[border=2](2cm,2cm)(2cm,2cm) \pgfimage[height=5cm]{example-image} \end{verbatim} - \end{frame} +\section{Some notes} -\begin{frame} -\frametitle{zooming} +\begin{frame}[fragile] +\frametitle{Some notes} -\framezoom<1><2>[border=2](2cm,2cm)(2cm,2cm) -\pgfimage[height=5cm]{example-image} +\begin{itemize} +\item +The \verb:beamer-rl: package modify the definition of \verb:\blacktriangleright: so it have the same meaning as\verb:\blacktriangleleft:, if you need to use the original command you can use \verb:\blackTriangleright: +\item +In some cases you need to use \verb:\babelsublr: command from \verb:bebel: +package to insert a left to right text within your right to left text. +\end{itemize} \end{frame} - \end{document} diff --git a/Master/texmf-dist/tex/lualatex/beamer-rl/beamer-rl.sty b/Master/texmf-dist/tex/lualatex/beamer-rl/beamer-rl.sty index d8de26dce3a..55886644c92 100644 --- a/Master/texmf-dist/tex/lualatex/beamer-rl/beamer-rl.sty +++ b/Master/texmf-dist/tex/lualatex/beamer-rl/beamer-rl.sty @@ -1,4 +1,6 @@ - +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{beamer-rl} +[2019/03/28 v1.1 LaTeX package to patch beamer for right to left presentation] \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}} @@ -8,225 +10,225 @@ \@ifstar{\@defbeamertemplate}{\@@defbeamertemplate}% } - -\let\blackTriangleRight\blacktriangleright +\let\blackTriangleright\blacktriangleright \let\blacktriangleright\blacktriangleleft - - \let\oldpgfpicture\pgfpicture \let\oldendpgfpicture\endpgfpicture -\def\pgfpicture{\begingroup\textdir TLT\oldpgfpicture} -\def\endpgfpicture{\oldendpgfpicture\endgroup} +\def\pgfpicture{\babelsublr\bgroup\oldpgfpicture} +\def\endpgfpicture{\oldendpgfpicture\egroup} + +\let\oldpgfuseshading\pgfuseshading +\def\pgfuseshading#1{\babelsublr{\oldpgfuseshading{#1}}} %% beamerbasebox \newdimen\bmb@dimc \renewcommand\beamerboxesrounded[2][]{% - \global\let\beamer@firstlineitemizeunskip=\relax% - \vbox\bgroup% - \setkeys{beamerboxes}{upper=block title,lower=block body,width=\textwidth,shadow=false}% - \setkeys{beamerboxes}{#1}% - {% - \usebeamercolor{\bmb@lower}% - \globalcolorstrue% - \colorlet{lower.bg}{bg}% - }% - {% - \usebeamercolor{\bmb@upper}% - \globalcolorstrue% - \colorlet{upper.bg}{bg}% - }% - % - % Typeset head - % - \vskip4bp - \setbox\bmb@box=\hbox{% - \begin{minipage}[b]{\bmb@width}% - \usebeamercolor[fg]{\bmb@upper}% - #2% - \end{minipage}}% - \ifdim\wd\bmb@box=0pt% - \setbox\bmb@box=\hbox{}% - \ht\bmb@box=1.5pt% - \bmb@prevheight=-4.5pt% - \else% - \wd\bmb@box=\bmb@width% - \bmb@temp=\dp\bmb@box% - \ifdim\bmb@temp<1.5pt% - \bmb@temp=1.5pt% - \fi% - \setbox\bmb@box=\hbox{\raise\bmb@temp\hbox{\box\bmb@box}}% - \dp\bmb@box=0pt% - \bmb@prevheight=\ht\bmb@box% - \fi% - \bmb@temp=\bmb@width% - \bmb@dima=\bmb@temp\advance\bmb@dima by2.2bp% - \bmb@dimb=\bmb@temp\advance\bmb@dimb by4bp% - \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} - \ifdim\wd\bmb@box=0pt% - \color{lower.bg}% - \else% - \color{upper.bg}% - \fi% - \pgfpathqmoveto{-4bp}{-1bp} - \pgfpathqcurveto{-4bp}{1.2bp}{-2.2bp}{3bp}{0bp}{3bp} - \pgfpathlineto{\pgfpoint{\bmb@temp}{3bp}} - \pgfpathcurveto% - {\pgfpoint{\bmb@dima}{3bp}}% - {\pgfpoint{\bmb@dimb}{1.2bp}}% - {\pgfpoint{\bmb@dimb}{-1bp}}% - \bmb@dima=-\ht\bmb@box% - \advance\bmb@dima by-2pt% - \pgfpathlineto{\pgfpoint{\bmb@dimb}{\bmb@dima}} - \pgfpathlineto{\pgfpoint{-4bp}{\bmb@dima}} - \pgfusepath{fill} - \end{pgfpicture}% - \copy\bmb@box% - }% - \nointerlineskip% - \vskip-1pt% - \ifdim\wd\bmb@box=0pt% - \else% - \hbox{% - \begin{pgfpicture}{0pt}{0pt}{\bmb@width}{6pt} - \bmb@dima=\bmb@width% - \advance\bmb@dima by8bp% - \pgfpathrectangle{\pgfpoint{-4bp}{-1bp}}{\pgfpoint{\bmb@dima}{8bp}} - \pgfusepath{clip} - {\pgftransformshift{\pgfpoint{-4bp}{0bp}}\pgftext[left,base]{\pgfuseshading{bmb@transition}}}% - \end{pgfpicture}% - }% - \nointerlineskip% - \vskip-0.5pt% - \fi% - \ifbmb@shadow% - \setbox\bmb@boxshadow=\hbox{\textdir TLT\pgfuseshading{bmb@shadow}}% - \setbox\bmb@boxshadowball=\hbox{\textdir TLT\pgfuseshading{bmb@shadowball}}% - \setbox\bmb@boxshadowballlarge=\hbox{\textdir TLT\pgfuseshading{bmb@shadowballlarge}}% - \fi% - \setbox\bmb@colorbox=\hbox{{\pgfpicturetrue\pgfsetcolor{lower.bg}}}% - \setbox\bmb@box=\hbox\bgroup\begin{minipage}[b]{\bmb@width}% - \vskip2pt% - \usebeamercolor[fg]{\bmb@lower}% - \colorlet{beamerstructure}{upper.bg}% - \colorlet{structure}{upper.bg}% - %\color{.}% - } - -\def\endbeamerboxesrounded{% - \end{minipage}\egroup% - \wd\bmb@box=\bmb@width% - \bmb@temp=\dp\bmb@box% - \advance\bmb@temp by.5pt% - \setbox\bmb@box=\hbox{\raise\bmb@temp\hbox{\box\bmb@box}}% - \dp\bmb@box=0pt% - \bmb@temp=\wd\bmb@box% - \bmb@dima=\bmb@temp\advance\bmb@dima by2.2bp% - \bmb@dimb=\bmb@temp\advance\bmb@dimb by4bp% - \hbox{% - \textdir TLT\begin{pgfpicture}{0bp}{0bp}{0bp}{0bp} - \ifbmb@shadow% - {\pgftransformshift{\pgfpoint{4bp}{-3bp}}\pgftext{\copy\bmb@boxshadowball}} - \begin{pgfscope} - {% - \advance\bmb@temp by-1bp% - \pgfpathrectangle{\pgfpoint{\bmb@temp}{-7bp}}{\pgfpoint{9bp}{9bp}}% - \pgfusepath{clip} - }% - {\pgftransformshift{\pgfpoint{\bmb@temp}{1bp}}\pgftext{\box\bmb@boxshadowballlarge}} - \end{pgfscope} - \begin{pgfscope} - \advance\bmb@temp by-4bp% - \pgfpathrectangle{\pgfpoint{4bp}{-7bp}}{\pgfpoint{\bmb@temp}{5bp}} - \pgfusepath{clip} - {\pgftransformshift{\pgfpoint{4bp}{-7bp}}\pgftext[left,base]{\copy\bmb@boxshadow}}% - \end{pgfscope} - \begin{pgfscope} - \advance\bmb@temp by 4bp% - \bmb@dima=\ht\bmb@box% - \advance\bmb@dima by\bmb@prevheight% - \advance\bmb@dima by 4bp% - \pgfpathrectangle{\pgfpoint{\bmb@temp}{1bp}}{\pgfpoint{4bp}{\bmb@dima}} - \pgfusepath{clip} - \advance\bmb@dima by-4bp% - {\pgftransformshift{\pgfpoint{\bmb@temp}{\bmb@dima}}\pgftext{\box\bmb@boxshadowball}} - \advance\bmb@dima by-1bp% - \pgfpathrectangle{\pgfpoint{\bmb@temp}{1bp}}{\pgfpoint{4bp}{\bmb@dima}} - \pgfusepath{clip} - \advance\bmb@temp by4bp% - {\pgftransformshift{\pgfpoint{\bmb@temp}{-3bp}}% - \pgftransformrotate{90}% - \pgftext[left,base]{\box\bmb@boxshadow}}% - \end{pgfscope} - \fi% - \unhbox\bmb@colorbox% - \pgfpathqmoveto{-4bp}{1bp} - \pgfpathqcurveto{-4bp}{-1.2bp}{-2.2bp}{-3bp}{0bp}{-3bp} - \pgfpathlineto{\pgfpoint{\the\bmb@temp}{-3bp}} - \pgfpathcurveto% - {\pgfpoint{\the\bmb@dima}{-3bp}}% - {\pgfpoint{\the\bmb@dimb}{-1.2bp}}% - {\pgfpoint{\the\bmb@dimb}{1bp}}% - { - \bmb@dima=\ht\bmb@box% - \pgfpathlineto{\pgfpoint{\bmb@dimb}{\bmb@dima}} - \pgfpathlineto{\pgfpoint{-4bp}{\bmb@dima}} - \pgfusepath{fill} - } - \ifbmb@shadow% - { - \color{black!50!bg} - \pgfsetlinewidth{0pt} - \pgfpathmoveto{\pgfpoint{\bmb@dimb}{-.5bp}} - \bmb@dima=\ht\bmb@box% - \advance\bmb@dima by\bmb@prevheight% - \advance\bmb@dima by 1bp% - \pgfpathlineto{\pgfpoint{\bmb@dimb}{\bmb@dima}} - \pgfusepath{stroke} - \bmb@temp=\bmb@dima - \advance\bmb@dima by 1bp% - \color{black!31!bg} - \pgfpathmoveto{\pgfpoint{\bmb@dimb}{\bmb@temp}} - \pgfpathlineto{\pgfpoint{\bmb@dimb}{\bmb@dima}} - \pgfusepath{stroke} - \advance\bmb@dima by 1bp% - \advance\bmb@temp by 1bp% - \color{black!19!bg} - \pgfpathmoveto{\pgfpoint{\bmb@dimb}{\bmb@temp}} - \pgfpathlineto{\pgfpoint{\bmb@dimb}{\bmb@dima}} - \pgfusepath{stroke} - \advance\bmb@dima by 1bp% - \advance\bmb@temp by 1bp% - \color{black!6!bg} - \pgfpathmoveto{\pgfpoint{\bmb@dimb}{\bmb@temp}} - \pgfpathlineto{\pgfpoint{\bmb@dimb}{\bmb@dima}} - \pgfusepath{stroke} - \advance\bmb@dima by 1.5bp% - \advance\bmb@temp by 1bp% - \color{bg} - \pgfpathmoveto{\pgfpoint{\bmb@dimb}{\bmb@temp}} - \pgfpathlineto{\pgfpoint{\bmb@dimb}{\bmb@dima}} - \pgfusepath{stroke} - } - \fi - \end{pgfpicture}% - \box\bmb@box% - }% - \ifbmb@shadow% - \vskip4bp minus 2bp% - \else% - \vskip2bp% - \fi% - \egroup% of \vbox\bgroup + \global\let\beamer@firstlineitemizeunskip=\relax% + \vbox\bgroup% + \setkeys{beamerboxes}{upper=block title,lower=block body,width=\textwidth,shadow=false}% + \setkeys{beamerboxes}{#1}% + {% + \usebeamercolor{\bmb@lower}% + \globalcolorstrue% + \colorlet{lower.bg}{bg}% + }% + {% + \usebeamercolor{\bmb@upper}% + \globalcolorstrue% + \colorlet{upper.bg}{bg}% + }% + % + % Typeset head + % + \vskip4bp + \setbox\bmb@box=\hbox{% + \begin{minipage}[b]{\bmb@width}% + \usebeamercolor[fg]{\bmb@upper}% + #2% + \end{minipage}}% + \ifdim\wd\bmb@box=0pt% + \setbox\bmb@box=\hbox{}% + \ht\bmb@box=1.5pt% + \bmb@prevheight=-4.5pt% + \else% + \wd\bmb@box=\bmb@width% + \bmb@temp=\dp\bmb@box% + \ifdim\bmb@temp<1.5pt% + \bmb@temp=1.5pt% + \fi% + \setbox\bmb@box=\hbox{\raise\bmb@temp\hbox{\box\bmb@box}}% + \dp\bmb@box=0pt% + \bmb@prevheight=\ht\bmb@box% + \fi% + \bmb@temp=\bmb@width% + \bmb@dima=\bmb@temp\advance\bmb@dima by2.2bp% + \bmb@dimb=\bmb@temp\advance\bmb@dimb by4bp% + \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} + \ifdim\wd\bmb@box=0pt% + \color{lower.bg}% + \else% + \color{upper.bg}% + \fi% + \pgfpathqmoveto{-4bp}{-1bp} + \pgfpathqcurveto{-4bp}{1.2bp}{-2.2bp}{3bp}{0bp}{3bp} + \pgfpathlineto{\pgfpoint{\bmb@temp}{3bp}} + \pgfpathcurveto% + {\pgfpoint{\bmb@dima}{3bp}}% + {\pgfpoint{\bmb@dimb}{1.2bp}}% + {\pgfpoint{\bmb@dimb}{-1bp}}% + \bmb@dima=-\ht\bmb@box% + \advance\bmb@dima by-2pt% + \pgfpathlineto{\pgfpoint{\bmb@dimb}{\bmb@dima}} + \pgfpathlineto{\pgfpoint{-4bp}{\bmb@dima}} + \pgfusepath{fill} + \end{pgfpicture}% + \copy\bmb@box% + }% + \nointerlineskip% + \vskip-1pt% + \ifdim\wd\bmb@box=0pt% + \else% + \hbox{% + \begin{pgfpicture}{0pt}{0pt}{\bmb@width}{6pt} + \bmb@dima=\bmb@width% + \advance\bmb@dima by8bp% + \pgfpathrectangle{\pgfpoint{-4bp}{-1bp}}{\pgfpoint{\bmb@dima}{8bp}} + \pgfusepath{clip} + {\pgftransformshift{\pgfpoint{-4bp}{0bp}}\pgftext[left,base]{\pgfuseshading{bmb@transition}}}% + \end{pgfpicture}% + }% + \nointerlineskip% + \vskip-0.5pt% + \fi% + \ifbmb@shadow% + \setbox\bmb@boxshadow=\hbox{\pgfuseshading{bmb@shadow}}% + \setbox\bmb@boxshadowball=\hbox{\pgfuseshading{bmb@shadowball}}% + \setbox\bmb@boxshadowballlarge=\hbox{\pgfuseshading{bmb@shadowballlarge}}% + \fi% + \setbox\bmb@colorbox=\hbox{{\pgfpicturetrue\pgfsetcolor{lower.bg}}}% + \setbox\bmb@box=\hbox\bgroup\begin{minipage}[b]{\bmb@width}% + \vskip2pt% + \usebeamercolor[fg]{\bmb@lower}% + \colorlet{beamerstructure}{upper.bg}% + \colorlet{structure}{upper.bg}% + %\color{.}% + } + + \def\endbeamerboxesrounded{% + \end{minipage}\egroup% + \wd\bmb@box=\bmb@width% + \bmb@temp=\dp\bmb@box% + \advance\bmb@temp by.5pt% + \setbox\bmb@box=\hbox{\raise\bmb@temp\hbox{\box\bmb@box}}% + \dp\bmb@box=0pt% + \bmb@temp=\wd\bmb@box% + \bmb@dima=\bmb@temp\advance\bmb@dima by2.2bp% + \bmb@dimb=\bmb@temp\advance\bmb@dimb by4bp% + \hbox{% + \textdir TLT\begin{pgfpicture}{0bp}{0bp}{0bp}{0bp} + \ifbmb@shadow% + {\pgftransformshift{\pgfpoint{4bp}{-3bp}}\pgftext{\copy\bmb@boxshadowball}} + \begin{pgfscope} + {% + \advance\bmb@temp by-1bp% + \pgfpathrectangle{\pgfpoint{\bmb@temp}{-7bp}}{\pgfpoint{9bp}{9bp}}% + \pgfusepath{clip} + }% + {\pgftransformshift{\pgfpoint{\bmb@temp}{1bp}}\pgftext{\box\bmb@boxshadowballlarge}} + \end{pgfscope} + \begin{pgfscope} + \advance\bmb@temp by-4bp% + \pgfpathrectangle{\pgfpoint{4bp}{-7bp}}{\pgfpoint{\bmb@temp}{5bp}} + \pgfusepath{clip} + {\pgftransformshift{\pgfpoint{4bp}{-7bp}}\pgftext[left,base]{\copy\bmb@boxshadow}}% + \end{pgfscope} + \begin{pgfscope} + \advance\bmb@temp by 4bp% + \bmb@dima=\ht\bmb@box% + \advance\bmb@dima by\bmb@prevheight% + \advance\bmb@dima by 4bp% + \pgfpathrectangle{\pgfpoint{\bmb@temp}{1bp}}{\pgfpoint{4bp}{\bmb@dima}} + \pgfusepath{clip} + \advance\bmb@dima by-4bp% + {\pgftransformshift{\pgfpoint{\bmb@temp}{\bmb@dima}}\pgftext{\box\bmb@boxshadowball}} + \advance\bmb@dima by-1bp% + \pgfpathrectangle{\pgfpoint{\bmb@temp}{1bp}}{\pgfpoint{4bp}{\bmb@dima}} + \pgfusepath{clip} + \advance\bmb@temp by4bp% + {\pgftransformshift{\pgfpoint{\bmb@temp}{-3bp}}% + \pgftransformrotate{90}% + \pgftext[left,base]{\box\bmb@boxshadow}}% + \end{pgfscope} + \fi% + \unhbox\bmb@colorbox% + \pgfpathqmoveto{-4bp}{1bp} + \pgfpathqcurveto{-4bp}{-1.2bp}{-2.2bp}{-3bp}{0bp}{-3bp} + \pgfpathlineto{\pgfpoint{\the\bmb@temp}{-3bp}} + \pgfpathcurveto% + {\pgfpoint{\the\bmb@dima}{-3bp}}% + {\pgfpoint{\the\bmb@dimb}{-1.2bp}}% + {\pgfpoint{\the\bmb@dimb}{1bp}}% + { + \bmb@dima=\ht\bmb@box% + \pgfpathlineto{\pgfpoint{\bmb@dimb}{\bmb@dima}} + \pgfpathlineto{\pgfpoint{-4bp}{\bmb@dima}} + \pgfusepath{fill} + } + \ifbmb@shadow% + { + \color{black!50!bg} + \pgfsetlinewidth{0pt} + \pgfpathmoveto{\pgfpoint{\bmb@dimb}{-.5bp}} + \bmb@dima=\ht\bmb@box% + \advance\bmb@dima by\bmb@prevheight% + \advance\bmb@dima by 1bp% + \pgfpathlineto{\pgfpoint{\bmb@dimb}{\bmb@dima}} + \pgfusepath{stroke} + \bmb@temp=\bmb@dima + \advance\bmb@dima by 1bp% + \color{black!31!bg} + \pgfpathmoveto{\pgfpoint{\bmb@dimb}{\bmb@temp}} + \pgfpathlineto{\pgfpoint{\bmb@dimb}{\bmb@dima}} + \pgfusepath{stroke} + \advance\bmb@dima by 1bp% + \advance\bmb@temp by 1bp% + \color{black!19!bg} + \pgfpathmoveto{\pgfpoint{\bmb@dimb}{\bmb@temp}} + \pgfpathlineto{\pgfpoint{\bmb@dimb}{\bmb@dima}} + \pgfusepath{stroke} + \advance\bmb@dima by 1bp% + \advance\bmb@temp by 1bp% + \color{black!6!bg} + \pgfpathmoveto{\pgfpoint{\bmb@dimb}{\bmb@temp}} + \pgfpathlineto{\pgfpoint{\bmb@dimb}{\bmb@dima}} + \pgfusepath{stroke} + \advance\bmb@dima by 1.5bp% + \advance\bmb@temp by 1bp% + \color{bg} + \pgfpathmoveto{\pgfpoint{\bmb@dimb}{\bmb@temp}} + \pgfpathlineto{\pgfpoint{\bmb@dimb}{\bmb@dima}} + \pgfusepath{stroke} + } + \fi + \end{pgfpicture}% + \box\bmb@box% + }% + \ifbmb@shadow% + \vskip4bp minus 2bp% + \else% + \vskip2bp% + \fi% + \egroup% of \vbox\bgroup } @@ -239,63 +241,6 @@ {\leavevmode\leftskip=2em\rlap{\hskip-2em \inserttocsectionnumber\hbox{.}\inserttocsubsectionnumber}\inserttocsubsection\par} -\redefbeamertemplate{section in toc}{ball unnumbered} -{\leavevmode{\textdir TLT\raise0.1ex\beamer@usesphere{section number projected}{bigsphere}}\kern1.25ex\inserttocsection\par} - -\redefbeamertemplate{subsection in toc}{ball unnumbered} -{\leavevmode\leftskip=1.5em{\textdir TLT\raise0.2ex\beamer@usesphere{subsection number projected}{smallsphere}}% - \kern1ex\inserttocsubsection\par} - -\redefbeamertemplate{subsubsection in toc}{ball unnumbered} -{\leavevmode\normalsize\usebeamerfont{subsection in - toc}\leftskip=3em\usebeamerfont{subsubsection in toc}% - {\textdir TLT\beamer@usesphere{subsubsection number projected}{smallsphere}}% - \kern0.75ex\inserttocsubsubsection\par} - -% (sub-)section in toc: ball - -\redefbeamertemplate{section in toc}{ball unnumbered} -{\leavevmode{\textdir TLT\raise0.1ex\beamer@usesphere{section number projected}{bigsphere}}\kern1.25ex\inserttocsection\par} - -\redefbeamertemplate{subsection in toc}{ball unnumbered} -{\leavevmode\leftskip=1.5em{\textdir TLT\raise0.2ex\beamer@usesphere{subsection number projected}{smallsphere}}% - \kern1ex\inserttocsubsection\par} - -\redefbeamertemplate{subsubsection in toc}{ball unnumbered} -{\leavevmode\normalsize\usebeamerfont{subsection in - toc}\leftskip=3em\usebeamerfont{subsubsection in toc}% - {\textdir TLT\beamer@usesphere{subsubsection number projected}{smallsphere}}% - \kern0.75ex\inserttocsubsubsection\par} - - -% (sub-)section in toc: ball numbered - -\redefbeamertemplate{subsection in toc}{ball} -{\leavevmode\leftskip=5ex% - \llap{{\textdir TLT\raise0.1ex\beamer@usesphere{subsection number projected}{bigsphere}}\kern1ex}% - \inserttocsubsection\par% -} - -\redefbeamertemplate{subsubsection in toc}{ball} -{\leavevmode\normalsize\usebeamerfont{subsection in - toc}\leftskip=7ex\usebeamerfont{subsubsection in toc}% - \llap{{\textdir TLT\beamer@usesphere{subsubsection number projected}{bigsphere}}\kern0.75ex}% - \inserttocsubsubsection\par% -} - -% Itemize items, ball - -\redefbeamertemplate{itemize item}{ball}{\textdir TLT\raise0.2pt\beamer@usesphere{item projected}{bigsphere}} -\redefbeamertemplate{itemize subitem}{ball}{\textdir TLT\raise0.2pt\beamer@usesphere{subitem projected}{smallsphere}} -\redefbeamertemplate{itemize subsubitem}{ball}{\textdir TLT\raise0.2pt\beamer@usesphere{subsubitem projected}{smallsphere}} - - - -% Enumerate items, default - -\redefbeamertemplate*{enumerate subitem}{default}{\insertenumlabel\hbox{.}\insertsubenumlabel} -\redefbeamertemplate*{enumerate subsubitem}{default}{\insertenumlabel\hbox{.}\insertsubenumlabel\hbox{.}\insertsubsubenumlabel} - %% beamerinnerthemedefault \redefbeamertemplate*{button}{default} @@ -361,7 +306,7 @@ \def\insertgotosymbol{% -\begin{pgfpicture}{-1pt}{0pt}{4pt}{5pt} + \begin{pgfpicture}{-1pt}{0pt}{4pt}{5pt} \pgfuseobject{beamergotosymbol}% \end{pgfpicture}} @@ -468,8 +413,11 @@ \dp\@tempboxa=0pt% \setbox\beamer@framebox=\vbox to\beamer@frametextheight{{% \ifbeamer@plainframe\beamer@leftmargin=\Gm@lmargin\fi% - \begin{pgfpicture}{\beamer@leftmargin}{-\beamer@frametextheight}{\beamer@leftmargin}{0pt} - \pgftext[left,top]{A\box\@tempboxa} + \let\pgfpicture\oldpgfpicture + \let\endpgfpicture\oldendpgfpicture + \textdir TLT + \begin{pgfpicture}{\beamer@leftmargin}{-\beamer@frametextheight}{\beamer@leftmargin}{0pt} + \pgftext[left,top]{\box\@tempboxa} \pgfpathrectangle{\pgfpoint{-\@tempdimb}{-\@tempdimc}}{\pgfpoint{\@tempdimb}{\@tempdimc}}% \pgfusepath{clip} \begingroup @@ -481,12 +429,12 @@ \endgroup \end{pgfpicture}% }}% - + \setbox\beamer@framebox=\vbox{% \nobreak\vbox{}\nobreak\par\nobreak\beamer@entrycode\nobreak% \nointerlineskip\unvbox\beamer@frametitlebox% \nobreak% - \box\beamer@framebox% + \box\beamer@framebox % \nobreak% \vss% \beamer@exitcode% @@ -496,3 +444,4 @@ }% } +\endinput |