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 で傍点を使って強調するには、一文字ずつ\. をつける。 例 \.g\.o\.o\.d 結果 このお姉さんはフィクションです!? 1巻【電子書籍】[ むつきつとむ ]価格:660円(税別、送料別 …

no image

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

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

no image

tex で表の網掛けの仕方

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

no image

tex で集合の内部集合(上に丸)を書く方法

集合の「内部」を表す記号を入力するには、\mathring{} を使う。 例 $\mathring{S}$ 結果

no image

tex でπ積(総乗、乗積)を表示する方法

tex で大文字のπ(Π)を使って乗積を表示する方法 例 $\displaystyle \prod_{i=0}^{N} a_i$または$\prod_{i=0}^{N} a_i$ 結果 このお姉さんはフ …