seloumi / beamer-rl Goto Github PK
View Code? Open in Web Editor NEWRight to left beamer presentations using babel (lualatex engine)
Right to left beamer presentations using babel (lualatex engine)
\documentclass[babel={layout=lists}]{beamer-rl}
\babelprovide[import=ar-DZ,main,mapdigits]{arabic}
\usetheme{Madrid}
\begin{document}
\begin{frame}[fragile]
\begin{exampleblock}{example}
{\selectlanguage{nil}%
arabic digits outside of rectangle in ``align" environment:
}%
\begin{align}
a&=b\\
&=c
\end{align}
{\selectlanguage{nil}%
``align'' with \verb*|\selectlanguage{nil}|
\begin{align}
a&=b\\
&=c
\end{align}
In ``equation" environment, equation number should be place in right hand side (by defualt)
}%
\begin{equation}
a=b
\end{equation}
\end{exampleblock}
\end{frame}
\end{document}
% !TeX TS-program = lualatex
\documentclass[ hyperref=unicode,
13pt,
%compress,
%handout, %to make a handout i have to enable this and (\pgfpagesuselayout{2 on 1}[a4paper,border shrink=5mm]) in setttings
%redm,
%draft,
usenames,
arabic,
babel={layout=lists.counters},
dvipsnames, %colors
]{beamer-rl}% compress,
%\pgfpagesuselayout{8 on 1}[border shrink=5mm]
%\documentclass[babel={layout=lists.counters}]{beamer-rl}
%\usepackage{hologo} % pdflatex, xelatex, lualatex logos
\usepackage{listings}
\usepackage{tikz}
\babelprovide[import=ar-DZ, main]{arabic}
\babelfont{alm}[Script=Arabic,Scale=.88]{Amiri}
\usepackage{graphicx}
\usepackage{booktabs}% http://ctan.org/pkg/booktabs
\usetheme{Warsaw}
\makeatletter
\newcommand\titlegraphicii[1]{\def\inserttitlegraphicii{#1}}
\titlegraphicii{}
\setbeamertemplate{title page}
{
\vbox{}
{\usebeamercolor[fg]{titlegraphic}\inserttitlegraphic\hfill\inserttitlegraphicii\par}
\begin{centering}
\begin{beamercolorbox}[sep=8pt,center]{institute}
\usebeamerfont{institute}\insertinstitute
\end{beamercolorbox}
\begin{beamercolorbox}[sep=8pt,center]{title}
\usebeamerfont{title}\inserttitle\par%
\ifx\insertsubtitle\@empty%
\else%
\vskip0.25em%
{\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par}%
\fi%
\end{beamercolorbox}%
\vskip1em\par
\begin{beamercolorbox}{}
\usebeamerfont{}
\end{beamercolorbox}%\vskip0.5em
\begin{beamercolorbox}[sep=8pt,center]{author}
\usebeamerfont{author}\insertauthor
\end{beamercolorbox}
\end{centering}
%\vfill
}
\makeatother
\author{Presented by Author}
\title{Presentation Title}
\subtitle{Presentation Subtile}
\institute{Department \\ University}
\date{\today}
\titlegraphic{\includegraphics[height=1cm,width=2cm]{example-image}}
\titlegraphicii{\includegraphics[height=1cm,width=2cm]{example-image}}
\begin{document}
\begin{frame}{}%[plain]
\vspace{-23.5pt}
%\begin{spacing}{0.8}
\maketitle
\small
{\centering أعضاء اللجنة\par}
\textbf{الرئيس:} عبد الستار الهواري\par\medskip
\begin{tabular}[t]{@{}r@{\hspace{3pt}}p{.09\textwidth}@{}}
الأستاذ الناصبري مولاي احمد& \textbf{:ﺀﺎﻀﻋﻷﺍ}\\
الأستاذ العربي السماعيلي & \\
الأستاذ الخليفي المهدي& \\
الأستاذ المناقش الرابع&
\end{tabular}%
\footnotesize
\begin{tabular}[t]{@{}r@{\hspace{3pt}}p{.3\textwidth}@{}}
الأستاذ مـحمـد الخليلي&\textbf{:ﻑﺮﺸﻤﻟﺍ}\\
الأستاذ عيـسى عبد المومن & \\
\end{tabular}\\%\\ \hfill
%\vspace{0.1cm}
\vfill
نوقشت وأجيزت بتاريخ
\centering \tiny\insertdate
الموافق 02 ذو القعدة 1440
\end{frame}
\begin{frame}{الجدول}
\resizebox{\textwidth}{!}{%
\begin{tabular}{|c|c|c|c|c|c|}
\hline
الاسم & العربية&العربية&العربية&العمر\\
\hline
العربية&-&-&-&-\\
العربية&العربية B &العربية B &- &العربية B\\
العربية&العربية A&العربية A&العربية A&العربية A\\
العربية&العربية B &العربية &-&- \\
العربية&العربية C&ر C&ر C&-\\
العربية&-&العربية&-&-\\
العربية&-&العربية&-&\\
\hline
\end{tabular}
} % end of scope of "\resizebox" directive
\end{frame}
\end{document}
![beamwe](https://user-images.githubusercontent.com/28195778/119676451-db69e500-be0b-11eb-802a-02ef4502bb7e.png)
Is there a way to enumerate the list alphabetically? there is a quetion here (https://tex.stackexchange.com/questions/667939/how-to-make-an-enumerated-lists-numbering-alphabetic-per-the-hebrew-alphabet-i) for Hebrew.
\documentclass[]{beamer}
\begin{document}
\renewcommand{\theenumi}{\alph{enumi}}
\frame{
\begin{enumerate}
\item item one
\item item 2
\item item 3
\item item 4
\end{enumerate}
}
\end{document}
I tried to compile the MEW on the main page, but I got many errors, does it require TexLive updates? I am working with Tl April 2022 version.
Hi, seloumi,
Thank you for nice work beamer-rl.
by \babelprovide[import=ar-DZ, main, mapdigits]{arabic}
all numbers in text will be arabic, except numbers in math mode.
How can I change latin numeral to arabic numeral in math mode.
\documentclass[arabic-dz]{beamer-rl}
\title{{\ttfamily beamer-rl} class}
\author{Salim Bou}
\date{\today}
\useoutertheme{infolines}
\begin{document}
\begin{frame}{Test}
\selectlanguage{nil}
\begin{enumerate}
\item first
\item second
\end{enumerate}
\end{frame}
\end{document}
Can not display notes on the left of the main presentation to be used with PDFpresenter or pympress.
\documentclass{beamer-rl}
\babelprovide[import=ar-DZ, main]{arabic}
\usetheme{CambridgeUS}
\usecolortheme{spruce}
\title{beamer-rl class}
\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}
\usepackage{pgfpages}
\setbeamertemplate{note page}[plain]
\setbeameroption{show notes on second screen=right}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\begin{frame}{تجربة}
Hi
\note{نقاط}
\end{frame}
\begin{frame}{here we go}
hello
\note{نقاط}
\end{frame}
\begin{frame}{تجربة النقاط}
دمج نقاط لا تظهر للحضور
\note{نقاط}
\end{frame}
\end{document}
I posted a question here https://tex.stackexchange.com/questions/705611/remove-indentation-and-hang-in-itemize-environment-in-beamer/705612#705612
The given solution is working fine for LTR and not for beamer-rl.
\documentclass[arabic-ma, aspectratio=169, , 16pt, dvipsnames]{beamer-rl}
\usepackage{hologo} % pdflatex, xelatex, lualatex logos
\usepackage{listings}
\usepackage{multicol}
\usepackage{ragged2e}
\apptocmd{\frame}{}{\justifying}{}
\babelfont{alm}[Script=Arabic,Scale=.88]{Tahoma}
\begin{document}
\begin{frame}
\frametitle{لمحة تاريخية}
هو جُل بأضرار وأكثرها, قد خيار تشكيل الإتحاد وتم. عل انتباه الانجليزية فعل. في أما إيطاليا الجديدة، ولكسمبورغ, هنا؟ وانهاء إذ فصل, حدى أملاً علاقة كُلفة هو. مع الآخر الأعمال عشوائية فقد, الأراضي واعتلاء عن بعض. ببعض هنا؟
\setlength{\leftmargini}{1.5em}
\setlength{\leftmarginii}{1.5em}
\setlength{\leftmarginiii}{1.5em}
\begin{enumerate}% \setlength{\itemindent}{-2em}
%\itemindent=-13pt
\item الجملة الاولى
\item هو جُل بأضرار وأكثرها, قد خيار تشكيل الإتحاد وتم. عل انتباه الانجليزية فعل. في أما إيطاليا الجديدة، ولكسمبورغ, هنا؟ وانهاء إذ فصل, حدى أملاً علاقة كُلفة هو. مع الآخر الأعمال عشوائية فقد, الأراضي واعتلاء عن بعض. ببعض هنا؟
\begin{enumerate}%\setlength{\itemindent}{-2em}
\itemindent=-30pt\item هو جُل بأضرار وأكثرها, قد خيار تشكيل الإتحاد وتم. عل انتباه الانجليزية فعل. في أما إيطاليا الجديدة، ولكسمبورغ, هنا؟ وانهاء إذ فصل, حدى أملاً علاقة كُلفة هو. مع الآخر الأعمال عشوائية فقد, الأراضي واعتلاء عن بعض. ببعض هنا؟
\item هو جُل بأضرار وأكثرها, قد خيار تشكيل الإتحاد وتم. عل انتباه الانجليزية فعل. في أما إيطاليا الجديدة، ولكسمبورغ, هنا؟ وانهاء إذ فصل, حدى أملاً علاقة كُلفة هو. مع الآخر الأعمال عشوائية فقد, الأراضي واعتلاء عن بعض. ببعض هنا؟
\item و جُل بأضرار وأكثرها, قد خيار تشكيل الإتحاد وتم
\item و جُل بأضرار وأكثرها, قد خيار تشكيل الإتحاد وتم
%\end{enumerate}
\item و جُل بأضرار وأكثرها, قد خيار تشكيل الإتحاد وتم
\item و جُل بأضرار وأكثرها, قد خيار تشكيل الإتحاد وتم
\end{enumerate}
\item الجملة الثانية
\end{enumerate}
و جُل بأضرار وأكثرها, قد خيار تشكيل الإتحاد وتمومجراهاعلى بركة الله مرساها ومجراها
\end{frame}
\end{document}
in array
and cases
math environment text direction change to RTL.
for example compare these two equations:
\documentclass[babel={layout=lists}]{beamer-rl}
\babelprovide[import,main,mapdigits]{arabic}
\begin{document}
\begin{frame}
\[
|x|=\left\{
\begin{array}{ll}
1-x\frac{1}{\kappa} & x>0 \\
-x^2 & x<0
\end{array}
\right.
\]%
{\selectlanguage{nil}%
\[
|x|=\left\{
\begin{array}{ll}
1-x\frac{1}{\kappa} & x>0 \\
-x^2 & x<0
\end{array}
\right.
\]%
}
\end{frame}
\end{document}
Highlighting text is not working properly for RTL with \usepackage{soul}
, is there an alternative for this amazing tool?
\documentclass{beamer}
\usepackage{soul}
\makeatletter
\let\HL\hl
\renewcommand\hl{%
\let\set@color\beamerorig@set@color
\let\reset@color\beamerorig@reset@color
\HL}
\makeatother
\begin{document}
\begin{frame}
\begin{block}{P1}
Some \hl{العربية} here
\end{block}
\end{frame}
\end{document}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.