TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've an issue with the bibliography in classicthesis. My main.tex:



%Loaded here: microtype,graphicx,booktabs,caption,tabularx,hyperref,amsmath



My references.bib:

author= {myauth},
editor= {myedit},
title=  {mytitle},
date=   {2011}

Here myclassicthesis-preamble.

Finally the error:

! LaTeX Error: Command \bibhang already defined.
           Or name \end... illegal, see p.192 of the manual.
l.637 \newlength{\bibhang}

Problably there is something already defined in myclassicthesis-preamble, but I don't know what.

I use TeXworks in Windows 7 x64.

share|improve this question
The package myclassicthesis-preamble loads natbib. See tex.stackexchange.com/questions/37076/… – Joseph Wright Dec 6 '11 at 13:42
@JosephWright The question is the same, but the answer is not clear for me, sorry. – Baduel Dec 6 '11 at 13:58
I'm not quite clear on where the special preamble file comes from. It seems to be a some settings which show off classicthesis, but which really are just part of the preamble and should simply be copied into place. – Joseph Wright Dec 6 '11 at 17:26
up vote 12 down vote accepted

The file myclassicthesis-preamble.sty loads natbib; if you are not going to use any of the features of natbib, open the file and comment out, or delete, the lines

 \RequirePackage{natbib}                % NB: LyX likes to set natbib too, let's avoid clashes
share|improve this answer
Thanks, it works =) – Baduel Dec 6 '11 at 14:44

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.