> 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/latexno/03-bold-italics-and-underlining.md).

# 太字、斜体、下線

## はじめに

シンプルなテキスト整形は、文書内の重要な概念を強調し、より読みやすくするのに役立ちます。斜体、太字、または下線付きの語を使うことで、読者の受ける印象を変えることができます。

この記事では、斜体、太字、下線という3つの基本的なテキスト整形ツールを説明します。まずは例から始めましょう：

```latex
いくつかの \textbf{最も偉大な}
\underline{科学における}発見の
は\textbf{\textit{偶然}}によってなされました。
```

[OverleafでこのLaTeX断片を開いてください。](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=text+formatting+example\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cbegin%7Bdocument%7D%0ASome+of+the+%5Ctextbf%7Bgreatest%7D+%0Adiscoveries+in+%5Cunderline%7Bscience%7D+%0Awere+made+by+%5Ctextbf%7B%5Ctextit%7Baccident%7D%7D.%0A%5Cend%7Bdocument%7D)

次の図は、このLaTeXコードの出力を示しています。文書のプリアンブルはOverleafのリンクによって自動的に追加されます：

![斜体、太字、下線の例](/files/78c92b0fd550a933102daf70b50b834f4af21241)

ご覧のとおり、基本コマンドは3つあり、組み合わせて使うことで複合的な効果を得られます。

注：plain TeXの元のテキスト整形コマンドである、 `\it` （斜体にする）と `\bf` （太字）もLaTeX文書では今でも使えますが、以前のスタイルを保持しないため、使用は推奨されません。たとえば、これらの古いコマンドを使うと、斜体と太字を同時に適用することはできません。

## 斜体のテキスト

テキストを斜体にするのは簡単です。 `\textit` (`\emph`) コマンドを使います：

```latex
いくつかの最も偉大な
科学における発見のいくつか
は\textit{偶然}によってなされました。
```

[OverleafでこのLaTeX断片を開いてください。](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=italic+text+formatting+example\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cbegin%7Bdocument%7D%0ASome+of+the+greatest+%0Adiscoveries+in+science+%0Awere+made+by+%5Ctextit%7Baccident%7D.%0A%5Cend%7Bdocument%7D)

次の図は、このLaTeXコードの出力を示しています。文書のプリアンブルはOverleafのリンクによって自動的に追加されます：

![斜体化テキストの例](/files/a8a560de14f9f14b123ead82dc72cd1d2a5eab54)

## 太字テキスト

テキストを太字にするには `\textbf` コマンドを定義しようとする次の例で示されます：

```latex
いくつかの \textbf{最も偉大な}
科学における発見のいくつか
偶然によってなされました。
```

[OverleafでこのLaTeX断片を開いてください。](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=bold+text+formatting+example\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cbegin%7Bdocument%7D%0ASome+of+the+%5Ctextbf%7Bgreatest%7D+%0Adiscoveries+in+science+%0Awere+made+by+accident.%0A%5Cend%7Bdocument%7D)

次の図は、このLaTeXコードの出力を示しています。文書のプリアンブルはOverleafのリンクによって自動的に追加されます：

![Textformattingex3.png](/files/2b4b1f649f1475bb6c6f1859144eb717be334ba3)

## 下線付きテキスト

テキストに下線を引くには `\underline` コマンドを定義しようとする次の例で示されます：

```latex
いくつかの最も偉大な
\underline{科学における}発見の
偶然によってなされました。
```

[OverleafでこのLaTeX断片を開いてください。](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=underline+text+formatting+example\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cbegin%7Bdocument%7D%0ASome+of+the+greatest+%0Adiscoveries+in+%5Cunderline%7Bscience%7D+%0Awere+made+by+accident.%0A%5Cend%7Bdocument%7D)

次の図は、このLaTeXコードの出力を示しています。文書のプリアンブルはOverleafのリンクによって自動的に追加されます：

![下線付きテキストの例](/files/7813687273fb8b9cf8fcb5df5956751a563c4b68)

## 強調テキスト

テキストは `\emph` コマンドを使って強調できます。場合によっては `\emph` コマンドはちょうど `\textit`と同じように動作しますが、まったく同じではありません：

```latex
いくつかの \emph{発見}
科学において
偶然によってなされました。

\textit{いくつかの最も偉大な \emph{発見}
科学において
は偶然によってなされました。}

\textbf{いくつかの最も偉大な \emph{発見}
科学において
は偶然によってなされました。}
```

