Trying to compile a simple document using polyglossia with Hebrew as the default language:
\documentclass[a4paper]{article}
\TeXXeTstate=1
\usepackage{amsmath, amssymb}
\usepackage{polyglossia}
\setdefaultlanguage[calendar=hebrew, numerals=hebrew]{hebrew}
\setotherlanguage{english}
\setmainfont{David CLM}
\usepackage[noend]{algpseudocode}
\begin{document}
\section{}
שלום
\begin{english}
Procedure(A)
\begin{algorithmic}[1]
\State $A = 0$
\end{algorithmic}
\end{english}
\end{document}
Results in this using XeTeX:
! Missing \endcsname inserted.
<to be read again>
\relax
l.15 \begin{algorithmic}[1]
If I set the default language to English and other language to Hebrew it works fine though.
numerals=hebrew
. If you delete it, no error happens. I am not sure about details. You can make a bug report at github.com/reutenauer/polyglossia/issues\TeXXeTstate=1
. And it is much safer to loadalgpseudocode
package before loadingpolyglossia
package.numerals=arabic
but that doesn't compile at all. Deleting thenumerals
also doesn't compile.\section{}
it does compile without thenumerals
, but the original error is stil there.