tex

tex でアンダーライン(下線)に色をつける方法

投稿日:2020年12月13日 更新日:

テキストの下線に色を付けたい場合には、color, soul パッケージを使用する。

そして、下線をつけたいテキストを\ul で囲む。

\usepackage{color, soul}

\begin{document}

\setulcolor{red}
\ul{Hello.}
\setulcolor{blue}
\ul{Good morning.}

\end{document}

結果

-tex
-

執筆者:


comment

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

関連記事

no image

tex でニアリーイコール記号を入力する

ニアリーイコール記号を入力するには、\fallingdotseq または、\rigingdotseq を使う。 例 \usepackage{amssymb} \begin{document} $$x …

no image

tex の equation で式番号を表示しないようにする方法

\nonumber を使うと式番号を表示しないようにできる。 例 \usepackage{amsmath} \begin{document} \begin{equation} \nonumber y …

no image

tex の equation 環境で複数行の数式を入力する(\split を使う)

\equation の中で \split を使う。 \tag を使って、自分で定義した式番号を使える。 例 \begin{equation} \begin{split} a \\ b \\ c \en …

no image

tex で、理由や根拠を示す(なぜならば)を入力する

tex で「なぜならば」記号(∵)を入力するには、数式モードで $\because$ と書く。ams のパッケージを使う。 例 \usepackage{amsmath}\usepackage{amss …

no image

tex でイプシロン記号を入力する方法

\epsilon または \varepsilon を使う。 例 $\epsilon, \varepsilon$ 結果