> For the complete documentation index, see [llms.txt](https://overleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://overleaf-pro.ayaka.space/latex/ja/fonto/01-font-sizes-families-and-styles.md).

# フォントサイズ、ファミリー、スタイル

## はじめに

LaTeXでは通常、文書の論理構造（例：セクション）に基づいて適切なフォントとフォントサイズが選ばれます。場合によっては、フォントやサイズを手動で指定したいことがあります。

次の例では、LaTeXで使用できる最小のフォントサイズ（`\tiny`）とスモールキャップス（`\textsc{...}`）のフォントスタイルを使用する方法を示します：

```latex
これは簡単な例です。{\tiny ここでは異なるフォントサイズが表示されます} さらに \textsc{異なるフォントスタイル} も表示されます。
```

[Overleaf でこの例を開く](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Font+sizes+and+styles\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cbegin%7Bdocument%7D%0AThis+is+a+simple+example%2C+%7B%5Ctiny+this+will+show+different+font+sizes%7D+and+also+%5Ctextsc%7Bdifferent+font+styles%7D.%0A%5Cend%7Bdocument%7D)

次の画像は、上の例によって生成された出力を示しています： ![FontStyles.png](/files/8e5634e5ea80a39d76fb4f000618a8362dddc63e)

## フォントサイズ

フォントサイズは特別な名前で識別され、実際のサイズは絶対値ではなく、 `\documentclass` 文中で宣言されたフォントサイズに対する相対値です（参照 [LaTeXで文書を作成する](/latex/ja/latexno/01-learn-latex-in-30-minutes.md)).

