Skip to content

Commit

Permalink
update-2019-0205-全面兼容测试完成
Browse files Browse the repository at this point in the history
  • Loading branch information
hushidong committed Feb 5, 2019
1 parent 72943a9 commit 184cf08
Show file tree
Hide file tree
Showing 34 changed files with 1,414 additions and 341 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,13 @@ The biblatex-gb7714-2015 package provides an implementation of the bibliography

## Need to do:

1. beamer类中的国标要求的顺序编码的脚注方式
2. 脚注样式的超链接问题
1. 王临慧, 2010a. 王临慧, 等, 2010b.需要等biblatex2.13更新后完成

2. 脚注中文献表的截短应与正文的文献表一致

* different style for references of different languages,like:gb7714-2015 for chinese refs and trad-unsrt for english refs。
* special characters in all fields?
* entry without author: the delimiter between title and year?
* TEST FOR texlive 2015,2016
* TEST FOR texlive 2015,2016,2017
* [1],(1),1.,box{1},superscript,compress,noncompress


Expand Down
13 changes: 9 additions & 4 deletions biblatex-gb7714-2015-preamble.tex
Original file line number Diff line number Diff line change
Expand Up @@ -283,18 +283,23 @@
\newcommand{\dateformanual}[1]{\def\riqiudf{#1}}
%\ifthenelse{\equal{\youwuudf}{\temp}}{true}{false}
\def\temp{}
\makeatletter
\newcommand{\titleandauthor}{
\begin{center}
{\renewcommand{\thefootnote}{\fnsymbol{footnote}}\setlength{\baselineskip}{30pt}\heiti{\zihao{-2}{\biaotiudf}}\par}
\def\@makefnmark{\hbox{\@textsuperscript{\small\@thefnmark}}}
{\renewcommand{\thefootnote}{\fnsymbol{footnote}}
\setlength{\baselineskip}{30pt}\heiti{\zihao{-2}{\biaotiudf}}\par}
%注意这里\par要放在花括号内才有效
\vspace*{0.3cm}
{\renewcommand{\thefootnote}{\arabic{footnote}}\kaishu{\zihao{4}{\zuozheudf}}\par}
{\renewcommand{\thefootnote}{\arabic{footnote}}
\kaishu{\zihao{4}{\zuozheudf}}\par}
\vspace*{0.2cm}
{\songti{\zihao{-4}{\riqiudf}}\par}
\end{center}
}
%脚注的数字带圈
\renewcommand{\thefootnote}{\textcircled{\tiny\arabic{footnote}}}
\makeatother
%脚注的数字带圈使用gb7714-2015中的重定义实现
%\renewcommand{\thefootnote}{\textcircled{\tiny\arabic{footnote}}}


%--------------列表环境---------------------------------------------
Expand Down
Binary file modified biblatex-gb7714-2015.pdf
Binary file not shown.
86 changes: 55 additions & 31 deletions biblatex-gb7714-2015.tex

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions egfigure/egciteay.tex
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
\end{filecontents}

\addbibresource{\jobname.bib}
\renewcommand{\thefootnote}{\textcircled{\tiny\arabic{footnote}}}
%\renewcommand{\thefootnote}{\textcircled{\tiny\arabic{footnote}}}

\begin{document}

Expand All @@ -119,7 +119,7 @@
不带页码的引用:
\cite{Peebles2001-100-100} \parencite{Miroslav2004--}\par
带页码的引用:
\cite[见][49页]{蔡敏2006--} \parencite[见][49页]{Miroslav2004--}\par
\cite[49]{蔡敏2006--} \parencite[见][49页]{Miroslav2004--}\par
\pagescite{Peebles2001-100-100}\pagescite[150]{Peebles2001-100-100}
\pagescite[][201-301]{Peebles2001-100-100}\par
作者年制文中已有作者只需给出年份和页码的引用:
Expand All @@ -143,8 +143,8 @@
同一处引用多篇文献:文献\cite{Peebles2001-100-100,Miroslav2004--},
文献\cite{蔡敏2006--,Miroslav2004--,赵学功2001--}\par
多次引用同一作者的同一文献:
文献\pagescite[100-108]{蔡敏2006--},
文献\pagescite[205-208]{蔡敏2006--}。
文献\pagescite[100-108]{蔡敏2006--}\cite[20]{Miroslav2004--}
文献\pagescite[205-208]{蔡敏2006--}\cite[55]{Miroslav2004--}
}}

