\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}
結果

雑記
投稿日:
\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
関連記事
python3 でクラスの初期化を __init__ で行う
python でクラスのオブジェクトを生成したとき、__init__ メソッドが呼び出される(コンストラクタ)__init__ の引数には自身(self)を指定することが通例。一方、オブジェクト破棄の …
python3 でカンマの入った数値の文字列を数値に変換する方法
replace と int 変換を組み合わせる。 例 str1 = ‘1,234,567’ int1 = int(str1.replace(‘,’,”)) print(int1) 結果 123456 …
python3 で文字列を区切り文字を指定してリストに変換する方法
split メソッドを使う。 例 str1 = ‘this, is, a, pen’ str2 = str1.split(‘,’) print(str2) 結果 [‘this’, ‘ is’, ‘ a …
2023/01/18
matplotlib のグラフ作成と gnuplot との対応 比較
2022/10/14
pythonで配列(リスト)の、ある要素がわかっているときにその次の要素を取得する方法。