17
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

LaTeXで(文中に)ローマ数字を使う方法

Last updated at Posted at 2018-02-16

毎回頭を悩ませて、なかなかすぐに答えに辿りつけないので自分用にメモ。

otfパッケージを使う方法

使えるならば一番スマートで簡単な方法

otf_roman.tex
¥usepackage{otf}

¥ajRoman{1}
¥ajroman{2}

counterを使う方法

otfパッケージが使えない場合など。比較的有名な回避法らしい。

counter.tex
¥newcounter{num}

¥setcounter{num}{1}
¥Roman{num}, 

¥setcounter{num}{2}
¥roman{num}

なお、カウンターは使う度に数字を代入しないといけず、めんどくさいのでマクロをかぶせるとまだ使いやすい.

counter_macro.tex
¥newcounter{num}
¥newcommand{¥Rnum}[1]{¥setcounter{num}{#1} ¥Roman{num}}
¥newcommand{¥rnum}[1]{¥setcounter{num}{#1} ¥roman{num}}

¥Rnum{1}
¥rnum{2}

アルファベットで打って文字間隔を調整する方法

最もめんどくさい方法、だが、検索するとよくヒットする方法でもある。

17
10
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
17
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?