As of today, the command \luatextextdir
does no longer seem to work. I employ the command in order to be able to typeset Arabic. To that end I created the following commands:
\newcommand{\arabtext}[1] % Arabic inside LTR
{\bgroup\luatextextdir TRT\arabicfont #1\egroup}
\newcommand{\arabnr}[1] % for numbers inside Arabic text
{\bgroup\luatextextdir TLT #1\egroup}
\newenvironment{arabpar} % Arabic paragraph
{\luatextextdir TRT\luatexpardir TRT\arabicfont}{}
As of today, however, I get the otherwise well-known "Undefined control sequence" - error.
I just updated all the packages to the newest version using the TeX Live Utility.
luatex
prefix was removed in recent LaTeX release, try just\textdir