summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015ms.cbx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-08-29 22:50:47 +0000
committerKarl Berry <karl@freefriends.org>2019-08-29 22:50:47 +0000
commit6228e603ee4b60d2a8c779fc2fadce176160cff3 (patch)
tree313ec8fad2e6c62f047e5566b6ca3dbf8f9e892b /Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015ms.cbx
parentef6fb210fcab69030fe59706b2ceaa84476b8f40 (diff)
biblatex-gb7714-2015 (29aug19)
git-svn-id: svn://tug.org/texlive/trunk@51985 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015ms.cbx')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015ms.cbx56
1 files changed, 40 insertions, 16 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015ms.cbx b/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015ms.cbx
index 361f9d73a31..8c19244e17b 100644
--- a/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015ms.cbx
+++ b/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015ms.cbx
@@ -7,8 +7,8 @@
%% Released under the LaTeX Project Public License v1.3c or later
%% ---------------------------------------------------------------
%%
-\def\versionofgbtstyle{2019/03/28 v1.0r}
-\ProvidesFile{gb7714-2015.cbx}[\versionofgbtstyle biblatex citation style]
+\def\versionofgbtstyle{2019/08/28 v1.0s}
+\ProvidesFile{gb7714-2015ms.cbx}[\versionofgbtstyle biblatex citation style]
%
% 加载标准样式
@@ -66,20 +66,10 @@
%
% 定义upcite命令
% 20180604,v1.0l,hzz
+% 20190409,v1.0r,hzz
% 方法:对supercite增加[]
-\DeclareCiteCommand{\upcite}[\mkbibsuperbracket]
- {\usebibmacro{cite:init}
- \let\multicitedelim=\supercitedelim
- \iffieldundef{prenote}
- {}
- {\BibliographyWarning{Ignoring prenote argument}}%
- \iffieldundef{postnote}
- {}
- {\BibliographyWarning{Ignoring postnote argument}}}
- {\usebibmacro{citeindex}%
- \usebibmacro{cite:comp}}
- {}
- {\usebibmacro{cite:dump}}
+\newrobustcmd*{\upcite}{%
+ \cite}
%
% 重定义parencite命令,以满足标签带页码的国标要求
@@ -163,4 +153,38 @@
\printnames{labelname}\mkbibsuperscript{\mkbibbrackets{\usebibmacro{citeindex}%
\usebibmacro{cite}}}}
{\multicitedelim}
- {\usebibmacro{postnote}}
+ {\mkbibsuperscript{\printfield{postnote}}}
+
+
+%
+% 增加如下多个命令
+% 20190409,v1.0r,hzz
+% 方法:利用newcommand或newrobustcmd命令进行定义
+% 注意\citet和\citep命令之所以不用newrobustcmd,是为避免加载natbib模块后产生冲突
+\DeclareCiteCommand{\citet}%
+ {\usebibmacro{prenote}}
+ {\iffieldequalstr{userf}{cn}{\renewcommand*{\andothersdelim}{\addthinspace}}%\addthinspace
+ {\renewcommand*{\andothersdelim}{\addspace}}%
+ \printnames{labelname}\mkbibsuperscript{\mkbibbrackets{\usebibmacro{citeindex}%
+ \usebibmacro{cite}}}}
+ {\multicitedelim}
+ {\mkbibsuperscript{\printfield{postnote}}}
+
+
+\DeclareCiteCommand{\citep}[\mkbibsuperscript]%利用mkbibsuperbracket添加方括号
+ {[\usebibmacro{cite:init}%
+ \usebibmacro{prenote}}
+ {\usebibmacro{citeindex}%
+ \usebibmacro{cite:comp}}
+ {}
+ {\usebibmacro{cite:dump}]%
+ \printfield{postnote}}
+
+\newrobustcmd*{\citetns}%
+ {\textcite}
+
+\newrobustcmd*{\citepns}%
+ {\parencite}
+
+\newrobustcmd*{\inlinecite}%
+ {\parencite}