Git Product home page Git Product logo

beamer-rl's People

Contributors

seloumi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

bsamadi

beamer-rl's Issues

wrong place for equation number in `align` and `equation` environment

\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}

RTL direction in the table

% !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)

Errors Texlive 2022

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.

beamer

lkjhgg.log

arabic digits in math mode

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.

Incorrect left margin when using themes with infolines

\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}

Displaying notes

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}

Hang and indentation in enumerate environment

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}

Wrong equation direction in `array` and `cases` environment

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}

Highlight with package soul

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}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.