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 で表の縦横軸を調整する方法

例 \begin{center} \begin{table}[] \begin{tabular}{|c|c|c|c|} \hline 氏名 & 生年 & 没年 & 著書 …

no image

tex でノルムを入力する方法

\| を使う。 例 $\|u\|$ 結果 美味しんぼ(43)【電子書籍】[ 雁屋哲 ]価格:605円(税別、送料別)(2020/12/25時点)楽天で購入

no image

tex で上極限・下極限の記号を入力する

\amsmath パッケージを使い、\varlimsup, \varliminf を使う。 例 \usepackage{amsmath} \usepackage{amssymb} \begin{doc …

no image

tex で偏微分記号を入力する

偏微分記号を入力するには、\partial を使う。 分数を入力するための \frac と混ぜて使うと、偏微分係数を出力することができる。 \usepackage{amsmath} \usepacka …

no image

tex でスクリプト体で数式を入力する方法

大文字のスクリプト体を入力するには、mathrsfs パッケージを使う。 例 \usepackage{mathrsfs} \begin{document} $$\mathscr{ABCDEFGHIJK …