未分類

tex で打ち消し線を入力する方法

投稿日:

次のように入力すればよい。
打ち消し線は、英語で strikethrough と呼ぶ。

\usepackage[normalem]{ulem}

\begin{document}
Good \sout{morning} night
\end{document}

結果

-未分類

執筆者:


comment

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

関連記事

no image

tex 表の一部の列のみを中央揃えにする

中央揃えにしたい列を、c で指定すればよい。その他は l (左)または r (右)揃えに指定する 例 \begin{table} \begin{tabular}{ |r|c|r|} \hline Ta …

no image

tex の積分範囲の分数サイズを変更する方法

定積分の分数の大きさを調整するには、\mbox のサイズ指定を \small や \normalsize や \large 等に設定すると良い。 例 $\displaystyle \int _0 ^{ …

no image

c++ で文字列が他の文字列を含むか判定する方法

文字列を含むかどうか判定するには、string の find を使う。見つからなかった場合は、std::string::npos を返す。 例 #include <iostream> #i …

no image

tex でゼロベクトルを表示する方法

ゼロベクトルは、 数字の 0 の上部にベクトルであることを表す「矢印」をつける。短い矢印の場合は \vec 、長い矢印をつけたい場合は \overrightarrow を使えば良い。 例 $\vec{ …

no image

c++ で文字列(string)の長さを取得する方法

length() で取得する。 例 #include <iostream> #include <string> using namespace std; int main () { str …