Forgot password?
 Create new account
View 140|Reply 3

请教autorefname引用item要怎么把最后的点去掉?

[Copy link]

418

Threads

1628

Posts

110K

Credits

Credits
11891

Show all posts

abababa Posted at 2022-10-13 20:17:22 |Read mode
如题,我先是写了\setlist[enumerate,2,3,4]{label*=\arabic*.},让所有的item都变成数字,然后引用的写了\renewcommand\Itemautorefname{条目}。之后在嵌套的enumerate的最里面那个中写了
\item\label{item:pp:01}性质1
\item\label{item:pp:01}性质2

最后引用的时候:\autoref{item:pp:01}。它引用时写的是“条目 1.1.-条目 1.2.”这种,最后都带一个点,我希望在引用时不带上最后那个点,请教这个要怎么弄才行?

701

Threads

110K

Posts

910K

Credits

Credits
94172
QQ

Show all posts

kuing Posted at 2022-10-13 23:06:15
看了下 enumitem 包的手册,有 label*=... 却没有 ref*=...

那只好分开写啦:
  1. \setlist[enumerate,2]{label*=\arabic*.,ref=\theenumi.\arabic*}
  2. \setlist[enumerate,3]{label*=\arabic*.,ref=\theenumii.\arabic*}
  3. \setlist[enumerate,4]{label*=\arabic*.,ref=\theenumiii.\arabic*}
Copy the Code

如何?

701

Threads

110K

Posts

910K

Credits

Credits
94172
QQ

Show all posts

kuing Posted at 2022-10-13 23:22:06
另外还搜到一个 enumitem-zref 包,不知是否适用,看手册也一时看不太懂……

418

Threads

1628

Posts

110K

Credits

Credits
11891

Show all posts

 Author| abababa Posted at 2022-10-14 13:57:24
kuing 发表于 2022-10-13 23:06
看了下 enumitem 包的手册,有 label*=... 却没有 ref*=...

那只好分开写啦:
谢谢,最开始我写setlist的时候就是分开的,不过我不知道还有ref=的参数,后来就合在一起了,现在又要分开

手机版Mobile version|Leisure Math Forum

2025-4-20 22:16 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list