%\printbibliography
Expand Down
2 changes: 1 addition & 1 deletion egfigure/egciteaytp.tex
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
\end{filecontents}

\addbibresource{\jobname.bib}
\renewcommand{\thefootnote}{\textcircled{\tiny\arabic{footnote}}}
%\renewcommand{\thefootnote}{\textcircled{\tiny\arabic{footnote}}}

\begin{document}

Expand Down
9 changes: 5 additions & 4 deletions egfigure/egcitenum.tex
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
\end{filecontents}

\addbibresource{\jobname.bib}
\renewcommand{\thefootnote}{\textcircled{\tiny\arabic{footnote}}}
%\renewcommand{\thefootnote}{\textcircled{\tiny\arabic{footnote}}}

\begin{document}

Expand All @@ -102,7 +102,8 @@
不带页码的引用(非上标,方括号包围):
\parencite{Miroslav2004--}\par
带页码的引用:
\cite[见][49页]{蔡敏2006--} \parencite[见][49页]{Miroslav2004--}
%\cite[见][49]{蔡敏2006--} \parencite[见][49页]{Miroslav2004--}
\cite[49]{蔡敏2006--} \parencite[见][49页]{Miroslav2004--}
\pagescite{Peebles2001-100-100}\pagescite[150]{Peebles2001-100-100}
\pagescite[][201-301]{Peebles2001-100-100}\par
同时输出作者和顺序编码的三种引用方式:\par
Expand All @@ -119,8 +120,8 @@
同一处引用多篇文献:文献\cite{Peebles2001-100-100,Miroslav2004--},
文献\cite{蔡敏2006--,Miroslav2004--,赵学功2001--}\par
多次引用同一作者的同一文献:
文献\pagescite[100-108]{蔡敏2006--}
文献\pagescite[205-208]{蔡敏2006--}。
文献\cite[20]{Miroslav2004--}\pagescite[100-108]{蔡敏2006--}
文献\cite[55]{Miroslav2004--}\pagescite[205-208]{蔡敏2006--}。
}}


Expand Down
2 changes: 1 addition & 1 deletion egfigure/egcitenumtp.tex
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
\end{filecontents}

\addbibresource{\jobname.bib}
\renewcommand{\thefootnote}{\textcircled{\tiny\arabic{footnote}}}
%\renewcommand{\thefootnote}{\textcircled{\tiny\arabic{footnote}}}

\begin{document}

Expand Down
30 changes: 30 additions & 0 deletions egfigure/egfootstyle.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@

% !Mode:: "TeX:UTF-8"
% 用于测试gb7714-2015样式,能否对实现国标要求的脚注文献表
\documentclass{article}
\usepackage{ctex}
\usepackage{xcolor}
\usepackage{toolbox}
\usepackage[colorlinks]{hyperref}
\usepackage{lipsum}
\usepackage[paperwidth=15cm,paperheight=6.5cm,top=10pt,bottom=10pt,left=0.5cm,right=0.5cm]{geometry}
\usepackage{xltxtra,mflogo,texnames}
\usepackage[backend=biber,style=gb7714-2015]{biblatex}

\addbibresource{example.bib}

\begin{document}

\begin{refsection}
示例2:多次引用同一著者的同一文献的脚注序号

