comment

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

関連記事

no image

matplotlib で、x軸・y軸の目盛りを反対方向につけたい場合。

デフォルトでは、x軸はグラフの下に、y軸は左側につけられる。 例 import numpy as np from matplotlib import pyplot as plt x = np.lins …

no image

tex で組み合わせ記号(nCk)を入力する

tex で組み合わせ記号を入力するには、アンダーバー(_)を使う。C はローマン体にする。 例 ${}_n {\mathrm C}_k$ 結果

no image

python3 で、指定した文字が最後に現れる場所を取得する

rfind を使うと、指定した文字が最後に現れる場所(インデックス)を取得することができる。 例 str1 = “12345abab” result = str1.rfind(“ab”) print( …

no image

tex で脚注を表示する方法

\footnote を使う。 例 \footnote{this is a footnote.} 結果

no image

tex で箇条書きをする方法

箇条書きをしたい部分を\begin{\itemize} と\end{itemize} で囲い、項目ごとに \item で箇条書きをすることができる。 例 \begin{itemize}     \it …