diff options
author | Karl Berry <karl@freefriends.org> | 2022-03-14 20:14:37 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-03-14 20:14:37 +0000 |
commit | 766cbef9e0639e7e57411695c2ac8c56d650944b (patch) | |
tree | 21decc8e246297697be4941a4a6b3223337d48f9 /Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-NWAFU.cbx | |
parent | 4c542f5a3c8da240c54af507ddffa81241d476e4 (diff) |
biblatex-gb7714-2015 (14mar22)
git-svn-id: svn://tug.org/texlive/trunk@62704 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-NWAFU.cbx')
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-NWAFU.cbx | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-NWAFU.cbx b/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-NWAFU.cbx new file mode 100644 index 00000000000..a5f432ec918 --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-NWAFU.cbx @@ -0,0 +1,52 @@ +%% +%% --------------------------------------------------------------- +%% NWAFUthesis.cbx --- A bibliography style for NWAFUthesis template +%% --------------------------------------------------------------- +%% +\ProvidesFile{gb7714-NWAFU.cbx}[a biblatex citation style for NWAFUthesis] + +% +% 加载样式 +% +\RequireCitationStyle{gb7714-2015ay} %numeric + +\ExecuteBibliographyOptions{ + maxcitenames=2,% 引用标注中最多显示2个作者 + mincitenames=1,% 3个及3个以上的作者截断为1个作者 +} + +\DeclareDelimFormat[textcite,cite,parencite,citet,citep]{nameyeardelim}{\addspace} + + +%之所以不用\DeclareDelimFormat{andothersdelim}{}这样的设置是因为gb7714-2015中为兼容老版本的biblatex做的处理就是这样的 +%所以用相同的方式 +\AtEveryCitekey{% +\iffieldequalstr{userf}{chinese}{\renewcommand*{\andothersdelim}{}}%\addthinspace + {\renewcommand*{\andothersdelim}{\addspace}}% +} + +%标注压缩时,直接用date+extradate代替extradate实现2006a,2006b的效果 +\newbibmacro*{cite:extradate}{% + \iffieldundef{extradate} + {} + {\printtext[bibhyperref]{\printlabeldateextra}}}%\printfield{extradate} + + +\renewbibmacro*{date+extradate}{% + \iffieldundef{labelyear} + {}% + {\ifboolexpr{% + test {\ifentrytype{patent}} + or + (test {\ifentrytype{newspaper}} )% + }% + {\printtext{\blx@isodate{}{}} + %\printtext{\blx@edtfdate{}{}}% + }% + {\printtext{% + \iflabeldateisdate + %\iffieldsequal{year}{labelyear}%for biblatex<=3.7 + {\printdateextra} + {\printlabeldateextra}}}% + }% +} |