……但个人理性选择使得没有人愿意率先违反旧的规范
\footfullcite{Sunstein1996-903-903}。
……事实上,都是民主制度的坚决反对者\footfullcite[20]{Morri2010--}。
……一切后世的思想都是一系列为柏拉图思想所作的脚注\footfullcite{罗杰斯2011-15-16}。
……佛教受到极大的打击\footfullcite[326-329]{Morri2010--}。
……以上谓等威之辨,尊卑之序,由于饮食荣辱。\footfullcite{陈登原2000-29-29}
\end{refsection}


\end{document}
2 changes: 1 addition & 1 deletion egfigure/eggbbiblio.tex
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
%\end{filecontents}

\addbibresource{example.bib}
\renewcommand{\thefootnote}{\textcircled{\tiny\arabic{footnote}}}
%\renewcommand{\thefootnote}{\textcircled{\tiny\arabic{footnote}}}


\begin{document}
Expand Down
157 changes: 157 additions & 0 deletions egfigure/eggbbiblioms.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@

% !Mode:: "TeX:UTF-8"
% 用于测试gb7714-2015样式,实现GB/T 7714-2015 标准的附录的文献表示例
\documentclass{article}
\usepackage{ctex}
\usepackage{xcolor}
\usepackage{toolbox}
\usepackage[colorlinks]{hyperref}
\usepackage{lipsum}
\usepackage[paperwidth=21cm,paperheight=29cm,top=3cm,bottom=2cm,left=1.5cm,right=1.5cm]{geometry}
\usepackage{xltxtra,mflogo,texnames}
\usepackage[backend=biber,style=gb7714-2015ms]{biblatex}%sorting=nyt

%\usepackage{filecontents}
%\begin{filecontents}{\jobname.bib}
%
%\end{filecontents}

\addbibresource{example.bib}
%\renewcommand{\thefootnote}{\textcircled{\tiny\arabic{footnote}}}


\begin{document}

\section*{GB/T 7714-2015 中的附录参考文献示例}

\begin{refsection}
%普通图书(book)
\nocite{张伯伟2002--}
\nocite{2009-155-155}
\nocite{胡承正2010-112-112}
\nocite{美国妇产科医师学会2010-38-39}
\nocite{1962-50-50}
\nocite{汪昂1881--}
\nocite{蒋有绪1998--}
\nocite{中国企业投资协会2013--}
\nocite{罗斯基2009--}
\nocite{库恩2012--}
\nocite{候文顺2010-119-119}
\nocite{CRAWFPRD1995--}
\nocite{IFLAI1977--}
\nocite{OBRIEN1994--}
\nocite{Kinchy2012-50-50}
\nocite{Praetzellis2011-13-13}

%论文集(collection)、会议录(proceedings)
\nocite{中国职工教育研究会1985--}
\nocite{中国社会科学院台湾史研究中心2012--}
\nocite{雷光春2012--}
\nocite{陈志勇2011--}
\nocite{Babu2014--}

%报告(report)
\nocite{中华人民共和国国务院新闻办公室2013-04-16--}
\nocite{汤万金2013-09-30--}
\nocite{Calkin2011-8-9}
\nocite{DTFHA1990--}
\nocite{WHO1970--}

%学位论文(thesis)
\nocite{马欢2011-27-27}
\nocite{吴云芳2003--}
\nocite{CALMS1965--}

%专利文献(patent)
\nocite{张凯军2012-04-05--}
\nocite{河北绿洲生态环境科技有限公司2001--}
\nocite{KOSEKI2002--}

%标准文献(book,inbook,note=standard)
\nocite{全国信息文献标准化技术委员会2010-3-3}
\nocite{全国广播电视标准化技术委员会2007-1-1}
\nocite{国家环境保护局科技标准司1996-2-3}
\nocite{standardinfoiso158}

%专著中析出的文献(inbook)
\nocite{1988-590-590}
\nocite{白书农1998-146-163}
\nocite{汪学军2002-22-25}
\nocite{国家标准局信息分类编码研究所1988-59-92}
\nocite{1977-49-49}
\nocite{楼梦麟2011-11-12}
\nocite{BUSECK1980-117-211}
\nocite{FOURNEY1971-17-38}

