Latex表格内容垂直居中

Latex内容的编写经常会涉及到Excel表格的编写,但是直接按照正常的方式编写那么就会使得文字不能居中显示,所以下述给出Excel文字垂直居中的方法。

首先记得导入array包。\usepackage{array}

这样才能使用m{7cm}的指令,是使得Excel中的内容垂直居中显示。

我的代码如下,数字请忽略。

\begin{table*}

\centering

\caption{A segment of the "Wide-angle eye" dataset with direction strategy labels}

\begin{tabular}{|c|| m{7cm} |c|}

\hline

\bfseries Index & \bfseries 5$\times$5 "Wide-angle Eye" Data & \bfseries Direcion Strategy Label\\

\hline

\hline

\bfseries 1 &

\begin{equation}

\left(

\begin{array}{ccccc}

116.81 & 21.14 & 109.43 & 72.00 & 1.90\nonumber\\

115.83 & 18.83 & 109.67 & 71.30 & 1.86\nonumber\\

115.51 & 18.27 & 109.91 & 69.68 & 1.87\nonumber\\

115.83 & 21.76 & 109.46 & 70.83 & 1.90\nonumber\\

115.83 & 21.30 & 110.87 & 72.22 & 1.90\nonumber\\

\end{array}

\right)

\end{equation}

& \bfseries-1\\

\hline

\bfseries 2 &

\begin{equation}

\left(

\begin{array}{ccccc}

115.83 & 18.83 & 109.67 & 71.30 & 1.86\nonumber\\

115.51 & 18.27 & 109.91 & 69.68 & 1.87\nonumber\\

115.83 & 21.76 & 109.46 & 70.83 & 1.90\nonumber\\

115.83 & 21.30 & 110.87 & 72.22 & 1.90\nonumber\\

115.83 & 21.14 & 111.57 & 72.00 & 1.89\nonumber\\

\end{array}

\right)

\end{equation}

& \bfseries-1\\

\hline

\bfseries 3 &

\begin{equation}

\left(

\begin{array}{ccccc}

130.42 & 42.75 & 119.93 & 84.26 & 2.07\nonumber\\

128.47 & 40.27 & 120.63 & 84.50 & 2.07\nonumber\\

122.64 & 38.89 & 120.41 & 82.18 & 2.07\nonumber\\

122.00 & 38.89 & 120.43 & 81.71 & 2.07\nonumber\\

121.67 & 38.89 & 120.67 & 81.25 & 2.06\nonumber\\

\end{array}

\right)

\end{equation}

& -1\\

\hline

\bfseries 4 &

\begin{equation}

\left(

\begin{array}{ccccc}

92.50 & 48.61 & 113.57 & 67.36 & 1.95\nonumber\\

92.50 & 45.52 & 113.81 & 67.89 & 1.94\nonumber\\

92.50 & 44.44 & 114.06 & 67.59 & 1.92\nonumber\\

92.82 & 43.20 & 114.07 & 67.82 & 1.95\nonumber\\

95.42 & 45.37 & 114.09 & 67.82 & 1.91\nonumber\\

\end{array}

\right)

\end{equation}

& \bfseries 0\\

\hline

\bfseries 5 &

\begin{equation}

\left(

\begin{array}{ccccc}

92.50 & 45.52 & 113.81 & 67.89 & 1.94\nonumber\\

92.50 & 44.44 & 114.06 & 67.59 & 1.92\nonumber\\

92.82 & 43.20 & 114.07 & 67.82 & 1.95\nonumber\\

95.42 & 45.37 & 114.09 & 67.82 & 1.91\nonumber\\

95.42 & 45.99 & 113.87 & 68.98 & 1.95\nonumber\\

\end{array}

\right)

\end{equation}

& \bfseries 0\\

\hline

\bfseries 6 &

\begin{equation}

\left(

\begin{array}{ccccc}

137.67 & 42.57 & 109.90 & 65.11 & 1.98\nonumber\\

137.67 & 44.09 & 108.84 & 65.36 & 2.00\nonumber\\

149.97 & 37.95 & 109.09 & 65.36 & 2.00\nonumber\\

135.50 & 48.77 & 108.84 & 65.61 & 1.97\nonumber\\

122.12 & 48.78 & 109.09 & 65.61 & 1.96\nonumber\\

\end{array}

\right)

\end{equation}

& \bfseries +1\\

\hline

\end{tabular}

\label{tbl:table4}

\end{table*}

最后latex编译得到的图片如图所示。

这样就可以编辑出一个很棒的Excel表格了。

谢谢大家。

如果还有什么关于Latex编辑的问题可以互相讨论。

