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 have a serious problem here... There is a formating like this:

\titleformat{\section}
{\color{Mahogany}\normalfont\Large\bfseries}
{\color{Mahogany}\thesection}{1em}{}

\titleformat{\subsection}
{\color{Bittersweet}\normalfont\Large\bfseries}
{\color{Bittersweet}\thesection}{1em}{}

\titleformat{\subsubsection}
{\color{BurntOrange}\normalfont\Large\bfseries}
{\color{BurntOrange}\thesection}{1em}{}

%-----------------------

\tableofcontents
\newpage
\section{The awesome section}
Some useful text.

\subsection{The awesome subsection}
Some more useful text.

So, I expect now a section formating like this:

1 The awesome section
1.1 The awesome subsection

but what I get is this:

1 The awesome section
1 The awesome subsection

Does anyone has a solution for this ?

thx

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

You have defined all your titles to use the section counter

\titleformat{\subsection}
{\color{Bittersweet}\normalfont\Large\bfseries}
{\color{Bittersweet}\thesection}{1em}{}

\subsection wants to use \thesubsection and similarly for \subsubsection.

share|improve this answer
    
ah, thats it, thank you :) –  Jürgen Stürmer Sep 10 '12 at 11:46
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.