Document ClassesError: can't print the title of the toc, the list of table, the acronyms well

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
dchevalier
Posts: 1
Joined: Thu Jun 30, 2022 9:27 am

Error: can't print the title of the toc, the list of table, the acronyms well

Post by dchevalier »

Hi,

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

Code, edit and compile here:
\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}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Here my cls file:

Code: Select all

Code, edit and compile here:
\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
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Thanks for your answers.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Post Reply