> 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/to-1/06-natbib-citation-styles.md).

# Natbib の引用スタイル

Natbib は対応する [文献スタイルを使用します](/latex/ja/to-1/04-bibtex-bibliography-styles.md#natbib-styles) 特定の引用コマンドが宣言されていない場合。いくつかの句読点パラメータを制御する追加コマンドがあります。以下の例を参照してください:

```latex
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}

%natbib パッケージを読み込み、文献スタイルと引用スタイルを設定します
\usepackage{natbib}
\bibliographystyle{abbrvnat}
\setcitestyle{authoryear,open={((},close={))}} %引用関連コマンド

\title{Natbib の例}

\author{Overleaf チーム}

\begin{document}

\maketitle

\section{第1節}
この文書は、次の2つの引用項目を含む例です: \textit{The \LaTeX\ Companion} の書籍 \cite[参照][第2章]{latexcompanion} と、アインシュタインの論文 \citep{einstein}。

%文献ファイル「sample.bib」を読み込みます
\bibliography{sample}

\end{document}
```

![CitationStylesEx1Overleaf.png](/files/4af9c0aa09833d9b0745d0abcb02f4d4f07d7790)

引用スタイルを設定するための特定のコマンドは次のとおりです:

```latex
\setcitestyle{authoryear, open={((},close={))}
```

カンマ区切りのパラメータにより、LaTeX は次を使用するよう指定されます *著者年方式* 引用モードを使い、開き記号と閉じ記号として二重丸括弧を使用します。このコマンドに渡せるさまざまなパラメータは次のとおりです:

* 引用モード: `著者年方式`, `numbers` または `上付き`.
* 括弧: `丸括弧` または `角括弧`。他の任意の開始文字と終了文字は手動で次のように設定できます: `open={char}` および `close={char}`.
* 引用区切り: `セミコロン`, `カンマ`.
* 著者と年の間の区切り: `aysep{char}`.
* 同一著者の年の間の区切り: `yysep={char}`.
* 後注の前のテキスト: `notesep={text}`.

引用モードに応じて、他にも追加の引用コマンドがあります。たとえば、上の例ではコマンド `\cite[参照][第2章]{latexcompanion}` 2つの追加パラメータを取ります。最初のオプション引数 *参照* は引用記号の前に表示され、2つ目のオプション引数 *第2章* は引用記号の後に表示されます。以下に、追加の引用コマンドを説明する表を示します:

| コマンド            | 説明                                       |
| --------------- | ---------------------------------------- |
| `\citet{}`      | 文中引用                                     |
| `\citep{}`      | 括弧付き引用                                   |
| `\citet*{}`     | 〜と同じ `\citet` ただし著者が複数いる場合は、全員の名前が表示されます |
| `\citep*{}`     | 〜と同じ `\citep` ただし著者が複数いる場合は、全員の名前が表示されます |
| `\citeauthor{}` | 著者名のみを表示します                              |
| `\citeyear{}`   | 出版年のみを表示します。                             |

この例の残りのコマンドの詳細については、次を参照してください [natbib を使った参考文献管理](/latex/ja/to-1/02-bibliography-management-with-natbib.md)

[Overleafで `natbib` パッケージの例を開く](https://www.overleaf.com/project/new/template/19422?id=65532643\&templateName=Natbib+citation+styles+example\&latexEngine=\&texImage=texlive-full%3A2020.1\&mainFile=)

## さらに読む

* [natbib を使った参考文献管理](/latex/ja/to-1/02-bibliography-management-with-natbib.md)
* [Natbib の文献スタイル](/latex/ja/to-1/05-natbib-bibliography-styles.md)
* [Natbib パッケージのドキュメント](http://mirrors.ibiblio.org/CTAN/macros/latex/contrib/natbib/natbib.pdf)
* [国際言語サポート](/latex/ja/yan-yu/03-international-language-support.md)
* [大規模プロジェクトでの管理](/latex/ja/wen-shu-gou-zao/07-management-in-a-large-project.md)
* [目次](/latex/ja/wen-shu-gou-zao/02-table-of-contents.md)


---

# 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/to-1/06-natbib-citation-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.
