开发者

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

开发者 https://www.devze.com 2022-12-14 19:56 出处:网络
I am using the article class with the code: \\documentc开发者_StackOverflow中文版lass[12pt]{article}

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:

  1. Foo

  2. 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).

0

精彩评论

暂无评论...
验证码 换一张
取 消