> 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/sononotopikku/05-bibliography-management-in-latex.md).

# LaTeX における参考文献管理

## はじめに

文献管理パッケージについては、LaTeX には主に 3 つの選択肢があります: `bibtex`, `natbib` や `biblatex`.

この記事では、次の使い方を説明します。 `biblatex` パッケージを使って、LaTeX 文書内の文献一覧を管理し、整形します。 `biblatex` これは文献情報を処理するための現代的な選択肢で、他の 2 つよりも使いやすく柔軟なインターフェースと、より優れた言語ローカライズを提供します。

の最小動作例を以下に示します: `biblatex` パッケージ

```latex
\documentclass[letterpaper,10pt]{article}
\usepackage{biblatex} % biblatex パッケージを読み込む
\addbibresource{sample.bib} % 文献ファイルを読み込む

\begin{document}
引用してみましょう! Einstein の論文 \cite{einstein} と Dirac の
書籍 \cite{dirac} は物理関連の項目です。

\printbibliography % 文献一覧を出力

\end{document}
```

![BiblatexEx1OLV2.png](/files/4c4fd7bf9a85616c10e42c9c8e5baf81e17293c3)

この例には、文献に関するコマンドが 4 つあります:

**\usepackage{biblatex}**

biblatex パッケージを読み込みます。

**\addbibresource{sample.bib}**

文献データファイル sample.bib を読み込みます。このファイルには、参照している各書籍、論文などの情報が含まれています。詳しくは文献ファイルの節を参照してください。

**\cite{einstein}**

このコマンドは文書内に参照を挿入します。この場合は \[1] で、文献一覧の要素に対応します。einstein は sample.bib のエントリに対応するキーワードです。

**\printbibliography**

引用した参照の一覧を出力します。既定のタイトルは、article 文書クラスでは「参考文献」、書籍とレポートでは「文献一覧」です。

