来自 RTL 的 Beamer 幻灯片的脚注,使用阿拉伯语

来自 RTL 的 Beamer 幻灯片的脚注,使用阿拉伯语

我在用多语写阿拉伯语演讲,我有一个问题脚线不接受阿拉伯语言。虽然我尝试了很多关于 footline 的答案,但我还是无法解决问题,有什么可以帮忙的吗?

这是生成第一张幻灯片的示例代码:

% !TeX program = xelatex
\documentclass[xcolor=table]{beamer}
\usetheme{Madrid}
\usepackage{polyglossia}
\setdefaultlanguage[calendar=gregorian,numerals=maghrib]{arabic}
\setotherlanguage{english}
\newfontfamily\arabicfont[Script=Arabic]{Times New Roman}
\newfontfamily\arabicfontsf[Script=Arabic]{Times New Roman}

\makeatletter
\newcommand{\RTList}{\raggedleft\rightskip\@totalleftmargin}
\makeatother

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

% re-definition of the title page
\setbeamertemplate{title page}{
\centering
\begin{beamercolorbox}[rounded=true,shadow=true,sep=8pt,center]{title}
\inserttitle \par \insertsubtitle \par
\end{beamercolorbox}
\vfill
\begin{beamercolorbox}[leftskip=8cm,center,wd=0.7\textwidth]{author}
\begin{columns}[T]
\begin{column}{.49\textwidth}%
\centering
\insertauthor
\end{column}
\begin{column}{.49\textwidth}%
\centering
\director
\end{column}
\end{columns}
\end{beamercolorbox}
\vfill
\usebeamerfont{institute}\insertinstitute \par
\vfill
\centering
\insertdate\par
\vfill
}

% to align the subsection in the toc to left
\setbeamertemplate{subsection in toc}[ball unnumbered]

\title[عنوان مختصر]{عنوان باللغة بالعربي}
\subtitle[عنوان مختصر]{
عنوان فرعي}
\author
{تقديم: \\ اسم القدم}
\newcommand{\director}{إشراف:\\ اسم المشرف}
\institute{اسم الجامعة}
\date{\today}

\begin{document}

\begin{frame}
\titlepage
\end{frame}

\end{document}

最终的幻灯片效果如下:

在此处输入图片描述

我希望脚注线像下面的图片一样,但是以阿拉伯语显示并且从右到左: 在此处输入图片描述

答案1

% !TeX program = xelatex
\documentclass[xcolor=table]{beamer}
\usetheme{Madrid}
\usepackage{polyglossia}
\setdefaultlanguage[calendar=gregorian,numerals=maghrib]{arabic}
\setotherlanguage{english}
\newfontfamily\arabicfont[Script=Arabic]{Times New Roman}
\newfontfamily\arabicfontsf[Script=Arabic]{Times New Roman}

\title[عنوان مختصر]{عنوان باللغة بالعربي}
\subtitle[عنوان مختصر]{عنوان فرعي}
\author{تقديم: \\ اسم القدم}
\institute{اسم الجامعة}
\date{\today}

\makeatletter
\setbeamertemplate{footline}
{%
  \leavevmode%
  \hbox{%
  \textenglish{%
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,left]{date in head/foot}%
    \usebeamerfont{date in head/foot}%
    \hspace*{2ex}\inserttotalframenumber{} / \insertframenumber{} \hspace*{2em}\textarabic{\insertshortdate}%
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
    \usebeamerfont{title in head/foot}\textarabic{\insertshorttitle}
  \end{beamercolorbox}%    
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
    \usebeamerfont{author in head/foot}%
        (\textarabic{\insertshortinstitute})~~\textarabic{\insertshortauthor}%
  \end{beamercolorbox}%
  }}%
  \vskip0pt%
}
\makeatother

\begin{document}

\begin{frame}

\end{frame}

\begin{frame}

\end{frame}

\end{document}

在此处输入图片描述

相关内容