テキストの下線に色を付けたい場合には、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
関連記事
アスタリスクは、「*」記号で入力できる。tex の数式モードと、数式モードの外で書き方が異なるので注意。 例 数式モードの中:math mode $x^{*} A* B^{**}$数式モードの外:te …
amsmath パッケージを使っておき、\begin{equation} と \end{equation} の数式中で \tag を使うと式番号を自分で指定したとおりに表示できる。(式番号の中に日本語 …
2023/01/18
matplotlib のグラフ作成と gnuplot との対応 比較
2022/10/14
pythonで配列(リスト)の、ある要素がわかっているときにその次の要素を取得する方法。