%期刊中析出的文献(article)
\nocite{杨洪升2013-56-75}
\nocite{李炳穆2008-6-12}
\nocite{于潇2012-1518-1523}
\nocite{陈建军2010-93-93}
\nocite{DESMARAIS1992-605-609}
\nocite{Saito2006-169-176}
\nocite{Walls2013-399-418}
\nocite{Franz2013-1053-1062}
\nocite{Park2010-696-715}

%报纸中析出的文献(article,note=news)
\nocite{丁文祥2000--}
\nocite{张田勤2000--}
\nocite{傅刚2000--}
\nocite{刘裕国2013-01-12--}

%电子资源(online)
\nocite{萧钰2001--}
\nocite{李强2012-05-03--}
\nocite{Commonwealth--}
\nocite{Dublin2012-06-14--}


\printbibliography[heading=subbibliography,type=book,notkeyword=standard,title=【A1- 普通图书-著录格式示例】]%subbibintoc

\defbibfilter{collections}{%
type=collection
or type=proceedings
or type=collection
}
\printbibliography[heading=subbibliography,filter=collections,title=【A2-论文集、会议录-著录格式示例】]

\defbibfilter{reports}{%
type=report
or ( keyword=report )
}

\printbibliography[heading=subbibliography,filter=reports,title=【A3-报告-著录格式示例】]

\printbibliography[heading=subbibliography,type=thesis,title=【A4-学位论文-著录格式示例】]

\printbibliography[heading=subbibliography,type=patent,title=【A5-专利-著录格式示例】]

\defbibfilter{standard}{%
type=book and keyword=standard
}
\printbibliography[heading=subbibliography,filter=standard,title=【A6-标准文献-著录格式示例】]

\hypertarget{entrystdwithoutauthor}{注意:这里最后一篇标准文献没有责任者,所以作者年制默认情况下无法给出文献标识符。}

\defbibfilter{inbooks}{%
type=inbook or type=incollection or type=inproceedings
}

\printbibliography[heading=subbibliography,filter=inbooks,title=【A7- 专著中析出的文献-著录格式示例】]


\printbibliography[heading=subbibliography,type=article,notkeyword=news,title=【A8- 期刊中析出的文献-著录格式示例】]

\printbibliography[heading=subbibliography,keyword=news,title=【A9-报纸析出的文献-著录格式示例】]%type=article,有时type是newspaper所以不指定type为article

\defbibfilter{onlines}{%
type=online and not keyword=report
}

\printbibliography[heading=subbibliography,filter=onlines,title=【A10-电子资源-著录格式示例】]


\end{refsection}

\end{document}
21 changes: 13 additions & 8 deletions egfigure/eggbcitation.tex
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
\usepackage[paperwidth=21cm,paperheight=29cm,top=3cm,bottom=2cm,left=1.5cm,right=1.5cm]{geometry}
\usepackage{xltxtra,mflogo,texnames}
%%注意:这里使用other*来使得babel切换环境时忽略空白,使得条目集中各文献间的标点正确
\usepackage[backend=biber,style=gb7714-2015,autolang=other*]{biblatex}%sorting=nyt
\usepackage[backend=biber,style=gb7714-2015,gbalign=gb7714-2015,autolang=other*]{biblatex}%sorting=nyt



Expand Down Expand Up @@ -111,6 +111,10 @@

\begin{document}

{\heiti\large\noindent 本文档用于gb7714-2015更新后与GB/T 7714-2015标准文档的内容进行比较,以确定更新没有引入样式方面的BUG,对比文档为stdgbT7714-2015.pdf,该文档经过多次比较,明确与GB/T 7714-2015中的示例完全一致。

}

\section*{GB/T 7714-2015 中的著录标准和顺序编码制示例}

\section*{4 著录项目和著录格式}
Expand Down Expand Up @@ -456,14 +460,14 @@ \subsection*{8.6 获取和访问路径}

\nocite{储大同2010-721-724,weiner2010-38}

