summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015ay.cbx
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2024-03-28 03:01:34 +0000
committerNorbert Preining <norbert@preining.info>2024-03-28 03:01:34 +0000
commit79e9e48f9496fe82b7e76b2b318d24e9aab1ca8a (patch)
tree5c7e66ed056f7855cb4caee718c5406c947e3af8 /macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015ay.cbx
parent31fa8cd73bab8480d38dae3a89ca578f337d6bbd (diff)
CTAN sync 202403280301
Diffstat (limited to 'macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015ay.cbx')
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015ay.cbx12
1 files changed, 8 insertions, 4 deletions
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015ay.cbx b/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015ay.cbx
index 739528dc1b..8a1a03d1d2 100644
--- a/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015ay.cbx
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015ay.cbx
@@ -7,7 +7,7 @@
%% Released under the LaTeX Project Public License v1.3c or later
%% ---------------------------------------------------------------
%%
-\ProvidesFile{gb7714-2015.cbx}[a biblatex citation style for GB/T 7714-2015]
+\ProvidesFile{gb7714-2015ay.cbx}[a biblatex citation style for GB/T 7714-2015]
%
% 加载标准样式
@@ -322,16 +322,20 @@ test {\iftoggle{iftlseven}}%3.7=biblatex
\newrobustcmd*{\upcite}{%
\cite}
+\newrobustcmd{\mkbiboutparens}[1]{%
+ \unspace\allowhyphens%
+\begingroup\mkbibleftborder#1\mkbibrightborder\endgroup}%
+
%
% 重定义parencite命令
%
-\DeclareCiteCommand{\parencite}%[\mkbibparens]
+\DeclareCiteCommand{\parencite}[\mkbiboutparens]%
{\usebibmacro{cite:init}%
- \mkbibleftborder\usebibmacro{prenote}}%
+ \usebibmacro{prenote}}%
{\usebibmacro{citeindex}%
\usebibmacro{cite}}
{}
- {\usebibmacro{postnote}\mkbibrightborder}
+ {\usebibmacro{postnote}}
%
% 重定义footcite需要使用的命令