summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015.cbx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-10-22 21:45:55 +0000
committerKarl Berry <karl@freefriends.org>2016-10-22 21:45:55 +0000
commit927ae43703393d70deb572550c8cbc80372df2d6 (patch)
tree8075230c9d0fdc72cd50fc062816d6df3d5d7208 /Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015.cbx
parent95cd6de0e94471021043c7ca56406ea14e866aa4 (diff)
biblatex-gb7714-2015 (22oct16)
git-svn-id: svn://tug.org/texlive/trunk@42325 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015.cbx')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015.cbx48
1 files changed, 48 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015.cbx b/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015.cbx
new file mode 100644
index 00000000000..3253e09c88f
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015.cbx
@@ -0,0 +1,48 @@
+\ProvidesFile{gb7714-2015.cbx}[2016/05/20 v1.0 biblatex citation style]
+
+\RequireCitationStyle{numeric-comp}
+%\RequireCitationStyle{numeric}
+
+\ExecuteBibliographyOptions{
+ autocite = superscript ,
+ autopunct = true ,
+ sorting = none ,
+}
+
+%\DeclareCiteCommand{\cite}[\mkbibparens]{⟨precode⟩}{⟨loopcode⟩}{⟨sepcode⟩}{⟨postcode⟩}
+%
+\DeclareCiteCommand{\cite}[\mkbibsuperscript]
+ {[\usebibmacro{cite:init}%直接添加方括号
+ \usebibmacro{prenote}}
+ {\usebibmacro{citeindex}%
+ \usebibmacro{cite:comp}}
+ {}
+ {\usebibmacro{cite:dump}%
+ \usebibmacro{postnote}]}
+
+\DeclareCiteCommand{\parencite}[\mkbibsuperscript]%\mkbibbrackets,仍然用上标
+ {[\usebibmacro{cite:init}%
+ \usebibmacro{prenote}}
+ {\usebibmacro{citeindex}%
+ \usebibmacro{cite:comp}}
+ {}
+ {\usebibmacro{cite:dump}%
+ \usebibmacro{postnote}]}
+
+\newbibmacro*{postpages}{%
+ \iffieldundef{postnote}
+ {\printfield{pages}}
+ {\printfield{postnote}}}
+
+%修改括号外带页码的引用格式
+\DeclareFieldFormat{postnote}{#1}
+
+\DeclareCiteCommand{\pagescite}[\mkbibsuperscript]%\mkbibbrackets,仍然用上标
+ {[\usebibmacro{cite:init}%
+ \usebibmacro{prenote}%
+ }
+ {\usebibmacro{citeindex}%
+ \usebibmacro{cite:comp}}
+ {}
+ {\usebibmacro{cite:dump}]%
+ \usebibmacro{postpages}}