summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/lualatex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-05-03 22:28:44 +0000
committerKarl Berry <karl@freefriends.org>2019-05-03 22:28:44 +0000
commitfe044b7f6ea3e031ee8a83fc2a8e17426e93807a (patch)
treef24105c2fae1811d3b738c354e5be6981643861d /Master/texmf-dist/doc/lualatex
parent425d190f70d19ec6642441bee5cfa3d0f044bd1e (diff)
beamer-rl (3may19)
git-svn-id: svn://tug.org/texlive/trunk@50970 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/lualatex')
-rw-r--r--Master/texmf-dist/doc/lualatex/beamer-rl/Example-of-use-ar.pdfbin0 -> 124480 bytes
-rw-r--r--Master/texmf-dist/doc/lualatex/beamer-rl/Example-of-use-ar.tex277
-rw-r--r--Master/texmf-dist/doc/lualatex/beamer-rl/Example-of-use-en.pdfbin0 -> 102473 bytes
-rw-r--r--Master/texmf-dist/doc/lualatex/beamer-rl/Example-of-use-en.tex (renamed from Master/texmf-dist/doc/lualatex/beamer-rl/test-beamer-rl.tex)104
-rw-r--r--Master/texmf-dist/doc/lualatex/beamer-rl/README.txt6
-rw-r--r--Master/texmf-dist/doc/lualatex/beamer-rl/test-beamer-rl.pdfbin103233 -> 0 bytes
6 files changed, 348 insertions, 39 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
new file mode 100644
index 00000000000..31b4ff520f4
--- /dev/null
+++ 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
new file mode 100644
index 00000000000..367358a7b33
--- /dev/null
+++ b/Master/texmf-dist/doc/lualatex/beamer-rl/Example-of-use-ar.tex
@@ -0,0 +1,277 @@
+\documentclass{beamer}
+\usepackage{hologo} % pdflatex, xelatex, lualatex logos
+
+\usepackage{beamer-rl}
+\babelprovide[import=ar-DZ, main]{arabic}
+\babelfont{sf}{Amiri}
+
+% 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}}
+
+\usecolortheme{spruce}
+
+\title{حزمة beamer-rl}
+
+\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{\today}
+
+\setbeamercovered{transparent=10}
+\newtheorem*{thm}{نظرية.}
+
+\def\cs#1{\babelsublr{\texttt{\textbackslash#1}}}
+
+\begin{document}
+
+\parskip=6pt
+
+\begin{frame}
+\titlepage
+\end{frame}
+
+\begin{frame}
+\frametitle{\contentsname}
+\tableofcontents
+\end{frame}
+
+\section{مدخل}
+
+\begin{frame}[fragile]
+\frametitle{مدخل}
+انشاء عرض بيمر عربي (اتجاه النص من اليمين لليسار) اعتمادا على
+ \hologo{pdfLaTeX} أو \hologo{XeLaTeX} مازال يعترضه الكثير من المشاكل والمعوقات خاصة ما يتعلق بالألوان والروابط والتي لم يوجد لها حلولا~بعد.
+
+فريق \hologo{LuaTeX}
+أوجد حلولا لهذه المشاكل، الشكر لهم ولـ
+\textit{Javier~Bezos}
+لأعماله بالحزمة
+\verb|babel| وخصوصا الكتابة بالاتجاهين (\verb|bidi| writing)
+
+هذه الحزمة تعدل في بعض اوامر وتعليمات beamer لغرض انشاء عروض من اليمين إلى اليسار (العربية على سبيل المثال)، الحزمة تستدعي \verb|babel| مع الخيار
+\verb|bidi=basic-r|
+ والمعالجة تتطلب استخدام
+\hologo{LuaLaTeX}
+
+\end{frame}
+
+\section{كيفية استعمال الحزمة}
+
+\begin{frame}[fragile]
+\frametitle{كيفية استعمال الحزمة}
+
+\selectlanguage{nil}
+
+\begin{verbatim}
+\documentclass{beamer}
+\usepackage{beamer-rl}
+\babelprovide[import=ar-DZ, main]{arabic}
+\babelfont{sf}{Amiri}
+
+\mode<presentation>{\usetheme{Warsaw}}
+\begin{document}
+...
+\end{document}
+
+\end{verbatim}
+
+\end{frame}
+
+\section{أمثلة}
+\subsection{الإطارات}
+
+\begin{frame}[fragile]
+\frametitle{الإطارات}
+
+{\selectlanguage{nil}
+\verb:\setbeamertemplate{blocks}[default]:
+}
+
+\setbeamertemplate{blocks}[default]
+
+
+\begin{block}{أورستد}
+ لاحظ هانز أورستد في 21 أبريل 1820 وهو يُعد أحد التجارب أن إبرة
+ البوصلة تنحرف عن اتجاهها نحو الشمال عندما كان يغلق ويفتح التيار في
+ دائرة كهربائية يُعدها.
+\end{block}
+
+{\selectlanguage{nil}
+\verb:\setbeamertemplate{blocks}[rounded][shadow=true]:
+}
+
+\setbeamertemplate{blocks}[rounded][shadow=true]
+
+\begin{block}{أورستد}
+ لاحظ هانز أورستد في 21 أبريل 1820 وهو يُعد أحد التجارب أن إبرة
+ البوصلة تنحرف عن اتجاهها نحو الشمال عندما كان يغلق ويفتح التيار في
+ دائرة كهربائية يُعدها.
+\end{block}
+
+\end{frame}
+
+\subsection{القوائم}
+
+\begin{frame}[fragile]
+\frametitle{enumerate, itemize}
+
+\begin{enumerate}
+\item فيزياء تطبيقية
+\item فيزياء تجريبية
+\item فيزياء نظرية
+\end{enumerate}
+
+\setbeamertemplate{itemize item}[triangle]
+
+{\selectlanguage{nil}
+\verb|\setbeamertemplate{itemize item}[triangle]|
+}
+
+\begin{itemize}
+\item فيزياء تطبيقية
+\item فيزياء تجريبية
+\item فيزياء نظرية
+\end{itemize}
+
+\selectlanguage{nil}
+
+\begin{itemize}
+\item first item
+\item second item
+\item third item
+\end{itemize}
+
+\end{frame}
+
+\subsection{الروابط}
+
+\begin{frame}
+\frametitle{الروابط}
+\begin{itemize}
+\item<1-> العنصر الأول.
+\item<2-> العنصر الثاني.
+\item<3-> العنصر الثالث.
+\end{itemize}
+\hyperlink{jumptosecond}{\beamerreturnbutton{الرجوع إلى الشريحة الثانية}}
+\hypertarget<2>{jumptosecond}{}
+
+\end{frame}
+
+
+\subsection{النظريات}
+
+\begin{frame}
+\frametitle{النظريات}
+
+\framesubtitle{The proof uses \textit{reductio ad absurdum}.}
+\begin{thm}
+There is no largest prime number.
+\end{thm}
+\begin{proof}
+\begin{enumerate}[<+-| alert@+>]
+\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{التكبير}
+
+\begin{frame}[fragile]
+\frametitle{التكبير}
+
+\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{بعض الملاحظات}
+
+\begin{frame}[fragile]
+\frametitle{بعض الملاحظات}
+
+\begin{itemize}
+\item
+الحزمة
+ \verb:beamer-rl: تقوم بتبادل لكل من التعليمتين \cs{blacktriangleright} و \cs{blacktriangleleft} في حالة نص من اليمين لليسار
+
+\bigskip
+
+{\selectlanguage{nil}
+\centering
+\begin{tabular}{c|cc}
+\hline
+ & \verb:\blacktriangleright: & \verb:\blacktriangleleft: \\
+\hline
+LTR context & \blacktriangleright & \blacktriangleleft \\
+\hline
+RTL context & {\selectlanguage{arabic}\blacktriangleright} & {\selectlanguage{arabic}\blacktriangleleft} \\
+\hline
+\end{tabular}
+\par
+}
+
+\bigskip
+
+
+\item
+في بعض الحالات يمكن استعمال التعليمة
+ \cs{babelsublr} التي توفرها الحزمة \verb:bebel:
+لادراج نص من اليسار لليمين (لاتيني) في وسط نص من اليمين لليسار،
+ على سبيل المثال في حال اردنا ادراج رسم
+ \verb:pspicture: ضمن نص من اليمين لليسار.
+\end{itemize}
+
+
+\end{frame}
+
+\end{document}
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
new file mode 100644
index 00000000000..4629290c753
--- /dev/null
+++ 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/test-beamer-rl.tex b/Master/texmf-dist/doc/lualatex/beamer-rl/Example-of-use-en.tex
index 8e061237c89..3593e937599 100644
--- a/Master/texmf-dist/doc/lualatex/beamer-rl/test-beamer-rl.tex
+++ b/Master/texmf-dist/doc/lualatex/beamer-rl/Example-of-use-en.tex
@@ -1,14 +1,11 @@
-\documentclass[hyperref=unicode]{beamer}
+\documentclass{beamer}
\usepackage{hologo} % pdflatex, xelatex, lualatex logos
-\usepackage[nil,bidi=basic-r,layout=counters]{babel}
+\usepackage{beamer-rl}
\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}}
@@ -47,9 +44,6 @@
%\mode<presentation>{\usetheme{Malmoe}}
%\mode<presentation>{\usetheme{Warsaw}}
-
-\usepackage{tikz}
-
\title{The beamer-rl package}
\author{Salim Bou}
@@ -63,11 +57,13 @@
\date{{\selectlanguage{english} \today}}
\setbeamercovered{transparent=10}
-\newtheorem*{thm}{نظرية.}
+\newtheorem*{prf}{Proof}
\begin{document}
+\parskip=6pt
+
\begin{frame}
\titlepage
\end{frame}
@@ -83,8 +79,10 @@
\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
+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
+for right to left presentation, this package call babel with \verb|bidi=basic-r| option and require lualatex engine
\end{frame}
@@ -97,10 +95,9 @@ The \hologo{LuaTeX} team set solutions for these issues thanks to them and to \
\begin{verbatim}
\documentclass{beamer}
-\usepackage[nil,bidi=basic-r,layout=counters]{babel}
+\usepackage{beamer-rl}
\babelprovide[import=ar-DZ, main]{arabic}
\babelfont{sf}{Amiri}
-\usepackage{beamer-rl}
\mode<presentation>{\usetheme{Warsaw}}
\begin{document}
@@ -137,43 +134,60 @@ The \hologo{LuaTeX} team set solutions for these issues thanks to them and to \
\setbeamertemplate{blocks}[rounded][shadow=true]
-\begin{block}{أورستد}
- لاحظ هانز أورستد في 21 أبريل 1820 وهو يُعد أحد التجارب أن إبرة
- البوصلة تنحرف عن اتجاهها نحو الشمال عندما كان يغلق ويفتح التيار في
- دائرة كهربائية يُعدها.
+\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}
\end{frame}
-\subsection{enumerate, itemize}
+\subsection{Lists}
-\begin{frame}
+\begin{frame}[fragile]
\frametitle{enumerate, itemize}
\begin{enumerate}
-\item فيزياء تطبيقية
-\item فيزياء تجريبية
-\item فيزياء نظرية
+\item first item
+\item second item
+\item third item
\end{enumerate}
+\setbeamertemplate{itemize item}[triangle]
+
+{\selectlanguage{nil}
+\verb|\setbeamertemplate{itemize item}[triangle]|
+}
+
\begin{itemize}
-\item فيزياء تطبيقية
-\item فيزياء تجريبية
-\item فيزياء نظرية
+\item first item
+\item second item
+\item third item
\end{itemize}
+
+\selectlanguage{nil}
+
+\begin{itemize}
+\item first item
+\item second item
+\item third item
+\end{itemize}
+
+
\end{frame}
-\subsection{hyperlinks}
+\subsection{Hyperlinks}
\begin{frame}
-\frametitle{hyperlinks}
+\frametitle{Hyperlinks}
\begin{itemize}
\item<1-> First item.
\item<2-> Second item.
\item<3-> Third item.
\end{itemize}
-\hyperlink{jumptosecond}{\beamergotobutton{الرجوع إلى الشريحة الثانية}}
+\hyperlink{jumptosecond}{\beamergotobutton{return to second slide}}
\hypertarget<2>{jumptosecond}{}
\end{frame}
@@ -184,10 +198,10 @@ The \hologo{LuaTeX} team set solutions for these issues thanks to them and to \
\frametitle{Theorems}
\framesubtitle{The proof uses \textit{reductio ad absurdum}.}
-\begin{thm}
+\begin{theorem}
There is no largest prime number.
-\end{thm}
-\begin{proof}
+\end{theorem}
+\begin{prf}
\begin{enumerate}[<+-| alert@+>]
\item Suppose $p$ were the largest prime number.
\item Let $q$ be the product of the first $p$ numbers.
@@ -195,14 +209,14 @@ There is no largest prime number.
\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{prf}
\end{frame}
-\subsection{zooming}
+\subsection{Zooming}
\begin{frame}[fragile]
-\frametitle{zooming}
+\frametitle{Zooming}
\framezoom<1><2>[border=2](2cm,2cm)(2cm,2cm)
\pgfimage[height=5cm]{example-image}
@@ -222,13 +236,31 @@ number not in the first $p$ numbers.\qedhere
\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:
+The \verb:beamer-rl: package swap the definition of \verb:\blacktriangleright: with \verb:\blacktriangleleft: in RTL context.
+
+\bigskip
+
+{\selectlanguage{nil}
+\centering
+\begin{tabular}{c|cc}
+\hline
+ & \verb:\blacktriangleright: & \verb:\blacktriangleleft: \\
+\hline
+LTR context & \blacktriangleright & \blacktriangleleft \\
+\hline
+RTL context & {\selectlanguage{arabic}\blacktriangleright} & {\selectlanguage{arabic}\blacktriangleleft} \\
+\hline
+\end{tabular}
+\par
+}
+
+\bigskip
+
\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.
+package to insert a left to right text within your right to left text, e.g if you need to insert a \verb:pspicture: drawing in RTL context
\end{itemize}
\end{frame}
-
\end{document}
diff --git a/Master/texmf-dist/doc/lualatex/beamer-rl/README.txt b/Master/texmf-dist/doc/lualatex/beamer-rl/README.txt
index 85c4ed4557e..a262ea9250c 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.1
+v1.2
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/28
+Current version release date: 2019/04/03
___________________
Salim Bou
@@ -20,4 +20,4 @@ version 1.3c or higher (your choice). The latest version of
this license is at: http://www.latex-project.org/lppl.txt
This work is author-maintained (as per LPPL maintenance status)
-by Salim Bou.
+by Salim Bou. \ No newline at end of file
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
deleted file mode 100644
index 784d343c135..00000000000
--- a/Master/texmf-dist/doc/lualatex/beamer-rl/test-beamer-rl.pdf
+++ /dev/null
Binary files differ