Overleaf には、文献一覧を管理するためのあらかじめ定義されたスタイルを備えたテンプレートがいくつかあります。 [このリンク](https://www.overleaf.com/gallery/tagged/bibliography). [Overleaf で biblatex パッケージの例を開く](https://www.overleaf.com/project/new/template/19714?id=66708264\&templateName=Biber+bibliography+example\&latexEngine=\&texImage=texlive-full%3A2020.1\&mainFile=)

## 基本的な使い方

次の例のように、パッケージの読み込みコマンドにはいくつかのパラメータを渡せます:

```latex
\documentclass{article}

\usepackage[
backend=biber,
style=alphabetic,
sorting=ynt
]{biblatex}
\addbibresource{sample.bib}

\title{文献管理: \texttt{biblatex} パッケージ}
\author{Overleaf}
\date{ }

\begin{document}

\maketitle

\texttt{biblatex} を使うと、文献一覧を
引用の種類に応じてセクションに分けて表示できます。引用してみましょう! Einstein の
論文 \cite{einstein} と Dirac の書籍 \cite{dirac} は
物理関連の項目です。次に、\textit{The \LaTeX\ Companion} の書籍
 \cite{latexcompanion}、Donald Knuth の Web サイト \cite{knuthwebsite},
\textit{The Comprehensive Tex Archive Network} (CTAN)
\cite{ctan} は \LaTeX 関連の項目です。しかし、他の Donald Knuth の項目は、
\cite{knuth-fa,knuth-acp} はプログラミングに関するものです。

\medskip

\printbibliography

\end{document}
```

![BiblatexExample2OLV2.png](/files/ed33549888f30be6714e4834ef1b656dca06eca2)

括弧内にコンマ区切りで追加のオプションを指定して、読み込み時に追加されます `biblatex`:

**backend=biber**

バックエンドを文献一覧の並べ替えに設定します。biber が既定で推奨されるバックエンドで、いくつかのコマンドに対して完全なローカライズを提供し、biber のスタイルは標準の LaTeX マクロを使うため変更しやすいからです。もう一つの対応バックエンドは bibtex で、より伝統的なプログラムです。バックエンドに設定すると、bibtex は文献一覧の並べ替えにのみ使われるため、ここでは bibtex スタイルは使用できません。

**style=alphabetic**

文献スタイルと引用スタイルを定義します。この場合は alphabetic です。スタイルによっては、さらに多くの引用コマンドが利用できることがあります。詳しくは biblatex の文献スタイルと引用スタイルを参照してください。

**sorting=ynt**

文献ソースを並べ替える基準を決定します。この場合は年、名前、タイトルの順です。並べ替えオプションの一覧はリファレンスガイドを参照してください。

残りのコマンドは [導入](#introduction).

[より完全な `biblatex` Overleaf 上の例を開く](https://www.overleaf.com/project/new/template/19715?id=66713383\&templateName=A+biblatex+example\&latexEngine=\&texImage=texlive-full%3A2020.1\&mainFile=)

## 文献ファイル

文献ファイルは標準の bibtex 構文でなければなりません

```latex
@article{einstein,
    author = "Albert Einstein",
    title = "{Zur Elektrodynamik bewegter K{\"o}rper}. ({German})
    [{On} the electrodynamics of moving bodies]",
    journal = "Annalen der Physik",
    volume = "322",
    number = "10",
    pages = "891--921",
    year = "1905",
    DOI = "http://dx.doi.org/10.1002/andp.19053221004",
    keywords = "physics"
}

@book{dirac,
    title = {The Principles of Quantum Mechanics},
    author = {Paul Adrien Maurice Dirac},
    isbn = {9780198520115},
    series = {International series of monographs on physics},
    year = {1981},
    publisher = {Clarendon Press},
    keywords = {physics}
}

@online{knuthwebsite,
    author = "Donald Knuth",
    title = "Knuth: Computers and Typesetting",
    url  = "http://www-cs-faculty.stanford.edu/~uno/abcde.html",
    addendum = "(accessed: 01.09.2016)",
    keywords = "latex,knuth"
}

@inbook{knuth-fa,
    author = "Donald E. Knuth",
    title = "Fundamental Algorithms",
    publisher = "Addison-Wesley",
    year = "1973",
    chapter = "1.2",
    keywords  = "knuth,programming"
}
...
```

このファイルには特別な形式でレコードが記述されています。たとえば、最初の文献参照は次のように定義されます:

**@article{...}**

これはレコード項目の最初の行で、@article はここに保存されている情報が論文に関するものであることを BibTeX に伝えます。この項目の情報は波括弧内に囲まれています。例で示したエントリタイプ（article、book、online、inbook）以外にも多くあります。詳しくはリファレンスガイドを参照してください。

**einstein**

ラベル einstein はこの項目に割り当てられており、文書内でこの論文を参照するために使える一意の識別子です。

**author = "Albert Einstein",**

これは文献エントリの最初のフィールドで、この論文の著者が Albert Einstein であることを示しています。title、pages、year、URL など、同じ key = value 構文を使ってコンマ区切りの複数のフィールドを追加できます。可能なフィールドの一覧はリファレンスガイドを参照してください。

このファイルの情報は後で LaTeX 文書内で出力・参照できます。前の節で示したように、コマンド `\addbibresource{sample.bib}`。.bib ファイル内のすべての情報が表示されるわけではなく、文書で設定された文献スタイルに依存します。

[より完全な `biblatex` Overleaf 上の例を開く](https://www.overleaf.com/project/new/template/19715?id=66713383\&templateName=A+biblatex+example\&latexEngine=\&texImage=texlive-full%3A2020.1\&mainFile=)

## 文献一覧のカスタマイズ

Biblatex を使うと、少ない手間で文献セクションを高度にカスタマイズできます。いくつかの [引用スタイル](/latex/ja/to-1/08-biblatex-citation-styles.md) や [文献スタイル](/latex/ja/to-1/07-biblatex-bibliography-styles.md) が利用可能で、新しいものを作成することもできます。別のカスタマイズ方法として、文献セクションの既定タイトルを変更することもできます。

```latex
\documentclass{article}

\usepackage[
backend=biber,
style=alphabetic,
sorting=ynt
]{biblatex}
\addbibresource{sample.bib}

\title{文献管理: \texttt{biblatex} パッケージ}
\author{Overleaf}
\date{2021年5月}

\begin{document}

\maketitle

\texttt{biblatex} を使うと、セクションに分割された文献一覧を表示できます、
引用の種類に応じて。引用してみましょう! Einstein の論文 \cite{einstein}
と Dirac の書籍 \cite{dirac} は物理関連の項目です。次に、\textit{The \LaTeX\ Companion}
書籍 \cite{latexcompanion}、Donald Knuth の Web サイト \cite{knuthwebsite},
\textit{The Comprehensive Tex Archive Network} (CTAN) \cite{ctan} は
\LaTeX 関連の項目です。しかし、他の Donald Knuth の項目は、
\cite{knuth-fa,knuth-acp} はプログラミングに関するものです。

\medskip

\printbibliography[title={文献一覧全体}]
```

![BiblatexEx3OLV2.png](/files/dbe02fa398e3517a62b393af8ec0a21a997f647a)

追加のパラメータ `title={文献一覧全体}` をコマンドに括弧内で渡す `\printbibliography` ものがタイトルを変更します。

文献一覧は、異なるフィルターに基づいてセクションに細分することもできます。たとえば、同じ著者、同じジャーナル、または似たタイトルの参照だけを出力できます。以下に例を示します。

```latex
\printbibliography[type=article,title={論文のみ}]
\printbibliography[type=book,title={書籍のみ}]

\printbibliography[keyword={physics},title={物理関連のみ}]
\printbibliography[keyword={latex},title={\LaTeX 関連のみ}]
```

![BiblatexEx4OLV2.png](/files/4cfef914d5c57facdbcc8921df0f7307101f0296)

ここでは、文献一覧は 4 つのセクションに分かれています。ここで使われているコマンドの構文は以下で説明します:

**\printbibliography\[type=article,title={論文のみ}]**

type が "article" のエントリだけを出力し、このセクションのタイトルを「論文のみ」に設定します。同じ構文は他のどのエントリタイプにも使えます。

**\printbibliography\[keyword={physics},title={物理関連のみ}]**

いずれかのフィールドに "physics" という単語を含む文献エントリをフィルタします。該当セクションのタイトルを「物理関連のみ」に設定します。

[より完全な `biblatex` Overleaf 上の例を開く](https://www.overleaf.com/project/new/template/19715?id=66713383\&templateName=A+biblatex+example\&latexEngine=\&texImage=texlive-full%3A2020.1\&mainFile=)

## 文献を目次に追加する

文献を目次に表示させるには、追加のオプションを次に渡す必要があります `\printbibliography`

```latex
\printbibliography[
heading=bibintoc,
title={文献一覧全体}
]

\printbibliography[heading=subbibintoc,type=article,title={論文のみ}]
```

![BiblatexEx5OLV2.png](/files/cdf159856556d49edd0c8d2079ad38570d532e51)

目次に節と小節が追加されます:

* 最初の場合は、 `heading=bibintoc` を追加すると、可能であればタイトルが番号なしの章として、そうでなければ番号なしの節として目次に追加されます。
* 2 つ目の場合は `heading=subbibintoc` で、タイトルを目次の第 2 階層の項目として追加します。この例では「文献一覧全体」にネストされた小節として表示されます。

[より完全な `biblatex` Overleaf 上の例を開く](https://www.overleaf.com/project/new/template/19715?id=66713383\&templateName=A+biblatex+example\&latexEngine=\&texImage=texlive-full%3A2020.1\&mainFile=)

## リファレンスガイド

**対応しているエントリタイプ**

|               |                |              |
| ------------- | -------------- | ------------ |
| article       | book           | mvbook       |
| inbook        | bookinbook     | suppbook     |
| booklet       | collection     | mvcollection |
| incollection  | suppcollection | manual       |
| misc          | オンライン          | patent       |
| periodical    | suppperiodical | proceedings  |
| mvproceedings | inproceedings  | リファレンス       |
| mvreference   | inreference    | レポート         |
| set           | thesis         | unpublished  |
| custom        | conference     | electronic   |
| masterthesis  | phdthesis      | techreport   |

**対応しているフィールド** （印字される情報は文献スタイルに依存します）

|               |              |               |                 |
| ------------- | ------------ | ------------- | --------------- |
| abstract      | addendum     | afterword     | annotate        |
| 著者            | authortype   | bookauthor    | bookpagination  |
| booksubtitle  | booktitle    | chapter       | commentator     |
| date          | doi          | edition       | editor          |
| editortype    | eid          | entrysubtype  | eprint          |
| eprinttype    | eprintclass  | eventdate     | eventtitle      |
| ファイル          | foreword     | holder        | howpublished    |
| indextitle    | institution  | 導入            | isan            |
| isbn          | ismn         | isrn          | issue           |
| issuesubtitle | issuetitle   | iswc          | journalsubtitle |
| journaltitle  | label        | 言語            | ライブラリ           |
| 位置            | mainsubtitle | maintitle     | month           |
| note          | number       | organization  | origdate        |
| origlanguage  | origlocation | origpublisher | origtitle       |
| pages         | pagetotal    | pagination    | part            |
| publisher     | pubstate     | reprinttitle  | シリーズ            |
| shortauthor   | shortedition | shorthand     | shorthandintro  |
| shortjournal  | shortseries  | shorttitle    | subtitle        |
| タイトル          | translator   | type          | url             |
| venue         | version      | volume        | 年               |

**文献一覧の並べ替えオプション**

| オプションからプレミアムアカウントで利用可能です | 説明                              |
| ------------------------ | ------------------------------- |
| `nty`                    | 名前、タイトル、年の順に並べ替え                |
| `nyt`                    | 名前、年、タイトルの順に並べ替え                |
| `nyvt`                   | 名前、年、巻、タイトルの順に並べ替え              |
| `anyt`                   | アルファベット順のラベル、名前、年、タイトルの順に並べ替え   |
| `anyvt`                  | アルファベット順のラベル、名前、年、巻、タイトルの順に並べ替え |
| `ydnt`                   | 年の降順、名前、タイトルの順に並べ替え             |
| `none`                   | エントリは引用順で処理されます                 |

これらのエントリとオプションの詳細については、パッケージドキュメントを参照してください。

## さらに読む

詳細については

* [Biblatex の文献スタイル](/latex/ja/to-1/07-biblatex-bibliography-styles.md)
* [Biblatex の引用スタイル](/latex/ja/to-1/08-biblatex-citation-styles.md)
* [natbib を使った参考文献管理](/latex/ja/to-1/02-bibliography-management-with-natbib.md)
* [bibtex を使った文献管理](/latex/ja/to-1/01-bibliography-management-with-bibtex.md)
* [OverleafでBibTeXを使って参考文献一覧を作成・管理する](https://www.overleaf.com/blog/532)
* [Biblatex パッケージのドキュメント](http://linorg.usp.br/CTAN/macros/latex/contrib/biblatex/doc/biblatex.pdf)
* [国際言語サポート](/latex/ja/yan-yu/03-international-language-support.md)
* [目次](/latex/ja/wen-shu-gou-zao/02-table-of-contents.md)
* [大規模プロジェクトでの管理](/latex/ja/wen-shu-gou-zao/07-management-in-a-large-project.md)
* [複数ファイルの LaTeX プロジェクト](/latex/ja/wen-shu-gou-zao/08-multi-file-latex-projects.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/sononotopikku/05-bibliography-management-in-latex.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.
