tex

tex で表を横にぶち抜きしたものを作成する方法

投稿日:

multicolumn を使う。

\begin{center}
\begin{table}[]
\begin{tabular}{|c|c|c|c|} \hline
\multicolumn{4}{|c|}{横4項目} \\ \hline
\multicolumn{3}{|c|}{横3項目} & 残り  \\ \hline
\multicolumn{2}{|c|}{横2項目} & 残りA & 残りB \\ \hline
氏名     & 生年   & 没年   & 著書       \\ \hline
ハイデッガー & 1889 & 1976 & 存在と時間    \\
パスカル   & 1623 & 1662 & パンセ      \\
ベーコン   & 1561 & 1626 & ノウムオルガヌム \\ \hline
\end{tabular}
\end{table}
\end{center}

結果

-tex
-

執筆者:


comment

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

関連記事

no image

tex でギリシャ文字のベータ(β)を入力する方法

ベータ(β)は、ギリシャ文字の2番目の文字。数学等でよく使われる。 例 $\beta$ 結果

no image

tex でスラッシュを大きくする

tex でスラッシュ(/)を大きく表示したいときがある。 このとき、\left. または \right. (ドットは表示されない)と、\right/ や \left/ (スラッシュ記号を表示)を組み合 …

no image

tex で箇条書きをする方法

箇条書きをしたい部分を\begin{\itemize} と\end{itemize} で囲い、項目ごとに \item で箇条書きをすることができる。 例 \begin{itemize}     \it …

no image

tex で表の網掛けの仕方

表を見やすく網掛けする方法は、エクセルなどでよく使われる。 tex の表でもできる。 colortbl パッケージを使う。マニュアル:https://ftp.jaist.ac.jp/pub/CTAN/ …

no image

tex で、集合の元でないことを表現する方法

\not \in を使う。 例 x \not \in A 結果