未分類

tex で、表のキャプション内で改行する方法

投稿日:

\newline を使って次のように書く。

\begin{table}
\begin{tabular}{ |c|c|c|c| }
\hline
1 & 2 & 3 \\
\hline
A & B & C\\
\hline
\end{tabular}
\caption{line 1\newline
\hspace{\linewidth}line 2\newline
\hspace{\linewidth}line 3
}
\end{table}

結果

-未分類

執筆者:


comment

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

関連記事

no image

matplotlib で x, y軸・タイトルのフォントサイズを調整する

ラベルの fontsize で指定する。 例 import numpy as np import matplotlib.pyplot as plt x = np.linspace(0, 2, 100) …

no image

python3 で、文字列の最後が特定の文字で終わるか判定する方法

endswith を使う。 例 str1 = “こんにちは” result1 = str1.endswith(“は”) result2 = str1.endswith(“わ”) print(resul …

no image

tex で累乗根を入力する方法

$\sqrt[n]{2}$のようにする。 例 $\sqrt[n]{2}$ 結果

no image

tex でダガー記号を入力する方法

ダガー記号には、$\dagger$ を使う。上付きにしたい場合には、$^$ と組み合わせる。 例 $A^{\dagger}$ 結果

no image

tex で行の色を1行ごとに交互につける

色を1行ごとに交互につけるには、\xcolor パッケージを使った上で、\rowcolors コマンドを使って色を指定する。 例 \usepackage[table]{xcolor} \begin{d …