書体、サイズ |
|
|
| コマンド | 出力例 |
| ¥tiny | |
| ¥scriptsize | |
| ¥footnotesize | |
| ¥small | |
| ¥normalsize | |
| ¥large | |
| ¥Large | |
| ¥LARGE | |
| ¥huge | |
| ¥Huge |
| declaration形式 | environment形式 |
| ¥Huge{サイズが大きくなる文章。} | ¥begin{huge} サイズが大きくなる文章。 ¥end{huge} |
| サイズが大きくなる文章 | サイズが大きくなる文章 |
| コマンド | 説明 | 出力例 |
| ¥rmfamily (¥textrm) | ローマン体。デフォルトのセリフ体(明朝体)フォント。 | |
| ¥sffamily (¥textsf) | サンセリフ体(文字の太さが一定のゴシック体)。 | |
| ¥ttfamily (¥texttt) | タイプライター(等幅)書体。 | |
| ¥mdseries (¥textmd) | デフォルトの太さの書体。 | |
| ¥bfseries (¥textbf) | 太字(ボールド)。 | |
| ¥upshape (¥textup) | 直立体(傾いていないデフォルトの書体)。 | |
| ¥itshape (¥textit) | 斜体(イタリック、傾いている;アルファベットのみ)。 | |
| ¥slshape (¥textsl) | スラント(直立体の文字を傾けただけの書体;アルファベットのみ)。 | |
| ¥scshape (¥textsc) | スモールキャピタル(小文字の代わりにサイズを小さくした大文字を使う書体) 。 |
| ¥documentclass[12pt]{jarticle} ¥begin{document} ¥textbf{この文章が太字化される。} |
この文章が太字化される |
| ¥documentclass[12pt]{jarticle} ¥begin{document} {¥bfseries この文章が太字化される。} ¥begin{bfseries} この文章が太字化される。 ¥end{bfseries} ¥end{document} |
この文章が太字化される この文章が太字化される |
| コマンド | 説明 | 出力例 |
| ¥textcircled{1} | 「1」が○の中に入った記号。 | |
| ¥underline{…} | 引数内に書かれた文章に下線を入れる。 | |
| ¥overline{…} | 引数内に書かれた文章に上線を入れる(*注意)。 | |
| ^{…} | 引数内に書かれた文章を上付きにする(*注意)。 | |
| _{…} | 引数内に書かれた文章を下付きにする(*注意)。 |
例:つまり $ ¥overline{This sentence is overlined.} $ と書く。数式環境では文章が自動的に斜体になるので、これを防ぐには「¥rm」コマンドを挿入してデフォルトのローマン書体に戻します。
例:斜体を外すには $ ¥overline{¥rm This sentence is overlined.} $と書く。
![]() |
![]() |
| ¥renewcommand{¥rmdefault}{ptm} | デフォルトのローマンフォント(元はComputer Modern)をTimesに変える。 |
| ¥renewcommand{¥sfdefault}{phv} | デフォルトのサンセリフフォントをHelveticaに変える。 |
| ¥renewcommand{¥ttdefault}{pcr} | デフォルトのタイプライター(等幅)フォントをCourierに変える。 |
| ¥renewcommand{¥rmdefault}{cmr} | デフォルトのローマンフォントをComputer Modernに変える(/戻す)。 |
| ¥renewcommand{¥sfdefault}{cmss} | デフォルトのサンセリフフォントをComputer Modernに変える(/戻す)。 |
| ¥renewcommand{¥ttdefault}{cmtt} | デフォルトのタイプライター(等幅)フォントをComputer Modernに変える(/戻す)。 |
| ¥documentclass[12pt]{jarticle} ¥begin{document} ¥renewcommand{¥rmdefault}{ptm} ¥renewcommand{¥sfdefault}{phv} ¥renewcommand{¥ttdefault}{pcr} ¥normalfont ¥textrm{Default roman font becomes times.} ¥textsf{Default san-serif font becomes helverica.} ¥texttt{Default fixed font becomes courier.} ¥renewcommand{¥rmdefault}{cmr} ¥renewcommand{¥sfdefault}{cmss} ¥renewcommand{¥ttdefault}{cmtt} ¥normalfont ¥textrm{Default roman font becomes Computer Modern.} ¥textsf{Default san-serif font becomes Computer Modern.} ¥texttt{Default fixed font becomes Computer Modern.} ¥end{document} |
![]() |