\printbibliography[heading=subbibliography]
\printbibliography[heading=subbibliography,title={示例}]
\end{refsection}

\subsection*{8.7 数字对象唯一识别符}
\begin{refsection}

\nocite{刘乃安2000-17-18,Deverell2013-21-22}
\printbibliography[heading=subbibliography]
\printbibliography[heading=subbibliography,title={示例}]
\end{refsection}

\subsection*{8.8 析出文献}
Expand All @@ -473,7 +477,7 @@ \subsection*{8.8.1 析出关系表示}

\nocite{姚中秋2009--,关立哲2014--,TENOPIR1987--}

\printbibliography[heading=subbibliography]
\printbibliography[heading=subbibliography,title={示例}]
\end{refsection}

\subsection*{8.8.2-5 年卷期页码}
Expand Down Expand Up @@ -532,15 +536,16 @@ \subsection*{10.1.3 多次引用同一著者的同一文献}
\begin{refsection}
示例1:多次引用同一著者的同一文献的序号

……改变社会规范也可能存在类似的“二阶囚徒困境”问题:尽管改变旧的规范对所有人都好,但个人理性选择使得没有人愿意率先违反旧的规范\cite{Sunstein1996-903-903}。
……改变社会规范也可能存在类似的“二阶囚徒困境”问题:尽管改变旧的规范对所有人都好,
但个人理性选择使得没有人愿意率先违反旧的规范\cite{Sunstein1996-903-903}。
……事实上,古希腊对轴心时代思想真正的贡献不是来自对民主的赞扬,而是来自对民主制度的批评,苏格拉底、柏拉图和亚里士多德3位贤圣
都是民主制度的坚决反对者\pagescite[20]{Morri2010--}。
都是民主制度的坚决反对者\pagescite[260]{Morri2010--}。
……柏拉图在西方世界的影响力是如此之大以至于有学者评论说,一切后世的思想都是一系列为柏拉图思想所作的脚注\cite{罗杰斯2011-15-16}。
……据《唐会要》记载,当时拆毁的寺院有4 600余所,招提、兰若等佛教建筑4万余所,没收寺产,并强迫僧尼还俗达260 500人。
佛教受到极大的打击\pagescite[326-329]{Morri2010--}。
……陈登原先生的考证是非常精确的,他印证了《春秋说题辞》“黍者绪也,故其立字,禾入米为黍,为酒以扶老,为酒以序尊卑,禾为柔物,亦宜养老”,指出:“以上谓等威之辨,尊卑之序,由于饮食荣辱。”\cite{陈登原2000-29-29}

\printbibliography[heading=subbibliography]
\printbibliography[heading=subbibliography,title={参考文献}]
\end{refsection}

\begin{refsection}
Expand All @@ -549,7 +554,7 @@ \subsection*{10.1.3 多次引用同一著者的同一文献}
……改变社会规范也可能存在类似的“二阶囚徒困境”问题:尽管改变旧的规范对所有人都好,但个人理性选择使得没有人愿意率先违反旧的规范
\footfullcite{Sunstein1996-903-903}。
……事实上,古希腊对轴心时代思想真正的贡献不是来自对民主的赞扬,而是来自对民主制度的批评,苏格拉底、柏拉图和亚里士多德3位贤圣
都是民主制度的坚决反对者\footfullcite[20]{Morri2010--}。
都是民主制度的坚决反对者\footfullcite[260]{Morri2010--}。
……柏拉图在西方世界的影响力是如此之大以至于有学者评论说,一切后世的思想都是一系列为柏拉图思想所作的脚注\footfullcite{罗杰斯2011-15-16}。
……据《唐会要》记载,当时拆毁的寺院有4 600余所,招提、兰若等佛教建筑4万余所,没收寺产,并强迫僧尼还俗达260 500人。
佛教受到极大的打击\footfullcite[326-329]{Morri2010--}。
Expand Down
Loading

0 comments on commit 184cf08

Please sign in to comment.