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 の equation で式番号を表示しないようにする方法

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

no image

tex でパーセント記号のフォントを変更する方法

tex で、パーセント記号の一部がくっついて表示される場合、パーセント記号の部分だけ別のフォントで表示するという解決法がある。 例 \DeclareRobustCommand{\percent}{{\ …

no image

tex で表の縦横軸を調整する方法

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

no image

tex で表を横にぶち抜きしたものを作成する方法

multicolumn を使う。 例 \begin{center} \begin{table}[] \begin{tabular}{|c|c|c|c|} \hline \multicolumn …

no image

tex で微分(ダッシュ、プライム)を書く

微分に使うダッシュ(数学では、正式にはプライムと呼ぶことが多い)の tex での書き方。 例 $y’ = x$または$y^{\prime} = x$どちらでも同じ表示になる。 結果 このお …