VOOZH about

URL: https://qiita.com/epsilonminder/items/d139047e85d4985dfc25

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


👁 Image
17

Go to list of users who liked

10

Share on X(Twitter)

Share on Facebook

Add to Hatena Bookmark

More than 5 years have passed since last update.

@epsilonminder

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

17
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

Go to list of users who liked

10
0

Go to list of comments

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

Go to list of users who liked

10