Skip to content

Commit

Permalink
Merge pull request #6 from hushidong/update-20170320--v1.0g
Browse files Browse the repository at this point in the history
update-v1.0g
  • Loading branch information
hushidong authored Mar 20, 2017
2 parents 2f9c7fa + a668535 commit 084e1ba
Show file tree
Hide file tree
Showing 29 changed files with 2,974 additions and 443 deletions.
29 changes: 24 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<b>Date of last change:2016-12-31 to version v1.0f</b>
<b>Date of last change:2017-02-26 to version v1.0g</b>


# biblatex-gb7714-2015: a biblatex style package
---------------------------------------------------------
Expand All @@ -17,17 +18,21 @@ A biblatex implementation of the GBT7714-2015 bibliography style for Chinese use
The biblatex-gb7714-2015 package provides an implementation of the bibliography style of the GBT7714-2015 bibliography style. This implementation follows GBT7714-2015 standard, and can be used simply by loading biblatex with the appropriate option

## usage
%for numerical sequence
%for numerical sequence style

`\usepackage[backend=biber,style=gb7714-2015]{biblatex}`

%add a option "align" for the numerical label, option value maybe "right" or "left" or "gb7714-2015"

`\usepackage[backend=biber,style=gb7714-2015,align=gb7714-2015]{biblatex}`

%for author year sequence
%for author year style

`\usepackage[backend=biber,style=gb7714-2015ay]{biblatex}`

%for perl script transformation tool(only for the numerical style)

`perl gb7714texttobib.pl in=textfilename out=bibfilename`

A demonstration database is provided to show how to format input for the style. The biblatex-gb7714-2015 style works with texlive2014, texlive2015, texlive2016 and so on.

Expand All @@ -37,6 +42,20 @@ please see the file 'biblatex-gb7714-2015.pdf' for more information!

## update history:

