\mtctitle undefined. \select@language {arabic}
\mtctitle undefined. \begin{document}
Quando compilo o tex acontece o erro:
\documentclass[10pt,a4paper]{report}
\usepackage{amsmath}
\usepackage{xcolor}% استخدام الالوان
\usepackage[version=4]{mhchem}% حزمة كتابة المعادلات الكيميائية
\usepackage{polyglossia}
%\setotherlanguage{english}
\setmainlanguage[numerals=maghrib]{arabic}
\newfontfamily\arabicfont[Script=Arabic,Scale=1.5]{Simplified Arabic}
\newfontfamily\arabicfont[Script=Arabic, AutoFakeSlant=-0.15]{Simplified Arabic}
\usepackage{graphicx}%ادراج الصور
\graphicspath{{image/}}
\usepackage{import}
% تعليمات تغير العنوان للفصول%
\addto\captionsarabic{%
\renewcommand{\chaptername}{الفصل}%
\renewcommand{\contentsname}{الفهرس}%
\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 العاشر
\else
I need more words\fi}
%\usepackage{etoolbox}%% uncomment if 'etoolbox' isn't already being loaded
\makeatletter
\patchcmd{\@makechapterhead}{\thechapter}{\words{chapter}}{}{}
\makeatother
\title {\LR{colud point}}
\begin{document}
\import{./titlepage/}{titlepage.tex}
\chapter*{الخلاصة}
\import{./Abstract/}{Abstract.tex}
\tableofcontents
\listoffigures
\listoftables
\chapter{المقدمة}
\begin{enumerate}
\item{التحليل الكيميائي\LR{Chemical Analysis}}
\\
\import{./Introduction/}{Introduction1.tex}
\item{الفصل في الكيمياء التحليلية\LR{Separation in analytical chemistry}}
\\
\import{./Introduction/}{Introduction2.tex}
\item{الاستخلاص بالمذيب\LR{Solvent Extraction method}}
\\
\import{./Introduction/}{Introduction3.tex}
\item{ الاستخلاص وحالة التوازن الكيميائي}
\\
\import{./Introduction/}{Introduction4.tex}
\begin{itemize}
\item{الاستخلاص عن طريق تكوين المعقدات المخلبية\LR{Chelate complex}}
\import{./Introduction/}{Introduction5.tex}
\item{الاستخلاص عن طريق تكوين المعقدات المخلبية\LR{Chelate complex}}
\end{itemize}
\end{enumerate}
\end{document}
Responder1
A macro \mtctitle
é definida no minitoc
pacote, que você não carrega. Você tem duas opções:
Se você não precisa do
minitoc
pacote, basta remover a linha\renewcommand{\mtctitle{...}
.Se você precisar da funcionalidade do
minitoc
pacote, carregue-o adicionando a linha\usepackage{minitoc}
antesa linha
\usepackage{polyglossia}
.
Algumas notas adicionais:
Mova a linha
\usepackage{graphicx}
para um lugarantesa linha\usepackage{polyglossia}
, por exemplo, depois de carregar o pacotexcolor
.Remova
\\
após os\item{...}
comandos; eles são responsáveis pelosUnderfull \hbox (badness 10000)
avisos. Você não nos informa o conteúdo dos arquivos importados. Acho que deixar uma linha vazia antes dos\import
comandos também faz o que você deseja.