未分類

tex で行に色をつける方法

投稿日:

xcolor パッケージを使っておく。rowcolor で指定する。

\usepackage[table]{xcolor}
\begin{document}

\begin{table}
\begin{tabular}{ |c|c|c|c| }
\hline
\rowcolor{blue!90!yellow!20} 1 & 2 & 3 \\
\hline
A & B & C\\
\hline
1 & 2 & 3 \\
\hline
\end{tabular}
\end{table}

\end{document}

結果

-未分類

執筆者:


comment

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

関連記事

no image

tex でオーム記号を入力する方法

siunit のパッケージを使って、\si{\ohm} で入力する。 例 \usepackage{siunitx} \begin{document} \si{\ohm} \end{document} …

no image

tex で email を書く方法

\hyperref パッケージを使って次のように書く。 例 \usepackage{hyperref} \begin{document} \href{mailto:taro@example.co.jp …

no image

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

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

no image

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

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

no image

mac の convert コマンドで画像ファイルをサイズ変更する

convert コマンドを使うには、imagemagick というソフトがインストールされていることが必要。 インストールの確認 $ which convert で、imagemagick がインスト …