码迷,mamicode.com
首页 > 其他好文 > 详细

latex 三线表

时间:2014-05-21 21:44:52      阅读:412      评论:0      收藏:0      [点我收藏+]

标签:style   blog   class   c   ext   http   

LaTeX 处理三线表相当简单方便。用到的宏包主要是 booktabs 。代码如下:

需要添加包:\usepackage{booktabs}。

 

 

\documentclass{article}

 

\usepackage{booktabs} \begin{document}

 

\begin{table}[!t]  \caption{relative implement time of the three methods}

 \label{table_time}

 \begin{tabular}{lllllll}  

\toprule   

  A & N=3 &N=5 & N=7 & N=9 & N=11 & N=13\\  

\midrule   

  B & 1.5789 & 1.3478 &1.0645&0.8780 &0.7222 &0.5942   \\  

   C &  1.0000 &1.0000 &1.0000 &1.0000 &1.0000 &1.0000  \\    

D &7.2632 &14.3913 &21.0323 &27.3171 &30.9630 &34.0870   \\

  \bottomrule  

\end{tabular}

\end{table}

 

\end{document}

注意事项:

 \begin{tabular}{lllllll}  ,这句话的大括号中写几个l,当然也可以写c,或者r,分别代表左中右

效果如下:

bubuko.com,布布扣

 

 

 

 

 

 

 

 

 

 

参考文献:

http://blog.sina.com.cn/s/blog_5e16f1770100fwi5.html

http://zzg34b.w3.c361.com/package/table.htm

 

 

 

latex 三线表,布布扣,bubuko.com

latex 三线表

标签:style   blog   class   c   ext   http   

原文地址:http://www.cnblogs.com/Dzhouqi/p/3739175.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!