Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

latex

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?

like image 348
Mica Avatar asked Dec 22 '22 07:12

Mica


2 Answers

Use the titlesec package and put in the preamble:

\titlelabel{\thetitle.\quad}
like image 187
Nietzche-jou Avatar answered Dec 31 '22 14:12

Nietzche-jou


\renewcommand{\thesection}{\arabic{section}.}
like image 34
Alex Brasetvik Avatar answered Dec 31 '22 14:12

Alex Brasetvik