latex表格内容上下居中_Latex-表格内容垂直居中相关推荐

  1. latex表格内容上下居中_LaTex表格内单元格内容换行

    如何同时让表格同一行一个单元格的文字能垂直居中?比如说文字超长超出页面范围需要分行显示. ~~~ newcommand{tabincell}[2]{begin{tabular}{@{}#1@{}}#2 ...

  2. latex表格内容上下居中_LaTeX表格紧跟文字 (不影响下方文本对齐)

    Latex 表格内文字过长自动换行 法一: [plain] view plaincopy \begin{tabular}{m{5cm}} 法二: [plain] view plaincopy \beg ...

  3. latex表格内容上下居中_表格内容垂直居中

    目前的效果是合适的,即同一行不同单元格的公式,纵向上都在基线处对齐(比如分数线都在相同高度). 下面的例子提供了「强行让单元格内容纵向居中」的方案,仅作为一种技术实现,不推荐实际使用(因为这种效果打破 ...

  4. latex表格内容上下居中_latex怎么让表格里的字上下垂直居中?

    试了一下,LaTeX表格中的单元格在单行的情况下在竖直方向上应该是垂直居中的,所以我猜测您的问题应该是在限定了列宽之后由于自动换行导致的其他列无法做到在竖直上居中,解决方法是使用multicolumn ...

  5. html合并的列内容不居中显示,表格不能合并居中 excel表格不能合并单元格怎么办...

    Excel 单元格不能合并了,合并单元格选项是灰色的无法合并单元格,主要是因为几个单元格之间套用了格式,所以无法合并单元格. 具体的解决方法如下: 选中相应的单元格,然后,点击工具栏上"设计 ...

  6. latex 调整表格的行高_latex表格大小调整

    1.整个缩放 \resizebox{h-size}{v-size}{ \begin{tabular}  ...  \end{tabular} } \scalebox[0.7]{ } \resizebo ...

  7. html小知识之使页面内容整体居中(水平居中或垂直居中)

    1.页面内容水平居中的办法, 方法一: ①最外层的div设定它最大的宽度为1200px(可根据情况调整) ②最外层div样式设置为,margin-left:auto;margin-right:auto ...

  8. html div 纵向居中,内容居中分为div内容水平居中与div内容垂直居中

    div内的模式居中: 形式居等分为div内容水平居中与div形式垂直居中. div形式水准居中相比结构div居中,而div模式居中相比简单,只紧要设置装备摆设一个形式居中css(text-align: ...

  9. Latex 表格内容自动换行居中

    1.在导言区添加宏包:\usepackage{makecell} 2.环境:tabular 命令:\makecell[居中情况]{第1行内容 \\ 第2行内容 \\ 第3行内容 ...} 参数说明: ...

  10. HTML网页中table居中和表格内容居中

    HTML网页中table居中和表格内容居中 1.html中让表格在浏览器中左右居中,可以设置表格的align属性 align三个属性: 居中:center:靠左:left:靠右:right. 2.在表 ...

最新文章

  1. jquery eval解析JSON中的注意点介绍
  2. 权限框架 - shiro 授权demo
  3. python mysql 分号_Python中使用MySQL
  4. error: not found: value SparkSession
  5. Exchange Connector 访问报错解决方法一
  6. python数据批量写入iq数据库_通过Load table命令将数据文件加载到Sybase IQ数据库里面的Python脚本...
  7. java 整数变负数_一文帮你读懂Java整数的存储原理
  8. MVC5应用程序目录
  9. 如何在sql存储过程中打log_SQL语句优化
  10. tuples_高频词汇统计
  11. Android开发的第一天
  12. C#网络编程之---TCP协议的同步通信(相互发送接收数据)
  13. 知网caj文件怎么转换成Word文档?
  14. SMOTE算法(处理非平衡数据)
  15. 做H5页面用什么软件比较好?3款易上手好用的H5网页编辑工具
  16. SpringBoot上传文件类型检测
  17. 关于NGS中“depth”和“coverage”的理解
  18. 二自由度云台扫描算法_控制算法手记-二自由度控制器
  19. 量子计算时代来临?D-Wave 量子计算机使运算速度提高 1 亿倍!
  20. 使用expect ftp免交互上传文件

热门文章

  1. Echart添加水印
  2. echart:设置图表边距
  3. 哪里可以下载免费字体,免费可商用字体解决你的烦恼
  4. 基于c语言的象棋游戏-附带人机算法
  5. python求函数零点,在函数零点问题中求解参数范围
  6. ONLYOFFICE界面汉化
  7. python+django+mysql运动场地预约系统毕业设计毕设开题报告
  8. go语言编写同时支持Linux和Windows的单文件Web界面文件浏览器filebrowser介绍
  9. 员工转正述职答辩问什么问题_新员工转正述职答辩PPT
  10. 最新简约轻量版H5手机微商城运营源码对接最新Z支付个人免签接口