Princeton的个人博客分享 http://blog.sciencenet.cn/u/Princeton

博文

latex之表格中绘制斜表头

已有 24435 次阅读 2011-4-5 06:06 |个人分类:Table|系统分类:科研笔记| LaTex, table, slash

在科研论文的写作中,尤其是数值仿真部分,使用表格给出一些数据时,我们有时想用斜表头来表达。在latex文档中绘制斜表头的命令需要用到slashbox宏包,具体代码和结果如下:
 
In the beginning, you should include the package in the preamble by using following command:
usepackage{slashbox}   %%%%%%%%%%%%绘制斜表头宏包%%%%%%%%%%%%%%%
 
%%%%%%%%Related codes given as following:%%%%%%%%%%%%%%%%%%
The distribution times among different nodes are given in Table~ref{tab:time}.

begin{table} [h]

centering

caption{Distribution Time (in hours)}

label{tab:time}

begin{tabular}{c|cc||c|ccc} hline

backslashbox{SNs}{INs} & D & E & backslashbox{SNs}{INs} & F & G & H \hline

A & 2 & 3 & D & 1 & 3 & 3\

B & 2 & 1 & E & 3 & 2 & 3\

C & 1 & 3 &&&&\hline

end{tabular}\

{footnotesize Note: suppy nodes (SNs), intersection nodes (INs), demand nodes (DNs)}

end{table}

 
%%%%%%%%%%%The results%%%%%%%%%%%%%%%%%
 



https://blog.sciencenet.cn/blog-111494-429745.html

上一篇:Latex之表格中嵌套列表环境
下一篇:latex文档排版时空出一行的命令
收藏 IP: 174.93.112.*| 热度|

0

发表评论 评论 (0 个评论)

数据加载中...
扫一扫,分享此博文

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-7-20 14:32

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部