怎样调整表格的高度呀,我想让后面几行变高点才看得清楚,谢谢

2019-11-09 18:52发布

``` \begin{table}[ht] \centering \resizebox{\textwidth}{10mm}{ \begin{tabular}{ccccccccc} \hline ...

``` \begin{table}[ht] \centering \resizebox{\textwidth}{10mm}{ \begin{tabular}{ccccccccc} \hline && $s_{1}$ && $s_{2}$ && $s_{3}$ && $s_{4}$ \\ \hline && $\frac{[0, 0.8)}{s_{1}}\rightarrow \varnothing$ && $\frac{[0, 0.5)}{s_{2}}\rightarrow\varnothing $&& $\frac{[0, 0.7)}{s_{3}}\rightarrow\varnothing$ && $\frac{[0, 0.6)}{s_{4}}\rightarrow\varnothing$\\ && $\frac{[0.8, 1]}{s_{1}}\rightarrow \{q_{2}\}$ && $\frac{[0.5, 0.6)}{s_{2}}\rightarrow \{q_{4}\}$ && $\frac{[0.7, 0.8)}{s_{3}}\rightarrow \{q_{2},q_{5}\}$ && $\frac{[0.6, 1]}{s_{4}}\rightarrow \{q_{2}\} $\\ && && $\frac{[0.6, 0.7)}{s_{2}}\rightarrow \{q_{1},q_{4}\}$ && $\frac{[0.8, 0.9)}{s_{3}}\rightarrow\{q_{1}, q_{2}, q_{5}\}$&& \\ && && $\frac{[0.7, 1]}{s_{2}}\rightarrow \{q_{1},q_{3}, q_{4}\}$ && $\frac{[0.9, 1]}{s_{3}}\rightarrow\{q_{1}, q_{2}, q_{4}, q_{5}\}$ && \\ \hline \end{tabular}} \end{table} ``` ![](https://pics.latexstudio.net/data/images/201911/3ad9e12ccbf4258.png)
3条回答
可以用makecell宏包的\gape命令,撑起来 代码可以看看这里: [https://www.latexstudio.net/archives/9433.html](https://www.latexstudio.net/archives/9433.html)

回答: 2019-11-09 19:43

```tex \documentclass{book} \usepackage{amsmath} \usepackage{array} \usepackage{makecell} \begin{document} \begin{tabular}{|c|c|} \hline use \verb|\gape| & \gape{$\dfrac{1}{2}$}\\ \hline \end{tabular}\qquad \begin{tabular}{|c|c|} \hline normal & $\dfrac{1}{2}$\\ \hline \end{tabular} \end{document} ``` 你的代码好乱,我做了个mwe,简单演示一下做法,和使用后的效果。 就是把每组最高的那个用`\gape`撑起了就行了。

一周热门 更多>