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

LTR direction with Beamer themes with mini frame navigation #5

Closed
2 tasks
jalilsadati opened this issue Jun 7, 2022 · 0 comments
Closed
2 tasks

LTR direction with Beamer themes with mini frame navigation #5

jalilsadati opened this issue Jun 7, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@jalilsadati
Copy link

jalilsadati commented Jun 7, 2022

Brief outline of the issue

In beamer themes with mini frame navigation, direction of section in top mini frame should be right to left not left to right
and subsection also be right to left not centered

Check/indicate

Minimal example showing the issue

% !TEX TS-program = XeLaTeX
% !TEX encoding = UTF-8 Unicode

\documentclass[usenames,dvipsnames,t]{beamer}

% Themes with a Mini Frame Navigation

\usetheme{Berlin}
%\usetheme{Ilmenau}
%\usetheme{Dresden}
%\usetheme{Darmstadt}
%\usetheme{Frankfurt}
%\usetheme{Singapore}
%\usetheme{Szeged}

\usepackage{listings}
\colorlet{bakcolor}{yellow!15}

\usepackage{xepersian}
\settextfont{Yas}

\lstset{
	language=Matlab,
	backgroundcolor=\color{bakcolor}, 
	linewidth=\textwidth ,
	frameround=ttff,
	frame=trBL,
	basicstyle=\ttfamily\footnotesize,
	keywordstyle=\color{blue}\bfseries,
	stringstyle=\ttfamily\color{Magenta},
	commentstyle=\color{Green},
	lineskip = .5pt,
	numberstyle=\scriptsize, 
	numbersep=7pt,
	numbers=left,
	%numbers=none,
	captionpos=t, 
	breaklines=true,
	showstringspaces=true,
	xleftmargin=30pt,
	xrightmargin=30pt}

\author{نویسنده}
\title{تست بیمر با زیپرشین}
\date{\today}

\begin{document}
\maketitle

\begin{frame}{فهرست}
	\tableofcontents
\end{frame}

\section{بخش1}
\subsection{زیربخش}

\begin{frame}{\secname}
درود
	\begin{theorem}
		فیثاغورث
		\begin{equation}\label{eq:1}
				a^2+b^2 = c^2
		\end{equation}
		\begin{itemize}
			\item یک
			\item دو
			\item سه
		\end{itemize}
	\end{theorem}
\begin{enumerate}
	\item یک
	\item دو
	\item سه
\end{enumerate}
\end{frame}

\begin{frame}[fragile]{لیستینگز درون بلوک}%
	در اینجا کد متلب وارد می کنیم
	
\begin{block}{کد متلب رسم تابع سینوسی}
\setLTR
\begin{lstlisting}[captiondirection=RTL,caption={رسم نمودار سینوسی}]
%============================
%===  Test Program ==========
clc
clear 
close all
t=0:0.1:2*pi;
y=sin(t);
plot(t,y)
title('sin(t)')
\end{lstlisting}
\end{block}
\end{frame}
\section{بخش2}
\begin{frame}[fragile]{لیستینگز خارج از بلوک}
\setLTR
\begin{lstlisting}[captiondirection=RTL,caption={رسم نمودار سینوسی}]
%============================
%===  Test Program ==========
clc
clear 
close all
t=0:0.1:2*pi;
y=sin(t);
plot(t,y)
title('sin(t)')
\end{lstlisting}
\end{frame}
\section{بخش3}
\begin{frame}{تست پانویس و زیرنویس در داخل بلوک}
\begin{block}{\textbf{تست   \lr{footnote} در بلوک}}
\begin{itemize}
\item			یک
\item			دو\footnote{دو}
\end{itemize}
\end{block}

\begin{block}{\textbf{تست \lr{LTRfootnote} در بلوک}}
\begin{itemize}
\item			یک
\item			دو
\LTRfootnote{two}
\end{itemize}
\end{block}
\end{frame}


\end{document}

Expected behavior

Log and PDF files

beamer_xe_test1.pdf

@jalilsadati jalilsadati added the bug Something isn't working label Jun 7, 2022
@kvafa kvafa closed this as completed in 4c5d488 Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants