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 で「なぜならば」記号(∵)を入力するには、数式モードで $\because$ と書く。ams のパッケージを使う。 例 \usepackage{amsmath}\usepackage{amss …

no image

tex で分母と分子の間の距離を調整する

tex で、ページ全体の体裁をそのままにして 分母と分子の間の距離を広げたり狭めたりするには、\raisebox を使う。 例 通常$$ a=\frac{\raisebox{0ex}[0ex][0ex …

no image

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

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

no image

tex で上極限・下極限の記号を入力する

\amsmath パッケージを使い、\varlimsup, \varliminf を使う。 例 \usepackage{amsmath} \usepackage{amssymb} \begin{doc …

no image

tex で無限の記号を入力する

「無限大」を表す記号を入力するには、\inftyを使う。 例 $$\infty , -infty$$ 結果