mcpField
B
biblatex

biblatex

github.com/igbuendドキュメント940 回インストール33 週間前に更新
リポジトリ

biblatex について

biblatexは、biberバックエンドと組み合わせて使うLaTeXの文献・引用システムです。このガイドでは、学術文書や技術文書の著者向けに、スタイル設定、文献管理、参考文献一覧の作成方法を説明します。

主な機能

  1. 01引用と参考文献のスタイル設定
  2. 02複数のエントリータイプとフィールドに対応
  3. 03引用コマンドとオプションを紹介
  4. 04条件別または複数の文献一覧を作成
  5. 05biberのコンパイル手順と一般的なエラーを解説

活用シーン

  1. 01LaTeX論文の参考文献管理
  2. 02指定したスタイルで引用を整形
  3. 03タイプやキーワードごとに文献一覧を分割
  4. 04文献一覧のコンパイルエラーを調査

インストール

コマンドをコピーしてターミナルで実行します。

$npx skills add https://github.com/igbuend/grimbard --skill biblatex

インストール後、Claude Code で/biblatexを入力して読み込まれたか確認します。

詳細

biblatex + biber — 最新の参考文献管理

CTAN: https://ctan.org/pkg/biblatex
マニュアル: texdoc biblatex

セットアップ

\usepackage[
  backend=biber,        % modern backend (not bibtex)
  style=authoryear,     % citation + bibliography style
  sorting=nyt,          % name-year-title
  maxbibnames=99,       % show all authors in bibliography
  maxcitenames=2,       % truncate in citations
]{biblatex}

\addbibresource{references.bib}   % .bib file (include extension!)

% At end of document:
\printbibliography

コンパイルのワークフロー

pdflatex  main.tex    # 1. Generate .bcf file
biber     main        # 2. Process bibliography (no extension!)
pdflatex  main.tex    # 3. Resolve references
pdflatex  main.tex    # 4. Final pass (page numbers, back-refs)

または latexmk を使う場合:latexmk -pdf main.tex(すべて自動的に処理されます)。

.bib ファイルの形式

@article{einstein1905,
  author    = {Einstein, Albert},
  title     = {On the Electrodynamics of Moving Bodies},
  journal   = {Annalen der Physik},
  year      = {1905},
  volume    = {322},
  number    = {10},
  pages     = {891--921},
  doi       = {10.1002/andp.19053221004},
}

@book{knuth1984,
  author    = {Knuth, Donald E.},
  title     = {The {\TeX}book},
  publisher = {Addison-Wesley},
  year      = {1984},
  isbn      = {0-201-13447-0},
}

@inproceedings{smith2023,
  author    = {Smith, John and Doe, Jane},
  title     = {Deep Learning for Everything},
  booktitle = {Proceedings of ICML},
  year      = {2023},
  pages     = {100--110},
  doi       = {10.1234/icml.2023.100},
}

