Latex 如何使用article类将句点放在节号之后?
我使用的article类的代码如下:Latex 如何使用article类将句点放在节号之后?,latex,Latex,我使用的article类的代码如下: \documentclass[12pt]{article} \begin{document} \section{Foo} This is an example of foo. \section{Bar} This is an example of bar. \end{document} 这将产生: 一福 2巴 我想要的是章节编号后的一个句号: 福 酒吧 我不能离开article类。我将如何实现这一点?不确定,因为我的重新格式化pc中仍然没有latex,但
\documentclass[12pt]{article}
\begin{document}
\section{Foo}
This is an example of foo.
\section{Bar}
This is an example of bar.
\end{document}
这将产生:
一福
2巴
我想要的是章节编号后的一个句号:
我不能离开article类。我将如何实现这一点?不确定,因为我的重新格式化pc中仍然没有latex,但它应该类似于:
\def\thesection {\arabic{section}.}
你们应该把它写在文件的前言中。绝对不确定正确性(现在无法尝试)。使用titlesec软件包并在序言中加入:
\titlelabel{\thetitle.\quad}
\标题标签{\thetitle.\quad}
你不想这样做!绝对不是正确答案:
\documentclass{article}\begin{document}\renewcommand\thesection{\arabic{section}.}\section{foo}\label{foo}这是section ~\ref{foo}.\end{document}
它起作用了,有点。我编写了另一行代码来从subsection命令中删除“.”。仅使用这行代码和subsection命令就得到了2..1条。不过我改了。这是一个hacky,但有效。不,这也会在\ref{}之后添加句点。
\titlelabel{\thetitle.\quad}