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?



% permet de faire une table des matieres par chapitre
\setlength{\parskip}{10pt plus 1pt minus 1pt}

% biblio ordonnee classique 
\title {Titre}
% le titre


% preparation des minitocs

% table des matieres generale



% bibliographie

  • 1
    Welcome to TeX.SX! You're missing a mandatory argument to \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).
    – egreg
    Dec 2, 2013 at 15:42
  • 1
    \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.
    – jub0bs
    Dec 2, 2013 at 15:42

1 Answer 1


The correct syntax for \setlength requires a second argument; you probably want


Please, avoid setting \parskip to such a high value as 10pt. Your pages will be crossed by big white stripes that don't make reading easier in any way. However I can't recommend smaller values either. Paragraph indentation has served well typography and readers for five centuries; it's discreet an unobtrusive, while the nonzero parskip is saying “Look at me”.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .