未分類

tex で⇔記号の上に文字を表示する方法

投稿日:

\underset を使って表示することができる。
amsmath パッケージを使う。

\usepackage{amsmath}
\begin{document}

$\underset{\Leftrightarrow}{{\rm def}}$
$\underset{\Longleftrightarrow}{{\rm def}}$

\end{document}

結果

-未分類

執筆者:


comment

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

関連記事

no image

tex の表で、複数行を1行内に入れる方法

multirow パッケージを使っておき、表内で multirow で入力する。 例 \usepackage{multirow} \begin{document} \begin{table} \beg …

no image

c++ で文字列を「区切り文字」を使って分ける方法

string の find を使って、区切り文字の場所を取得し、その位置で区切る。 例 #include <iostream> #include <string> using namesp …

no image

matplotlib で x軸・y軸ラベルをつける

plt.xlabel と plt.ylabel を使う。 例 import numpy as np import matplotlib.pyplot as plt x = np.linspace(0, …

no image

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

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

no image

tex で行列間の水平間隔を調整する方法

行列を水平方向に並べるとき、間隔を開けたいことがある。\hspace コマンドを使うことで、水平方向の間隔を指定することができる。(行列表示には amsmath パッケージを使う。) 例 \usepa …