color パッケージを使っておき、本文中 \textcolor で色をつける。
例
\usepackage{color}
\begin{document}
{\bf
\textcolor{red}{赤}
\textcolor{magenta}{マゼンタ}
\textcolor{yellow}{黄色}
\textcolor{green}{緑}
\textcolor{blue}{青}
}
\end{document}
結果

雑記
投稿日:
color パッケージを使っておき、本文中 \textcolor で色をつける。
\usepackage{color}
\begin{document}
{\bf
\textcolor{red}{赤}
\textcolor{magenta}{マゼンタ}
\textcolor{yellow}{黄色}
\textcolor{green}{緑}
\textcolor{blue}{青}
}
\end{document}
執筆者:seyanen
関連記事
tex で大文字のπ(Π)を使って乗積を表示する方法 例 $\displaystyle \prod_{i=0}^{N} a_i$または$\prod_{i=0}^{N} a_i$ 結果 このお姉さんはフ …
ノルムの絶対値記号を単純に入力しただけでは短くて困ることがあるので、長くしたいときがある。 \amsmath パッケージで、 \lVert や \rVert, \lvert や \rvert  …
2023/01/18
matplotlib のグラフ作成と gnuplot との対応 比較
2022/10/14
pythonで配列(リスト)の、ある要素がわかっているときにその次の要素を取得する方法。