Skip to content

Commit

Permalink
fix(latex/latex-biblatex.md): biblatexの使い方を整理した
Browse files Browse the repository at this point in the history
  • Loading branch information
shotakaha committed Jan 26, 2025
1 parent efa35a0 commit 3f2a83e
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions docs/source/latex/latex-biblatex.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,32 @@
# 参考文献したい(`biblatex`

```latex
% プリアンブル
\usepackage[style=authoryear]{biblatex}
\addbibresource{文献リスト.bib}
% 文献リストを読み込む
\addbibresource{文献リスト1.bib}
\addbibresource{文献リスト2.bib}
\begin{document}
本文中で文献を参照する\cite{参照キー}。
% 本文の末尾
\printbibliography
\printbibliography[title={参考文献}]
\end{document}
```

`biblatex`は参考文献を出力するパッケージです。
`Biber`と組み合わせて使うことが推奨されています。

`\addbibresource`コマンドで、文献リストのファイルを読み込みます。
文献リストは複数指定できます。

`\cite`コマンドで、本文中で文献を参照し、`\printbibliography`で出力します。
`title`オプションで、見出しを変更できます。
デフォルトは「Bibliography」になっています。

:::{note}

`Biber`は、従来のBibTeXの代替として設計されたツールです。
Expand Down

0 comments on commit 3f2a83e

Please sign in to comment.