### date of change: 2017-02-26 to version v1.0g, the last version support texlive2015
* Changes to pkg code:
- "*.bbx": deal the compatibility problem for some entrytypes: mastersthesis,phdthesis,www,electronic,standard,techreport,conference, and newspaper. these entrytypes can be used in the source bib file.
- "*.bbx": for online type, the revised/changed date is denoted by date/enddate/eventdate
- "*.bbx": modify the usera field's format, taking into account the standard style's package option url
- "*.bbx": add a no breakthinspace after the entrytype identifier (like [M]//) to make the next word break correctly
- "*.bbx": add a feature for automatically dealing with special character(like &/%/#),compatibility with texlive2015 is done
* Changes to documentation:
- biblatex-gb7714-2015.tex: revise this document and add some explication
- *.bib: refine the bib source file
* Changes to tool code:
- "*.pl": realize the feature of transformation from gb7714-2015 style bibography text to bib file using perl script gb7714texttobib.pl


### date of change: 2016-12-31 to version v1.0f

* Changes to pkg code:
Expand All @@ -57,11 +76,11 @@ please see the file 'biblatex-gb7714-2015.pdf' for more information!
- "*.bbx": modify some newbibmacro* to renewbibmacro* to eleminate warnings
- "*.bbx": add a package option align=right,left,gb7714-2015 for users to choose numeric label align style
- "*.cbx": restore the origin parencite definition for users to use superscript citecmd(cite) and inline citecmd(parencite) in one document

* Changes to documentation:
- biblatex-gb7714-2015.tex: add a summary of the features of the package and a compile guide
- *.sh/bat: add the autoexec files for windows/linux OS
- *.bib: refine the bib database
* Changes to tool code:
- *.sh/bat: add the autoexec files for windows/linux OS

### date of change: 2016-11-24 to version v1.0d

Expand Down
Binary file modified biblatex-gb7714-2015-beamer.pdf
Binary file not shown.
706 changes: 516 additions & 190 deletions biblatex-gb7714-2015-content.tex

Large diffs are not rendered by default.

12 changes: 11 additions & 1 deletion biblatex-gb7714-2015-preamble.tex
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
%\addcontentsline{toc}{subsection}{#1}
\centering\subsubsection*{#1}}%

\addbibresource[location=local]{example.bib}
%参考文献的bib文件
% \markboth{#1}{#1}}
%注意在实际使用中用titsec宏包的页眉页脚也有点问题,一旦给出markboth就会出现问题
Expand Down Expand Up @@ -285,4 +284,15 @@
\else \begin{marglist} \item[#1] #2\end{marglist} \fi}
\makeatother

\usepackage{filecontents}
\begin{filecontents}{egspecialchar.bib}
@Inproceedings{ref-replace-char,
Title = {Cognitive Radio and Cooperative Strategies for Power Saving in Multi-Standard Wireless Devices},
Address = { Florence, Italy},
Author = {Rodriguez, J. and P. Marques and A. Radwan and K. Moessner and R. Tafazolli and others},
Booktitle = {Future % Network & Mobile # Summit 2010},
Date = {June 2010}
}
\end{filecontents}


Binary file modified biblatex-gb7714-2015.pdf
Binary file not shown.
2 changes: 2 additions & 0 deletions biblatex-gb7714-2015.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
citestyle=gb7714-2015%,backref=true%gb,gbt7714_2005_n,
]{biblatex}%biber,caspervector
\input{biblatex-gb7714-2015-preamble} %宏包和一些格式设置
\addbibresource[location=local]{example.bib}
\addbibresource[location=local]{egspecialchar.bib}

\begin{document}

Expand Down
Binary file modified biblatex-gb7714-2015ay-beamer.pdf
Binary file not shown.
Binary file modified biblatex-gb7714-2015ay.pdf
Binary file not shown.
2 changes: 2 additions & 0 deletions biblatex-gb7714-2015ay.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
citestyle=gb7714-2015ay%,backref=true%gb,gbt7714_2005_n,
]{biblatex}%biber,caspervector
\input{biblatex-gb7714-2015-preamble} %宏包和一些格式设置
\addbibresource[location=local]{example.bib}
\addbibresource[location=local]{egspecialchar.bib}

\begin{document}

Expand Down
Binary file modified egbibenv-gb7714-2015.pdf
Binary file not shown.
42 changes: 21 additions & 21 deletions egbibenv-gb7714-2015.tex
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
\documentclass[twoside]{article}
\usepackage{ctex}
\usepackage{geometry}
\geometry{paperwidth=21cm,paperheight=12cm,top=1.5cm, bottom=1.5cm, left=1cm,right=1cm}
\usepackage{xcolor}
\usepackage[CJKbookmarks,colorlinks,bookmarksnumbered=true,pdfstartview=FitH,linkcolor=blue]{hyperref}
\usepackage[backend=biber,style=gb7714-2015,align=gb7714-2015]{biblatex}
\addbibresource[location=local]{example.bib}
%\renewcommand{\bibfont}{\zihao{5}}
%\setlength{\bibitemsep}{0ex}
%\setlength{\bibnamesep}{0ex}
%\setlength{\bibinitsep}{0ex}

\begin{document}
\section{文献表}
文献\cite{张伯伟2002--}\cite{CRAWFPRD1995--}\cite{陈志勇2011--}\cite{Babu2014--}\cite{汤万金2013-09-30--}
\cite{Calkin2011-8-9}\cite{吴云芳2003--}\cite{CALMS1965--}\cite{张凯军2012-04-05--}\cite{KOSEKI2002--}
\cite{全国广播电视标准化技术委员会2007-1-1}\cite{国家环境保护局科技标准司1996-2-3}
\cite{楼梦麟2011-11-12}\cite{BUSECK1980-117-211}\cite{陈建军2010-93-93}
\cite{DESMARAIS1992-605-609}\cite{张田勤2000--}\cite{萧钰2001--}
\printbibliography[heading=subbibintoc,title=【参考文献】]
\documentclass[twoside]{article}
\usepackage{ctex}
\usepackage{geometry}
\geometry{paperwidth=21cm,paperheight=12cm,top=1.5cm, bottom=1.5cm, left=1cm,right=1cm}
\usepackage{xcolor}
\usepackage[CJKbookmarks,colorlinks,bookmarksnumbered=true,pdfstartview=FitH,linkcolor=blue]{hyperref}
\usepackage[backend=biber,style=gb7714-2015,align=gb7714-2015]{biblatex}
\addbibresource[location=local]{example.bib}
%\renewcommand{\bibfont}{\zihao{5}}
%\setlength{\bibitemsep}{0ex}
%\setlength{\bibnamesep}{0ex}
%\setlength{\bibinitsep}{0ex}

\begin{document}
\section{文献表}
文献\cite{张伯伟2002--}\cite{CRAWFPRD1995--}\cite{陈志勇2011--}\cite{Babu2014--}\cite{汤万金2013-09-30--}
\cite{Calkin2011-8-9}\cite{吴云芳2003--}\cite{CALMS1965--}\cite{张凯军2012-04-05--}\cite{KOSEKI2002--}
\cite{全国广播电视标准化技术委员会2007-1-1}\cite{国家环境保护局科技标准司1996-2-3}
\cite{楼梦麟2011-11-12}\cite{BUSECK1980-117-211}\cite{陈建军2010-93-93}
\cite{DESMARAIS1992-605-609}\cite{张田勤2000--}\cite{萧钰2001--}
\printbibliography[heading=subbibintoc,title=【参考文献】]
\end{document}
Binary file modified egbibenv-left.pdf
Binary file not shown.
42 changes: 21 additions & 21 deletions egbibenv-left.tex
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
\documentclass[twoside]{article}
\usepackage{ctex}
\usepackage{geometry}
\geometry{paperwidth=21cm,paperheight=12cm,top=1.5cm, bottom=1.5cm, left=1cm,right=1cm}
\usepackage{xcolor}
\usepackage[CJKbookmarks,colorlinks,bookmarksnumbered=true,pdfstartview=FitH,linkcolor=blue]{hyperref}
\usepackage[backend=biber,style=gb7714-2015,align=left]{biblatex}
\addbibresource[location=local]{example.bib}
%\renewcommand{\bibfont}{\zihao{5}}
%\setlength{\bibitemsep}{0ex}
%\setlength{\bibnamesep}{0ex}
%\setlength{\bibinitsep}{0ex}

\begin{document}
\section{文献表}
文献\cite{张伯伟2002--}\cite{CRAWFPRD1995--}\cite{陈志勇2011--}\cite{Babu2014--}\cite{汤万金2013-09-30--}
\cite{Calkin2011-8-9}\cite{吴云芳2003--}\cite{CALMS1965--}\cite{张凯军2012-04-05--}\cite{KOSEKI2002--}
\cite{全国广播电视标准化技术委员会2007-1-1}\cite{国家环境保护局科技标准司1996-2-3}
\cite{楼梦麟2011-11-12}\cite{BUSECK1980-117-211}\cite{陈建军2010-93-93}
\cite{DESMARAIS1992-605-609}\cite{张田勤2000--}\cite{萧钰2001--}
\printbibliography[heading=subbibintoc,title=【参考文献】]
\documentclass[twoside]{article}
\usepackage{ctex}
\usepackage{geometry}
\geometry{paperwidth=21cm,paperheight=12cm,top=1.5cm, bottom=1.5cm, left=1cm,right=1cm}
\usepackage{xcolor}
\usepackage[CJKbookmarks,colorlinks,bookmarksnumbered=true,pdfstartview=FitH,linkcolor=blue]{hyperref}
\usepackage[backend=biber,style=gb7714-2015,align=left]{biblatex}
\addbibresource[location=local]{example.bib}
%\renewcommand{\bibfont}{\zihao{5}}
%\setlength{\bibitemsep}{0ex}
%\setlength{\bibnamesep}{0ex}
%\setlength{\bibinitsep}{0ex}

\begin{document}
\section{文献表}
文献\cite{张伯伟2002--}\cite{CRAWFPRD1995--}\cite{陈志勇2011--}\cite{Babu2014--}\cite{汤万金2013-09-30--}
\cite{Calkin2011-8-9}\cite{吴云芳2003--}\cite{CALMS1965--}\cite{张凯军2012-04-05--}\cite{KOSEKI2002--}
\cite{全国广播电视标准化技术委员会2007-1-1}\cite{国家环境保护局科技标准司1996-2-3}
\cite{楼梦麟2011-11-12}\cite{BUSECK1980-117-211}\cite{陈建军2010-93-93}
\cite{DESMARAIS1992-605-609}\cite{张田勤2000--}\cite{萧钰2001--}
\printbibliography[heading=subbibintoc,title=【参考文献】]
\end{document}
Binary file modified egbibenv-right.pdf
Binary file not shown.
42 changes: 21 additions & 21 deletions egbibenv-right.tex
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
\documentclass[twoside]{article}
\usepackage{ctex}
\usepackage{geometry}
\geometry{paperwidth=21cm,paperheight=12cm,top=1.5cm, bottom=1.5cm, left=1cm,right=1cm}
\usepackage{xcolor}
\usepackage[CJKbookmarks,colorlinks,bookmarksnumbered=true,pdfstartview=FitH,linkcolor=blue]{hyperref}
\usepackage[backend=biber,style=gb7714-2015,align]{biblatex}
\addbibresource[location=local]{example.bib}
%\renewcommand{\bibfont}{\zihao{5}}
%\setlength{\bibitemsep}{0ex}
%\setlength{\bibnamesep}{0ex}
%\setlength{\bibinitsep}{0ex}

\begin{document}
\section{文献表}
文献\cite{张伯伟2002--}\cite{CRAWFPRD1995--}\cite{陈志勇2011--}\cite{Babu2014--}\cite{汤万金2013-09-30--}
\cite{Calkin2011-8-9}\cite{吴云芳2003--}\cite{CALMS1965--}\cite{张凯军2012-04-05--}\cite{KOSEKI2002--}
\cite{全国广播电视标准化技术委员会2007-1-1}\cite{国家环境保护局科技标准司1996-2-3}
\cite{楼梦麟2011-11-12}\cite{BUSECK1980-117-211}\cite{陈建军2010-93-93}
\cite{DESMARAIS1992-605-609}\cite{张田勤2000--}\cite{萧钰2001--}
\printbibliography[heading=subbibintoc,title=【参考文献】]
\documentclass[twoside]{article}
\usepackage{ctex}
\usepackage{geometry}
\geometry{paperwidth=21cm,paperheight=12cm,top=1.5cm, bottom=1.5cm, left=1cm,right=1cm}
\usepackage{xcolor}
\usepackage[CJKbookmarks,colorlinks,bookmarksnumbered=true,pdfstartview=FitH,linkcolor=blue]{hyperref}
\usepackage[backend=biber,style=gb7714-2015,align]{biblatex}
\addbibresource[location=local]{example.bib}
%\renewcommand{\bibfont}{\zihao{5}}
%\setlength{\bibitemsep}{0ex}
%\setlength{\bibnamesep}{0ex}
%\setlength{\bibinitsep}{0ex}

\begin{document}
\section{文献表}
文献\cite{张伯伟2002--}\cite{CRAWFPRD1995--}\cite{陈志勇2011--}\cite{Babu2014--}\cite{汤万金2013-09-30--}
\cite{Calkin2011-8-9}\cite{吴云芳2003--}\cite{CALMS1965--}\cite{张凯军2012-04-05--}\cite{KOSEKI2002--}
\cite{全国广播电视标准化技术委员会2007-1-1}\cite{国家环境保护局科技标准司1996-2-3}
\cite{楼梦麟2011-11-12}\cite{BUSECK1980-117-211}\cite{陈建军2010-93-93}
\cite{DESMARAIS1992-605-609}\cite{张田勤2000--}\cite{萧钰2001--}
\printbibliography[heading=subbibintoc,title=【参考文献】]
\end{document}
11 changes: 11 additions & 0 deletions egspecialchar.bib
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
%% LaTeX2e file `egspecialchar.bib'
%% generated by the `filecontents' environment
%% from source `biblatex-gb7714-2015ay' on 2017/03/20.
%%
@Inproceedings{ref-replace-char,
Title = {Cognitive Radio and Cooperative Strategies for Power Saving in Multi-Standard Wireless Devices},
Address = { Florence, Italy},
Author = {Rodriguez, J. and P. Marques and A. Radwan and K. Moessner and R. Tafazolli and others},
Booktitle = {Future % Network & Mobile # Summit 2010},
Date = {June 2010}
}
Loading

0 comments on commit 084e1ba

Please # to comment.