[OverleafでこのLaTeX断片を開いてください。](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=emphasizing+text+formatting+example\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cbegin%7Bdocument%7D%0ASome+of+the+greatest+%5Cemph%7Bdiscoveries%7D+%0Ain+science+%0Awere+made+by+accident.%0A%0A%5Ctextit%7BSome+of+the+greatest+%5Cemph%7Bdiscoveries%7D+%0Ain+science+%0Awere+made+by+accident.%7D%0A%0A%5Ctextbf%7BSome+of+the+greatest+%5Cemph%7Bdiscoveries%7D+%0Ain+science+%0Awere+made+by+accident.%7D%0A%5Cend%7Bdocument%7D)

次の図は、このLaTeXコードの出力を示しています。文書のプリアンブルはOverleafのリンクによって自動的に追加されます：

![強調テキストの例](/files/94b0a4d7c1cf9c5848768c88dc44f73b5f87462c)

そのコマンドが `\emph` 引数に対して実際に行うことは文脈によって異なります——通常の本文では、強調されたテキストは斜体になりますが、斜体のテキスト内で使うとこの挙動は逆になります——上の例を参照してください。さらに、いくつかのパッケージ、たとえば [Beamer](/latex/ja/purezentshon/01-beamer.md)、その挙動を変えます `\emph` コマンドで囲めるようになります。

## 完全な例のセット

次の例では、この記事に含まれるさまざまなコード断片をまとめているので、Overleafでまとめて開くことができます。

```latex
最初の例、太字、斜体、下線：

いくつかの \textbf{最も偉大な} 発見が \underline{科学} で \textbf{\emph{偶然}} によってなされました。

\vspace{1.5cm}

斜体化テキストの例：

科学におけるいくつかの最も偉大な発見は、\emph{偶然}によってなされました。

\vspace{1.5cm}

太字テキストの例：

いくつかの \textbf{最も偉大な} 発見は偶然によってなされました。

\vspace{1.5cm}

下線付きテキストの例：

科学におけるいくつかの最も偉大な発見は、\underline{科学}で偶然によってなされました。

\vspace{1.5cm}

さまざまな文脈における強調テキストの例：

科学におけるいくつかの最も偉大な\emph{発見}は、偶然によってなされました。

\textit{科学におけるいくつかの最も偉大な\emph{発見}は、偶然によってなされました。}

\textbf{科学におけるいくつかの最も偉大な\emph{発見}は、偶然によってなされました。}
```

[このLaTeXコードをOverleafで開いてください。](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=text+formatting+example\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Ctitle%7BBold%2C+Italics+and+Underline%7D%0A%5Cauthor%7BAn+example+from+Overleaf%7D%0A%5Cbegin%7Bdocument%7D%0A%5Cmaketitle%0AFirst+example%2C+bold%2C+italics+and+underline%3A%0A%0ASome+of+the+%5Ctextbf%7Bgreatest%7D+discoveries+in+%5Cunderline%7Bscience%7D+were+made+by+%5Ctextbf%7B%5Cemph%7Baccident%7D%7D.%0A%0A%5Cvspace%7B1.5cm%7D%0A%0AExample+of+italicized+text%3A+%0A%0ASome+of+the+greatest+discoveries+in+science+were+made+by+%5Cemph%7Baccident%7D.%0A%0A%5Cvspace%7B1.5cm%7D%0A%0AExample+of+boldface+text%3A%0A%0ASome+of+the+%5Ctextbf%7Bgreatest%7D+discoveries+in+science+were+made+by+accident.%0A%0A%5Cvspace%7B1.5cm%7D%0A%0AExample+of+underlined+text%3A%0A%0ASome+of+the+greatest+discoveries+in+%5Cunderline%7Bscience%7D+were+made+by+accident.%0A%0A%5Cvspace%7B1.5cm%7D%0A%0AExample+of+emphasized+text+in+different+contexts%3A%0A%0ASome+of+the+greatest+%5Cemph%7Bdiscoveries%7D+in+science+were+made+by+accident.%0A%0A%5Ctextit%7BSome+of+the+greatest+%5Cemph%7Bdiscoveries%7D+in+science+were+made+by+accident.%7D%0A%0A%5Ctextbf%7BSome+of+the+greatest+%5Cemph%7Bdiscoveries%7D+in+science+were+made+by+accident.%7D%0A%5Cend%7Bdocument%7D)

## 参考文献

詳しくは次を参照してください。

* [段落と改行](/latex/ja/latexno/02-paragraphs-and-new-lines.md)
* [リスト](/latex/ja/latexno/04-lists.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)
* [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/latexno/03-bold-italics-and-underlining.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.
