I am trying to use Armenian language in Latex. I have read from https://en.wikibooks.org/wiki/LaTeX/Internationalization that I can use following commands to have Armenian font:
\usepackage{fontspec}
\setmainfont{DejaVu Serif}
or
\usepackage{fontspec}
\setmainfont{Sylfaen}
My document class is \documentclass[12pt, a4paper]{report}.
But I am getting following errors when compiling either with XeLatex or LuaTex:
The same for Xelatex
Log :
! Undefined control sequence.
<argument> \LaTeX3 error:
Erroneous variable \c__fontspec_shape_n_n_tl used!
l.3806 \emfontdeclare{ \emshape, \eminnershape }
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
<argument> \LaTeX3 error:
Erroneous variable \c__fontspec_shape_n_it_tl used!
l.3806 \emfontdeclare{ \emshape, \eminnershape }
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
<argument> \LaTeX3 error:
Erroneous variable \c__fontspec_shape_it_n_tl used!
l.3806 \emfontdeclare{ \emshape, \eminnershape }
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
I have simple code I have the same error either writing in Armenian or English letters:
\documentclass[12pt, a4paper]{report}
\usepackage{fontspec}
\setmainfont{Sylfaen}
\begin{document}
Some Text
Ինչ-որ բան
\end{document}
Thanks,in advance.

