0

I get this bad alignment of bullets inside the TOC using the following MWE:

\documentclass[12pt]{beamer}
\usepackage{polyglossia}
\setmainlanguage[numerals=mashriq,abjadjimnotail=true]{arabic} % Polyglossia package for more options
\setotherlanguages{english}
\setsansfont[Script=Arabic,Ligatures=TeX]{Simplified Arabic} % Bold sans used for sections
\newfontfamily\englishfont{Arial}

\usetheme{Frankfurt}

\title{مثال تجريبي للمشكلة}

\AtBeginSection[] % Do nothing for \section*
{   %
  \begin{frame}
    \frametitle[TOC]{المحتويات}
    \tableofcontents[currentsection,currentsubsection,subsubsectionstyle=hide/hide]
  \end{frame}
}

\begin{document}
\begin{frame}
  \titlepage%
\end{frame}

\section*{المحتويات}
\frame{\tableofcontents[subsubsectionstyle=hide/hide]} %this is the first slide of TOC

\section{مقدمة}

\section{الفصل الاول}

\section{الفصل الثاني - تفاصيل عن الموضوع}

\section {الفصل الثالث}

\end{document}

Output

enter image description here

So my question is there any way to get the alignment right?

1

Well after doing some research on similar posts. I found that surrounding the \tableofcontents with minipage environment is necessary to get alignment right.

\documentclass[12pt]{beamer}
\usepackage{polyglossia}
\setmainlanguage[numerals=mashriq,abjadjimnotail=true]{arabic} % Polyglossia package for more options
\setotherlanguages{english}
\setsansfont[Script=Arabic,Ligatures=TeX]{Simplified Arabic} % Bold sans used for sections
\newfontfamily\englishfont{Arial}

\usetheme{Frankfurt}

\title{مثال تجريبي للمشكلة}

\AtBeginSection[] % Do nothing for \section*
{   %
  \
  \begin{minipage}{1.0\linewidth}
  \begin{frame}
    \frametitle[TOC]{المحتويات}
    \tableofcontents[currentsection,currentsubsection,subsubsectionstyle=hide/hide]
  \end{frame}    
  \end{minipage}
}

\begin{document}
\begin{frame}
  \titlepage%
\end{frame}

\section*{المحتويات}
\begin{minipage}{1.0\linewidth}
\frame{\tableofcontents[subsubsectionstyle=hide/hide]} %this is the first slide of TOC  
\end{minipage}

\section{مقدمة}

\section{الفصل الاول}

\section{الفصل الثاني - تفاصيل عن الموضوع}

\section {الفصل الثالث}

\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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