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 changed all headings to be indented by the same amount.

\titleformat{\section}
{\bfseries}
{\makebox[1cm][l]{\thesection}}{0cm}{}

\titleformat{\subsection}
{\bfseries}
{\makebox[1cm][l]{\thesubsection}}{0cm}{}

\titleformat{\subsubsection}
{\bfseries}
{\makebox[1cm][l]{\thesubsection}}{0cm}{}

Without having changed the numbering of them, the subsections are missing their last number (e.g. 3.1 instead of 3.1.1). However, in the toc they appear correct. How can I fix this?

share|improve this question

closed as too localized by egreg, Gonzalo Medina, Werner, Thorsten, zeroth Mar 16 '13 at 17:59

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

1  
You've got \thesubsection rather than \thesubsubsection. –  Joseph Wright Mar 16 '13 at 17:09
1  
Well, there's \thesubsection instead of \thesubsubsection in the third \titleformat command. –  egreg Mar 16 '13 at 17:09

Browse other questions tagged or ask your own question.