Forgot password?
 Create new account
View 1554|Reply 2

怎么去掉某个表格的前缀?

[Copy link]

418

Threads

1628

Posts

110K

Credits

Credits
11891

Show all posts

abababa Posted at 2020-1-7 19:51:17 |Read mode
  1. \documentclass[a4paper]{paper}
  2. \usepackage[slantfont,boldfont]{xeCJK}
  3. \renewcommand{\tablename}{}
  4. \renewcommand{\thetable}{}
  5. \begin{document}
  6. \begin{table}[h]
  7. \centering
  8. \caption{这是一个表格标题}
  9. \begin{tabular}{|c|c|}  
  10. \hline  
  11. \end{tabular}
  12. \end{table}
  13. \end{document}
Copy the Code
如题,上面这段代码,用 xelatex 编译后,会有 “Tab. :” 这个前缀,如何能去掉这个前缀?用 caption* 也不行,前缀还是存在,并且还换了一行,加了个星号。

15

Threads

948

Posts

110K

Credits

Credits
12412

Show all posts

色k Posted at 2020-1-7 19:57:13
图表标题可以用caption宏包设置

418

Threads

1628

Posts

110K

Credits

Credits
11891

Show all posts

 Author| abababa Posted at 2020-1-7 20:08:34
回复 2# 色k

谢谢,明白了,用了
  1. \captionsetup{labelformat=empty}
Copy the Code
就好了。

手机版Mobile version|Leisure Math Forum

2025-4-20 22:23 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list