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 am using classicthesis for my thesis. In each chapter LaTeX puts its number, but I need to move it.

Here you have an screenshot example, in this image I wish to move "4" number to the left.

screenshot

share|improve this question

1 Answer 1

classicthesis sets the chapter number as a \marginpar if you don't use the linedheaders package option. Regardless, setting of the chapter heading is done with the aid of titlesec. From the actual classicthesis.sty, you'll see:

\ifthenelse{\boolean{@linedheaders}}%
{% lines above and below, number right
\titleformat{\chapter}[display]%             
    {\relax}{\raggedleft{\color{halfgray}\chapterNumber\thechapter} \\ }{0pt}%
    {\titlerule\vspace*{.9\baselineskip}\raggedright\spacedallcaps}[\normalsize\vspace*{.8\baselineskip}\titlerule]%
}{% something like Bringhurst  
\titleformat{\chapter}[display]%
    {\relax}{\mbox{}\oldmarginpar{\vspace*{-3\baselineskip}\color{halfgray}\chapterNumber\thechapter}}{0pt}%
    {\raggedright\spacedallcaps}[\normalsize\vspace*{.8\baselineskip}\titlerule]% 
}

The former \titleformat corresponds to the linedheaders package option, while the latter is without. You could provide your own updated version:

\titleformat{\chapter}[display]%
  {\relax}{\vspace*{-3\baselineskip}\makebox[\linewidth][r]{\color{halfgray}\chapterNumber\thechapter}}{0pt}%
  {\raggedright\spacedallcaps}[\normalsize\vspace*{.8\baselineskip}\titlerule]% 

I've placed the chapter number in a box of width \linewidth, right-aligned.

enter image description here

\documentclass{report}
\usepackage{classicthesis,lipsum}% http://ctan.org/pkg/{classicthesis,lipsum}
\titleformat{\chapter}[display]%
  {\relax}{\vspace*{-3\baselineskip}\makebox[\linewidth][r]{\color{halfgray}\chapterNumber\thechapter}}{0pt}%
  {\raggedright\spacedallcaps}[\normalsize\vspace*{.8\baselineskip}\titlerule]%
\begin{document}
\chapter{First chapter}
\lipsum
\end{document}

Perhaps, in a more general setting, any of the adjustments possible and/presented in the titlesec documentation would work, many of which you'll find on this site.

share|improve this answer

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.