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
関連記事
ニアリーイコール記号を入力するには、\fallingdotseq または、\rigingdotseq を使う。 例 \usepackage{amssymb} \begin{document} $$x …
tex の equation で式番号を表示しないようにする方法
\nonumber を使うと式番号を表示しないようにできる。 例 \usepackage{amsmath} \begin{document} \begin{equation} \nonumber y …
大文字のスクリプト体を入力するには、mathrsfs パッケージを使う。 例 \usepackage{mathrsfs} \begin{document} $$\mathscr{ABCDEFGHIJK …
2023/01/18
matplotlib のグラフ作成と gnuplot との対応 比較
2022/10/14
pythonで配列(リスト)の、ある要素がわかっているときにその次の要素を取得する方法。