テキストの下線に色を付けたい場合には、color, soul パッケージを使用する。
そして、下線をつけたいテキストを\ul で囲む。
例
\usepackage{color, soul}
\begin{document}
\setulcolor{red}
\ul{Hello.}
\setulcolor{blue}
\ul{Good morning.}
\end{document}
結果

雑記
投稿日:2020年12月13日 更新日:
テキストの下線に色を付けたい場合には、color, soul パッケージを使用する。
そして、下線をつけたいテキストを\ul で囲む。
\usepackage{color, soul}
\begin{document}
\setulcolor{red}
\ul{Hello.}
\setulcolor{blue}
\ul{Good morning.}
\end{document}

執筆者:seyanen
関連記事
ギリシャ文字は、α・β・ζ・σ・・・などの文字のことである。gnuplot では、例えば、アルファ(α)を入力したい場合には、{/Symbol a} と入力する。 例 set xlabel “{/Sy …
tex で文中の文字に \textcolor で色をつける方法
color パッケージを使っておき、本文中 \textcolor で色をつける。 例 \usepackage{color} \begin{document} {\bf \textcolor{red}{ …
2023/01/18
matplotlib のグラフ作成と gnuplot との対応 比較
2022/10/14
pythonで配列(リスト)の、ある要素がわかっているときにその次の要素を取得する方法。