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 の equation で式番号を表示しないようにする方法
\nonumber を使うと式番号を表示しないようにできる。 例 \usepackage{amsmath} \begin{document} \begin{equation} \nonumber y …
サイズを\footnotsize で指定する。 中括弧{}で、\footnotesize とターゲットにする文章の両方を囲む必要があることに注意。 例 吾輩は猫である。名前はまだ無い。 {\footn …
tex の equation 環境で複数行の数式を入力する(\split を使う)
\equation の中で \split を使う。 \tag を使って、自分で定義した式番号を使える。 例 \begin{equation} \begin{split} a \\ b \\ c \en …
2023/01/18
matplotlib のグラフ作成と gnuplot との対応 比較
2022/10/14
pythonで配列(リスト)の、ある要素がわかっているときにその次の要素を取得する方法。