I'm currently working on my thesis and when I compile the acknowledgements alone it has no error but once I compile everything it shows this error. enter image description here

\documentclass[english, a4paper, 12pt, twoside]{article} 

% -------------- Setup, do not change these ---------------
\usepackage[T1]{fontenc, url}
\usepackage{minted} % Code highlighting
\usepackage{amsmath, amssymb, amsthm} % Mathematical packages
\usepackage{parskip} % Removing indenting in new paragraphs
\usepackage{chngcntr} % needed for correct table numbering
\counterwithin{table}{section} % numbering of tables 
\counterwithin{figure}{section} % numbering of figures
\numberwithin{equation}{section} % numbering of equations
\hyphenpenalty=100000 % preventing splitting of words
\usepackage[bottom]{footmisc} % Fotnotes are fixed to bottom of page
\usepackage{lipsum} % For genereating dummy text
% --------- You can edit from this point on --------

% ----- Appearance and language ----- 
\usepackage[english]{babel} % document language
\graphicspath{{Images/}{../Images/}} % path to images
\usepackage[margin=2.54cm]{geometry} % sets margins for the document
\linespread{1.5} % line spread for the document

% ----- Sections -----
\titleformat*{\section}{\LARGE\bfseries} % \section heading
\titleformat*{\subsection}{\Large\bfseries} % \subsection heading
\titleformat*{\subsubsection}{\large\bfseries} % \subsubsection heading
% next three lines creates the \paragraph command with correct heading 
{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}

% ----- Figures and tables ----- 
\usepackage[labelfont=bf]{caption} % bold text for captions
\usepackage[para]{threeparttable} % fancy tables, check these before you use them

% ----- Sources -----
\bibliographystyle{apa} % citation and reference list style
\def\biblio{\clearpage\bibliographystyle{apa}\bibliography{References.bib}} % defines the \biblio command used for referencing in subfiles - DO NOT CHANGE

% ----- Header and footer -----
\fancyhead[RO,LE]{\thepage} % page number on right for odd pages and left for even pages in the header
\fancyhead[RE,LO]{\nouppercase{\rightmark}} % chapter name and number on the right for even pages and left for odd pages in the header
%\renewcommand{\headrulewidth}{0pt} % sets thickness of header line
\fancyfoot{} % removes page number on bottom of page

% ----- Header of the frontpage ----- 

    \fancyhead[L]{ \includegraphics[width=6.8in]{ensao.jpg}} % change to nhhlogo1.png for golden NHH logo

% ----- Document starts here ----- 

\def\biblio{} % resets the biblio command, if not here a new reference list will be produced after every chapter

\restoregeometry % restores the margins after frontpage
%\nocite{*} % uncomment if you want all sources to be printed in the reference list, including the ones which are not cited in the text 

\pagenumbering{gobble} % suppress page numbering
\thispagestyle{plain} % suppress header
\clearpage\mbox{}\clearpage % add blank page

     ``\textit{\textbf{Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world}}.''
\rightline{{\rm ---  Albert Einstein}}

\pagenumbering{roman} % starting roman page numbering


{\setstretch{1.0} % line spacing for the list



\addtocontents{toc}{\protect\setcounter{tocdepth}{4}} % sets depth of toc to 4,
\pagenumbering{arabic} % Starting arabic page numbering
\setcounter{page}{1} % sets pagecounter to 1

\section{Introduction} % section/chapter name
    \subfile{Chapters/01Introduction} % including the subfile for the chapter
\clearpage % clears the page after the chapter is finished







\renewcommand\refname{References} % name for the reference list
{\setstretch{1.0} % linespacing for the references
\addcontentsline{toc}{section}{References} % to change the name of the references in the TOC
\bibliography{References.bib} % adds the references to the document

\renewcommand{\appendixpagename}{Appendix} % Heading of appendix
\renewcommand{\appendixtocname}{Appendix} % name of appendix in TOC


\section{Tips and tricks to get you started}


Here is the acknowld code :



\lipsum[ \$I warmly thaactor.
I express my deep gra my sincere thanks.I would like to thank Mr.. ]
\center National School Of Applied Sciences\

\center Oujda, June 2019


\makebox[2.5in]{\hrulefill}  \qquad \qquad \qquad \makebox[2.5in]{\hrulefill}

\makebox[2.5in]{Waf} \qquad \qquad \qquad  \makebox[2.5in]{JURY}

    enter code here
  • You are using \lipsum with an optional argument, which should be a number. I don't see what \lipsum -- which sets dummy text -- is doing here at all. Just remove it completely. – Paul Stanley Apr 2 at 12:58

Your Answer

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

Browse other questions tagged or ask your own question.