Forgot password?
 Create new account
View 1590|Reply 1

自定义列表序号

[Copy link]

701

Threads

110K

Posts

910K

Credits

Credits
94177
QQ

Show all posts

kuing Posted at 2018-2-10 16:56:50 |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

801

Threads

4889

Posts

310K

Credits

Credits
36169

Show all posts

isee Posted at 2018-2-10 23:37:38
回复 1# kuing


    还超了超了

手机版Mobile version|Leisure Math Forum

2025-4-21 01:08 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list