RTL Tableofcontent

64 views
Skip to first unread message

mohammad sabet

unread,
Jan 13, 2015, 3:15:04 AM1/13/15
to beamer...@googlegroups.com
Dear friends how i can write an RTLtable of content in the writing an arabic beamer
I have attached my file for a better answer. Really i need to change the direction of tableof content

\documentclass[10pt]{beamer}‎

‎\usetheme{Warsaw}‎

‎\usepackage{enumitem}‎

‎\usepackage{fontspec}‎

‎\usepackage{polyglossia}‎‎

‎\usepackagee[arabic]{babel}‎‎

\setbeamertemplate{section in toc,subsection in toc}[circle]‎

%\setbeamertemplate{toc}[right]

‎%\usepackage{arabtex}‎

%\setlatintextfont{Times New Roman}‎

%\setbeamertemplate{frametitle continuation}{\insertcontinuationcount}‎

\setbeamertemplate{frametitle continuation}{\gdef\beamer@frametitle{}} % framebreaks without numbering

‎\setbeamertemplate{frametitle}[default][right]% align the frametitle to the right‎

%‎\setdefaultlanguage{english}‎

\setmainlanguage{english}

\setotherlanguage{arabic}‎

\setmainfont{Times New Roman}

‎\setotherlanguage[calendar=gregorian,numerals=maghrib]{arabic}‎

‎\newfontfamily\arabicfont[Script=Arabic,Scale=1]{B Nazanin}%‎

‎\newfontfamily\arabicfontsf[Script=Arabic,Scale=1]{B Nazanin}%‎

‎\graphicspath{{pics/}}‎‎‎

%‎

%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~‎

\newcommand{\ar}{\textarabic} % to change the laguage in the section and frame title to ‎persian‎

% This work as: \a{‏متن فارسی}

‎%~~~~~~~~~~~~~~~~define bullet for enumerate~~~~~~~~~~~~‎~

‎\newcommand{\myenum}[1]‎

{

‎\par\vspace{3pt}\LR{\hspace*{3pt}%‎

‎\begin{pgfpicture}{-1ex}{-0.65ex}{1ex}{1ex}‎

‎\usebeamercolor[fg]{item projected}‎

‎{\pgftransformscale{1.8}\pgftext{\normalsize \pgfuseshading{bigsphere}}}‎

‎{\pgftransformshift{\pgfpoint{0pt}{0.5pt}}‎

‎\pgftext{\usebeamerfont*{item projected}\textcolor{white}{#1}}}‎

‎\end{pgfpicture}%‎

‎\hspace{1pt}%‎

}}

‎%~~~~~~~~~~~~~~~~~~define bullet for itemize~~~~~~~~~~~~~~‎~

‎\newcommand{\myitem}{\par\vspace{3pt}\hspace{5mm}\LR{\hspace*{3pt}%‎

‎\begin{pgfpicture}{-1ex}{-0.65ex}{1ex}{1ex}‎

‎\usebeamercolor[fg]{item projected}‎

‎{\pgftransformscale{1.1}\pgftext{\normalsize\pgfuseshading{bigsphere}}}‎

‎\end{pgfpicture}%‎

‎\hspace{1pt}%‎

}}

%~~~~~~~~~~~~~~~~~~~~~~~~~~

‎\newcommand{\myitemII}{\par\vspace{3pt}\hspace{5mm}\LR{\hspace*{3pt}%‎

‎\begin{pgfpicture}{-1ex}{-0.65ex}{1ex}{1ex}‎

‎\usebeamercolor[fg]{item projected}‎

‎{\pgftransformscale{1.8}\pgftext{\normalsize\pgfuseshading{bigsphere}}}‎

‎\end{pgfpicture}%‎

‎\hspace{1pt}%‎

}}

‎%*************************************************************************‎

‎%\addtobeamertemplate{block begin}{}{\justifying} %new code‎

%~~~~~~~~~~~~~~~~~~~~~

‎\begin{document}‎

‎%\selectlanguage{arabic}‎

\title{\textarabic{بررسی گذار فاز فرومغناطیس مایع ‎$ ^3He $‎ با استفاده ازروش ‎$LOCV$}}‎

‎\author{Mohammad T‎. ‎Mohammadi Sabet}‎

‎\date{\today}‎

%

‎\frame{\titlepage}‎

%

‎\begin{frame}‎

\frametitle{\textarabic{فهرست مطالب}}‎‎

\begin{minipage}{1.\textwidth}‎

\begin{Arabic}

‎\‎tableofcontents‎‎

\end{Arabic}

\end{minipage}

‎\end{frame}‎

‎\section{\textarabic{مقدمه}}‎

\subsection{\textarabic{مایع ‎$^3He$}}‎

‎\begin{frame}‎

\frametitle{\textarabic{سیستمهای فرمیونی همبسته:مایع ‎$^3He$}}‎

‎\begin{minipage}{.95\textwidth}‎

‎\begin{Arabic}%‎ -‎---------------------here must be changed‎

%

‎\begin{itemize}[label=\protect\myitemII‎, ‎rightmargin=0mm]‎

‎\item‎

متن فارسی .....

‎\item‎

متن فارسی ....

.‎\item‎

متن فارسی .....متن فارسی .....


‎\item‎

متن فارسی .....

‎\item‎

متن فارسی .....

‎\end{itemize}‎

‎\begin{columns}‎

‎\column{.3\textwidth}‎

‎\begin{itemize}‎

‎\item{\color{blue}{Fine tuning}}‎

‎\item{\color{blue}{$ \xi \thicksim (T-T_{c})^{-\nu}$}}‎

‎\end{itemize}‎

‎\column{.35\textwidth}‎

‎%\includegraphics[scale=0.35]{magnetization.png}‎

‎\column{.35\textwidth}‎

‎%\includegraphics[scale=0.35]{cv.png}‎

علی بی غم

%

‎\end{columns}‎

%

%

‎\end{Arabic}‎

‎\end{minipage}‎

‎\end{frame}‎

\end{document}

Untitled.png
Reply all
Reply to author
Forward
0 new messages