Forgot password
 Register account
View 1405|Reply 4

怎么把嵌套的enumerate自动都变成阿拉伯数字?

[Copy link]

414

Threads

1641

Posts

15

Reputation

Show all posts

abababa posted 2020-8-5 21:10 |Read mode
如题,我现在是每次嵌套enumerate时,都打上下面这种:
  1. \begin{enumerate}[label*=\arabic*.]
Copy the Code
但我所有的列表项都是这种形式,能不能全局统一设置一下,就让它默认成为这样的?

673

Threads

110K

Posts

218

Reputation

Show all posts

kuing posted 2020-8-5 21:18
\setlist[enumerate,2]{label*=\arabic*.}

414

Threads

1641

Posts

15

Reputation

Show all posts

original poster abababa posted 2020-8-5 21:37
回复 2# kuing

谢谢,试了一下,对一层嵌套是可以的,但多层嵌套还是不行。凭感觉,我这里是三层嵌套用得最多,然后嵌套最深的是五层。
明白了,加了一下就好用了:
  1. \setlist[enumerate,2]{label*=\arabic*.}
  2. \setlist[enumerate,3]{label*=\arabic*.}
Copy the Code

673

Threads

110K

Posts

218

Reputation

Show all posts

kuing posted 2020-8-5 21:47
试试合起来行不行  \setlist[enumerate,2,3]{label*=\arabic*.}

414

Threads

1641

Posts

15

Reputation

Show all posts

original poster abababa posted 2020-8-6 09:56
回复 4# kuing

原来如此,好用,谢谢。

Quick Reply

Advanced Mode
B Color Image Link Quote Code Smilies
You have to log in before you can reply Login | Register account

$\LaTeX$ formula tutorial

Mobile version

2025-7-20 06:15 GMT+8

Powered by Discuz!

Processed in 0.014350 seconds, 22 queries