LoginSignup
1
1

More than 5 years have passed since last update.

GitHub Markdown + Tex記法で数式中に通常のローマン体の欧文を出す

Last updated at Posted at 2016-12-10

GitHub Markdown + $\TeX$ 記法で数式を書く際に調べた事について覚書き

数式中に通常のローマン体の欧文を出したい

$$a_{ij}=0 \hspace{ 5pt } \mathrm{for\ all} \hspace{ 5pt } i,j$$
のように $\mathrm{for\ all}$ を書きたい.

$for all$

は $for\ all$ になってしまう.

\mathrm を使う方法と \textrm を使う方法がある.

\mathrm は数式用のローマン体フォント

$\mathrm{for\ all}$

$\mathrm{for\ all}$

数式用フォントでは

$\mathrm{for all}$

と書いてもスペースが入らない.
$\mathrm{for all}$
スペースを入れるために \ が必要.

\textrm は本文用のローマン体フォント

$\textrm{for all}$

$\textrm{for all}$


参考文献

[1] 奥村 晴彦:『LaTeX2ε美文書作成入門』改訂第6版,技術評論社,2013,97頁.


よりスマートな方法があれば教えていただけると嬉しいです.

1
1
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
1
1