This is XeTeX, Version 3.14159265-2.6-0.99998 (TeX Live 2017/W32TeX) (preloaded format=xelatex 2019.7.31) 15 FEB 2021 14:38 entering extended mode restricted \write18 enabled. %&-line parsing enabled. **./references.tex (./references.tex LaTeX2e <2017-04-15> Babel <3.10> and hyphenation patterns for 84 language(s) loaded. ! Undefined control sequence. l.6 \phantomsection % hyperref: enable hyperlinking from the table of conten... 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. ! LaTeX Error: \bibname undefined. See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ... l.8 \renewcommand{\bibname} {\rl{مراجع}} % title of the bibliography cha... Try typing to proceed. If that doesn't work, type X to quit. ! Undefined control sequence. l.9 \chapter *{مراجع} % custom chapter, because in latin env, title goes... 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. ! LaTeX Error: Missing \begin{document}. See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ... l.9 \chapter* {مراجع} % custom chapter, because in latin env, title goes... You're in trouble here. Try typing to proceed. If that doesn't work, type X to quit. Missing character: There is no * in font nullfont! Missing character: There is no م in font nullfont! Missing character: There is no ر in font nullfont! Missing character: There is no ا in font nullfont! Missing character: There is no ج in font nullfont! Missing character: There is no ع in font nullfont! ! LaTeX Error: \chapter undefined. See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ... l.11 \renewcommand{\chapter} [2]{} % disable the automatic chapter Try typing to proceed. If that doesn't work, type X to quit. ! LaTeX Error: Environment latin undefined. See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ... l.12 \begin{latin} % can use \setRTLbibitems in newer versions of xerpersian Your command was ignored. Type I to replace it with another command, or to continue without it. \bibdata{IEEEabrv,references} No file references.bbl. ! LaTeX Error: \begin{document} ended by \end{latin}. See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ... l.14 \end{latin} Your command was ignored. Type I to replace it with another command, or to continue without it. ) ! Emergency stop. <*> ./references.tex *** (job aborted, no legal \end found) Here is how much of TeX's memory you used: 10 strings out of 493005 89 string characters out of 6132076 61634 words of memory out of 5000000 4082 multiletter control sequences out of 15000+600000 3640 words of font info for 14 fonts, out of 8000000 for 9000 1348 hyphenation exceptions out of 8191 8i,0n,6p,189b,35s stack positions out of 5000i,500n,10000p,200000b,80000s No pages of output.