楼主: oliyiyi
964 2

LaTeX/Tables [推广有奖]

版主

已卖:2994份资源

泰斗

1%

还不是VIP/贵宾

-

TA的文库  其他...

计量文库

威望
7
论坛币
84105 个
通用积分
31671.0967
学术水平
1454 点
热心指数
1573 点
信用等级
1364 点
经验
384134 点
帖子
9629
精华
66
在线时间
5508 小时
注册时间
2007-5-21
最后登录
2025-7-8

初级学术勋章 初级热心勋章 初级信用勋章 中级信用勋章 中级学术勋章 中级热心勋章 高级热心勋章 高级学术勋章 高级信用勋章 特级热心勋章 特级学术勋章 特级信用勋章

楼主
oliyiyi 发表于 2016-3-6 10:15:36 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
Basic examples

This example shows how to create a simple table in LaTeX. It is a three-by-three table, but without any lines.


  1. \begin{tabular}{ l c r }
  2.   1 & 2 & 3 \\
  3.   4 & 5 & 6 \\
  4.   7 & 8 & 9 \\
  5. \end{tabular}
复制代码





Expanding upon that by including some vertical lines:


  1. \begin{tabular}{ l | c || r }
  2.   1 & 2 & 3 \\
  3.   4 & 5 & 6 \\
  4.   7 & 8 & 9 \\
  5. \end{tabular}
复制代码





To add horizontal lines to the very top and bottom edges of the table:


  1. \begin{tabular}{ l | c || r }
  2.   \hline                        
  3.   1 & 2 & 3 \\
  4.   4 & 5 & 6 \\
  5.   7 & 8 & 9 \\
  6.   \hline  
  7. \end{tabular}
复制代码





And finally, to add lines between all rows, as well as centering (notice the use of the center environment - of course, the result of this is not obvious from the preview on this web page):


  1. \begin{center}
  2.   \begin{tabular}{ l | c || r }
  3.     \hline
  4.     1 & 2 & 3 \\ \hline
  5.     4 & 5 & 6 \\ \hline
  6.     7 & 8 & 9 \\
  7.     \hline
  8.   \end{tabular}
  9. \end{center}
复制代码






  1. \begin{center}
  2.   \begin{tabular}{ | l || c ||| r }
  3.     \hline
  4.     1 & 2 & 3 \\ \hline
  5.     4 & 5 & 6 \\ \hline \hline
  6.     7 & 8 & 9 \\
  7.     \hline
  8.   \end{tabular}
  9. \end{center}
复制代码






  1. \begin{tabular}{|r|l|}
  2.   \hline
  3.   7C0 & hexadecimal \\
  4.   3700 & octal \\ \cline{2-2}
  5.   11111000000 & binary \\
  6.   \hline \hline
  7.   1984 & decimal \\
  8.   \hline
  9. \end{tabular}
复制代码







二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:tables LaTeX Table atex Late

缺少币币的网友请访问有奖回帖集合
https://bbs.pinggu.org/thread-3990750-1-1.html

沙发
minixi 发表于 2016-3-6 11:44:18
发现病毒已很长时间了。见截图:
bd.jpg

藤椅
minixi 发表于 2016-3-6 11:49:28
复制代码的功能对初学者太贴心了。

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2025-12-23 06:07