Mica
Mica

Reputation: 19627

How do you put a period after the section number using the article class?

I am using the article class with the code:

\documentclass[12pt]{article}

\begin{document}
\section{Foo}
This is an example of foo.
\section{Bar}
This is an example of bar.
\end{document}

This produces:

1 Foo

2 Bar

What I want is a period after the section number:

  1. Foo

  2. Bar

I cannot change away from the article class. How would I accomplish this?

Upvotes: 4

Views: 8410

Answers (3)

Nietzche-jou
Nietzche-jou

Reputation: 14720

Use the titlesec package and put in the preamble:

\titlelabel{\thetitle.\quad}

Upvotes: 8

Alex Brasetvik
Alex Brasetvik

Reputation: 11744

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

Upvotes: 3

Jack
Jack

Reputation: 133609

Not sure, since I have still no latex in my, reformatted, pc but it should be something like:

\def\thesection {\arabic{section}.}

You should put it in preamble of document. Absolutely not sure about correctness (no way to try it now).

Upvotes: 0

Related Questions