您的位置:首页 > Web前端 > CSS

LaTeX下如何改变章节标题编号的样式?

2014-12-18 15:43 465 查看
http://tex.stackexchange.com/questions/3177/how-to-change-the-numbering-of-part-chapter-section-to-alphabetical-r/3183#3183


How
to change the numbering of \part, \chapter, \section, … to alphabetical, Roman numbers, etc

up
vote37down
votefavorite

15

I'm fairly new to LaTeX and I want to know how to change the way sections are numbered by default. I use LyX, and there it is relatively simple to change the way an enumeration is numbered, i.e.
[code]1 foo
 a bar
   i baz


But I want to know if there is a way to do this by default for sections and subsections.

sectioning numbering
shareeditflag
edited Feb
26 '13 at 15:29




lockstep

131k25365545

asked Sep 17 '10 at 0:31





David Berger

288135

add
a comment
start a bounty


1 Answer

activeoldestvotes

up
vote48down
voteaccepted
You change section numbering by redefining the commands used to generate each section number. For example, the default
article
class
uses something like
[code]\renewcommand\thesection{\arabic{section}}
\renewcommand\thesubsection{\thesection.\arabic{subsection}}


with similar commands like
\thesubsubsection
and
so on -- of course, there's also
\thechapter
(in
the
book
and
report
class)
and
\thepart
.
Commands to typeset numbers include:

\arabic
(
1,
 2, 3, ...
)

\alph
(
a,
 b, c, ...
)

\Alph
(
A,
 B, C, ...
)

\roman
(
i,
 ii, iii, ...
)

\Roman
(
I,
 II, III, ...
)

\fnsymbol
(
∗,
 †, ‡, §, ¶, ...
)

shareeditflag
edited Feb
26 '13 at 16:03




Sam Whited

2,087523

answered Sep 17 '10 at 2:33




Will Robertson

38.9k4117166

4
If you have any more expertise or examples to add to this answer, I think this would be a good question to serve as a "canonical" question with a widely applicable
and extensive answer. I suppose widening the scope of the question a bit would be acceptable as well, even though it's pretty open already. I might come back to this question when I have some time and look into it. The 2.5k views are promising for sure. – doncherry Sep
30 '12 at 0:53
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: