I created a cls file because I wanted to change some points and more precisely the title of the toc, the acronyms, etc.
I made it (see cls file) and it was working well. However, when, I have some code in order to write in different languages, it doesn't work anymore.
Here a simple example:
Code: Select all
\documentclass{Internship_Report}\usepackage{multirow}\usepackage{longtable}\usepackage{lscape}\usepackage{makecell}\usepackage{tabularx}\usepackage{color}\usepackage{xcolor}\usepackage{colortbl}\usepackage{fancyhdr}\usepackage{enumitem}\usepackage[breaklinks,hidelinks]{hyperref}\begin{document}\begin{center}\huge{\bfseries{Acknowledgements}}\vspace{0.3cm}\end{center}\chineseLanguage{非常感谢您} M; \<شكرًا لك أيها> ; \greekLanguage{Σας ευχαριστώ πoulos} and V\tableofcontents\listoffigures\newpage\listoftables\newpage\chapter{Chap 1}\chapter{Chap 2}\end{document}
Code: Select all
\NeedsTeXFormat{LaTeX2e}\ProvidesClass{Internship_Report}[2022/06/02 - Internship Report]\LoadClass[11pt,twoside]{report}\RequirePackage{appendix}\RequirePackage{fancyhdr}\RequirePackage[toc,acronym]{glossaries}\RequirePackage{caption}\RequirePackage{graphicx}\RequirePackage[titles]{tocloft}\RequirePackage{biblatex}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Geometry%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\RequirePackage{calc}\RequirePackage[a4paper,top=3.5cm,bottom=2.5cm,outer=1in,inner=1.5in]{geometry}%\RequirePackage{showframe}\setlength{\headheight}{13.59999pt}\setlength{\parindent}{0em}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Chapter / Section / Appendix%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\RequirePackage{fmtcount}\makeatletter\def\@makechapterhead#1{%\vspace*{-23\p@}%{\parindent \z@ \raggedright \normalfont\ifnum \c@secnumdepth >\m@ne\thispagestyle{fancy} \huge\bfseries \thechapter.\space % Change the size of the chapter title%\huge\bfseries \@chapapp\space \thechapter\fi