\multicolumn を使って、結合する行の成分の数を指定することができる。
次の例では「3」を指定して、結合している。
例
\begin{table} \begin{tabular}{ |c|c|c|c| } \hline \multicolumn{3}{|c|}{line 1} \\ \hline A & B & C\\ \hline \end{tabular} \end{table}
結果
![](https://hanjouchan.org/wp-content/uploads/2020/11/screenshot-2020-11-14-at-8.40.45.png)
雑記
投稿日:
\multicolumn を使って、結合する行の成分の数を指定することができる。
次の例では「3」を指定して、結合している。
\begin{table} \begin{tabular}{ |c|c|c|c| } \hline \multicolumn{3}{|c|}{line 1} \\ \hline A & B & C\\ \hline \end{tabular} \end{table}
執筆者:seyanen
関連記事
tex で、複数行を書いたときに分数がつぶれないようにする。 displaystyle を使う。 例 first $\frac{1}{1+\sqrt{x}+\sqrt{y}}$ のかわりに、 seco …
文章中でインテグラル(積分記号)を大きくするには、\displaystyle と書けばよい。 例 usual $\int \frac{ax+b}{cx+d} dx$display style $\di …
data.txt からの入力から、「4 5 6」というデータがある行を削除して、output.txt に出力する。(データの各行の最後に \n があることに注意。) 例 f = open(‘data. …
2023/01/18
matplotlib のグラフ作成と gnuplot との対応 比較
2022/10/14
pythonで配列(リスト)の、ある要素がわかっているときにその次の要素を取得する方法。