Forgot password
 Register account
View 1751|Reply 1

自定义列表序号

[Copy link]

673

Threads

110K

Posts

218

Reputation

Show all posts

kuing posted 2018-2-10 16:56 |Read mode
  1. \documentclass{ctexart}
  2. \usepackage{lipsum}
  3. \usepackage{enumitem}
  4. \makeatletter
  5. \def\zdyxh#1{\expandafter\@zdyxh\csname c@#1\endcsname}
  6. \def\@zdyxh#1{%
  7. \ifcase#1\or 自\or 定\or 义\or 序\or 号\else 超了\fi}
  8. \makeatother
  9. \AddEnumerateCounter*{\zdyxh}{\@zdyxh}{1}
  10. \begin{document}
  11. \lipsum[101]
  12. \begin{enumerate}[label=\zdyxh*.]
  13. \item 内容
  14. \item 内容
  15. \item 内容
  16. \item 内容
  17. \item 内容
  18. \item 内容
  19. \item 内容
  20. \end{enumerate}
  21. \lipsum[101]
  22. \end{document}
Copy the Code
其实就是照 enumitem 包的文档 8.1 New counter representation 部分来写的,发来这里纯粹是记录一下。
QQ截图20180210164032.png

764

Threads

4672

Posts

27

Reputation

Show all posts

isee posted 2018-2-10 23:37
回复 1# 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 11:26 GMT+8

Powered by Discuz!

Processed in 0.012045 seconds, 25 queries