• No results found

The beamer-rl class

N/A
N/A
Protected

Academic year: 2021

Share "The beamer-rl class"

Copied!
19
0
0

Bezig met laden.... (Bekijk nu de volledige tekst)

Hele tekst

(1)

The beamer-rl class

Salim Bou

Repository: https://github.com/seloumi/beamer-rl

Bug tracker: https://github.com/seloumi/beamer-rl/issues

(2)

Contents

1

Introduction

2

How to use beamer-rl

3 Some notes 4 pgfpages-rl package 5 Examples Blocks Lists Hyperlinks Theorems Zooming Salim Bou The beamer-rl class

(3)

Introduction

Creating beamer presentation for right to left languages (like arabic) using

pdfLATEX or X E LATEX still poses many problems due to bugs not currently

resolved especially for colors and hyperlinks The LuaTEX team set solutions for these issues thanks to them and to

Javier Bezos for his works on the package babel and bidi writing

This class provides patchs of some beamer templates and commands to create

right to left beamer presentation, the class call babel withbidi=basic option

(4)

How to use beamer-rl

\documentclass{beamer-rl} % import language \babelprovide[import=ar-DZ, main]{arabic} \usetheme{Madrid} \begin{document} ... \end{document} Salim Bou The beamer-rl class

(5)

Some notes I

The class defineAmiri as default sans serif font, we can modify this in

the preambule with \babelfont{sf}{<font name>}

All options provided bybeamer can be added with beamer-rl

Additional options can also be passed to packagebabel with beamer-rl

(6)

Some notes II

Thebeamer-rl class swap the definition of \blacktriangleright

with\blacktriangleleft in RTL context

\blacktriangleright \blacktriangleleft

LTR context J I

RTL context I J

Class optionarabic call an Arabic dictionary to translate strings like

theorem, example, definition .

. . . \documentclass[arabic]{beamer-rl}

In some cases you need to use\babelsublr command from bebel

package to insert a left to right text within your right to left text, e.g if

you need to insert apspicture drawing in RTL context

\bebelsublr{LTR context ... }

Salim Bou The beamer-rl class

(7)

pgfpages-rl package

pgfpages-rl adds to pgfpages the ability to support TRT pagedir, the

package requires LuaLATEX engine. It can also be used with other document

classes besidesbeamer-rl

\documentclass{beamer-rl}

\babelprovide[import=ar-DZ, main]{arabic} \usetheme{Warsaw}

\usepackage{pgfpages-rl} % adapt pgfpages to TRT pagedir \setbeamertemplate{note page}[]

\setbeameroption{show notes on second screen=right} \begin{document}

...

(8)
(9)

Blocks

\setbeamertemplate{blocks}[default]

Lorem

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.

\setbeamertemplate{blocks}[rounded][shadow=true]

Lorem

(10)

enumerate, itemize I

1 First 2 Second \setbeamertemplate{enumerate item}[ball] \begin{enumerate} \item First \item Second \end{enumerate} J First J Second % in RTL context \setbeamertemplate{itemize item}[triangle] \begin{itemize} \item First \item Second \end{itemize} Salim Bou The beamer-rl class

(11)
(12)

Hyperlinks

First .

Second .

return to first slide

\hyperlink{jumptofirst}

{\beamergotobutton{return to first slide}} \hypertarget<1>{jumptofirst}{}

Salim Bou The beamer-rl class

(13)

Hyperlinks

First . Second .

return to first slide

\hyperlink{jumptofirst}

(14)

Theorems

The proof uses reductio ad absurdum . ن ظ ر ي ة

There is no largest prime number . ب ر ه ا ن . 1 Suppose p

were the largest prime number .

2

Let q be the product of the first p numbers . 3 Then q + 1 is not divisible by any of them . 4 But q + 1 is greater than 1 , thus divisible by some prime number not in

the first p

numbers .

Salim Bou The beamer-rl class

(15)

Theorems

The proof uses reductio ad absurdum . ن ظ ر ي ة

There is no largest prime number . ب ر ه ا ن . 1 Suppose p

were the largest prime number .

2

Let q be the product of the first p numbers . 3 Then q + 1 is not divisible by any of them . 4 But q + 1 is greater than 1 , thus divisible by some prime number not in

the first p

(16)

Theorems

The proof uses reductio ad absurdum . ن ظ ر ي ة

There is no largest prime number . ب ر ه ا ن . 1 Suppose p

were the largest prime number .

2

Let q be the product of the first p numbers . 3 Then q + 1 is not divisible by any of them . 4 But q + 1 is greater than 1 , thus divisible by some prime number not in

the first p

numbers .

Salim Bou The beamer-rl class

(17)

Theorems

The proof uses reductio ad absurdum . ن ظ ر ي ة

There is no largest prime number . ب ر ه ا ن . 1 Suppose p

were the largest prime number .

2

Let q be the product of the first p numbers . 3 Then q + 1 is not divisible by any of them . 4 But q + 1 is greater than 1 , thus divisible by some prime number not in

the first p

(18)

Zooming

Image

\framezoom<1><2>[border=2](1cm,1cm)(2cm,2cm) % (1cm,1cm)=(<upper right x>,<upper right y>) % (2cm,2cm)=(<zoom area width>,<zoom area depth>) \pgfimage[height=5cm]{example-image}

Salim Bou The beamer-rl class

(19)

Zooming

Image

\framezoom<1><2>[border=2](1cm,1cm)(2cm,2cm)

% (1cm,1cm)=(<upper right x>,<upper right y>)

% (2cm,2cm)=(<zoom area width>,<zoom area depth>)

\pgfimage[height=5cm]{example-image}

Salim Bou The beamer-rl class

Referenties

GERELATEERDE DOCUMENTEN

How is the learning of argument structure constructions in a second language (L2) affected by basic input properties such as the amount of input and the moment of L2 onset..

On the first run, the number of items is counted and the items will be numbered with increasing numbers (as in the enumerate environment) and on the second run, the item labels will

This package is not for you if you want free-flow enumeration in a paragraph, since enumitem already provides a reasonable one, and you probably do not want to share that many

While this problem is easily stated at first, a solution of it was more difficult: Since the number of items in the list is not known at the beginning, they need to be counted first,

Copyright and moral rights for the publications made accessible in the public portal are retained by the authors and/or other copyright owners and it is a condition of

In the 1990s, the popularity of social constructivism and postmodernism caused a reaction from scientists and philosophers who opposed this kind of radical relativism. It led to

Market share of first mover Pace of technological evolution in the market Strategic learning capabilities Degree of market pioneering + + - Pace of market evolution +

Concluimos que el condicional más que nada expresa evidencialidad reportativa en los tabloides y poco en los textos científicos y periódicos de calidad, mientras que las