
我怎麼能讓我的sections
和subsections
標題符合以下內容:1i, 1ii, 1iii, 2i, 2ii
等等......
答案1
所有 LaTeX 計數器都會自動定義一個計數器格式例程,名為\the...
,例如,如果計數器被命名為foo
,則存在\thefoo
。預設為\arabic{foo}
,即阿拉伯數字,除非也給出了驅動程式計數器。
\renewcommand{\thesubsection}{\arabic{section}\roman{subsection}}
將使用`subsection 的阿拉伯格式section
和羅馬格式輸出。它將按要求輸出小節,但它才不是看起來很好。
\documentclass{article}
\usepackage{blindtext}
\renewcommand{\thesubsection}{\arabic{section}\roman{subsection}}
\begin{document}
\blinddocument
\end{document}