I am using the article class with the code:
\documentc开发者_StackOverflow中文版lass[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:
Foo
Bar
I cannot change away from the article class. How would I accomplish this?
Use the titlesec package and put in the preamble:
\titlelabel{\thetitle.\quad}
\renewcommand{\thesection}{\arabic{section}.}
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).
精彩评论