-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathreadme_authoryear.tex
66 lines (64 loc) · 2.11 KB
/
readme_authoryear.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
\documentclass{ctexart}
\usepackage{minted}
\usepackage[
backend = biber, style=gbt77142005_authoryear ,utf8,
giveninits = true, sortgiveninits = true, sorting=centy
]{biblatex}
\addbibresource{ref.bib}
\renewcommand{\bibfont}{\zihao{5}}
\title{biblatex-gbt77142005(authoryear)}
\author{沈周}
\begin{document}
\maketitle
\section{使用方法}
本模板是在caspervector基础上改写的,其使用方法与caspervector相同,可通过
\begin{minted}{bash}
texdoc caspervector
\end{minted}
查看其帮助文档。
调用方法如下:
\begin{minted}[breaklines,frame=single]{latex}
\usepackage[
backend = biber, style=gbt77142005_authoryear ,utf8,
giveninits = true, sortgiveninits = true, sorting=centy
]{biblatex}
\end{minted}
\subsection{特别说明}
对于作者是组织的情况,组织名是区分大小写的,所以添加了两个字段organization和
bookorganization,分别对应author和bookauthor。比如
\begin{minted}[breaklines,frame=single]{bibtex}
@online{6-2,
organization= {{Online Computer Library Center, Inc.}},
title = {History of OCLC},
type = {EB/OL},
url = {http://www.oclc.org/about/history/default.htm},
urldate = {2000-01-08},
language = {english},
}
\end{minted}
\section{引用方法}
\begin{itemize}
\item 同作者同年引用测试:
\begin{minted}[breaklines,frame=single]{latex}
\cite{2-5},\cite{2-5_2}
\end{minted}
结果:\cite{2-5},\cite{2-5_2}
\item 多作者引用代码:
\begin{minted}[breaklines,frame=single]{latex}
\cite{a5-3} \cite{a1-2}
\end{minted}
结果:\cite{a5-3} \cite{a1-2}
\item 同一作品多次引用(加页码)代码:
\begin{minted}[breaklines,frame=single]{latex}
\cite[][23]{a5-3}\cite[][32]{a5-3}
\end{minted}
结果:\cite[][23]{a5-3}\cite[][32]{a5-3}
\item 年份引用代码:
\begin{minted}[breaklines,frame=single]{latex}
\yearcite[][23]{2-5}\yearcite[][32]{a5-3}
\end{minted}
结果:\yearcite[][23]{2-5}\yearcite[][32]{a5-3}
\end{itemize}
\nocite{*}
\printbibliography[title={参考文献},heading=bibintoc]
\end{document}