在乳胶部分编号中包含小数

coh*_*nsh 4 latex

我试图让我的乳胶部分标记为1.0,2.0而不是1,2.是否有一种简单的方法可以做到这一点或某种方式来定义我希望编号的特定数字?

编辑:我有这个基本的大纲:

\documentclass[12pt]{article}

\begin{document}

\section{first}

\subsection{second}

\end{document}
Run Code Online (Sandbox Code Playgroud)

我目前看到:

1首先

1.1秒

我想要:

1.0首先

1.1秒

fro*_*hli 6

这应该为你做的伎俩.在序言中添加以下行:

\renewcommand*\thesection{\arabic{section}.0}
\renewcommand*\thesubsection{\arabic{section}.\arabic{subsection}}
Run Code Online (Sandbox Code Playgroud)

编辑:从文档类型书更改为文档类型文章.即章节替换为章节,而章节则替换为小节.

编辑:感谢指出\阿拉伯语命令!我相应地编辑了我的答案.