I get the following error message when I try to compile the code below.
package calc Error :'\gdef' invalid at this point \title
What am I doing wrong?
\documentclass[a4paper,11pt]{book}
\usepackage[utf8]{inputenc}
\usepackage[frenchb]{babel}
\usepackage{lipsum}
% permet de faire une table des matieres par chapitre
\usepackage[french]{minitoc}
\setlength{\parskip}{10pt plus 1pt minus 1pt}
\setlength{\parindent}
% biblio ordonnee classique
%\bibliographystyle{unsrt}
\title {Titre}
\author{Sssss}
\date{\today}
\begin{document}
% le titre
\maketitle
% preparation des minitocs
\dominitoc
% table des matieres generale
\tableofcontents
\include{intro}
\include{chap1}
\include{chap2}
\include{chap3}
\include{conclu}
\appendix
\include{annexe}
% bibliographie
\bibliography{allbiblio}
\end{document}
\setlength
: it should be\setlength{\parindent}{0pt}
if you really want a zero parindent. Please, don't (and don't use a nonzero parskip either).\setlength
requires two arguments (the length in question and the value to be assigned) but you're only supplying the first argument. In your code,\title
is taken as the second argument to\setlength
. Then, the world ends.