次の例では、 `{\huge 巨大なフォントサイズ}` は、波括弧内のテキストを *巨大* フォントサイズで書式設定することを宣言します。利用可能なフォントサイズの完全な一覧は、 [リファレンスガイド](#reference-guide).

```latex
この例では、{\huge 巨大なフォントサイズ} が設定され、
さらに {\footnotesize 脚注サイズ} も設定されています。かなり
多くのフォントサイズがあります。
```

[Overleaf でこの例を開く](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Huge+font+size\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cbegin%7Bdocument%7D%0AIn+this+example+the+%7B%5Chuge+huge+font+size%7D+is+set+and+%0Athe+%7B%5Cfootnotesize+Foot+note+size+also%7D.+There%27s+a+fairly+%0Alarge+set+of+font+sizes.%0A%5Cend%7Bdocument%7D)

次の画像は、上の例によって生成された出力を示しています： ![FontSizesOLV2.png](/files/ae298e7a105a4f37253209d80f4a46ceed42ae79)

## フォントファミリ

デフォルトでは、標準のLaTeXクラスにおけるテキストの既定スタイルは通常、ローマン（立体）のセリフフォントです。ほかのスタイル（**ファミリ**）—サンセリフ、タイプライタ（等幅）など—を使うには、以下の例に示すような特定のLaTeXコマンドを使用する必要があります：

```latex
この例では、コマンドとスイッチを使用しています。
\texttt{コマンドは文のスタイルを変更するために使われ
ます}。

\sffamily
スイッチは、この時点から
別のスイッチが使用されない限り、文書の最後までスタイルを変更します。
```

[Overleaf でこの例を開く](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Choosing+type+styles\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cbegin%7Bdocument%7D%0AIn+this+example%2C+a+command+and+a+switch+are+used.+%0A%5Ctexttt%7BA+command+is+used+to+change+the+style+%0Aof+a+sentence%7D.%0A%0A%5Csffamily%0AA+switch+changes+the+style+from+this+point+to+%0Athe+end+of+the+document+unless+another+switch+is+used.%0A%5Cend%7Bdocument%7D)

次の画像は、上の例によって生成された出力を示しています：

![UsingFontStyles2.png](/files/a974c84356913e97b8a55db7ae186cffdf9c5996)

LaTeX文書でサンセリフフォントを既定として使うように設定するには、次のコマンドを使用します：

```latex
 \renewcommand{\familydefault}{\sfdefault}
```

同様に、ローマンフォントを既定として使うには：

```latex
 \renewcommand{\familydefault}{\rmdefault}
```

## フォントスタイル

LaTeXで最も一般的なフォントスタイルは [太字、イタリック、下線付き](/latex/ja/latexno/03-bold-italics-and-underlining.md)ですが、ほかにもいくつかあります。

次の例では、 `\textsl` コマンドにより、テキストを *斜め* スタイルに設定し、テキストを少し *イタリック*ほどではありません。次を参照してください。 [リファレンスガイド](#reference-guide) フォントスタイルの完全な一覧

```latex
このテキストの一部は \textsl{別の
フォントスタイル} で書かれており、強調しています。
```

[Overleaf でこの例を開く](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Using+slanted+text\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cbegin%7Bdocument%7D%0APart+of+this+text+is+written+%5Ctextsl%7Bin+a+different+%0Afont+style%7D+to+highlight+it.%0A%5Cend%7Bdocument%7D)

次の画像は、上の例によって生成された出力を示しています：

![UsingSlantedText.png](/files/40d1a65bf94685b81f55df3a6f03b2ee87c017d8)

「通常」のフォントスタイル（使用しているLaTeXクラスの既定）に戻したい場合は、次の `\textnormal{...}` コマンドまたは `\normalfont` スイッチコマンドを使用します。

## すべてをまとめる

次の例では、この記事で使用したさまざまなLaTeXコード片を組み合わせています。

```latex
\documentclass{article}
\begin{document}
%異なるフォントサイズと種類の例
これは簡単な例です。{\tiny ここでは異なるフォントサイズが表示されます} さらに \textsc{異なるフォントスタイル} も表示されます。

\vspace{1cm}

%異なるフォントサイズと種類の例
この例では、{\huge 巨大なフォントサイズ} が設定され、さらに {\footnotesize 脚注サイズ} も設定されています。かなり多くのフォントサイズがあります。

\vspace{1cm}

%異なるフォントサイズと種類の例
この例では、コマンドとスイッチを使用しています。 \texttt{コマンドは文のスタイルを変更するために使われます}。

\sffamily
スイッチは、別のスイッチが使用されない限り、この時点から文書の最後までスタイルを変更します。
\rmfamily

\vspace{1cm}

%異なるフォントサイズと種類の例
このテキストの一部は、強調するために \textsl{別のフォントスタイル} で書かれています。
\end{document}
```

[Overleaf でこの例を開く](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Example+using+font+styles%2C+sizes+and+famlies\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cbegin%7Bdocument%7D%0A%25Example+of+different+font+sizes+and+types%0AThis+is+a+simple+example%2C+%7B%5Ctiny+this+will+show+different+font+sizes%7D+and+also+%5Ctextsc%7Bdifferent+font+styles%7D.+%0A%0A%5Cvspace%7B1cm%7D%0A%0A%25Example+of+different+font+sizes+and+types%0AIn+this+example+the+%7B%5Chuge+huge+font+size%7D+is+set+and+the+%7B%5Cfootnotesize+Foot+note+size+also%7D.+There%27s+a+fairly+large+set+of+font+sizes.%0A%0A%5Cvspace%7B1cm%7D%0A%0A%25Example+of+different+font+sizes+and+types%0AIn+this+example%2C+a+command+and+a+switch+are+used.+%5Ctexttt%7BA+command+is+used+to+change+the+style+of+a+sentence%7D.%0A%0A%5Csffamily%0AA+switch+changes+the+style+from+this+point+to+the+end+of+the+document+unless+another+switch+is+used.%0A%5Crmfamily%0A%0A%5Cvspace%7B1cm%7D%0A%0A%25Example+of+different+font+sizes+and+types%0APart+of+this+text+is+written+%5Ctextsl%7Bin+different+font+style%7D+to+highlight+it.%0A%5Cend%7Bdocument%7D)

## リファレンスガイド

**フォントサイズ**

| コマンド          | 出力                                                                     |
| ------------- | ---------------------------------------------------------------------- |
| \tiny         | ![F-tiny.png](/files/1f8d8e1292fb7304c81044e3dc54f2c979d094b1)         |
| \scriptsize   | ![F-scriptsize.png](/files/121461f5dc0431313c9a4d7546d4fc05dec1571d)   |
| \footnotesize | ![F-footnotesize.png](/files/88c1fcd9b6fdc9ae9d7553a61f2165a666c1765f) |
| \small        | ![F-small.png](/files/81fa935603af9bf8c7a8b841d07ca4e4224ff9e3)        |
| \normalsize   | ![F-normalsize.png](/files/bc12743b0ba15a241b0c880c3d619c900ffa163e)   |
| \large        | ![F-large.png](/files/47f9a14fef567e9fb8885df7dabbc6d84228101d)        |
| \Large        | ![F-large2.png](/files/15ac3f507f4fc54dfbe8764d08836803e0a8c9a1)       |
| \LARGE        | ![F-large3.png](/files/ffcc0ebe95c9acc1576d3773ec3ccca690b3f174)       |
| \huge         | ![F-huge.png](/files/3f46df8b1256168da8dd3eb7765a450a7bd38c0c)         |
| \Huge         | ![F-huge2.png](/files/f759dcf2610a7d38dfb5f0525b208dc30c4324d6)        |

**既定のフォントファミリ**

| 書体 = ファミリ  | コマンド                        | スイッチコマンド    | 出力                                                               |
| ---------- | --------------------------- | ----------- | ---------------------------------------------------------------- |
| セリフ（ローマン）  | `\textrm{Sample Text 0123}` | `\rmfamily` | ![F-textrm.png](/files/4054e6c43e8acf94a1eedc43e4b36193775427dd) |
| サンセリフ      | `\textsf{Sample Text 0123}` | `\sffamily` | ![F-textsf.png](/files/d5a08bdf89d3838fb9a2014e5b40d0f2384f6638) |
| タイプライタ（等幅） | `\texttt{Sample Text 0123}` | `\ttfamily` | ![F-texttt.png](/files/f6870eb6ed4eca7c550f968b9518bc2d0ab88374) |

**フォントスタイル**

| style     | コマンド                        | スイッチコマンド    | 出力                                                                |
| --------- | --------------------------- | ----------- | ----------------------------------------------------------------- |
| 中程度       | `\textmd{Sample Text 0123}` | `\mdseries` | ![F-textmd.png](/files/4baca261ecda84b031ba68b0e84ad49c8bcd3a49)  |
| 太字        | `\textbf{Sample Text 0123}` | `\bfseries` | ![F-textbf.png](/files/556d05eda7ea7ce9d858db257b5369eb43d33f58)  |
| 立体        | `\textup{Sample Text 0123}` | `\upshape`  | ![F-textrm.png](/files/4054e6c43e8acf94a1eedc43e4b36193775427dd)  |
| イタリック     | `\textit{Sample Text 0123}` | `\itshape`  | ![F-textit2.png](/files/9c09efcab2d55ffabd6b2c504319a4ab312ef453) |
| 斜め        | `\textsl{Sample Text 0123}` | `\slshape`  | ![F-textsl.png](/files/281d5a1f28b5814ecd1db8fc0fadd1965af1a4d8)  |
| スモールキャップス | `\textsc{Sample Text 0123}` | `\scshape`  | ![F-textsc.png](/files/d900eaaece529c386ae83cac7709deb6b1f05798)  |

## さらに読む

詳しくは以下を参照してください：

* [フォントの書体](/latex/ja/fonto/02-font-typefaces.md)
* [XeLaTeXによる現代的なフォントのサポート](/latex/ja/fonto/03-xelatex.md)
* [太字、斜体、下線](/latex/ja/latexno/03-bold-italics-and-underlining.md)
* [テキスト配置](/latex/ja/shu-shi-she-ding/06-text-alignment.md)
* [複数カラム](/latex/ja/shu-shi-she-ding/09-multiple-columns.md)
* [段落の書式設定](/latex/ja/shu-shi-she-ding/04-articles-how-to-change-paragraph-spacing-in-latex.md)
* [改行と空白](/latex/ja/shu-shi-she-ding/05-line-breaks-and-blank-spaces.md)
* [国際言語サポート](/latex/ja/yan-yu/03-international-language-support.md)
* [LaTeX2εへのそれほど短くない入門](http://www.ctan.org/tex-archive/info/lshort/)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://overleaf-pro.ayaka.space/latex/ja/fonto/01-font-sizes-families-and-styles.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
