LaTeXでよく使う単位の書き方

単位はブロック体で記述することが原則。

LaTeX
$ g = 9.8 \; \mathrm{m \cdot s^{-2}} $
g=9.8  ms2g = 9.8 \; \mathrm{m \cdot s^{-2}}

\;はスペース。

ブロック体にするだけであれば標準で使える \mathrm で十分だが、単位の扱いにはsiunitxパッケージを用いるのが便利である。

国際単位系(SI)

LaTeX
\usepackage{siunitx}

を文書の先頭周辺に配置してsiunitxパッケージを読み込む。

LaTeX
$ g = \SI{9.8}{m \cdot s^{-2}} $

$ g = \SI{9.8}{\metre \per \s \squared} $

$ g = \SI{9.8}{\metre / \s \squared} $
g=9.8  ms2g = 9.8 \; \mathrm{m \cdot s^{-2}}
g=9.8  m  s2g = 9.8 \; \mathrm{m \; s^{-2}}
g=9.8  m/s2g = 9.8 \; \mathrm{m / s^{2}}

\SI{数値}{単位}で数値と単位を並べて表示できる。 \si{単位}で単位だけを記述することもできる。

よく使う単位の表記

コマンド表示
\metre, \mm\mathrm{m}
\kilo \gram, \kgkg\mathrm{kg}
\second, \ss\mathrm{s}
\ampere, \AA\mathrm{A}
\kelvin, \KK\mathrm{K}
\mole, \molmol\mathrm{mol}
\ohmΩ\Omega
\degreeCelsius°C \mathrm{\degree C}
\newton, \NN\mathrm{N}
\farad, \FF\mathrm{F}
\henry, \HH\mathrm{H}
\volt, \VV\mathrm{V}
\pascal, \PaPa\mathrm{Pa}
\heltz, \HzHz\mathrm{Hz}
\electronvolt, \eVeV\mathrm{eV}
\radrad\mathrm{rad}
\ang{度;分;秒}12°345612 \degree 34^{\prime} 56^{\prime \prime}

よく使う接頭語

コマンド表示意味
\picop\mathrm{p}101210^{-12}
\nanon\mathrm{n}10910^{-9}
\microμ\mathrm{\mu}10610^{-6}
\millim\mathrm{m}10310^{-3}
\centic\mathrm{c}10210^{-2}
\decid\mathrm{d}10110^{-1}
\decada\mathrm{da}10110^{1}
\hectoh\mathrm{h}10210^{2}
\kilok\mathrm{k}10310^{3}
\megaM\mathrm{M}10610^{6}
\gigaG\mathrm{G}10910^{9}
\petaT\mathrm{T}101210^{12}

その他いろいろな省略形コマンドが存在する。