Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am preparing Farsi slides in beamer which is a right to left language just like Hebrew. I have problems in the presentation which I briefly discuss:

  • The TOC is left to right:
    alt text

  • The itemize can be forced to be right to left but it flushes to the left
    alt text

  • the frame title is shown in the left (this one is solved thanks to Mr.Vafa Khalighi the solution is \setbeamertemplate{frametitle}[default][right] command) alt text

I found this web site very helpful to solve some problems, but the mentioned problems are still unresolved. the code is shown below

% XeLaTeX can use any Mac OS X font. See the setromanfont command below.
% Input to XeLaTeX is full Unicode, so Unicode characters can be typed directly into the source.

% The next lines tell TeXShop to typeset with xelatex, and to open and save the source with Unicode encoding.

%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode

\documentclass[11pt]{beamer}
\usetheme{Warsaw}
\usecolortheme{crane}
%\usepackage{geometry}                % See geometry.pdf to learn the layout options. There are lots.
%\geometry{letterpaper}                   % ... or a4paper or a5paper or ... 
%\geometry{landscape}                % Activate for for rotated page geometry
%\usepackage[parfill]{parskip}    % Activate to begin paragraphs with an empty line rather than an indent
\usepackage{graphicx}
\usepackage{amssymb}


% Will Robertson's fontspec.sty can be used to simplify font choices.
% To experiment, open /Applications/Font Book to examine the fonts provided on Mac OS X,
% and change "Hoefler Text" to any of these choices.
\TeXXeTstate=1
\usepackage{fontspec,xltxtra,xunicode}
 \usepackage{bidi}
\defaultfontfeatures{Mapping=tex-text}
\setromanfont[Mapping=tex-text]{X Zar}
\setsansfont[Scale=MatchLowercase,Mapping=tex-text]{Gill Sans}
\setsansfont[Scale=MatchLowercase,Mapping=tex-text]{X Zar}
\setmonofont[Scale=MatchLowercase]{X Zar}
% \newfontfamily{\A}{X Zar}


\title{امنیت در اجرای همروند یک پروتکل احراز اصالت}
\author{یاسر صبحدل}
\date{\today}

\begin{document}
\frame{\titlepage}

\section[چارچوب]{}
\frame{\tableofcontents}

%\maketitle

% For many users, the previous commands will be enough.
% If you want to directly input Unicode, add an Input Menu or Keyboard to the menu bar 
% using the International Panel in System Preferences.
% Unicode must be typeset using a font containing the appropriate characters.
% Remove the comment signs below for examples.


% \newfontfamily{\H}[Scale=0.9]{Lucida Grande}
% \newfontfamily{\J}[Scale=0.85]{Osaka}
\section{مقدمه}
\subsection{مروری بر پروتکلهای احراز اصالت}

\frame
{
\frametitle{محاسبات چندجانبه امن}
\begin{flushright}
از ۳ منظر مورد بررسی قرار می‌گیرد:\\
\end{flushright}
\setRL
{
\begin{itemize}
\item مورد اول
\item مورد دوم
\end{itemize}
}
}

\end{document}

BTW, I just didn't use the \newfontfamily command because the whole document is persian and only some words are english, so I changed the main font with a persian one.

share|improve this question
3  
Unfortunately there isn't good bidi support for beamer, which is what you would need to solve some of these problems. At least at the moment, the author of bidi doesn't seem willing to provide such support: bit.ly/faDMh0 –  Alan Munn Jan 17 '11 at 13:02
    
Side remark: You should additionally use the polyglossia package (though it won't help with your immediate problem, as it relies on bidi for rtl text). –  Caramdir Jan 17 '11 at 17:53
    
@Alan Munn: Supporting beamer with the issues explained in one of my emails to XeTeX mailing list requires a lot of time and there should be some financial resources so that I can spend my time on making beamer RTL-enabled. If such financial resources are available, then I am more than happy to fix beamer for bidi. Maintainer of bidi: Vafa Khalighi –  IRAN Jan 19 '11 at 5:26
1  
@user2716: nothing in therms of rtl (except that it includes bidi). But it does a variety of things that beamer does for standard latex (dates, numerals, etc.) –  Caramdir Jan 19 '11 at 6:22
1  
@user2716: Are you planning to fill in at least a bit of your profile at some point? (Suggestion: go to tex.stackexchange.com/users/edit/2716 and fill in something better than "user2716" for "Display Name".) –  SamB Jan 21 '11 at 19:01
show 3 more comments

1 Answer

up vote 3 down vote accepted

Yasser, use bidipresentation class, at Parsilatex website, you can find useful template and help to achieve your aim.

share|improve this answer
    
    
it has lots of deficiencies, but for a fresh start is way good. thanks –  Yasser Sobhdel May 17 '11 at 6:42
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.