如何修改表格行高?

2020-02-15 17:33发布

如何设置行高,比如第一二三行设置12pt,第四行设置36pt。看lshort的说明: \\[12pt]这样设置不起作用,那么该如何设置呢? ```tex \begin{tabu} to 0.4\tex...

如何设置行高,比如第一二三行设置12pt,第四行设置36pt。看lshort的说明: \\[12pt]这样设置不起作用,那么该如何设置呢? ```tex \begin{tabu} to 0.4\textwidth {|X[1.5,c]|X[1,c]|X[1,c]|X[1,c]|X[1,c] |X[1,c]|X[2,c]|} \hline 题\quad 号&一&二&三&四&五&总分\\[12pt] \hline 应得分& & & & & & \\[12pt] \hline 实得分& & & & & & \\[12pt] \hline 复评人& & & & & & \\[36pt] \hline \end{tabu} ``` 这是代码编译的表格: ![这是代码编译图片](https://pics.latexstudio.net/data/images/202002/d2ae8356025eb6a.png "这是代码编译图片") 这是我需要的表格 ![这是我需要制作的图片](https://pics.latexstudio.net/data/images/202002/338933fca824427.png)
4条回答
论坛 github.com/C
2020-02-15 17:45
```tex \documentclass{ctexart} \usepackage{makecell} \usepackage{tabu} \begin{document} \begin{tabu} to 0.8\textwidth {|X[1.5,c]*{5}{|X[1,c]}|X[2,c]|} \hline 题\quad 号&一&二&三&四&五&总分\\ \hline 应得分& & & & & & \\ \hline 实得分& & & & & & \\ \hline 复评人& & \makecell{啊\\啊\\啊} & & & & \\ \hline \end{tabu} \end{document} ``` ![](https://pics.latexstudio.net/data/images/202002/37f1a3e5e03f5a1.png) 优先考虑让内容自然撑大单元格,而不是确定好尺寸后把文字填进去。

一周热门 更多>