8
votes
Titlespacing command not working for \subsection and also causing error for \section
You get
! Undefined control sequence.
<argument> ...on\endcsname \protect \@secnumpunct
l.9 \section{Main section}
% <- This line triggers the error
?
! Undefined ...
4
votes
Accepted
Automatic Chapter or Section Title in Bold face and Small Caps
As already told in Will's answer to the question vou've linked, you should not use \sc, because this deprecated font command does also deactivate the previous \bfseries. Use \scshape instead:
\...
1
vote
Accepted
Coloured subsection AND text right after the subsection name
I am not sure what you want to achieve eventually, as you did not provide much information. But if you only use the sectsty package for adding color to the subsection title, you should know that you ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
titlesec × 1487sectioning × 568
chapters × 200
table-of-contents × 159
spacing × 132
formatting × 110
titletoc × 82
header-footer × 77
koma-script × 57
tikz-pgf × 52
titles × 43
section-titles × 42
numbering × 39
hyperref × 35
fancyhdr × 35
sections-paragraphs × 35
tocloft × 34
parts × 33
indentation × 32
xetex × 29
horizontal-alignment × 26
color × 26
fonts × 25
memoir × 24
margins × 23