LoginSignup
0
2

More than 5 years have passed since last update.

Rmarkdownをwordに出力する際のTeXコマンドの注意(\rm)

Last updated at Posted at 2017-07-10

数式中で一部の文字をノンイタリック(ローマン体)にしたい場合がある。

$a_\mathrm{a}$

この時使えるコマンドには

\rm

$$a_\rm{a}$$

\mathrm

$$a_\textrm{a}$$

\textrm

$$a_\mathrm{a}$$

があるが、\rmは古く推奨されないらしい。
そのせいか、Rmdをhtmlやpdfに変換する時はいいが、wordに変換すると、数式にならない。
適宜\mathrm\textrmを使おう。

0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2