Caixa de teorema em RTL Languages ​​​​In beamer

Caixa de teorema em RTL Languages ​​​​In beamer

Eu gostaria de ter o ambiente do teorema em inglês e o idioma RTL (árabe), o que significa que a caixa do teorema estaria no lado direito

\documentclass[hyperref={hyperfootnotes=false},10pt]{beamer}

%% to use arabic language and arabic fonts
\usepackage{polyglossia}
\setdefaultlanguage{english}
\setotherlanguage[calendar=gregorian,numerals=maghrib]{arabic}
\newfontfamily\arabicfont[Script=Arabic, Scale=1.0]{Traditional Arabic}
\newfontfamily\arabicfontsf[Script=Arabic]{Amiri}
\newfontfamily\arabicfonttt[Script=Arabic, Scale=1.0]{Tahoma}
\setsansfont[Script=Arabic]{Simplified Arabic}

\makeatletter
\let\@footnotetext=\beamer@framefootnotetext
\makeatother

\begin{document}

\begin{frame}
\begin{frame}
\frametitle{Sample frame title}


\begin{block}{Definition}
this is theorem in english version
\end{block}

\begin{block}{\textarabic{تعريف }}
this is theorem in arabic version which the left box will be in right side of the theorem enviroment
\textarabic{نص التعريف}
\end{block}

\begin{alertblock}{Theorem}
this is theorem in english version
\end{alertblock}

\begin{alertblock}{\textarabic{مبرهنة}}
\textarabic{محتوى}
\end{alertblock}

\begin{examples}{Example}
bla bla 
\end{examples}
\begin{examples}{متال}
\textarabic{متال}
\end{examples}
\end{frame}

\end{document}

Responder1

% !TeX TS-program = xelatex

\documentclass[hyperref={hyperfootnotes=false},10pt]{beamer}
\usecolortheme{orchid}

%% to use arabic language and arabic fonts
\usepackage{polyglossia}
\setdefaultlanguage{english}
\setotherlanguage[calendar=gregorian,numerals=maghrib]{arabic}
\newfontfamily\arabicfont[Script=Arabic]{Times New Roman}
\newfontfamily\arabicfontsf[Script=Arabic]{Times New Roman}

\makeatletter
\let\@footnotetext=\beamer@framefootnotetext
\makeatother

\begin{document}

\begin{frame}
\frametitle{Sample frame title}

\begin{block}{Definition}
this is theorem in english version
\end{block}

{
\selectlanguage{arabic}
\begin{block}{\textarabic{تعريف }}
this is theorem in arabic version which the left box will be in right side of the theorem enviroment
\textarabic{نص التعريف}
\end{block}
}

\end{frame}

\end{document}

insira a descrição da imagem aqui

informação relacionada