TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

% 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.
\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{یاسر صبحدل}




% 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}
\subsection{مروری بر پروتکلهای احراز اصالت}

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


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
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
@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
@user2716 Vafa, perhaps my choice of words wasn't the best. I realise that the job is a big task, and since everything most of us do is done on a volunteer basis, fixing beamer isn't on your agenda at the moment. Everyone appreciates your work on bidi. – Alan Munn Jan 20 '11 at 21:59
@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
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

Your Answer


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.