\mtctitle undefined. \select@language {arabic}
\mtctitle undefined. \begin{document}

When I compile the tex the error happens:

\usepackage{xcolor}% استخدام الالوان
\usepackage[version=4]{mhchem}% حزمة كتابة المعادلات الكيميائية
\newfontfamily\arabicfont[Script=Arabic,Scale=1.5]{Simplified Arabic}
\newfontfamily\arabicfont[Script=Arabic, AutoFakeSlant=-0.15]{Simplified Arabic}
\usepackage{graphicx}%ادراج الصور
% تعليمات تغير العنوان للفصول%
 \renewcommand{\mtctitle}{قائمة المحتويات}
\newcommand\words[1]{\expandafter\xwords\csname c@#1\endcsname}
\def\xwords#1{\ifcase#1\or الأول
\or الثاني 
\or الثالث 
\or الرابع
\or الخامس
\or السادس
\or السابع
\or الثامن
\or التاسع
\or العاشر 
I need more words\fi}
%\usepackage{etoolbox}%% uncomment if 'etoolbox' isn't already being loaded
\title {\LR{colud point}}
\item{التحليل الكيميائي\LR{Chemical Analysis}}
\item{الفصل في الكيمياء التحليلية\LR{Separation in analytical chemistry}}
\item{الاستخلاص بالمذيب\LR{Solvent Extraction method}}
\item{ الاستخلاص وحالة التوازن الكيميائي}
     \item{الاستخلاص عن طريق تكوين المعقدات المخلبية\LR{Chelate complex}}
          \item{الاستخلاص عن طريق تكوين المعقدات المخلبية\LR{Chelate complex}}




The macro \mtctitle is defined in the minitoc package, which you don't load. You have two options:

  • If you don't need the minitoc package, just remove the line \renewcommand{\mtctitle{...}.

  • If you need the functionality of the minitoc package, load it by adding the line


    before the line \usepackage{polyglossia}.

Some additional notes:

  • Move the line \usepackage{graphicx} to a place before the line \usepackage{polyglossia}, e.g. after loading the package xcolor.

  • Remove \\ after the \item{...} commands; they are responsible for the Underfull \hbox (badness 10000) warnings. You don't tell us the contents of the imported files. I guess leaving an empty line before the \import commands also does what you want.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.