-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
修复中文参考文献多作者时显示异常的BUG;修复参考文献放入表格需要需要繁琐操作的问题,现在你无需再关注\enabletablebib选项了。
- Loading branch information
Showing
7 changed files
with
4,700 additions
and
37 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
%% | ||
%% --------------------------------------------------------------- | ||
%% biblatex-gb7714-2015 --- A biblatex implementation of the | ||
%% GBT7714-2015 citation style,numerical sequence | ||
%% Maintained by huzhenzhen | ||
%% history: | ||
%% 2016/05/20 v1.0 2016/10/23 v1.0a 2016/11/11 v1.0b | ||
%% 2016/11/14 v1.0c 2016/11/24 v1.0d 2016/12/07 v1.0e | ||
%% 2017/02/26 v1.0g 2017/04/11 v1.0h | ||
%% 2017/11/21 v1.0i 2018/01/20 v1.0j | ||
%% E-mail: hzzmail@163.com | ||
%% Released under the LaTeX Project Public License v1.3c or later | ||
%% --------------------------------------------------------------- | ||
%% | ||
\ProvidesFile{gb7714-2015.cbx}[2018/01/20 v1.0j 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}} | ||
|
||
%增加一个命令yearpagescite为与ay样式兼容,命令等同于\pagescite | ||
\DeclareCiteCommand{\yearpagescite}[\mkbibsuperscript]%\mkbibbrackets,仍然用上标 | ||
{[\usebibmacro{cite:init}% | ||
\usebibmacro{prenote}% | ||
} | ||
{\usebibmacro{citeindex}% | ||
\usebibmacro{cite:comp}} | ||
{} | ||
{\usebibmacro{cite:dump}]% | ||
\usebibmacro{postpages}} | ||
|
||
%不要页码 | ||
\DeclareCiteCommand{\yearcite}[\mkbibsuperscript]%\mkbibbrackets,仍然用上标 | ||
{[\usebibmacro{cite:init}% | ||
\usebibmacro{prenote}% | ||
} | ||
{\usebibmacro{citeindex}% | ||
\usebibmacro{cite:comp}} | ||
{} | ||
{\usebibmacro{cite:dump}]} |
Oops, something went wrong.