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'm trying to get this document to work using the latex command.

\documentclass{scrreprt}
\usepackage[english]{babel}
\usepackage{subfig}
\usepackage{hyperref}
\usepackage{classicthesis}%
\begin{document}
\chapter{Intro}
\label{chap:intro}
\end{document}

I keep running into the following error:

(/usr/local/texlive/2010/texmf-dist/tex/latex/microtype/mt-ppl.cfg)
Chapter 1.
! Use of \@chapter doesn't match its definition.
\@uclclist ->\oe 
                 \OE \o \O \ae \AE \dh \DH \dj \DJ \l \L \ng \NG \ss \SS \th...
l.7 \chapter{Intro}

I know it's the combination of hyperref and classicthesis that causes this, but I don't know a good way around it other then disabling hyperref. Does anybody have an elegant way to make this example work?

share|improve this question
2  
You should load hyperref after classicthesis. –  egreg Jul 5 '11 at 14:44
    
Thanks, I tried that, but unfortunately it gives the same error. –  DiggyF Jul 5 '11 at 15:12
    
I get no error with pdflatex; classicthesis is not really compatible with latex (dvi output). –  egreg Jul 5 '11 at 15:25
add comment

1 Answer 1

up vote 2 down vote accepted

classicthesis loads the package hyperref by using pdflatex. By latex-ps-pdf the packages decides not to load hyperref and to disclaim some features.

\documentclass{scrreprt}
\usepackage[english]{babel}
\usepackage{subfig}

\let\myoldchap=\chapter
\usepackage{classicthesis}%
\usepackage{hyperref}
\renewcommand{\tocEntry}[1]{% for bib, etc.
 \texorpdfstring{\spacedlowsmallcaps{#1}}{#1}%
    }


\renewcommand*{\chapter}{\secdef{\Chap}{\ChapS}}
\renewcommand\ChapS[1]{\myoldchap*{#1}}%
\renewcommand\Chap[2][]{%
    \myoldchap[\texorpdfstring{\spacedlowsmallcaps{#1}}{#1}]{#2}%
         }


\begin{document}
\chapter{Intro}
\label{chap:intro}
\end{document}

The order is very important. First save the orig-chapter before loading classicthesis which also redefines chapter

share|improve this answer
    
Great, this works. –  DiggyF Jul 5 '11 at 17:57
add comment

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.