LaTeX學習-day12
教程鏈接:B站
使用環境:
- 系統:Windows 10
- TeX 系統:TeX Live (官網下載)(清華源)
- IDE:Tex Studio
LaTeX中的參考文獻BibTex
1. 代碼:
1.1 tex源碼:
%導言區
\documentclass{ctexart} %ctexbook ctexrep
%\usepackage{ctex}
% biblatex/biber
%新的Tex參考文獻排版引擎
%樣式文件(參考文獻樣式文件---bbx文件,引用樣式文件--cbx)使用latex編寫
%一般可以下載會議提供的或標準的.bbx文件和.cbx文件,放在.tex同目錄下 進行引用
%支持根據本地化排版,如:
% biber -l zh_pinyin texfile 按拼音排序
% biber -l zh_stroke texfile 按筆畫排序
\usepackage[style=numeric,backend=biber]{biblatex} %引入biblatex宏包 同時指定樣式numeric 後端排版引擎biber ,utf8,sorting = centy
\addbibresource{test.bib} %導入.bib文件 不可省略後綴
%正文區
\begin{document}
%一次管理,多次引用
無格式化引用\cite{mittelbach2004}
帶方括號的引用\parencite{mittelbach2004}
上標引用\supercite{mittelbach2004}
%在正文中插入參考文獻
%\nocite{*} 排版所有文獻包括正文未引用.bib文件中存在的;也可以只排版正文中引用的文獻 傳入相應的標誌。
\nocite{*}
%默認只排版 正文中引用的文獻
%\printbibliography
\printbibliography[title = {參考文獻}] %把標題改爲中文---參考文獻
\end{document}
1.2 bib源碼:
test.bib:
@book{mittelbach2004,
title = {the {{\LaTeX}} Companion},
publisher = {Addison-Wesley},
year = {2004},
author = {Frank Mittelbach and Michel Goossens},
series = {Tools and Techniques for Computer Typesetting},
address = {Boston},
edition = {Second},
}
@inproceedings{Lamport1994LaTeX,
title={LaTeX:A Document Preparation System},
author={Lamport, Leslie and AddisonWesley (E)},
year={1994},
}
@article{Bailey1990The,
title={The Public-Access Computer Systems Forum: A Computer Conference on BITNET},
author={Bailey, Charles W., Jr},
journal={Library Software Review},
volume={9},
number={2},
pages={71-74},
year={1990},
}