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 で二重線イコール付きの不等号を表示する方法

tex では、等号付きの不等号は $\le$, $\ge$ で入力できるが、不等号の下の等号を許す表示は一本線である。 もし二重線のイコール付きの不等号を表示したい場合には、\amssymb パッケー …

no image

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

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

no image

tex の equation 環境で複数行の数式を入力する(\split を使う)

\equation の中で \split を使う。 \tag を使って、自分で定義した式番号を使える。 例 \begin{equation} \begin{split} a \\ b \\ c \en …

no image

tex の equation で式番号を表示しないようにする方法

\nonumber を使うと式番号を表示しないようにできる。 例 \usepackage{amsmath} \begin{document} \begin{equation} \nonumber y …

no image

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

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