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 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
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

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.