我试图让我的 latex 部分被标记为 1.0, 2.0 而不是 1, 2。有没有一种简单的方法可以做到这一点,或者有什么方法可以定义我想要对部分进行编号的特定数字?
编辑:
我有这个基本大纲:
\documentclass[12pt]{article}
\begin{document}
\section{first}
\subsection{second}
\end{document}
我目前看到:1 first
1.1 second
我想:
1.0 first
1.1 second
最佳答案
这应该对你有用。将以下行添加到序言中:
\renewcommand*\thesection{\arabic{section}.0}
\renewcommand*\thesubsection{\arabic{section}.\arabic{subsection}}
编辑:
从文档类型书籍更改为文档类型文章。即章节替换为章节,章节替换为小节。
编辑:
感谢您指出\arabic 命令!我相应地编辑了我的答案。
关于latex - 在 Latex 部分编号中包含小数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3748388/