texlive[50643] Master/texmf-dist: beamer-rl (29mar19)
commits+karl at tug.org
commits+karl at tug.org
Fri Mar 29 22:11:44 CET 2019
Revision: 50643
http://tug.org/svn/texlive?view=revision&revision=50643
Author: karl
Date: 2019-03-29 22:11:44 +0100 (Fri, 29 Mar 2019)
Log Message:
-----------
beamer-rl (29mar19)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/lualatex/beamer-rl/README.txt
trunk/Master/texmf-dist/tex/lualatex/beamer-rl/beamer-rl.sty
Added Paths:
-----------
trunk/Master/texmf-dist/doc/lualatex/beamer-rl/test-beamer-rl.pdf
trunk/Master/texmf-dist/doc/lualatex/beamer-rl/test-beamer-rl.tex
Removed Paths:
-------------
trunk/Master/texmf-dist/doc/lualatex/beamer-rl/beamer-rl-doc.pdf
trunk/Master/texmf-dist/doc/lualatex/beamer-rl/beamer-rl-doc.tex
Modified: trunk/Master/texmf-dist/doc/lualatex/beamer-rl/README.txt
===================================================================
--- trunk/Master/texmf-dist/doc/lualatex/beamer-rl/README.txt 2019-03-29 21:10:20 UTC (rev 50642)
+++ trunk/Master/texmf-dist/doc/lualatex/beamer-rl/README.txt 2019-03-29 21:11:44 UTC (rev 50643)
@@ -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 @@
<https://github.com/seloumi/beamer-rl/issues>
-Current version release date: 2019/03/13
+Current version release date: 2019/03/28
___________________
Salim Bou
Deleted: trunk/Master/texmf-dist/doc/lualatex/beamer-rl/beamer-rl-doc.pdf
===================================================================
(Binary files differ)
Deleted: trunk/Master/texmf-dist/doc/lualatex/beamer-rl/beamer-rl-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/lualatex/beamer-rl/beamer-rl-doc.tex 2019-03-29 21:10:20 UTC (rev 50642)
+++ trunk/Master/texmf-dist/doc/lualatex/beamer-rl/beamer-rl-doc.tex 2019-03-29 21:11:44 UTC (rev 50643)
@@ -1,220 +0,0 @@
-\documentclass[hyperref=unicode]{beamer}
-\usepackage{hologo} % pdflatex, xelatex, lualatex logos
-
-\usepackage{tikz}
-
-\usepackage[nil,bidi=basic-r]{babel}
-\babelprovide[import=ar-DZ, main]{arabic}
-\babelprovide[import,language=Default]{english}
-\babelfont{rm}{Amiri}
-\babelfont{sf}{Amiri}
-
-
-\usepackage{beamer-rl}
-
-% Themes without Navigation Bars
-%\mode<presentation>{\usetheme{default}}
-%\mode<presentation>{\usetheme{boxes}}
-%\mode<presentation>{\usetheme{Bergen}}
-%\mode<presentation>{\usetheme{Boadilla}}
-%\mode<presentation>{\usetheme{Madrid}}
-%\mode<presentation>{\usetheme{AnnArbor}}
-%\mode<presentation>{\usetheme{CambridgeUS}}
-%\mode<presentation>{\usetheme{EastLansing}}
-%\mode<presentation>{\usetheme{Pittsburgh}}
-%\mode<presentation>{\usetheme{Rochester}}
-
-% Themes with a Tree-Like Navigation Bar
-%\mode<presentation>{\usetheme{Antibes}}
-%\mode<presentation>{\usetheme{JuanLesPins}}
-%\mode<presentation>{\usetheme{Montpellier}}
-
-% Themes with a Table of Contents Sidebar
-%\mode<presentation>{\usetheme{Berkeley}}
-%\mode<presentation>{\usetheme{PaloAlto}}
-%\mode<presentation>{\usetheme{Goettingen}}
-%\mode<presentation>{\usetheme{Hannover}}
-
-% Themes with a Mini Frame Navigation
-%\mode<presentation>{\usetheme{Berlin}}
-%\mode<presentation>{\usetheme{Ilmenau}}
-%\mode<presentation>{\usetheme{Dresden}}
-%\mode<presentation>{\usetheme{Darmstadt}}
-%\mode<presentation>{\usetheme{Frankfurt}}
-%\mode<presentation>{\usetheme{Singapore}}
-%\mode<presentation>{\usetheme{Szeged}}
-
-% Themes with Section and Subsection Tables
-%\mode<presentation>{\usetheme{Copenhagen}}
-%\mode<presentation>{\usetheme{Luebeck}}
-%\mode<presentation>{\usetheme{Malmoe}}
-\mode<presentation>{\usetheme{Warsaw}}
-
-
-
-\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
-}
-
-
-\date{\selectlanguage{english}\today}
-
-\setbeamercovered{transparent=10}
-\newtheorem*{thm}{نظرية.}
-
-\begin{document}
-
-\begin{frame}
-\titlepage
-\end{frame}
-
-\begin{frame}
-\frametitle{\selectlanguage{english}\contentsname}
-\tableofcontents
-\end{frame}
-
-\section{Introduction}
-
-\begin{frame}[fragile]
-\frametitle{Introduction}
-Creating beamer presentation for right to left language (like arabic) using \hologo{pdfLaTeX} or \hologo{XeLaTeX} still poses many problems due to bugs not currently resolved especially for colors and hyperlinks
-
-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
-
-
-\end{frame}
-
-\section{How to use beamer-rl}
-
-\begin{frame}[fragile]
-\frametitle{How to use beamer-rl}
-
-\selectlanguage{nil}
-
-\begin{verbatim}
-\documentclass{beamer}
-\usepackage[nil,bidi=basic-r]{babel}
-\babelprovide[import=ar-DZ, main]{arabic}
-\babelfont{sf}{Amiri}
-\usepackage{beamer-rl}
-
-\mode<presentation>{\usetheme{Warsaw}}
-\begin{document}
-...
-\end{document}
-
-\end{verbatim}
-
-
-
-\end{frame}
-
-
-\section{Examples}
-\subsection{Blocks}
-
-
-\begin{frame}
-\frametitle{Blocks}
-
-
-\begin{block}{Lorem}
- \foreignlanguage*{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.}
-\end{block}
-
-
-\begin{block}{أورستد}
- لاحظ هانز أورستد في 21 أبريل 1820 وهو يُعد أحد التجارب أن إبرة
- البوصلة تنحرف عن اتجاهها نحو الشمال عندما كان يغلق ويفتح التيار في
- دائرة كهربائية يُعدها.
-\end{block}
-\end{frame}
-
-\subsection{enumerate, itemize}
-
-\begin{frame}
-\frametitle{enumerate, itemize}
-
-\begin{enumerate}
-\item فيزياء تطبيقية
-\item فيزياء تجريبية
-\item فيزياء نظرية
-\end{enumerate}
-
-
-\begin{itemize}
-\item فيزياء تطبيقية
-\item فيزياء تجريبية
-\item فيزياء نظرية
-\end{itemize}
-\end{frame}
-
-\subsection{hyperlinks}
-
-\begin{frame}
-\frametitle{hyperlinks}
-\begin{itemize}
-\item<1-> First item.
-\item<2-> Second item.
-\item<3-> Third item.
-\end{itemize}
-\hyperlink{jumptosecond}{\beamergotobutton{الرجوع إلى الشريحة الثانية}}
-\hypertarget<2>{jumptosecond}{}
-\end{frame}
-
-
-\subsection{Theorems}
-
-\begin{frame}
-\frametitle{Theorems}
-
-\framesubtitle{The proof uses \textit{reductio ad absurdum}.}
-\begin{thm}
-There is no largest prime number.
-\end{thm}
-\begin{proof}
-\begin{enumerate}[<+-| alert at +>]
-\item Suppose $p$ were the largest prime number.
-\item Let $q$ be the product of the first $p$ numbers.
-\item Then $q+1$ is not divisible by any of them.
-\item But $q + 1$ is greater than $1$, thus divisible by some prime
-number not in the first $p$ numbers.\qedhere
-\end{enumerate}
-\end{proof}
-
-\end{frame}
-
-\subsection{zooming}
-
-
-\begin{frame}[fragile]
-\frametitle{zooming}
-
-\selectlanguage{nil}
-
-\begin{verbatim}
-\framezoom<1><2>[border=2](2cm,2cm)(2cm,2cm)
-\pgfimage[height=5cm]{example-image}
-\end{verbatim}
-
-\end{frame}
-
-
-\begin{frame}
-\frametitle{zooming}
-
-\framezoom<1><2>[border=2](2cm,2cm)(2cm,2cm)
-\pgfimage[height=5cm]{example-image}
-
-\end{frame}
-
-
-
-\end{document}
Added: trunk/Master/texmf-dist/doc/lualatex/beamer-rl/test-beamer-rl.pdf
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/lualatex/beamer-rl/test-beamer-rl.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/lualatex/beamer-rl/test-beamer-rl.pdf 2019-03-29 21:10:20 UTC (rev 50642)
+++ trunk/Master/texmf-dist/doc/lualatex/beamer-rl/test-beamer-rl.pdf 2019-03-29 21:11:44 UTC (rev 50643)
Property changes on: trunk/Master/texmf-dist/doc/lualatex/beamer-rl/test-beamer-rl.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/lualatex/beamer-rl/test-beamer-rl.tex
===================================================================
--- trunk/Master/texmf-dist/doc/lualatex/beamer-rl/test-beamer-rl.tex (rev 0)
+++ trunk/Master/texmf-dist/doc/lualatex/beamer-rl/test-beamer-rl.tex 2019-03-29 21:11:44 UTC (rev 50643)
@@ -0,0 +1,234 @@
+\documentclass[hyperref=unicode]{beamer}
+\usepackage{hologo} % pdflatex, xelatex, lualatex logos
+
+\usepackage[nil,bidi=basic-r,layout=counters]{babel}
+\babelprovide[import=ar-DZ, main]{arabic}
+\babelprovide[import,language=Default]{english}
+\babelfont{sf}{Amiri}
+
+
+\usepackage{beamer-rl}
+
+% Themes without Navigation Bars
+%\mode<presentation>{\usetheme{default}}
+%\mode<presentation>{\usetheme{boxes}}
+%\mode<presentation>{\usetheme{Bergen}}
+%\mode<presentation>{\usetheme{Boadilla}}
+\mode<presentation>{\usetheme{Madrid}}
+%\mode<presentation>{\usetheme{AnnArbor}}
+%\mode<presentation>{\usetheme{CambridgeUS}}
+%\mode<presentation>{\usetheme{EastLansing}}
+%\mode<presentation>{\usetheme{Pittsburgh}}
+%\mode<presentation>{\usetheme{Rochester}}
+
+% Themes with a Tree-Like Navigation Bar
+%\mode<presentation>{\usetheme{Antibes}}
+%\mode<presentation>{\usetheme{JuanLesPins}}
+%\mode<presentation>{\usetheme{Montpellier}}
+
+% Themes with a Table of Contents Sidebar
+%\mode<presentation>{\usetheme{Berkeley}}
+%\mode<presentation>{\usetheme{PaloAlto}}
+%\mode<presentation>{\usetheme{Goettingen}}
+%\mode<presentation>{\usetheme{Hannover}}
+
+% Themes with a Mini Frame Navigation
+%\mode<presentation>{\usetheme{Berlin}}
+%\mode<presentation>{\usetheme{Ilmenau}}
+%\mode<presentation>{\usetheme{Dresden}}
+%\mode<presentation>{\usetheme{Darmstadt}}
+%\mode<presentation>{\usetheme{Frankfurt}}
+%\mode<presentation>{\usetheme{Singapore}}
+%\mode<presentation>{\usetheme{Szeged}}
+
+% Themes with Section and Subsection Tables
+%\mode<presentation>{\usetheme{Copenhagen}}
+%\mode<presentation>{\usetheme{Luebeck}}
+%\mode<presentation>{\usetheme{Malmoe}}
+%\mode<presentation>{\usetheme{Warsaw}}
+
+
+\usepackage{tikz}
+
+\title{The beamer-rl package}
+
+\author{Salim Bou}
+
+\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}}
+
+\setbeamercovered{transparent=10}
+\newtheorem*{thm}{نظرية.}
+
+
+\begin{document}
+
+\begin{frame}
+\titlepage
+\end{frame}
+
+\begin{frame}
+\frametitle{\selectlanguage{english}\contentsname}
+\tableofcontents
+\end{frame}
+
+\section{Introduction}
+
+\begin{frame}[fragile]
+\frametitle{Introduction}
+Creating beamer presentation for right to left language (like arabic) using \hologo{pdfLaTeX} or \hologo{XeLaTeX} still poses many problems due to bugs not currently resolved especially for colors and hyperlinks
+
+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
+
+
+\end{frame}
+
+\section{How to use beamer-rl}
+
+\begin{frame}[fragile]
+\frametitle{How to use beamer-rl}
+
+\selectlanguage{nil}
+
+\begin{verbatim}
+\documentclass{beamer}
+\usepackage[nil,bidi=basic-r,layout=counters]{babel}
+\babelprovide[import=ar-DZ, main]{arabic}
+\babelfont{sf}{Amiri}
+\usepackage{beamer-rl}
+
+\mode<presentation>{\usetheme{Warsaw}}
+\begin{document}
+...
+\end{document}
+
+\end{verbatim}
+
+\end{frame}
+
+\section{Examples}
+\subsection{Blocks}
+
+\begin{frame}[fragile]
+\frametitle{Blocks}
+
+{\selectlanguage{nil}
+\verb:\setbeamertemplate{blocks}[default]:
+}
+
+\setbeamertemplate{blocks}[default]
+
+
+\begin{block}{Lorem}
+ \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.
+\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}
+
+\begin{frame}
+\frametitle{enumerate, itemize}
+
+\begin{enumerate}
+\item فيزياء تطبيقية
+\item فيزياء تجريبية
+\item فيزياء نظرية
+\end{enumerate}
+
+
+\begin{itemize}
+\item فيزياء تطبيقية
+\item فيزياء تجريبية
+\item فيزياء نظرية
+\end{itemize}
+\end{frame}
+
+\subsection{hyperlinks}
+
+\begin{frame}
+\frametitle{hyperlinks}
+\begin{itemize}
+\item<1-> First item.
+\item<2-> Second item.
+\item<3-> Third item.
+\end{itemize}
+\hyperlink{jumptosecond}{\beamergotobutton{الرجوع إلى الشريحة الثانية}}
+\hypertarget<2>{jumptosecond}{}
+\end{frame}
+
+
+\subsection{Theorems}
+
+\begin{frame}
+\frametitle{Theorems}
+
+\framesubtitle{The proof uses \textit{reductio ad absurdum}.}
+\begin{thm}
+There is no largest prime number.
+\end{thm}
+\begin{proof}
+\begin{enumerate}[<+-| alert at +>]
+\item Suppose $p$ were the largest prime number.
+\item Let $q$ be the product of the first $p$ numbers.
+\item Then $q+1$ is not divisible by any of them.
+\item But $q + 1$ is greater than $1$, thus divisible by some prime
+number not in the first $p$ numbers.\qedhere
+\end{enumerate}
+\end{proof}
+
+\end{frame}
+
+\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}[fragile]
+\frametitle{Some notes}
+
+\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}
Property changes on: trunk/Master/texmf-dist/doc/lualatex/beamer-rl/test-beamer-rl.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/tex/lualatex/beamer-rl/beamer-rl.sty
===================================================================
--- trunk/Master/texmf-dist/tex/lualatex/beamer-rl/beamer-rl.sty 2019-03-29 21:10:20 UTC (rev 50642)
+++ trunk/Master/texmf-dist/tex/lualatex/beamer-rl/beamer-rl.sty 2019-03-29 21:11:44 UTC (rev 50643)
@@ -1,5 +1,7 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{beamer-rl}
+[2019/03/28 v1.1 LaTeX package to patch beamer for right to left presentation]
-
\def\reset at temp#1#2{\expandafter\let\csname beamer@@tmpop@#1@#2\endcsname\relax}
\def\@@defbeamertemplate#1#2{\reset at temp{#1}{#2}\defbeamertemplate{#1}{#2}}
\def\@defbeamertemplate#1#2{\reset at 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 at dimc
\renewcommand\beamerboxesrounded[2][]{%
- \global\let\beamer at firstlineitemizeunskip=\relax%
- \vbox\bgroup%
- \setkeys{beamerboxes}{upper=block title,lower=block body,width=\textwidth,shadow=false}%
- \setkeys{beamerboxes}{#1}%
- {%
- \usebeamercolor{\bmb at lower}%
- \globalcolorstrue%
- \colorlet{lower.bg}{bg}%
- }%
- {%
- \usebeamercolor{\bmb at upper}%
- \globalcolorstrue%
- \colorlet{upper.bg}{bg}%
- }%
- %
- % Typeset head
- %
- \vskip4bp
- \setbox\bmb at box=\hbox{%
- \begin{minipage}[b]{\bmb at width}%
- \usebeamercolor[fg]{\bmb at upper}%
- #2%
- \end{minipage}}%
- \ifdim\wd\bmb at box=0pt%
- \setbox\bmb at box=\hbox{}%
- \ht\bmb at box=1.5pt%
- \bmb at prevheight=-4.5pt%
- \else%
- \wd\bmb at box=\bmb at width%
- \bmb at temp=\dp\bmb at box%
- \ifdim\bmb at temp<1.5pt%
- \bmb at temp=1.5pt%
- \fi%
- \setbox\bmb at box=\hbox{\raise\bmb at temp\hbox{\box\bmb at box}}%
- \dp\bmb at box=0pt%
- \bmb at prevheight=\ht\bmb at box%
- \fi%
- \bmb at temp=\bmb at width%
- \bmb at dima=\bmb at temp\advance\bmb at dima by2.2bp%
- \bmb at dimb=\bmb at temp\advance\bmb at dimb by4bp%
- \ifdim\wd\bmb at box=0pt
- \bmb at dimc=\bmb at width%
- \else
- \bmb at dimc=0pt%
- \fi
- \hbox{%
- \textdir TLT\begin{pgfpicture}{0bp}{+-\ht\bmb at box}{\bmb at dimc}{+-\ht\bmb at box}
- \ifdim\wd\bmb at 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 at temp}{3bp}}
- \pgfpathcurveto%
- {\pgfpoint{\bmb at dima}{3bp}}%
- {\pgfpoint{\bmb at dimb}{1.2bp}}%
- {\pgfpoint{\bmb at dimb}{-1bp}}%
- \bmb at dima=-\ht\bmb at box%
- \advance\bmb at dima by-2pt%
- \pgfpathlineto{\pgfpoint{\bmb at dimb}{\bmb at dima}}
- \pgfpathlineto{\pgfpoint{-4bp}{\bmb at dima}}
- \pgfusepath{fill}
- \end{pgfpicture}%
- \copy\bmb at box%
- }%
- \nointerlineskip%
- \vskip-1pt%
- \ifdim\wd\bmb at box=0pt%
- \else%
- \hbox{%
- \begin{pgfpicture}{0pt}{0pt}{\bmb at width}{6pt}
- \bmb at dima=\bmb at width%
- \advance\bmb at dima by8bp%
- \pgfpathrectangle{\pgfpoint{-4bp}{-1bp}}{\pgfpoint{\bmb at dima}{8bp}}
- \pgfusepath{clip}
- {\pgftransformshift{\pgfpoint{-4bp}{0bp}}\pgftext[left,base]{\pgfuseshading{bmb at transition}}}%
- \end{pgfpicture}%
- }%
- \nointerlineskip%
- \vskip-0.5pt%
- \fi%
- \ifbmb at shadow%
- \setbox\bmb at boxshadow=\hbox{\textdir TLT\pgfuseshading{bmb at shadow}}%
- \setbox\bmb at boxshadowball=\hbox{\textdir TLT\pgfuseshading{bmb at shadowball}}%
- \setbox\bmb at boxshadowballlarge=\hbox{\textdir TLT\pgfuseshading{bmb at shadowballlarge}}%
- \fi%
- \setbox\bmb at colorbox=\hbox{{\pgfpicturetrue\pgfsetcolor{lower.bg}}}%
- \setbox\bmb at box=\hbox\bgroup\begin{minipage}[b]{\bmb at width}%
- \vskip2pt%
- \usebeamercolor[fg]{\bmb at lower}%
- \colorlet{beamerstructure}{upper.bg}%
- \colorlet{structure}{upper.bg}%
- %\color{.}%
- }
-
-\def\endbeamerboxesrounded{%
- \end{minipage}\egroup%
- \wd\bmb at box=\bmb at width%
- \bmb at temp=\dp\bmb at box%
- \advance\bmb at temp by.5pt%
- \setbox\bmb at box=\hbox{\raise\bmb at temp\hbox{\box\bmb at box}}%
- \dp\bmb at box=0pt%
- \bmb at temp=\wd\bmb at box%
- \bmb at dima=\bmb at temp\advance\bmb at dima by2.2bp%
- \bmb at dimb=\bmb at temp\advance\bmb at dimb by4bp%
- \hbox{%
- \textdir TLT\begin{pgfpicture}{0bp}{0bp}{0bp}{0bp}
- \ifbmb at shadow%
- {\pgftransformshift{\pgfpoint{4bp}{-3bp}}\pgftext{\copy\bmb at boxshadowball}}
- \begin{pgfscope}
- {%
- \advance\bmb at temp by-1bp%
- \pgfpathrectangle{\pgfpoint{\bmb at temp}{-7bp}}{\pgfpoint{9bp}{9bp}}%
- \pgfusepath{clip}
- }%
- {\pgftransformshift{\pgfpoint{\bmb at temp}{1bp}}\pgftext{\box\bmb at boxshadowballlarge}}
- \end{pgfscope}
- \begin{pgfscope}
- \advance\bmb at temp by-4bp%
- \pgfpathrectangle{\pgfpoint{4bp}{-7bp}}{\pgfpoint{\bmb at temp}{5bp}}
- \pgfusepath{clip}
- {\pgftransformshift{\pgfpoint{4bp}{-7bp}}\pgftext[left,base]{\copy\bmb at boxshadow}}%
- \end{pgfscope}
- \begin{pgfscope}
- \advance\bmb at temp by 4bp%
- \bmb at dima=\ht\bmb at box%
- \advance\bmb at dima by\bmb at prevheight%
- \advance\bmb at dima by 4bp%
- \pgfpathrectangle{\pgfpoint{\bmb at temp}{1bp}}{\pgfpoint{4bp}{\bmb at dima}}
- \pgfusepath{clip}
- \advance\bmb at dima by-4bp%
- {\pgftransformshift{\pgfpoint{\bmb at temp}{\bmb at dima}}\pgftext{\box\bmb at boxshadowball}}
- \advance\bmb at dima by-1bp%
- \pgfpathrectangle{\pgfpoint{\bmb at temp}{1bp}}{\pgfpoint{4bp}{\bmb at dima}}
- \pgfusepath{clip}
- \advance\bmb at temp by4bp%
- {\pgftransformshift{\pgfpoint{\bmb at temp}{-3bp}}%
- \pgftransformrotate{90}%
- \pgftext[left,base]{\box\bmb at boxshadow}}%
- \end{pgfscope}
- \fi%
- \unhbox\bmb at colorbox%
- \pgfpathqmoveto{-4bp}{1bp}
- \pgfpathqcurveto{-4bp}{-1.2bp}{-2.2bp}{-3bp}{0bp}{-3bp}
- \pgfpathlineto{\pgfpoint{\the\bmb at temp}{-3bp}}
- \pgfpathcurveto%
- {\pgfpoint{\the\bmb at dima}{-3bp}}%
- {\pgfpoint{\the\bmb at dimb}{-1.2bp}}%
- {\pgfpoint{\the\bmb at dimb}{1bp}}%
- {
- \bmb at dima=\ht\bmb at box%
- \pgfpathlineto{\pgfpoint{\bmb at dimb}{\bmb at dima}}
- \pgfpathlineto{\pgfpoint{-4bp}{\bmb at dima}}
- \pgfusepath{fill}
- }
- \ifbmb at shadow%
- {
- \color{black!50!bg}
- \pgfsetlinewidth{0pt}
- \pgfpathmoveto{\pgfpoint{\bmb at dimb}{-.5bp}}
- \bmb at dima=\ht\bmb at box%
- \advance\bmb at dima by\bmb at prevheight%
- \advance\bmb at dima by 1bp%
- \pgfpathlineto{\pgfpoint{\bmb at dimb}{\bmb at dima}}
- \pgfusepath{stroke}
- \bmb at temp=\bmb at dima
- \advance\bmb at dima by 1bp%
- \color{black!31!bg}
- \pgfpathmoveto{\pgfpoint{\bmb at dimb}{\bmb at temp}}
- \pgfpathlineto{\pgfpoint{\bmb at dimb}{\bmb at dima}}
- \pgfusepath{stroke}
- \advance\bmb at dima by 1bp%
- \advance\bmb at temp by 1bp%
- \color{black!19!bg}
- \pgfpathmoveto{\pgfpoint{\bmb at dimb}{\bmb at temp}}
- \pgfpathlineto{\pgfpoint{\bmb at dimb}{\bmb at dima}}
- \pgfusepath{stroke}
- \advance\bmb at dima by 1bp%
- \advance\bmb at temp by 1bp%
- \color{black!6!bg}
- \pgfpathmoveto{\pgfpoint{\bmb at dimb}{\bmb at temp}}
- \pgfpathlineto{\pgfpoint{\bmb at dimb}{\bmb at dima}}
- \pgfusepath{stroke}
- \advance\bmb at dima by 1.5bp%
- \advance\bmb at temp by 1bp%
- \color{bg}
- \pgfpathmoveto{\pgfpoint{\bmb at dimb}{\bmb at temp}}
- \pgfpathlineto{\pgfpoint{\bmb at dimb}{\bmb at dima}}
- \pgfusepath{stroke}
- }
- \fi
- \end{pgfpicture}%
- \box\bmb at box%
- }%
- \ifbmb at shadow%
- \vskip4bp minus 2bp%
- \else%
- \vskip2bp%
- \fi%
- \egroup% of \vbox\bgroup
+ \global\let\beamer at firstlineitemizeunskip=\relax%
+ \vbox\bgroup%
+ \setkeys{beamerboxes}{upper=block title,lower=block body,width=\textwidth,shadow=false}%
+ \setkeys{beamerboxes}{#1}%
+ {%
+ \usebeamercolor{\bmb at lower}%
+ \globalcolorstrue%
+ \colorlet{lower.bg}{bg}%
+ }%
+ {%
+ \usebeamercolor{\bmb at upper}%
+ \globalcolorstrue%
+ \colorlet{upper.bg}{bg}%
+ }%
+ %
+ % Typeset head
+ %
+ \vskip4bp
+ \setbox\bmb at box=\hbox{%
+ \begin{minipage}[b]{\bmb at width}%
+ \usebeamercolor[fg]{\bmb at upper}%
+ #2%
+ \end{minipage}}%
+ \ifdim\wd\bmb at box=0pt%
+ \setbox\bmb at box=\hbox{}%
+ \ht\bmb at box=1.5pt%
+ \bmb at prevheight=-4.5pt%
+ \else%
+ \wd\bmb at box=\bmb at width%
+ \bmb at temp=\dp\bmb at box%
+ \ifdim\bmb at temp<1.5pt%
+ \bmb at temp=1.5pt%
+ \fi%
+ \setbox\bmb at box=\hbox{\raise\bmb at temp\hbox{\box\bmb at box}}%
+ \dp\bmb at box=0pt%
+ \bmb at prevheight=\ht\bmb at box%
+ \fi%
+ \bmb at temp=\bmb at width%
+ \bmb at dima=\bmb at temp\advance\bmb at dima by2.2bp%
+ \bmb at dimb=\bmb at temp\advance\bmb at dimb by4bp%
+ \ifdim\wd\bmb at box=0pt
+ \bmb at dimc=\bmb at width%
+ \else
+ \bmb at dimc=0pt%
+ \fi
+ \hbox{%
+ \textdir TLT\begin{pgfpicture}{0bp}{+-\ht\bmb at box}{\bmb at dimc}{+-\ht\bmb at box}
+ \ifdim\wd\bmb at 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 at temp}{3bp}}
+ \pgfpathcurveto%
+ {\pgfpoint{\bmb at dima}{3bp}}%
+ {\pgfpoint{\bmb at dimb}{1.2bp}}%
+ {\pgfpoint{\bmb at dimb}{-1bp}}%
+ \bmb at dima=-\ht\bmb at box%
+ \advance\bmb at dima by-2pt%
+ \pgfpathlineto{\pgfpoint{\bmb at dimb}{\bmb at dima}}
+ \pgfpathlineto{\pgfpoint{-4bp}{\bmb at dima}}
+ \pgfusepath{fill}
+ \end{pgfpicture}%
+ \copy\bmb at box%
+ }%
+ \nointerlineskip%
+ \vskip-1pt%
+ \ifdim\wd\bmb at box=0pt%
+ \else%
+ \hbox{%
+ \begin{pgfpicture}{0pt}{0pt}{\bmb at width}{6pt}
+ \bmb at dima=\bmb at width%
+ \advance\bmb at dima by8bp%
+ \pgfpathrectangle{\pgfpoint{-4bp}{-1bp}}{\pgfpoint{\bmb at dima}{8bp}}
+ \pgfusepath{clip}
+ {\pgftransformshift{\pgfpoint{-4bp}{0bp}}\pgftext[left,base]{\pgfuseshading{bmb at transition}}}%
+ \end{pgfpicture}%
+ }%
+ \nointerlineskip%
+ \vskip-0.5pt%
+ \fi%
+ \ifbmb at shadow%
+ \setbox\bmb at boxshadow=\hbox{\pgfuseshading{bmb at shadow}}%
+ \setbox\bmb at boxshadowball=\hbox{\pgfuseshading{bmb at shadowball}}%
+ \setbox\bmb at boxshadowballlarge=\hbox{\pgfuseshading{bmb at shadowballlarge}}%
+ \fi%
+ \setbox\bmb at colorbox=\hbox{{\pgfpicturetrue\pgfsetcolor{lower.bg}}}%
+ \setbox\bmb at box=\hbox\bgroup\begin{minipage}[b]{\bmb at width}%
+ \vskip2pt%
+ \usebeamercolor[fg]{\bmb at lower}%
+ \colorlet{beamerstructure}{upper.bg}%
+ \colorlet{structure}{upper.bg}%
+ %\color{.}%
+ }
+
+ \def\endbeamerboxesrounded{%
+ \end{minipage}\egroup%
+ \wd\bmb at box=\bmb at width%
+ \bmb at temp=\dp\bmb at box%
+ \advance\bmb at temp by.5pt%
+ \setbox\bmb at box=\hbox{\raise\bmb at temp\hbox{\box\bmb at box}}%
+ \dp\bmb at box=0pt%
+ \bmb at temp=\wd\bmb at box%
+ \bmb at dima=\bmb at temp\advance\bmb at dima by2.2bp%
+ \bmb at dimb=\bmb at temp\advance\bmb at dimb by4bp%
+ \hbox{%
+ \textdir TLT\begin{pgfpicture}{0bp}{0bp}{0bp}{0bp}
+ \ifbmb at shadow%
+ {\pgftransformshift{\pgfpoint{4bp}{-3bp}}\pgftext{\copy\bmb at boxshadowball}}
+ \begin{pgfscope}
+ {%
+ \advance\bmb at temp by-1bp%
+ \pgfpathrectangle{\pgfpoint{\bmb at temp}{-7bp}}{\pgfpoint{9bp}{9bp}}%
+ \pgfusepath{clip}
+ }%
+ {\pgftransformshift{\pgfpoint{\bmb at temp}{1bp}}\pgftext{\box\bmb at boxshadowballlarge}}
+ \end{pgfscope}
+ \begin{pgfscope}
+ \advance\bmb at temp by-4bp%
+ \pgfpathrectangle{\pgfpoint{4bp}{-7bp}}{\pgfpoint{\bmb at temp}{5bp}}
+ \pgfusepath{clip}
+ {\pgftransformshift{\pgfpoint{4bp}{-7bp}}\pgftext[left,base]{\copy\bmb at boxshadow}}%
+ \end{pgfscope}
+ \begin{pgfscope}
+ \advance\bmb at temp by 4bp%
+ \bmb at dima=\ht\bmb at box%
+ \advance\bmb at dima by\bmb at prevheight%
+ \advance\bmb at dima by 4bp%
+ \pgfpathrectangle{\pgfpoint{\bmb at temp}{1bp}}{\pgfpoint{4bp}{\bmb at dima}}
+ \pgfusepath{clip}
+ \advance\bmb at dima by-4bp%
+ {\pgftransformshift{\pgfpoint{\bmb at temp}{\bmb at dima}}\pgftext{\box\bmb at boxshadowball}}
+ \advance\bmb at dima by-1bp%
+ \pgfpathrectangle{\pgfpoint{\bmb at temp}{1bp}}{\pgfpoint{4bp}{\bmb at dima}}
+ \pgfusepath{clip}
+ \advance\bmb at temp by4bp%
+ {\pgftransformshift{\pgfpoint{\bmb at temp}{-3bp}}%
+ \pgftransformrotate{90}%
+ \pgftext[left,base]{\box\bmb at boxshadow}}%
+ \end{pgfscope}
+ \fi%
+ \unhbox\bmb at colorbox%
+ \pgfpathqmoveto{-4bp}{1bp}
+ \pgfpathqcurveto{-4bp}{-1.2bp}{-2.2bp}{-3bp}{0bp}{-3bp}
+ \pgfpathlineto{\pgfpoint{\the\bmb at temp}{-3bp}}
+ \pgfpathcurveto%
+ {\pgfpoint{\the\bmb at dima}{-3bp}}%
+ {\pgfpoint{\the\bmb at dimb}{-1.2bp}}%
+ {\pgfpoint{\the\bmb at dimb}{1bp}}%
+ {
+ \bmb at dima=\ht\bmb at box%
+ \pgfpathlineto{\pgfpoint{\bmb at dimb}{\bmb at dima}}
+ \pgfpathlineto{\pgfpoint{-4bp}{\bmb at dima}}
+ \pgfusepath{fill}
+ }
+ \ifbmb at shadow%
+ {
+ \color{black!50!bg}
+ \pgfsetlinewidth{0pt}
+ \pgfpathmoveto{\pgfpoint{\bmb at dimb}{-.5bp}}
+ \bmb at dima=\ht\bmb at box%
+ \advance\bmb at dima by\bmb at prevheight%
+ \advance\bmb at dima by 1bp%
+ \pgfpathlineto{\pgfpoint{\bmb at dimb}{\bmb at dima}}
+ \pgfusepath{stroke}
+ \bmb at temp=\bmb at dima
+ \advance\bmb at dima by 1bp%
+ \color{black!31!bg}
+ \pgfpathmoveto{\pgfpoint{\bmb at dimb}{\bmb at temp}}
+ \pgfpathlineto{\pgfpoint{\bmb at dimb}{\bmb at dima}}
+ \pgfusepath{stroke}
+ \advance\bmb at dima by 1bp%
+ \advance\bmb at temp by 1bp%
+ \color{black!19!bg}
+ \pgfpathmoveto{\pgfpoint{\bmb at dimb}{\bmb at temp}}
+ \pgfpathlineto{\pgfpoint{\bmb at dimb}{\bmb at dima}}
+ \pgfusepath{stroke}
+ \advance\bmb at dima by 1bp%
+ \advance\bmb at temp by 1bp%
+ \color{black!6!bg}
+ \pgfpathmoveto{\pgfpoint{\bmb at dimb}{\bmb at temp}}
+ \pgfpathlineto{\pgfpoint{\bmb at dimb}{\bmb at dima}}
+ \pgfusepath{stroke}
+ \advance\bmb at dima by 1.5bp%
+ \advance\bmb at temp by 1bp%
+ \color{bg}
+ \pgfpathmoveto{\pgfpoint{\bmb at dimb}{\bmb at temp}}
+ \pgfpathlineto{\pgfpoint{\bmb at dimb}{\bmb at dima}}
+ \pgfusepath{stroke}
+ }
+ \fi
+ \end{pgfpicture}%
+ \box\bmb at box%
+ }%
+ \ifbmb at 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 at usesphere{section number projected}{bigsphere}}\kern1.25ex\inserttocsection\par}
-
-\redefbeamertemplate{subsection in toc}{ball unnumbered}
-{\leavevmode\leftskip=1.5em{\textdir TLT\raise0.2ex\beamer at 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 at 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 at usesphere{section number projected}{bigsphere}}\kern1.25ex\inserttocsection\par}
-
-\redefbeamertemplate{subsection in toc}{ball unnumbered}
-{\leavevmode\leftskip=1.5em{\textdir TLT\raise0.2ex\beamer at 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 at 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 at 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 at usesphere{subsubsection number projected}{bigsphere}}\kern0.75ex}%
- \inserttocsubsubsection\par%
-}
-
-% Itemize items, ball
-
-\redefbeamertemplate{itemize item}{ball}{\textdir TLT\raise0.2pt\beamer at usesphere{item projected}{bigsphere}}
-\redefbeamertemplate{itemize subitem}{ball}{\textdir TLT\raise0.2pt\beamer at usesphere{subitem projected}{smallsphere}}
-\redefbeamertemplate{itemize subsubitem}{ball}{\textdir TLT\raise0.2pt\beamer at 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 at framebox=\vbox to\beamer at frametextheight{{%
\ifbeamer at plainframe\beamer at leftmargin=\Gm at lmargin\fi%
- \begin{pgfpicture}{\beamer at leftmargin}{-\beamer at frametextheight}{\beamer at leftmargin}{0pt}
- \pgftext[left,top]{A\box\@tempboxa}
+ \let\pgfpicture\oldpgfpicture
+ \let\endpgfpicture\oldendpgfpicture
+ \textdir TLT
+ \begin{pgfpicture}{\beamer at leftmargin}{-\beamer at frametextheight}{\beamer at 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 at framebox=\vbox{%
\nobreak\vbox{}\nobreak\par\nobreak\beamer at entrycode\nobreak%
\nointerlineskip\unvbox\beamer at frametitlebox%
\nobreak%
- \box\beamer at framebox%
+ \box\beamer at framebox %
\nobreak%
\vss%
\beamer at exitcode%
@@ -496,3 +444,4 @@
}%
}
+\endinput
More information about the tex-live-commits
mailing list