我正在尝试将我的乳胶部分标记为 1.0, 2.0 而不是 1, 2。有没有一种简单的方法可以做到这一点或某种方法来定义我想要对部分进行编号的特定数字?
编辑: 我有这个基本轮廓:
\documentclass[12pt]{article}
\begin{document}
\section{first}
\subsection{second}
\end{document}
我目前看到:
第一
1.1秒
我想要:
1.0优先
1.1秒
这应该对你有用。将以下行添加到序言中:
\renewcommand*\thesection{\arabic{section}.0}
\renewcommand*\thesubsection{\arabic{section}.\arabic{subsection}}
编辑: 从文档类型书籍更改为文档类型文章。即章节替换为章节,章节替换为小节。
编辑: 感谢您指出 rabic 命令!我相应地编辑了我的答案。
\setcounter{chapter}{-1}% 不使用章节,但在计数器中使用
enewcommand{ hesection}{ rabic{section}}
enewcommand* hesection{ rabic{section}.0}
enewcommand* hesubsection{ rabic{section}.rabic{subsection}}