Open ouboub opened 5 years ago
FWIW here is the missing MWE, stripped down from @ouboub's test file:
% !TeX TS-program = xelatex
\documentclass{beamer}
\usepackage{fontspec}
\usepackage{bidi}
\setmainfont{DejaVu Sans}
%\setsansfont{DejaVu Sans}
\setsansfont{Arial Unicode MS}
\begin{document}
\begin{frame}
\setRL
\begin{enumerate}
\item שלאום
\end{enumerate}
\setLR
\begin{equation}
\int f dx =0
\end{equation}
\end{frame}
\end{document}
The interesting thing is that this seems font-dependend. I do not have Arial
(as used in @ouboub's test file), but I can reproduce the problem with Arial Unicode MS
. However, if I substitute the sans font with DejaVu Sans
, the problem disappears. So maybe it is a bug in the font. @ouboub can you confirm that?
No I can't. I run the following file
\documentclass{beamer}
\usepackage{fontspec}
\usepackage{bidi}
\setmainfont{DejaVu Sans}
\begin{document}
\begin{frame}
\setRL
\begin{enumerate}
\item שלאום
\end{enumerate}
\setLR
\begin{equation}
\int f dx =0
\end{equation}
\end{frame}
\end{document}
However as the attached pdf file show, the brackets are still wrong test-eq.pdf
Sorry hit the wrong button, did not want to close it
@ouboub you also need
\setsansfont{DejaVu Sans}
in the document
Ok, then I confirm, that it works! So its seems the font is the culprit, very very odd indeed.
Brief outline of the issue
The latex file attached, shows that in a frame with hebrew text and an numbered equation the number is displayed as (1(, while adding one english word before the equation and after the \setLR command solves this problem bidi-bug.zip
Check/indicate
xepersian
packagexepersian
package issue tracker has been searched for similar issues?Minimal example showing the issue
Expected behavior
Log and PDF files