Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Section/subsection not showing in headline in case of right to left text #477

Closed
seloumi opened this issue May 8, 2018 · 3 comments
Closed
Assignees

Comments

@seloumi
Copy link

seloumi commented May 8, 2018

I have an issue in showing section and subsection in headline, I use polyglossia to write arabic presentation with beamer.

With texlive 2016 the hedline show properly but with TL 2018 I have no section/ subsection headings in headline :(

Here my file on overleaf with no problems!!

https://www.overleaf.com/16088626pdvzpjbqnndw

\documentclass[dvipsnames,mathserif]{beamer}
\usepackage{polyglossia}
\setdefaultlanguage[numerals=maghrib,numerals=maghrib]{arabic} 
\setotherlanguage{english}
\newfontfamily\arabicfont[Script=Arabic]{Amiri}
\newfontfamily\arabicfontsf[Script=Arabic]{Amiri}

\mode<presentation>{\usetheme{Warsaw}}

% for RTL liste
\makeatletter
\newcommand{\RTListe}{\raggedleft\rightskip\leftm}
\newcommand{\leftm}{\@totalleftmargin}
\makeatother



% RTL frame title
\setbeamertemplate{frametitle}
{\vspace*{-1mm}
  \nointerlineskip
    \begin{beamercolorbox}[sep=0.3cm,ht=2.2em,wd=\paperwidth]{frametitle}
        \vbox{}\vskip-2ex%
        \strut\hskip1ex\insertframetitle\strut
        \vskip-0.8ex%
    \end{beamercolorbox}
}

% align subsection in toc
\makeatletter
\setbeamertemplate{subsection in toc}
{\leavevmode\rightskip=5ex%
  \llap{\raise0.1ex\beamer@usesphere{subsection number projected}{bigsphere}\kern1ex}%
  \inserttocsubsection\par%
}
\makeatother

% RTL triangle for itemize
\setbeamertemplate{itemize item}{\scriptsize\raise1.25pt\hbox{\donotcoloroutermaths$\blacktriangleleft$}} 

\defbeamertemplate{enumerate item}{square2}
{\LR{
    %
    \hbox{%
    \usebeamerfont*{item projected}%
    \usebeamercolor[bg]{item projected}%
    \vrule width2.25ex height1.85ex depth.4ex%
    \hskip-2.25ex%
    \hbox to2.25ex{%
      \hfil%
      {\color{fg}\insertenumlabel}%
      \hfil}%
  }%
}}

\setbeamertemplate{enumerate item}[square2]

\begin{document}

\rightskip\rightmargin

\title{الهندسة الفضائية \\
\textcolor{yellow}{التعامد في الفضاء}}

\author{الأستاذ : سليم}
\institute{المستوى : سنة أولى جذع مشترك علوم وتكنولوجيا}
\date{\today}

\begin{frame}
\maketitle
\end{frame}

\begin{frame}{المحتويات}
\tableofcontents
\end{frame}

\section{تعامد المستقيمات في الفضاء}
\subsection{تعريف}

\begin{frame}{تعامد المستقيمات في الفضاء}

نص بالعربية هنا

\end{frame}

\end{document}

capture

@seloumi seloumi changed the title Section/subsection not showing in headline in case of right to left Section/subsection not showing in headline in case of right to left text May 8, 2018
@ghost
Copy link

ghost commented May 8, 2018

The problem was introduced by the commit 7f21ca3#diff-adb611a8e4bdf2c7a8b624e9c8b7ed4f

As a temporary workaround, place https://raw.githubusercontent.com/josephwright/beamer/795b7ee036d9e1063e76f3b7f4141f743f095807/base/beamerbasecolor.sty in your working folder (this is an old version prior to the changes of the above commit)

ghost referenced this issue May 8, 2018
* `beamercolorbox` now makes TeX enter horizontal mode, which acts as `\mbox`;
* Fixes `Overfull \hbox` warning when nested.
@seloumi
Copy link
Author

seloumi commented May 8, 2018

Thanks this work fine, awaiting for a fix with the next release 👍

@josephwright
Copy link
Owner

@louisstuart96 Would you like to comment here?

louisstuart96 referenced this issue Sep 1, 2018
Note that `colorbox` has been re-implemented by `bidi` in RTL languages.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants