Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

\documentclass{scrreprt}

\usepackage[english]{babel}
\usepackage[babel]{csquotes}
\usepackage[style=numeric]{biblatex}                    

%Loaded here: microtype,graphicx,booktabs,caption,tabularx,hyperref,amsmath
\usepackage{myclassicthesis-preamble}
\usepackage{classicthesis}

\bibliography{references}

\begin{document}
Text
\end{document}

My references.bib:

@manual{label,
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
1  
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

1 Answer 1

up vote 11 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

\PassOptionsToPackage{square,numbers}{natbib}
 \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

 
discard

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.