RTL direction in the table
Closed this issue · 1 comments
Elfengour commented
% !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)
seloumi commented
For RTL tabulars you need to add tabular
layout with babel like this babel={layout=lists.counters.tabular}