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 wonder is there any way to change the format of section numbering from 1.1 to 1.1. ? I know this is trivial, but I really need to add one more dot after the section number. Does anybody know how to do that?

Thanks a lot

share|improve this question
1  
The KOMA-Script classes have an option for this, if you’re using on of them consider the manual … –  Tobi Jul 29 '11 at 19:22
1  
Please see the right side, you can find more. It is one of them: How to change section numbering –  xport Jul 29 '11 at 19:27

4 Answers 4

up vote 8 down vote accepted

You can do this simply with the titlesec package:

\usepackage{titlesec}
\titlelabel{\thetitle.\quad}
share|improve this answer
    
Perfect. That's what I want. Thank you so much –  Jason Xu Jul 29 '11 at 19:30

It depends on what you wish precisely. If you want that in all places the section number appears as "1.1.", also in cross references, the question is settled quite easily:

\renewcommand{\thechapter}{\arabic{chapter}.}
\renewcommand{\thesection}{\thechapter\arabic{section}.}

(in this case you would also change chapter numbers, for uniformity).

If you want only the number in the section title to be followed by a period, then you can follow Alan's good suggestion or delve into the internals (see the FAQ entry for more information):

\makeatletter
\renewcommand{\@seccntformat}[1]{\csname the#1\endcsname.\quad}
\makeatother

This will change the format of all the sectional units also below \section. You might prefer the titlesec way to get more control on the appearance of the section headings.

share|improve this answer

If you use Komascript you may use the option numbers=endperiod.

Example:

\documentclass[11pt,english,numbers=endperiod]{scrartcl}
\usepackage{babel}
\usepackage{blindtext}

\begin{document}
\tableofcontents
\blinddocument
\end{document}
share|improve this answer
    
Thanks for adding an example corresponding to my above comment! –  Tobi Jul 29 '11 at 21:59
    
After posting my answer I detected your comment - I needed some time to verify my knowledge ;) –  knut Jul 30 '11 at 18:24

You can use the secdot package:

\documentclass{report}
\usepackage{secdot}
\begin{document}
\chapter{Chapter}
\section{Section}
\end{document}
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.