summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015ay.cbx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-11-18 23:20:15 +0000
committerKarl Berry <karl@freefriends.org>2016-11-18 23:20:15 +0000
commitb1738761511777180f24fe861550ef9b06de3af8 (patch)
treef438514dbbfbe03111de5b6c80fae93bde582925 /Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015ay.cbx
parent721b1dbe9754ce2f222164010982be4e784f05f3 (diff)
biblatex-gb7714-2015 (18nov16)
git-svn-id: svn://tug.org/texlive/trunk@42531 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015ay.cbx')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015ay.cbx16
1 files changed, 15 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015ay.cbx b/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015ay.cbx
index 1efa222358f..f9824387ec9 100644
--- a/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015ay.cbx
+++ b/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015ay.cbx
@@ -7,11 +7,12 @@
%% 2016/05/20 v1.0
%% 2016/10/23 v1.0a
%% 2016/11/11 v1.0b
+%% 2016/11/14 v1.0c
%% E-mail: hzzmail@163.com
%% Released under the LaTeX Project Public License v1.3c or later
%% ---------------------------------------------------------------
%%
-\ProvidesFile{gb7714-2015ay.cbx}[2016/11/11 v1.0b biblatex citation style]
+\ProvidesFile{gb7714-2015ay.cbx}[2016/11/14 v1.0c biblatex citation style]
\RequireCitationStyle{authoryear}
%\RequireCitationStyle{numeric}
@@ -20,6 +21,11 @@
%autocite = superscript ,
%autopunct = true ,
%sorting = none ,
+ maxcitenames=1,
+ mincitenames=1,
+ uniquename=init,%因为使用了名字缩写选项,所以需要设置uniquename=init而不是full避免冲突
+ labeldate=true,
+ uniquelist=minyear,
}
%\DeclareCiteCommand{\cite}[\mkbibparens]{⟨precode⟩}{⟨loopcode⟩}{⟨sepcode⟩}{⟨postcode⟩}
@@ -52,3 +58,11 @@
\usebibmacro{cite}}
{\multicitedelim}
{\printtext{)}\textsuperscript{\usebibmacro{postpages}}}
+
+%增加一个命令yearpagescite用于当文中作者已经存在,需要页码和年份的情况。
+%参考来源,biblatex.DEF,其中\DeclareCiteCommand*{\citeyear}命令
+\DeclareCiteCommand{\yearpagescite}
+ {\printtext{(}\usebibmacro{prenote}}
+ {\printfield{year}\printfield{extrayear}}
+ {\multicitedelim}
+ {\printtext{)}\textsuperscript{\usebibmacro{postpages}}}