加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

LaTeX技巧心得278:如何使得表格计数器使用罗马数字

(2010-02-05 21:16:39)
标签:

latex

标题

编号

罗马数字

分类: 表格制作

QQ群:91940767/145316219/141877998/80300084/194770436
淘宝店:http://latexstudio.taobao.com
技巧续篇:http://latexstudio.net/
常见数学公式问题集下载

解决方案:
\renewcommand\thetable{\Roman{table}}
演示效果:
LaTeX技巧心得278:如何使得表格计数器使用罗马数字

演示代码:
\documentclass{book}
\usepackage[font=small,format=plain,labelfont={bf,up},labelsep=space]{caption}

% Change "Table" to "TABLE" in tables, but leave \autoref intact
\DeclareCaptionLabelFormat{table}{TABLE~#2}
\captionsetup[table]{labelformat=table}

% Change the numbering scheme from "1.3" to "III"
   \captionsetup{tablewithin=none}
   \renewcommand\thetable{\Roman{table}}

    \begin{document}

    \begin{table}[!ht] \def\B#1{$\displaystyle{n\choose#1}$}
    \begin{center} \begin{tabular}{c|cccccccc}
    $n$&\B0&\B1&\B2&\B3&\B4&\B5&\B6&\B7\\ \hline
    0 & 1\\
    1 & 1&1\\
    2 & 1&2&1\\
    3 & 1&3&3&1\\
    4 & 1&4&6&4&1\\
    5 & 1&5&10&10&5&1\\
    6 & 1&6&15&20&15&6&1\\
    7 & 1&7&21&35&35&21&7&1
    \end{tabular} \end{center}
    \caption{Pascal's triangle. }
    \end{table}

    \end{document}

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有