@online{wiki2024,
  author    = {{Wikipedia contributors}},
  title     = {LaTeX},
  url       = {https://en.wikipedia.org/wiki/LaTeX},
  urldate   = {2024-01-15},
  year      = {2024},
}

@thesis{jones2020,
  author    = {Jones, Alice},
  title     = {Quantum Computing Applications},
  type      = {phdthesis},
  institution = {MIT},
  year      = {2020},
}

@manual{pgfmanual,
  author    = {Tantau, Till},
  title     = {The TikZ and PGF Packages},
  year      = {2023},
  url       = {https://ctan.org/pkg/pgf},
}
一般的なエントリータイプ
タイプ用途
@article学術誌の記事
@book書籍
@inproceedings学会論文
@incollection編著書の章
@thesis博士論文/修士論文(type フィールドを使用)
@onlineウェブサイト、ウェブリソース
@manual技術文書
@techreport技術レポート
@miscその他
@unpublished未出版の原稿
@patent特許
@softwareソフトウェアパッケージ
一般的なフィールド
フィールド説明
author著者 — {Last, First and Last, First}
titleタイトル — 大文字表記を保つには {NASA} を使用
year/date出版年または完全な日付(2023-06-15)
journal学術誌名
booktitle学会/論文集のタイトル
publisher出版社
volume/number巻号
pagesページ範囲(10--20)
doiデジタルオブジェクト識別子
urlウェブ URL
urldateオンライン資料へのアクセス日
isbn/issn識別子
editor編集者
edition版({2nd})
note追加の注記
abstract要旨(デフォルトでは印刷されません)
keywords絞り込み用のキーワード
langid言語(english、german) — ハイフネーション用
著者名の形式
author = {Last, First},                    % single
author = {Last, First and Last, First},    % multiple
author = {Last, Jr., First},               % suffix
author = {{World Health Organization}},    % corporate (double braces)
author = {da Silva, João},                 % name particles

引用コマンド

コマンド出力(著者年方式)出力(数値方式)
\cite{key}Einstein 1905[1]
\parencite{key}(Einstein 1905)[1]
\textcite{key}Einstein (1905)Einstein [1]
\autocite{key}スタイルに依存スタイルに依存
\fullcite{key}参考文献項目全体を本文中に表示—
\footcite{key}脚注での引用—
\citeauthor{key}EinsteinEinstein
\citeyear{key}19051905
\citetitle{key}On the Electro...—
オプションを指定する場合
\parencite[see][p.~42]{einstein1905}
% Output: (see Einstein 1905, p. 42)

\parencite[p.~42]{einstein1905}
% Output: (Einstein 1905, p. 42)

% Multiple citations
\parencite{einstein1905, knuth1984}
% Output: (Einstein 1905; Knuth 1984)

参考文献スタイル

スタイル引用参考文献用途
authoryearEinstein (1905)著者名順人文科学、社会科学
numeric[1]引用順に番号付け自然科学、工学
alphabetic[Ein05]アルファベット順のラベル数学、コンピューターサイエンス
authortitleEinstein, "On the..."著者名とタイトル人文科学
verbose脚注に完全な引用詳細法律、歴史
ieee[1]IEEE 形式工学(biblatex-ieee が必要)
apa(Einstein, 1905)APA 第7版心理学(biblatex-apa が必要)
chicago-authordate(Einstein 1905)Chicago 形式人文科学(biblatex-chicago が必要)
nature¹Nature 形式自然科学(biblatex-nature)
% For IEEE:
\usepackage[style=ieee, backend=biber]{biblatex}

% For APA:
\usepackage[style=apa, backend=biber]{biblatex}
% Also needs: \DeclareLanguageMapping{english}{english-apa}

並べ替えオプション

値並べ替え順
nty名前、タイトル、年(authoryear のデフォルト)
nyt名前、年、タイトル
none引用順(numeric 用)
ynt年、名前、タイトル
anytアルファベット順のラベル、名前、年、タイトル

参考文献の出力

% Simple
\printbibliography

% With title
\printbibliography[title={References}]

% As section (not chapter)
\printbibliography[heading=subbibliography]

% Filtered
\printbibliography[type=article, title={Journal Articles}]
\printbibliography[keyword=primary, title={Primary Sources}]
\printbibliography[notkeyword=primary, title={Secondary Sources}]
複数の参考文献リスト
% By type
\printbibliography[type=book, heading=subbibliography, title={Books}]
\printbibliography[type=article, heading=subbibliography, title={Articles}]

% By keyword
% In .bib: keywords = {primary}
\printbibliography[keyword=primary, title={Primary Sources}]
\printbibliography[notkeyword=primary, title={Other Sources}]

% Per chapter (refsection)
\begin{refsection}
\chapter{First Chapter}
Text \cite{something}.
\printbibliography[heading=subbibliography]
\end{refsection}

便利なオプション

\usepackage[
  backend=biber,
  style=authoryear,
  sorting=nyt,
  maxbibnames=99,      % all authors in bibliography
  maxcitenames=2,      % "Smith et al." after 2 authors
  mincitenames=1,      % show at least 1 before "et al."
  uniquelist=false,    % don't disambiguate with more names
  uniquename=false,    % don't disambiguate with initials
  dashed=false,        % repeat author name (vs dash for same author)
  doi=true,            % print DOIs
  isbn=false,          % hide ISBNs
  url=false,           % hide URLs (except @online)
  eprint=false,        % hide eprint info
  date=year,           % show only year
]{biblatex}

比較:biblatex と natbib/BibTeX

機能biblatex + bibernatbib + BibTeX
Unicode✅ 完全対応❌ 制限あり
スタイル柔軟(LaTeX マクロ).bst ファイル(編集が困難)
エントリータイプより多い(@online、@software)より少ない
フィルタリングkeyword、type フィルター手動
複数の参考文献リスト標準搭載multibib などが必要
詳細な引用\textcite、\parencite など\citet、\citep
日付の処理完全な日付、範囲年のみ
名前の処理高度基本的
コンパイルpdflatex → biber → pdflatex²pdflatex → bibtex → pdflatex²
学術誌の要件BibTeX が必要な場合あり✅ 従来型

推奨: 新しい文書では biblatex を使用してください。学術誌のテンプレートで必要な場合に限り、natbib を使用してください。

よくある落とし穴

問題原因解決方法
"I found no \citation commands"biber が実行されていない最初の pdflatex の後に biber を実行してください
"I found no \bibstyle command"bibtex と biblatex の併用bibtex ではなく biber を使用してください
引用が [key] と表示されるbiber が実行されていない/エラーbiber のログを確認し、再実行してください
.bib ファイルが見つからない\addbibresource に拡張子がない.bib 拡張子を含めてください
.bib 内の Unicode でエラーになるBibTeX バックエンドを使用しているbackend=biber を使用してください
著者名の "et al." が正しくないmaxcitenames の値が小さすぎるmaxcitenames を調整してください
スタイルが見つからないパッケージが不足しているbiblatex-ieee、biblatex-apa などをインストールしてください
Refsection が空になる引用が refsection の外にある各 refsection は独立しています
名前の並べ替えが正しくない粒子(van、de)\DeclareNameAlias を使用するか、useprefix を確認してください
"Runaway argument".bib 内のカンマが不足している.bib の構文を確認してください(フィールド間にカンマが必要です)

コメント