├── README.md ├── articlemodelparta.tex ├── articlemodelpartb.tex ├── articlemodelpartc.tex ├── biblatex-solution-to-latex-bibliography.pdf ├── biblatex-solution-to-latex-bibliography.tex ├── egbibtex ├── cpbibtex.bat ├── eg-bibliography.tex ├── eg-bibtex-ay-gb.tex ├── eg-bibtex-ay-nat.tex ├── eg-bibtex-num-gb.tex ├── eg-bibtex-num-nat.tex ├── eg-chapterbib.tex ├── eg-thebibliography-ay.tex ├── eg-thebibliography-num-include.tex ├── eg-thebibliography-num-seca.tex ├── eg-thebibliography-num-secb.tex ├── eg-thebibliography-num.tex └── makeclear.bat ├── exampleandimage ├── beamerthemeZH.sty ├── beamerthemeZHM.sty ├── bib-jabref-a.eps ├── bib-jabref-a.jpg ├── bib-jabref-b.eps ├── bib-jabref-b.jpg ├── bib-jabref-c.eps ├── bib-jabref-c.jpg ├── bib-texstudio.eps ├── bib-texstudio.jpg ├── bib-text-editor.eps ├── bib-text-editor.jpg ├── bib-winedt.eps ├── bib-winedt.jpg ├── bib.bib ├── biblatex-quickstart.tex ├── button-compiler-winedt.JPG ├── button-compiler-winedt.eps ├── compiler.bat ├── compiler.sh ├── eg.bib ├── egbeamer.tex ├── egbeamersn.tex ├── egbeamersnw.tex ├── egbib.bib ├── egbibdiv.tex ├── egbibdiva.tex ├── egbibenv.tex ├── egbibfilter.tex ├── egbibfont.tex ├── egbibinbeamer.tex ├── egbibinfoot.tex ├── egbibinfootmargin.tex ├── egbibinmargin.tex ├── egbilang.tex ├── egciteincaption.tex ├── egciteinfoot.tex ├── egciteinminipage.tex ├── egfontgreak.bib ├── egfontgreak.tex ├── egfontinbiblio.tex ├── egheadclass.tex ├── egheadfancy.tex ├── egheadtitleps.tex ├── egmultilan.bib ├── egmultilan.tex ├── egpostersn.tex ├── egpostersnr.tex ├── egpostersnw.tex ├── egrefsection.tex ├── egrefsectionb.tex ├── egsectitle.tex ├── egstylecustomize.tex ├── egstylecustomizegb.tex ├── egtest.tex ├── egtestshort.bib ├── egtestshort.tex ├── egtestshorta.bib ├── egtestshorta.tex ├── egtestshortb.bib ├── egtestshortb.tex ├── egtestshortc.bib ├── egtestshortc.tex ├── egzazhi.tex ├── example.bib ├── gb7714-2015-m.bbx ├── gb7714-2015ms.bbx ├── gb7714-2015ms.cbx ├── gbudf.bbx ├── makeclear.bat ├── makeclear.sh ├── project-ega-bibliography.png ├── project-ega-citation.png ├── qs1.png ├── readme ├── studf.bbx ├── test-backref.tex ├── test-gbk-pdflatex.tex ├── test-gbk-xelatex.tex ├── test-registered-diff.tex ├── test-registered.tex ├── test-utf8-pdflatex-cls.tex ├── test-utf8-pdflatex-pkg.tex ├── testautopunct.tex ├── testcharcode-gbk-xelatex.tex ├── testcharcode-utf8-xelatex.tex ├── testcjk-gbk-pdflatex.tex ├── testcjk-utf-xelatex.tex ├── testcjk-utf.tex ├── testdefernumber.tex ├── testeggbk.tex ├── testeggbkay.tex ├── testfilterCategory.tex ├── testfilterCheck.tex ├── testindexofbib.tex ├── testlocale.tex ├── texstudio-cmd-build.JPG ├── texstudio-cmd-build.eps ├── texstudio-cmd-set.JPG ├── texstudio-cmd-set.eps ├── texstudio-compilerchain.JPG ├── texstudio-compilerchain.eps ├── texstudio-defaulttool.JPG ├── texstudio-defaulttool.eps ├── texstudio-path-linux.eps ├── texstudio-path-linux.png ├── zazhi.bbx └── zazhi.cbx ├── gb7714-2015-gbk.def ├── gb7714-2015.bbx ├── gb7714-2015.cbx ├── gb7714-2015ay.bbx ├── gb7714-2015ay.cbx ├── gb7714-2015ms.bbx ├── gb7714-2015ms.cbx ├── makeclear.bat ├── makeclear.sh ├── makeclearpdf.bat ├── makefile.bat ├── makefile.sh ├── makefileall.bat └── makegithub.bat /README.md: -------------------------------------------------------------------------------- 1 | # biblatex-solution-to-latex-bibliography 2 | 3 | latex中文参考文献解决方案- 4 | 基于biblatex的解决方案和 5 | 基于传统thebibliograhpy环境或bibtex程序的解决方案。 6 | 7 | --------------------------------------------------------------- 8 | ## motivation: 9 | 10 | 为国内 LaTeX 用户提供一个较为全面的 biblatex 参考文献生成入门教程。 11 | 12 | 针对 LaTeX 文档的参考文献相关问题,分析了参考文献生成的一般需求,给出基于biblatex宏包全套解决方案。 13 | 14 | 从文献数据源文件准备,tex源文档的组成,tex/bib文件的编译,分章参考文献和书后文献表,文献表标题和内容格式,参考文献著录和标注样式,多语言文献,脚注题注小页环境中的引用,脚注旁注中的文献表,文献表分类筛选打印,beamer 类中的参考文献等方面,详实介绍了biblatex参考文献生成方法,并提供所有示例代码,为用户提供参考。 15 | 16 | 通过介绍biblatex-gb7714-2015样式包的设计思路和实现方法,以及一个参考文献样式定制项目示例,给出了bbx和cbx文件开发的方法、步骤和过程,揭示了基于biblatex标准样式定制参考文献的一般原理,为定制参考文献样式提供完整示范。 17 | 18 | 最后针对使用传统方法的用户需求,总结了基于thebibliography环境和基于bibtex程序的参考文献生成方法。 19 | 20 | --------------------------------------------------------------- 21 | ## usage: 22 | 23 | 1. 直接下载pdf文档查看 24 | 2. 下载源码,使用makefile.bat/sh编译生成pdf文档再看。linux下的编译请自行修改makefile.sh文件中texlive的安装路径。 25 | 26 | 27 | --------------------------------------------------------------- 28 | ## need to do: 29 | 30 | 31 | * pagination域,引导符问题,参考:biblatex手册,biblatax-tutorial-cn,其实中文中不常用 32 | * 针对每个条目的选项 33 | * 引号的问题,csquote/其它 34 | * excute域 35 | * verbose样式下的一些标注缩略机制ibid等,mancite的作用,一般用不着。 36 | 37 | 38 | 39 | 40 | --------------------------------------------------------------- 41 | ## history: 42 | 43 | %% 2121-12-11 v1.0h 增加表格式文献表、修改域输出控制等内容。 44 | 45 | %% 2021-10-19 v1.0h 增加利用数据注解:修改指定作者格式以及给期刊添加缩写信息的方法(数据注解,不同于annotation域。通用域如 abstract 、 annotation 、 label 和 shorthand 独立于条目类型,用的概率较低。)。 46 | 47 | %% 2021-10-19 v1.0h 增加bibunits介绍、文献条目分页控制解释、增加shortbooktitle的使用示例 48 | 49 | %% 2021-02-02 v1.0h 增加常见编译错误的解决方法。 50 | 51 | %% 2021-01-31 v1.0h 增加传统方法中multibib的介绍,修正一些笔误。 52 | 53 | %% 2020-06-02 v1.0h 增加传统方法的介绍。 54 | 55 | %% 2019-03-31 v1.0g 补充英文字母大小转换、期刊名缩写的相关信息。 56 | 57 | %% 2019-01-12 v1.0g 补充biblatex的优缺点介绍,补充了biber从源文件输出新bib文件,补充了label类域的相关介绍。 58 | 59 | %% 2018-10-23 v1.0g 补充了特殊字符显示异常的问题解释。 60 | 61 | %% 2018-10-22 v1.0g 进一步细化了对反向超链接,文档编译的内容 62 | 63 | %% 2018-08-12 v1.0g 修改了排序,常用样式,样式修改等内容 64 | 65 | %% 2018-07-16 v1.0g 增加缩略信息打印/数据动态修改方面的一些介绍 66 | 67 | %% 2018-07-02 v1.0g 增加参考文献样式定制方面的一些技巧介绍 68 | 69 | %% 2018-06-22 v1.0g 增加了直接显示希腊字母等特殊字符的方法 70 | 71 | %% 2018-05-18 v1.0g 进一步完善了文档、gb7714-2015的一些设计方法 72 | 73 | %% 2018-05-04 v1.0f 增加了参考文献缩略信息打印,排序,索引等介绍,见2.5节 74 | 75 | %% 2018-04-21 v1.0e 增加了利用biblatex宏包选项调整著录表和标注的内容,见2.8节 76 | 77 | %% 2017-10-31 v1.0d 增加了一个参考文献样式定制项目的示例,见第3节 78 | 79 | %% 2017-03-15 v1.0c 增加了关于参考文献表文本转换成bib文件的内容,增加了nocite命令的介绍,增加了文献著录表中行溢出问题的解决方法,增加了关于&等特殊字符处理的介绍。 80 | 81 | %% 2017-01-19 v1.0b 更正biblatex-gb7714-2015未考虑texlive2015兼容性所带来的问题,主要是修改gb7714-2015样式文件,具体可以参考biblatex-gb7714-2015。 82 | 83 | %% 2017-01-18 v1.0b 修正一些错别字,加了后记 84 | 85 | %% 2017-01-05 v1.0a beamer类下的内容完善 86 | 87 | %% 2016-12-07 v1.0 完成基本内容 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | --------------------------------------------------------------- 105 | 106 | -------------------------------------------------------------------------------- /articlemodelpartb.tex: -------------------------------------------------------------------------------- 1 | \tonglan 2 | \thispagestyle{firstpageps} 3 | \pagestyle{main} 4 | \setcounter{section}{-1} 5 | \enlargethispage{-1.0\baselineskip} 6 | %\begin{refsection} 7 | %\begin{multicols}{2} 8 | %\makeatletter 9 | %\let\mcnewpage=\newpage 10 | %\newcommand{\TrickSupertabularIntoMulticols}{% 11 | % \renewcommand\newpage{% 12 | % \if@firstcolumn 13 | % \hrule width.918\linewidth height0pt 14 | % \columnbreak 15 | % \else 16 | % \mcnewpage 17 | % \fi 18 | % }% 19 | %} 20 | %\makeatother -------------------------------------------------------------------------------- /articlemodelpartc.tex: -------------------------------------------------------------------------------- 1 | \printbibliography[heading=subbibliography,title=参考文献] 2 | %\end{multicols} 3 | %\end{refsection} 4 | \clearpage -------------------------------------------------------------------------------- /biblatex-solution-to-latex-bibliography.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hushidong/biblatex-solution-to-latex-bibliography/efbc7b757b1edfed8cfc4bce16fc211093bd5e6b/biblatex-solution-to-latex-bibliography.pdf -------------------------------------------------------------------------------- /egbibtex/cpbibtex.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | 4 | setlocal enabledelayedexpansion 5 | for %%a in ( eg*.tex ) do ( 6 | call makeclear 7 | set jobfile=%%a 8 | set jobname=!jobfile:~0,-4! 9 | echo %%a 10 | echo !jobfile! 11 | echo !jobname! 12 | xelatex.exe --synctex=-1 !jobfile! 13 | bibtex !jobname! 14 | xelatex.exe --synctex=-1 !jobfile! 15 | xelatex.exe --synctex=-1 !jobfile! 16 | ) 17 | setlocal DISABLEDELAYEDEXPANSION 18 | 19 | call makeclear 20 | 21 | 22 | ::pause 23 | -------------------------------------------------------------------------------- /egbibtex/eg-bibliography.tex: -------------------------------------------------------------------------------- 1 | \documentclass[twoside]{article} 2 | \usepackage{ctex} 3 | \usepackage{geometry} 4 | \geometry{paperwidth=21cm,paperheight=29cm,top=1.5cm, bottom=1.5cm, left=2.54cm,right=2.54cm} 5 | \usepackage{xcolor} 6 | \usepackage[CJKbookmarks,colorlinks,bookmarksnumbered=true,pdfstartview=FitH,linkcolor=blue]{hyperref} 7 | \usepackage[super]{natbib} 8 | \bibliographystyle{unsrt}%GBT7714−2005AYLang−UTF8,acm,amsplain,siam,unsrt,ieeetr 9 | 10 | \usepackage{filecontents} 11 | \begin{filecontents}{egtest.bib} 12 | 13 | @Online{中文a, 14 | author ={Namea}, 15 | Title = {Dublin Core metadata element set: version 1.1}, 16 | Url = {http://dublincore.org}, 17 | Urldate = {2014-06-11}, 18 | Year = {2010-06-14} 19 | } 20 | 21 | @Online{中文b, 22 | author ={Namea}, 23 | Title = {Dublin Core metadata element set: version 1.1}, 24 | Url = {http://dublincore.org}, 25 | Urldate = {2014-06-11}, 26 | Year = {2015-06-14} 27 | } 28 | 29 | @Book{中文c, 30 | Title = {康熙字典:已集上:水部}, 31 | Address = {北京}, 32 | Edition = {同文书局影印本}, 33 | Pages = {50}, 34 | Publisher = {中华书局}, 35 | Year = {1962} 36 | } 37 | 38 | @Proceedings{中文d, 39 | Title = {Proceedings of the Fifth Canadian Mathematical Congress, University of Montreal, 1961}, 40 | Date = {1963}, 41 | Publisher = {University of Toronto Press}, 42 | Editor = {E M ROSENTHALL}, 43 | Location = {Toronto} 44 | } 45 | 46 | @Thesis{中文e, 47 | Title = {Infrared spectroscopic studies on solid oxygen}, 48 | Author = {R B CALMS}, 49 | Date = {1965}, 50 | Institution = {Univ. of California}, 51 | Location = {Berkeley} 52 | } 53 | 54 | 55 | @Online{olc, 56 | author ={Nameb}, 57 | Title = {Dublin Core metadata element set: version 1.1}, 58 | Url = {http://dublincore.org}, 59 | Urldate = {2014-06-11}, 60 | Year = {2008-06-14} 61 | } 62 | 63 | @Online{old, 64 | author ={Namec}, 65 | Title = {Dublin Core metadata element set: version 1.1}, 66 | Url = {http://dublincore.org}, 67 | Urldate = {2014-06-11}, 68 | Year = {2014-06-14} 69 | } 70 | 71 | \end{filecontents} 72 | 73 | \begin{document} 74 | 75 | %%%测试bibliography方式生成参考文献,使用中文的bibtex键。 76 | 77 | \section{文献表} 78 | 文献 79 | \cite{中文c,中文d,中文e,olc,old,中文a,中文b} 80 | 81 | \bibliography{egtest.bib} 82 | 83 | \end{document} -------------------------------------------------------------------------------- /egbibtex/eg-thebibliography-ay.tex: -------------------------------------------------------------------------------- 1 | \documentclass[twoside]{article} 2 | \usepackage{ctex} 3 | \usepackage{geometry} 4 | \geometry{paperwidth=21cm,paperheight=29cm,top=1.5cm, bottom=1.5cm, left=2.54cm,right=2.54cm} 5 | \usepackage{xcolor} 6 | \usepackage[CJKbookmarks,colorlinks,bookmarksnumbered=true,pdfstartview=FitH,linkcolor=blue]{hyperref} 7 | \usepackage[authoryear]{natbib} 8 | %\bibliographystyle{unsrt}%GBT7714−2005AYLang−UTF8,acm,amsplain,siam,unsrt,ieeetr 9 | 10 | \begin{document} 11 | 12 | %%%测试bibliography方式生成参考文献,使用中文的bibtex键。 13 | 14 | \section{章节一} 15 | 文献\cite{Meta_CN,zhubajie} 16 | 17 | \begin{thebibliography}{99} 18 | \bibitem[崔万照\ 等(2008)崔万照, 马伟, 邱乐德, and 19 | 张洪太]{Meta_CN} 20 | 崔万照, 马伟, 邱乐德, 等. 21 | \newblock 电磁超介质及其应用\allowbreak[M]. 22 | \newblock 北京: 国防工业出版社, 2008. 23 | 24 | \bibitem[猪八戒(2005)]{zhubajie} 25 | 猪八戒. 26 | \newblock 论流体食物的持久保存\allowbreak[Z]. 27 | \newblock 北京: 广寒宫大学, 2005. 28 | 29 | \bibitem[白云芬(2008)]{bai2008} 30 | 白云芬. 31 | \newblock 信用风险传染模型和信用衍生品的定价\allowbreak[D]. 32 | \newblock 上海: 上海交通大学, 2008. 33 | \end{thebibliography} 34 | 35 | \section{章节二} 36 | 37 | 文献\cite{cnproceed,shaheshang} 38 | 39 | \begin{thebibliography}{99} 40 | \bibitem[王重阳\ 等(2006)王重阳, 黄药师, 欧阳峰, 洪七公, and 41 | 段皇帝]{cnproceed} 42 | 王重阳, 黄药师, 欧阳峰, 等. 43 | \newblock 武林高手论文集\allowbreak[C]//\allowbreak 44 | 第~$N$~次华山论剑. 45 | \newblock 西安, 中国: 中国古籍出版社, 2006. 46 | 47 | \bibitem[沙和尚(2005)]{shaheshang} 48 | 沙和尚. 49 | \newblock 论流沙河的综合治理\allowbreak[Z]. 50 | \newblock 北京: 清华大学, 2005. 51 | \end{thebibliography} 52 | 53 | \end{document} -------------------------------------------------------------------------------- /egbibtex/eg-thebibliography-num-include.tex: -------------------------------------------------------------------------------- 1 | \documentclass[twoside]{article} 2 | \usepackage{ctex} 3 | \usepackage{geometry} 4 | \geometry{paperwidth=21cm,paperheight=29cm,top=1.5cm, bottom=1.5cm, left=2.54cm,right=2.54cm} 5 | \usepackage{xcolor} 6 | \usepackage[CJKbookmarks,colorlinks,bookmarksnumbered=true,pdfstartview=FitH,linkcolor=blue]{hyperref} 7 | \usepackage[numbers]{natbib} 8 | %\bibliographystyle{unsrt}%GBT7714−2005AYLang−UTF8,acm,amsplain,siam,unsrt,ieeetr 9 | 10 | \begin{document} 11 | 12 | \include{eg-thebibliography-num-seca} 13 | 14 | \include{eg-thebibliography-num-secb} 15 | 16 | 17 | \end{document} -------------------------------------------------------------------------------- /egbibtex/eg-thebibliography-num-seca.tex: -------------------------------------------------------------------------------- 1 | 2 | \section{章节一} 3 | 文献\cite{Meta_CN,zhubajie} 4 | 5 | \begin{thebibliography}{99} 6 | \bibitem[崔万照\ 等(2008)崔万照, 马伟, 邱乐德, and 7 | 张洪太]{Meta_CN} 8 | 崔万照, 马伟, 邱乐德, 等. 9 | \newblock 电磁超介质及其应用\allowbreak[M]. 10 | \newblock 北京: 国防工业出版社, 2008. 11 | 12 | \bibitem[猪八戒(2005)]{zhubajie} 13 | 猪八戒. 14 | \newblock 论流体食物的持久保存\allowbreak[Z]. 15 | \newblock 北京: 广寒宫大学, 2005. 16 | \end{thebibliography} 17 | 18 | -------------------------------------------------------------------------------- /egbibtex/eg-thebibliography-num-secb.tex: -------------------------------------------------------------------------------- 1 | 2 | 3 | \section{章节二} 4 | 5 | 文献\cite{cnproceed,shaheshang} 6 | 7 | \begin{thebibliography}{99} 8 | \bibitem[王重阳\ 等(2006)王重阳, 黄药师, 欧阳峰, 洪七公, and 9 | 段皇帝]{cnproceed} 10 | 王重阳, 黄药师, 欧阳峰, 等. 11 | \newblock 武林高手论文集\allowbreak[C]//\allowbreak 12 | 第~$N$~次华山论剑. 13 | \newblock 西安, 中国: 中国古籍出版社, 2006. 14 | 15 | \bibitem[沙和尚(2005)]{shaheshang} 16 | 沙和尚. 17 | \newblock 论流沙河的综合治理\allowbreak[Z]. 18 | \newblock 北京: 清华大学, 2005. 19 | \end{thebibliography} 20 | 21 | -------------------------------------------------------------------------------- /egbibtex/eg-thebibliography-num.tex: -------------------------------------------------------------------------------- 1 | \documentclass[twoside]{article} 2 | \usepackage{ctex} 3 | \usepackage{geometry} 4 | \geometry{paperwidth=21cm,paperheight=29cm,top=1.5cm, bottom=1.5cm, left=2.54cm,right=2.54cm} 5 | \usepackage{xcolor} 6 | \usepackage[CJKbookmarks,colorlinks,bookmarksnumbered=true,pdfstartview=FitH,linkcolor=blue]{hyperref} 7 | \usepackage[numbers]{natbib} 8 | %\bibliographystyle{unsrt}%GBT7714−2005AYLang−UTF8,acm,amsplain,siam,unsrt,ieeetr 9 | 10 | \begin{document} 11 | 12 | %%%测试bibliography方式生成参考文献,使用中文的bibtex键。 13 | 14 | \section{章节一} 15 | 文献\cite{Meta_CN,zhubajie} 16 | 17 | \begin{thebibliography}{99} 18 | \bibitem[崔万照\ 等(2008)崔万照, 马伟, 邱乐德, and 19 | 张洪太]{Meta_CN} 20 | 崔万照, 马伟, 邱乐德, 等. 21 | \newblock 电磁超介质及其应用\allowbreak[M]. 22 | \newblock 北京: 国防工业出版社, 2008. 23 | 24 | \bibitem[猪八戒(2005)]{zhubajie} 25 | 猪八戒. 26 | \newblock 论流体食物的持久保存\allowbreak[Z]. 27 | \newblock 北京: 广寒宫大学, 2005. 28 | 29 | \bibitem[白云芬(2008)]{bai2008} 30 | 白云芬. 31 | \newblock 信用风险传染模型和信用衍生品的定价\allowbreak[D]. 32 | \newblock 上海: 上海交通大学, 2008. 33 | \end{thebibliography} 34 | 35 | \section{章节二} 36 | 37 | 文献\cite{cnproceed,shaheshang} 38 | 39 | \begin{thebibliography}{99} 40 | \bibitem[王重阳\ 等(2006)王重阳, 黄药师, 欧阳峰, 洪七公, and 41 | 段皇帝]{cnproceed} 42 | 王重阳, 黄药师, 欧阳峰, 等. 43 | \newblock 武林高手论文集\allowbreak[C]//\allowbreak 44 | 第~$N$~次华山论剑. 45 | \newblock 西安, 中国: 中国古籍出版社, 2006. 46 | 47 | \bibitem[沙和尚(2005)]{shaheshang} 48 | 沙和尚. 49 | \newblock 论流沙河的综合治理\allowbreak[Z]. 50 | \newblock 北京: 清华大学, 2005. 51 | \end{thebibliography} 52 | 53 | \end{document} -------------------------------------------------------------------------------- /egbibtex/makeclear.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | 4 | del /q *.aux *.bbl *.blg *.log *.out *.toc *.bcf *.xml *.synctex *.nlo *.nls *.bak *.ind *.idx *.ilg *.lof *.lot *.ent-x *.tmp *.ltx *.los *.lol *.loc *.listing *.gz *.synctex(busy) 5 | del /q *.nav *.snm *.vrb *.fls *.xdv *.fdb_latexmk 6 | -------------------------------------------------------------------------------- /exampleandimage/beamerthemeZH.sty: -------------------------------------------------------------------------------- 1 | % this style was created by Horea Christian and is basted on the ETH Zürich corporate design color palette https://www.ethz.ch/services/en/service/communication/corporate-design/colour.html 2 | \ProvidesPackage{beamerthemeZH} 3 | 4 | % \usepackage{graphics} 5 | \usepackage{graphicx} 6 | \newcommand{\vcenteredinclude}[1]{\begingroup 7 | \setbox0=\hbox{\includegraphics[width=.8\textwidth, height=.06\paperheight, keepaspectratio]{#1}}% 8 | \parbox{\wd0}{\box0}\endgroup} 9 | 10 | 11 | \usepackage{calc} 12 | \newlength{\mylength} 13 | 14 | \mode 15 | 16 | \definecolor{ETH1}{RGB}{31,64,122} 17 | \definecolor{ETH3}{RGB}{0,105,180} 18 | \definecolor{ETH6}{RGB}{111,111,110} 19 | \definecolor{ETH8}{RGB}{0,122,146} 20 | \definecolor{ETH10}{RGB}{130,190,30} 21 | \definecolor{tlg}{RGB}{230,230,230} 22 | 23 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 24 | %It seems many of the following entries do not control any visible Behaviour. All such entries are 25 | %set to red, so that they are easy to spot if they ever become visible 26 | 27 | \setbeamercolor{headline}{fg=red,bg=ETH3} % This is the recommended color for Specialist community usage: change to ETH1 for general communication 28 | \setbeamercolor{footline}{fg=red, bg=red} 29 | \setbeamerfont{footline}{size=\large,series=\bf} 30 | \setbeamercolor{separation line}{bg=ETH3} 31 | \setbeamercolor{title in headline}{fg=white} 32 | \setbeamercolor{author in headline}{fg=white} 33 | \setbeamercolor{institute in headline}{fg=white} 34 | 35 | \setbeamercolor{framesubtitle}{fg=red, bg=ta2gray} 36 | \setbeamercolor{author in head/foot}{fg=white, bg=ETH3} 37 | \setbeamercolor{title in head/foot}{fg=red, bg=red} 38 | 39 | \setbeamercolor*{normal text}{fg=ETH6, bg=tlg} 40 | \setbeamercolor*{block body}{fg=black, bg=white} 41 | \setbeamercolor*{block title}{fg=black,bg=ETH10} 42 | \setbeamerfont{block title}{size=\large,series=\bf} 43 | \setbeamercolor{upper separation line head}{fg=red} 44 | 45 | \setbeamercolor*{example body}{fg=red,bg=red} 46 | \setbeamercolor*{example text}{fg=red,bg=red} 47 | \setbeamercolor*{example title}{bg=red,fg=red} 48 | 49 | \setbeamercolor{alerted text}{fg=red} 50 | \setbeamercolor{structure}{fg=ETH1} 51 | 52 | \setbeamertemplate{itemize items}{\color{ETH10}$\blacktriangleright$} 53 | \setbeamertemplate{navigation symbols}{} % no navigation on a poster 54 | 55 | \newenvironment<>{myblock}[1]{% 56 | \begin{actionenv}#2% 57 | \def\insertblocktitle{\centering#1}% 58 | \par% 59 | \usebeamertemplate{block begin}\leftskip=14pt\rightskip=14pt\vspace{10pt}} 60 | {\par\vspace{1em}\usebeamertemplate{block end} 61 | \end{actionenv}} 62 | 63 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 64 | % !!! This environment can't both have nice margins AND display the contained text as justified: 65 | % We preferentially use the above but keep this one just-in-case 66 | \setbeamertemplate{block begin}{ 67 | \setlength{\mylength}{\textwidth+2ex}% 68 | \vskip2ex 69 | \begin{beamercolorbox}[ht=2.8ex,dp=2ex, wd=\mylength, center,rounded=false,shadow=false,leftskip=1cm,colsep*=0ex]{block title}% 70 | \usebeamerfont*{block title}\centering \insertblocktitle 71 | \end{beamercolorbox}\vskip-9pt% 72 | {\ifbeamercolorempty[bg]{block body}{}{\nointerlineskip\vskip-0.5ex}}% 73 | \usebeamerfont{block body}% 74 | \begin{beamercolorbox}[rounded=false,shadow=false,center,wd=\textwidth,]{block body}% 75 | \ifbeamercolorempty[bg]{block body}\vbox{}% 76 | \begin{minipage}{0.96\textwidth}\vbox{}% 77 | \justify 78 | } 79 | \setbeamertemplate{block end}{ 80 | \end{minipage} 81 | \end{beamercolorbox} 82 | } 83 | 84 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 85 | \setbeamertemplate{headline}{ 86 | \leavevmode 87 | \begin{beamercolorbox}[wd=\paperwidth]{headline} 88 | \vspace{2ex}\\ 89 | \begin{columns}[c] 90 | \begin{column}{.09\paperwidth} 91 | \end{column} 92 | \begin{column}{.675\paperwidth} 93 | \raggedleft 94 | \usebeamercolor{title in headline}{\color{fg}\textbf{\LARGE{\inserttitle}}\\[1ex]} 95 | \usebeamercolor{author in headline}{\color{fg}\large{\insertauthor}\\[1ex]} 96 | \usebeamercolor{institute in headline}{\color{fg}\small{\insertinstitute}\\[1ex]} 97 | \end{column} 98 | \begin{column}{.25\paperwidth} 99 | \begin{center} 100 | \fbox{img/zh\_logo} 101 | %\includegraphics[width=.8\textwidth, height=.39\textwidth, keepaspectratio]{img/zh_logo} 102 | \end{center} 103 | \end{column} 104 | \begin{column}{.03\paperwidth} 105 | \end{column} 106 | \end{columns} 107 | \vspace{2ex}\\ 108 | \end{beamercolorbox} 109 | 110 | \begin{beamercolorbox}[wd=\paperwidth]{lower separation line head} 111 | \rule{0pt}{2pt} 112 | \end{beamercolorbox} 113 | \vskip-2cm 114 | } 115 | 116 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 117 | \setbeamertemplate{footline}{ 118 | \begin{beamercolorbox}[wd=\paperwidth]{upper separation line foot} 119 | \rule{0pt}{2pt} 120 | \end{beamercolorbox} 121 | \leavevmode% 122 | \begin{beamercolorbox}[ht=4ex,leftskip=1cm,rightskip=1cm]{author in head/foot}% 123 | \href{http://www.aic-fmi.ethz.ch}{www.aic-fmi.ethz.ch} 124 | \hfill 125 | \today 126 | \hfill 127 | \href{mailto:my_address@wikibooks.org}{ioanas@biomed.ee.ethz.ch} 128 | \vskip1ex 129 | \end{beamercolorbox} 130 | \vskip0pt% 131 | \begin{beamercolorbox}[wd=\paperwidth]{lower separation line foot} 132 | \rule{0pt}{2pt} 133 | \end{beamercolorbox} 134 | } 135 | 136 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 137 | % Display a grid to help align images ... and it looks nice with this color scheme 138 | % \beamertemplategridbackground[1cm] 139 | 140 | %Some beamer customizations: 141 | \setbeamertemplate{bibliography item}[text] 142 | \setbeamertemplate{caption}[numbered]{}% Number float-like environments 143 | 144 | \mode 145 | -------------------------------------------------------------------------------- /exampleandimage/beamerthemeZHM.sty: -------------------------------------------------------------------------------- 1 | % this style was created by Horea Christian and is basted on the ETH Zürich corporate design color palette https://www.ethz.ch/services/en/service/communication/corporate-design/colour.html 2 | \ProvidesPackage{beamerthemeZH} 3 | 4 | % \usepackage{graphics} 5 | \usepackage{graphicx} 6 | \newcommand{\vcenteredinclude}[1]{\begingroup 7 | \setbox0=\hbox{\includegraphics[width=.8\textwidth, height=.06\paperheight, keepaspectratio]{#1}}% 8 | \parbox{\wd0}{\box0}\endgroup} 9 | 10 | 11 | \usepackage{calc} 12 | \newlength{\mylength} 13 | 14 | \mode 15 | 16 | \definecolor{ETH1}{RGB}{31,64,122} 17 | \definecolor{ETH3}{RGB}{0,105,180} 18 | \definecolor{ETH6}{RGB}{111,111,110} 19 | \definecolor{ETH8}{RGB}{0,122,146} 20 | \definecolor{ETH10}{RGB}{130,190,30} 21 | \definecolor{tlg}{RGB}{230,230,230} 22 | 23 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 24 | %It seems many of the following entries do not control any visible Behaviour. All such entries are 25 | %set to red, so that they are easy to spot if they ever become visible 26 | 27 | \setbeamercolor{headline}{fg=red,bg=ETH3} % This is the recommended color for Specialist community usage: change to ETH1 for general communication 28 | \setbeamercolor{footline}{fg=red, bg=red} 29 | \setbeamerfont{footline}{size=\large,series=\bf} 30 | \setbeamercolor{separation line}{bg=ETH3} 31 | \setbeamercolor{title in headline}{fg=white} 32 | \setbeamercolor{author in headline}{fg=white} 33 | \setbeamercolor{institute in headline}{fg=white} 34 | 35 | \setbeamercolor{framesubtitle}{fg=red, bg=ta2gray} 36 | \setbeamercolor{author in head/foot}{fg=white, bg=ETH3} 37 | \setbeamercolor{title in head/foot}{fg=red, bg=red} 38 | 39 | \setbeamercolor*{normal text}{fg=ETH6, bg=tlg} 40 | \setbeamercolor*{block body}{fg=black, bg=white} 41 | \setbeamercolor*{block title}{fg=black,bg=ETH10} 42 | \setbeamerfont{block title}{size=\large,series=\bf} 43 | \setbeamercolor{upper separation line head}{fg=red} 44 | 45 | \setbeamercolor*{example body}{fg=red,bg=red} 46 | \setbeamercolor*{example text}{fg=red,bg=red} 47 | \setbeamercolor*{example title}{bg=red,fg=red} 48 | 49 | \setbeamercolor{alerted text}{fg=red} 50 | \setbeamercolor{structure}{fg=ETH1} 51 | 52 | \setbeamertemplate{itemize items}{\color{ETH10}$\blacktriangleright$} 53 | \setbeamertemplate{navigation symbols}{} % no navigation on a poster 54 | 55 | \newenvironment<>{myblock}[1]{% 56 | \begin{actionenv}#2% 57 | \def\insertblocktitle{\centering#1}% 58 | \par% 59 | \usebeamertemplate{block begin}\leftskip=14pt\rightskip=14pt\vspace{10pt}} 60 | {\par\vspace{1em}\usebeamertemplate{block end} 61 | \end{actionenv}} 62 | 63 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 64 | % !!! This environment can't both have nice margins AND display the contained text as justified: 65 | % We preferentially use the above but keep this one just-in-case 66 | \setbeamertemplate{block begin}{ 67 | \setlength{\mylength}{\textwidth+2ex}% 68 | \vskip2ex 69 | \begin{beamercolorbox}[ht=2.8ex,dp=2ex, wd=\mylength, center,rounded=false,shadow=false,leftskip=1cm,colsep*=0ex]{block title}% 70 | \usebeamerfont*{block title}\centering \insertblocktitle 71 | \end{beamercolorbox}\vskip-9pt% 72 | {\ifbeamercolorempty[bg]{block body}{}{\nointerlineskip\vskip-0.5ex}}% 73 | \usebeamerfont{block body}% 74 | \begin{beamercolorbox}[rounded=false,shadow=false,center,wd=\textwidth,]{block body}% 75 | \ifbeamercolorempty[bg]{block body}\vbox{}% 76 | \begin{minipage}{0.96\textwidth}\vbox{}% 77 | \justifying 78 | } 79 | \setbeamertemplate{block end}{ 80 | \end{minipage} 81 | \end{beamercolorbox} 82 | } 83 | 84 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 85 | \setbeamertemplate{headline}{ 86 | \leavevmode 87 | \begin{beamercolorbox}[wd=\paperwidth]{headline} 88 | \vspace{2ex}\\ 89 | \begin{columns}[c] 90 | \begin{column}{.09\paperwidth} 91 | \end{column} 92 | \begin{column}{.675\paperwidth} 93 | \raggedleft 94 | \usebeamercolor{title in headline}{\color{fg}\textbf{\LARGE{\inserttitle}}\\[1ex]} 95 | \usebeamercolor{author in headline}{\color{fg}\large{\insertauthor}\\[1ex]} 96 | \usebeamercolor{institute in headline}{\color{fg}\small{\insertinstitute}\\[1ex]} 97 | \end{column} 98 | \begin{column}{.25\paperwidth} 99 | \begin{center} 100 | \fbox{img/zh\_logo} 101 | %\includegraphics[width=.8\textwidth, height=.39\textwidth, keepaspectratio]{img/zh_logo} 102 | \end{center} 103 | \end{column} 104 | \begin{column}{.03\paperwidth} 105 | \end{column} 106 | \end{columns} 107 | \vspace{2ex}\\ 108 | \end{beamercolorbox} 109 | 110 | \begin{beamercolorbox}[wd=\paperwidth]{lower separation line head} 111 | \rule{0pt}{2pt} 112 | \end{beamercolorbox} 113 | \vskip-2cm 114 | } 115 | 116 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 117 | \setbeamertemplate{footline}{ 118 | \begin{beamercolorbox}[wd=\paperwidth]{upper separation line foot} 119 | \rule{0pt}{2pt} 120 | \end{beamercolorbox} 121 | \leavevmode% 122 | \begin{beamercolorbox}[ht=4ex,leftskip=1cm,rightskip=1cm]{author in head/foot}% 123 | \href{http://www.aic-fmi.ethz.ch}{www.aic-fmi.ethz.ch} 124 | \hfill 125 | \today 126 | \hfill 127 | \href{mailto:my_address@wikibooks.org}{ioanas@biomed.ee.ethz.ch} 128 | \vskip1ex 129 | \end{beamercolorbox} 130 | \vskip0pt% 131 | \begin{beamercolorbox}[wd=\paperwidth]{lower separation line foot} 132 | \rule{0pt}{2pt} 133 | \end{beamercolorbox} 134 | } 135 | 136 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 137 | % Display a grid to help align images ... and it looks nice with this color scheme 138 | % \beamertemplategridbackground[1cm] 139 | 140 | %Some beamer customizations: 141 | \setbeamertemplate{bibliography item}[text] 142 | \setbeamertemplate{caption}[numbered]{}% Number float-like environments 143 | 144 | \mode 145 | -------------------------------------------------------------------------------- /exampleandimage/bib-jabref-a.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hushidong/biblatex-solution-to-latex-bibliography/efbc7b757b1edfed8cfc4bce16fc211093bd5e6b/exampleandimage/bib-jabref-a.jpg -------------------------------------------------------------------------------- /exampleandimage/bib-jabref-b.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hushidong/biblatex-solution-to-latex-bibliography/efbc7b757b1edfed8cfc4bce16fc211093bd5e6b/exampleandimage/bib-jabref-b.jpg -------------------------------------------------------------------------------- /exampleandimage/bib-jabref-c.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hushidong/biblatex-solution-to-latex-bibliography/efbc7b757b1edfed8cfc4bce16fc211093bd5e6b/exampleandimage/bib-jabref-c.jpg -------------------------------------------------------------------------------- /exampleandimage/bib-texstudio.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hushidong/biblatex-solution-to-latex-bibliography/efbc7b757b1edfed8cfc4bce16fc211093bd5e6b/exampleandimage/bib-texstudio.jpg -------------------------------------------------------------------------------- /exampleandimage/bib-text-editor.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hushidong/biblatex-solution-to-latex-bibliography/efbc7b757b1edfed8cfc4bce16fc211093bd5e6b/exampleandimage/bib-text-editor.jpg -------------------------------------------------------------------------------- /exampleandimage/bib-winedt.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hushidong/biblatex-solution-to-latex-bibliography/efbc7b757b1edfed8cfc4bce16fc211093bd5e6b/exampleandimage/bib-winedt.jpg -------------------------------------------------------------------------------- /exampleandimage/bib.bib: -------------------------------------------------------------------------------- 1 | % This file was created with JabRef 2.10. 2 | % Encoding: UTF-8 3 | 4 | 5 | @PhdThesis{Paivi, 6 | Title = {IMAGING OF DOPAMINE AND SEROTONIN TRANSPORTERS - Pre-Clinical Studies with Radiotracers for Positron Emission Tomography}, 7 | Author = {Päivi Marjamäki}, 8 | School = {Turun Yliopisto University of Turku}, 9 | Year = {2011}, 10 | 11 | Owner = {chymera}, 12 | Timestamp = {2016.02.22} 13 | } 14 | 15 | @Article{Oegren2008, 16 | Title = {The role of 5\mbox{-}{H}T1{A} receptors in learning and memory}, 17 | Author = {Ögren, Sven Ove and Eriksson, Therese M. and Elvander-Tottie, Elin and D’Addario, Claudio and Ekström, Joanna C. and Svenningsson, Per and Meister, Björn and Kehr, Jan and Stiedl, Oliver}, 18 | Journal = {Behavioural Brain Research}, 19 | Year = {2008}, 20 | 21 | Month = {Dec}, 22 | Number = {1}, 23 | Pages = {54–77}, 24 | Volume = {195}, 25 | 26 | Doi = {10.1016/j.bbr.2008.02.023}, 27 | ISSN = {0166-4328}, 28 | Owner = {chymera}, 29 | Publisher = {Elsevier BV}, 30 | Timestamp = {2016.02.22}, 31 | Url = {http://dx.doi.org/10.1016/j.bbr.2008.02.023} 32 | } 33 | 34 | -------------------------------------------------------------------------------- /exampleandimage/button-compiler-winedt.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hushidong/biblatex-solution-to-latex-bibliography/efbc7b757b1edfed8cfc4bce16fc211093bd5e6b/exampleandimage/button-compiler-winedt.JPG -------------------------------------------------------------------------------- /exampleandimage/button-compiler-winedt.eps: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 EPSF-3.0 2 | %%Pages: 1 3 | %%BoundingBox: 0 0 86 51 4 | %%DocumentData: Clean7Bit 5 | %%LanguageLevel: 2 6 | %%EndComments 7 | %%Page: 1 1 8 | save 2 dict begin 9 | {/DeviceRGB setcolorspace 10 | /T currentfile/ASCII85Decode filter def 11 | /F T/DCTDecode filter def 12 | <> image F closefile T closefile} 15 | %%BeginData:; 16 | exec 17 | s4IA0!"_al8O`[\!&2"U>5:#6tG<#7(VD#m^eD#R:SA%13FM$k*OQ#71kN%1E^S$k*REgAjSA!WiE*!s8 20 | `0!sT/>#7(_H$k*OQ$k*OQ$k*OQ$k*OQ$k*OQ$k*OQ$k*OQ$k*OQ$k*OQ$k*OQ$k*OQ$k*OQs1eUH# 21 | QQX\ai`&\eCE.%f\,!;ioB+]k3(smlLFH:o_%qPq"add_uLk[!!<6&!+Ya065u@kqE>'NOJHurVOeK%r#pV6(n.fD 26 | Qd0^X71uTbN(Dn#.-7:2j.Q'+C3&s#e6q'R884cEP<)lt#=BSg;A7]@cBPD4&FEMbNG^4UeK7nr5LP 27 | UeEP*;,qQC!u,R\HRQV5C/hWN*81['d?O\@K2f_o0O6a2lBFdaQ^rf%8R-g>_/RjlYail0@j2o_%qP 28 | q"addg&MN`!<<05!tbMt!<)hi]Z:!`)diF"bXc_tX#r+kf"`SN6GUuBoWr'RFHIMUB(].>4/;u(W 36 | YV:F>H+-Yk5+6rcWOlqd7u"+X6_W?2O%ZdiP4qS'p,OcWe*U%^n_iaRpca@LkXmC4sG5L?\1uCCom6>jZTD$^DO 40 | +grKJ&:Z7INY7Qn41F3L]0$YD=)f(4e@Mi)b^'ai85N'A#'V\SmRlLoD\g>8F*PN-\jP))>J[X8(Hr 41 | X2-hS/[\XQO7:Ua3_FXL;3LeLk2pq:]X[q$Sj 42 | X)Frq"3_2q]+!_#FC[,a(_D\\`f?rlQ>RSS_I-a"J/,!9ftC^J_ctBj150VtcZ]A[nEPD0?h_%^^V#LGc_>aL\o 45 | D+[2rrDOq5P[+]%=d$lC]=C12q?c7_'OOVphsL;NP#k^X$70ZGCCaam&m.td\4@79?T0h<1ggJGPR* 46 | ie,K>J#QFc-oD\fS4Rgu$N`Npk6[`:m(?'\-*t^qiQ27*Ri&cSNm&m.5eOB9iF8cIfrr=DEn43JsY8 47 | 2WPpno*CgJ*^A/BE"N>kcF?IpDQ9SO5up&RD]J'9b6SF5p!:XJ'rrAe$iYT;=oSJU?E*r)a6k)(q#*,>\<8kepfcMjrrAaZ_uB`30n]K+Mkg7e[tXh^k[j8`!<*C7rrD'EV#LFK$))jpa,<1OX49H 51 | 0r?(O&1b\\"nRqh9HDgcC+/C^_/&Ipc5(i_kJ&,98;t1)qMZ3ZSd'TD]pkD9W>/rbS/EZL;BYukU%F 52 | V6$nabb"n.45;nG`JAK>7%1r(?th_/5P=!%(do?75aQJjB=]4u;^]UTA4F&*:RV2/AU50.pi+*i`b\ 53 | RR]"$1&FHeR$)mB;?$WO/q2&PoM%jT'O%^?!$kXd@<0$<$dTeTi1h_]COX%lmudQ=`#^+IA]-f6YFX 54 | WlEiVZo.:+(?.mi_(IeT&X9e:Nrr'/B_n,3WD'#3p?AcDbPQ1LXG']]0"ESrM)8)Q"^iGT*<4tj.i/ 55 | 2d3F=X;O7/`DB$QM3*K#!(a+[nN\'5eoMS#P8,t*4br(J'g+qpebe@r/jMI3HOn/rrAd.5ObDtJ,(: 56 | l'nO[#'W"9q8p6M]J,VjuiU/GiQR0jhk*R,00iXtEUOQn+r7A@+nk]$+^:0p%^Tu2&?!?^8)C:3f[! 57 | rZi:BTH!G6le]b]64=4H-DKPO)2)qS2"(luh5^KH:N,nF))_]L/E,H?T;gZWULWVc?imh]k\e*e/BW 58 | A+%?oqFh>);8^kX/`RP;a]SH[MfWVnVKn0FnEHlPX&>`mXI<(XUm"BXHTc3!^*j0:]X 59 | !!:]X!!:]X!!:]X!!:^@$R~> 60 | %%EndData 61 | end restore showpage 62 | %%Trailer 63 | %%EOF 64 | -------------------------------------------------------------------------------- /exampleandimage/compiler.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | IF NOT EXIST gb7714-2015.bbx ( 4 | copy ..\gb7714-2015.bbx . /y 5 | copy ..\gb7714-2015.cbx . /y 6 | copy ..\gb7714-2015ay.bbx . /y 7 | copy ..\gb7714-2015ay.cbx . /y 8 | copy ..\gb7714-2015-gbk.def . /y 9 | ) 10 | 11 | setlocal enabledelayedexpansion 12 | for %%a in ( eg*.tex ) do ( 13 | call makeclear 14 | set jobfile=%%a 15 | set jobname=!jobfile:~0,-4! 16 | echo %%a 17 | echo !jobfile! 18 | echo !jobname! 19 | xelatex.exe --synctex=-1 !jobfile! 20 | biber !jobname! 21 | xelatex.exe --synctex=-1 !jobfile! 22 | ) 23 | setlocal DISABLEDELAYEDEXPANSION 24 | 25 | call makeclear 26 | 27 | del gb7714-2015.bbx /Q 28 | del gb7714-2015.cbx /Q 29 | del gb7714-2015ay.bbx /Q 30 | del gb7714-2015ay.cbx /Q 31 | del gb7714-2015-gbk.def /Q 32 | 33 | ::pause 34 | -------------------------------------------------------------------------------- /exampleandimage/compiler.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | export PATH=${PATH}:/usr/local/texlive/2016/bin/x86_64-linux 4 | 5 | for egfile in eg*.tex; 6 | do 7 | ./gbtclear.sh 8 | echo "$egfile" 9 | echo "${egfile%.tex}" 10 | xelatex --synctex=-1 "$egfile" 11 | biber "${egfile%.tex}" 12 | xelatex --synctex=-1 "$egfile" 13 | ./gbtclear.sh; 14 | done 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /exampleandimage/eg.bib: -------------------------------------------------------------------------------- 1 | %% LaTeX2e file `eg.bib' 2 | %% generated by the `filecontents' environment 3 | %% from source `egstylecustomize' on 2019/01/27. 4 | %% 5 | 6 | @Book{CRAWFPRD1995--, 7 | Title = {Future libraries:dreams, maddness, \& reality}, 8 | Author = {W CRAWFPRD and M GORMAN}, 9 | Date = {1995}, 10 | Publisher = {American Library Association}, 11 | Location = {Chicago} 12 | } 13 | 14 | @Proceedings{Babu2014--, 15 | Title = {Proceedings of the second international conference on soft computing for problem solving, December 28-30}, 16 | Address = {New Delhi}, 17 | Publisher = {Springer}, 18 | Editor = {Babu, B. V. and NAGAR, A. K. AND DEEP, K. and others}, 19 | Year = {2014} 20 | } 21 | 22 | @Report{Calkin2011-8-9, 23 | Title = {a comparative risk assessment framework for wildland fire management: the 2010 cohesive strategy Science report:RMRS-GTR-262}, 24 | Author = {Calkin, D and Ager, a. and Thompson, m.}, 25 | Pages = {8-9}, 26 | Year = {2011} 27 | } 28 | 29 | @Thesis{CALMS1965--, 30 | Title = {Infrared spectroscopic studies on solid oxygen}, 31 | Author = {R B CALMS}, 32 | Date = {1965}, 33 | Institution = {Univ. of California}, 34 | Location = {Berkeley} 35 | } 36 | 37 | @Patent{KOSEKI2002--, 38 | Title = {Compiler}, 39 | Author = {A KOSEKI and H MOMOSE and M KAWAHITO and others}, 40 | Date = {2002-05-25}, 41 | Number = {US828402}, 42 | Url = {http://FF&p=1&u=netahtml/PTO/search-bool.html&r=5&f=G&l=50&col=AND&d=PG01&sl=IBM.AS.&0S=AN/IBM&RS=AN/IBM}, 43 | Urldate = {2002-05-28} 44 | } 45 | 46 | @Inbook{BUSECK1980-117-211, 47 | Title = {Subsolidus phenomena in pyroxenes}, 48 | Author = {P R BUSECK and NORD, Jr., G L and D R VEBLEN}, 49 | Bookauthor = {CT PREWITT}, 50 | Booktitle = {Pyroxense}, 51 | Date = {1980}, 52 | Pages = {117-211}, 53 | Publisher = {Mineralogical Society of America}, 54 | Location = {Washington, D.C.} 55 | } 56 | 57 | 58 | @Article{DESMARAIS1992-605-609, 59 | Title = {Carbon isotope evidence for the stepwise oxidation of the Proterozoic environment}, 60 | Author = {DES MARAIS, D J and H STRAUSS and R E SUMMONS and others}, 61 | Date = {1992}, 62 | Pages = {605-609}, 63 | Volume = {359}, 64 | Journaltitle = {Nature} 65 | } 66 | 67 | -------------------------------------------------------------------------------- /exampleandimage/egbeamer.tex: -------------------------------------------------------------------------------- 1 | \documentclass{beamer} 2 | \usepackage{chemformula} 3 | \usepackage[utf8]{inputenc} 4 | \usepackage[german, english]{babel} % required for rendering German special characters 5 | \usepackage{siunitx} %pretty measurement unit rendering 6 | \usepackage{hyperref} %enable hyperlink for urls 7 | \usepackage{ragged2e} 8 | %\usepackage[font=scriptsize,justification=justified]{caption} 9 | \usepackage{array,booktabs,tabularx} 10 | \usepackage[backend=biber,style=gb7714-2015%gb7714-2015,%nature,% 11 | %,backref=true%gb,gbt7714_2005_n, 12 | ]{biblatex}%biber,caspervector 13 | \renewcommand{\bibfont}{\footnotesize} 14 | \addbibresource[location=local]{bib.bib} 15 | %颜色设置-有效 16 | \setbeamercolor{bibliography item}{fg=yellow} 17 | \setbeamercolor{bibliography entry author}{fg=red} 18 | \setbeamercolor{bibliography entry title}{fg=green} 19 | \setbeamercolor{bibliography entry location}{fg=blue} 20 | %\setbeamercolor{bibliography entry note}{fg=pink} 21 | \setbeamertemplate{bibliography item}[book] 22 | %段落格式设置-无效 23 | %\defbeamertemplate*{bibliography entry article}{default}{} 24 | %\defbeamertemplate*{bibliography entry title}{default}{\par} 25 | %\defbeamertemplate*{bibliography entry location}{default}{\par} 26 | %\defbeamertemplate*{bibliography entry note}{default}{\par} 27 | \setbeamertemplate{bibliography entry article}[default] 28 | \setbeamertemplate{bibliography entry title}[default] 29 | \setbeamertemplate{bibliography entry location}[default] 30 | \setbeamertemplate{bibliography entry note}[default] 31 | %\setbeamertemplate{bibliography entry article}{\newline} 32 | %\setbeamertemplate{bibliography entry title}{\newline} 33 | %\setbeamertemplate{bibliography entry location}{\newline} 34 | %\setbeamertemplate{bibliography entry note}{\newline} 35 | %字体设置-无效 36 | \setbeamerfont{bibliography item}{family=\rmfamily,size=\small,shape=\itshape} 37 | \setbeamertemplate{bibliography entry article}{shape=\itshape} 38 | \setbeamertemplate{bibliography entry title}{shape=\itshape} 39 | \setbeamertemplate{bibliography entry location}{shape=\itshape} 40 | \setbeamertemplate{bibliography entry note}{shape=\itshape} 41 | 42 | \title{\huge Opto-fMRI of Monoaminergic Systems and Psychotropic Drugs} 43 | \author{Horea-Ioan Ioanas$^{1,2}$, Bechara Saab$^{2}$, Markus Rudin$^{1}$} 44 | \institute[ETH]{$^{1}$Institute for Biomedical Engineering, ETH and University of Zurich \\ $^{2}$Preclinical Laboratory for Translational Research into Affective Disorders, DPPP, Psychiatric Hospital, University of Zurich} 45 | \date{\today} 46 | 47 | \begin{document} 48 | \begin{frame} 49 | \titlepage 50 | \end{frame} 51 | 52 | \begin{frame} 53 | \fbox{img/ag1}% 54 | reference 55 | \cite{Paivi} 56 | \cite{Oegren2008} 57 | \end{frame} 58 | 59 | \begin{frame}{References} 60 | \printbibliography[heading=bibliography,title=bibliography] 61 | \end{frame} 62 | 63 | \end{document} 64 | -------------------------------------------------------------------------------- /exampleandimage/egbeamersn.tex: -------------------------------------------------------------------------------- 1 | \documentclass{beamer} 2 | \usepackage{chemformula} 3 | \usepackage[utf8]{inputenc} 4 | \usepackage[german, english]{babel} % required for rendering German special characters 5 | \usepackage{siunitx} %pretty measurement unit rendering 6 | \usepackage{hyperref} %enable hyperlink for urls 7 | \usepackage{ragged2e} 8 | %\usepackage[font=scriptsize,justification=justified]{caption} 9 | \usepackage{array,booktabs,tabularx} 10 | \usepackage[backend=biber,bibstyle=gb7714-2015-m,%nature,% 11 | citestyle=gb7714-2015,%,backref=true%gb,gbt7714_2005_n, 12 | align=gb7714-2015% 13 | ]{biblatex}%biber,caspervector 14 | \renewcommand{\bibfont}{\footnotesize} 15 | \addbibresource[location=local]{bib.bib} 16 | 17 | 18 | 19 | \title{\huge Opto-fMRI of Monoaminergic Systems and Psychotropic Drugs} 20 | \author{Horea-Ioan Ioanas$^{1,2}$, Bechara Saab$^{2}$, Markus Rudin$^{1}$} 21 | \institute[ETH]{$^{1}$Institute for Biomedical Engineering, ETH and University of Zurich \\ $^{2}$Preclinical Laboratory for Translational Research into Affective Disorders, DPPP, Psychiatric Hospital, University of Zurich} 22 | \date{\today} 23 | 24 | 25 | 26 | \begin{document} 27 | \begin{frame} 28 | \titlepage 29 | \end{frame} 30 | 31 | \begin{frame} 32 | \fbox{img/ag1}% 33 | reference 34 | \cite{Paivi} 35 | \cite{Oegren2008} 36 | \end{frame} 37 | 38 | \begin{frame} 39 | \begin{block}{References} 40 | \footnotesize 41 | \printbibliography[heading=bibliography,title=bibliography] 42 | \end{block} 43 | \end{frame} 44 | 45 | \begin{frame}{References} 46 | \footnotesize 47 | \printbibliography[heading=bibliography,title=bibliography] 48 | \end{frame} 49 | 50 | \end{document} 51 | -------------------------------------------------------------------------------- /exampleandimage/egbeamersnw.tex: -------------------------------------------------------------------------------- 1 | %\let\itemudf=\item 2 | \documentclass{beamer} 3 | \usepackage{chemformula} 4 | \usepackage[utf8]{inputenc} 5 | \usepackage[german, english]{babel} % required for rendering German special characters 6 | \usepackage{siunitx} %pretty measurement unit rendering 7 | \usepackage{hyperref} %enable hyperlink for urls 8 | \usepackage{ragged2e} 9 | %\usepackage[font=scriptsize,justification=justified]{caption} 10 | \usepackage{array,booktabs,tabularx} 11 | \usepackage[backend=biber,bibstyle=gb7714-2015-m,%nature,% 12 | citestyle=gb7714-2015,%,backref=true%gb,gbt7714_2005_n, 13 | align=left% 14 | ]{biblatex}%biber,caspervector 15 | \renewcommand{\bibfont}{\footnotesize} 16 | \addbibresource[location=local]{bib.bib} 17 | \defbeamertemplate*{bibliography item}{numeric} 18 | {\hbox{[\printfield{labelnumber}]}} 19 | \setbeamertemplate{bibliography item}[numeric]%book,numeric 20 | 21 | 22 | \title{\huge Opto-fMRI of Monoaminergic Systems and Psychotropic Drugs} 23 | \author{Horea-Ioan Ioanas$^{1,2}$, Bechara Saab$^{2}$, Markus Rudin$^{1}$} 24 | \institute[ETH]{$^{1}$Institute for Biomedical Engineering, ETH and University of Zurich \\ $^{2}$Preclinical Laboratory for Translational Research into Affective Disorders, DPPP, Psychiatric Hospital, University of Zurich} 25 | \date{\today} 26 | 27 | 28 | 29 | \begin{document} 30 | \begin{frame} 31 | \titlepage 32 | \end{frame} 33 | 34 | \begin{frame} 35 | \fbox{img/ag1}% 36 | reference 37 | \cite{Paivi} 38 | \cite{Oegren2008} 39 | \end{frame} 40 | 41 | \begin{frame} 42 | \begin{block}{References} 43 | \footnotesize 44 | \printbibliography[heading=bibliography,title=bibliography] 45 | \end{block} 46 | \end{frame} 47 | 48 | \begin{frame}{References} 49 | \footnotesize 50 | \printbibliography[heading=bibliography,title=bibliography] 51 | \end{frame} 52 | 53 | \end{document} 54 | -------------------------------------------------------------------------------- /exampleandimage/egbib.bib: -------------------------------------------------------------------------------- 1 | % This file was created with JabRef 2.11. 2 | % Encoding: UTF8 3 | 4 | 5 | @Inproceedings{FOURNEY1971-17-38, 6 | Title = {Advances in holographic photoelasticity}, 7 | Address = {Los Angeles, California, USA}, 8 | Author = {M E FOURNEY}, 9 | Booktitle = {Symposium on Applications of Holography in Mechanics}, 10 | Date = {1971}, 11 | Pages = {17-38}, 12 | Publisher = {ASME} 13 | } 14 | 15 | @Book{Mittelbach2004--, 16 | Title = {The LaTeX Companion}, 17 | Address = {Boston,American}, 18 | Author = {Frank Mittelbach and Michel Goossens and Johannes Braams and David Carlisle and Chris Rowley}, 19 | Date = {2004}, 20 | Edition = {Second Edition}, 21 | Pages = {20-25}, 22 | Publisher = {Addison-Wesley} 23 | } 24 | 25 | @Inbook{MARTIN1996-85-96, 26 | Title = {Control of electronic resources in Australia}, 27 | Author = {G MARTIN}, 28 | Booktitle = {Electronic resources : selection and bibliographic control}, 29 | Date = {1996}, 30 | Pages = {85-96}, 31 | Publisher = {The Haworth Press}, 32 | Editor = {L W PATTLE and B J COX}, 33 | Location = {New York} 34 | } 35 | 36 | @Report{Eggrers--, 37 | Title = {One-dimensional flows of an imperfect diatomic gas}, 38 | Address = {Virginia, USA}, 39 | Author = {Eggrers, A. J.}, 40 | Date = {1959}, 41 | Institution = {Langley research center}, 42 | Number = {959}, 43 | Type = {NACA report} 44 | } 45 | 46 | @Thesis{CALMS1965--, 47 | Title = {Infrared spectroscopic studies on solid oxygen}, 48 | Author = {R B CALMS}, 49 | Date = {1965}, 50 | Institution = {Univ. of California}, 51 | Pages = {15-20}, 52 | Type = {phdthesis}, 53 | Location = {Berkeley} 54 | } 55 | 56 | @Patent{TACHIBANA2002--, 57 | Title = {Electronic watermarking method and system}, 58 | Author = {R TACHIBANA and S SHIMIZU and S KOBAYSHI and others}, 59 | Date = {2002-04-25}, 60 | Number = {U.S. Patent 6915001 B2}, 61 | Url = {http://patftuspto.gov/netacgi/nph-Parser?Seetl=PTO2&Sect2=HITOFF&=1&u=/netahhml/search-bool.html&r=1&f=G&1=50&col=AND&d=ptxt&sl=`Electronic+watermarking+method+system'.TTL.&OS=TTL/}, 62 | Urldate = {2002-05-28} 63 | } 64 | 65 | @Standard{ISO1982--, 66 | Title = {ISO 4948-1:1982. Steels classification-Part 1:steels based on chemical composition}, 67 | Author = {ISO}, 68 | Date = {1982}, 69 | Address = {Geneva}, 70 | Note = {standard}, 71 | Publisher = {International organization for standardization} 72 | } 73 | 74 | @Online{HOPKINSON--, 75 | Title = {UNIMARC and metadata: Dublin Core}, 76 | Author = {A HOPKINSON}, 77 | Url = {http://www.rfla.org/IV/rfla64/13801613.htm}, 78 | Urldate = {1999-02-08} 79 | } 80 | 81 | @Article{Miller1984-435-454, 82 | Title = {stackelberg games on a network with C-N competitors}, 83 | Author = {Miller, T. C. and Tobin, R. L. and Freisz, T. L.}, 84 | Date = {1991}, 85 | Journal = {Journal of regional science}, 86 | Number = {4}, 87 | Pages = {435-454}, 88 | Volume = {31}, 89 | Doi = {infoofdoi}, 90 | Year = {1984} 91 | } 92 | 93 | @Article{McEliece1984-44-53, 94 | Title = {Channels with block interference}, 95 | Author = {McEliece, R. J. and Stark, W. E.}, 96 | Journal = {IEEE Trans. Inf. Theory}, 97 | Number = {1}, 98 | Pages = {44-53}, 99 | Volume = {30}, 100 | Doi = {infoofdoi}, 101 | Year = {1984} 102 | } 103 | 104 | @Inproceedings{Hino1993-173-193, 105 | Title = {A finite-vomlume method with unstructed grid for free surface flow simulations}, 106 | Address = {Iowa City, USA}, 107 | Author = {Hino, T. and Martinelli, L. and Jameson, A.}, 108 | Booktitle = {proceedings of the 6th international symposium on numerical ship hydrodynamics}, 109 | Date = {1993}, 110 | Pages = {173-193} 111 | } 112 | 113 | @Book{Harker1987-20-25, 114 | Title = {predicting intercity freight flows}, 115 | Address = {Utrecht, the Netherlands}, 116 | Author = {Harker, P. T.}, 117 | Date = {1987}, 118 | Pages = {20-25}, 119 | Publisher = {VNU science Press} 120 | } 121 | 122 | @Inbook{Prigogine1976-93-134, 123 | Title = {Order through fluctuation:self-organization and social system}, 124 | Address = {London}, 125 | Author = {Prigogine, I.}, 126 | Booktitle = {Evolution and consciousness}, 127 | Date = {1976}, 128 | Pages = {93-134}, 129 | Publisher = {Addison-Wesley}, 130 | Editor = {Jantash, E. AND Waddington, C} 131 | } 132 | 133 | @Report{Cone1963--, 134 | Title = {The aerodynamic design of wings}, 135 | Address = {Virginia, USA}, 136 | Author = {Cone, C. D.}, 137 | Date = {1963}, 138 | Institution = {Langley research center}, 139 | Type = {NASA technical reprot No. TR R-152} 140 | } 141 | 142 | @Thesis{Hsin1990-15-20, 143 | Title = {Development and analysis of panel mmethod for propellers in unsteady flow}, 144 | Address = {Cambridge}, 145 | Author = {Hsin, C.}, 146 | Date = {1990}, 147 | Institution = {Massachusetts institutes of technology}, 148 | Pages = {15-20}, 149 | Type = {phdthesis} 150 | } 151 | 152 | @Patent{Carter2011--, 153 | Title = {Induced surface flow wave energy converter}, 154 | Author = {Carter, R. W. AND Eretkin, R. C.}, 155 | Date = {2011}, 156 | Number = {U.S. Patent 8084873 B2} 157 | } 158 | 159 | @Online{USL2001--, 160 | Title = {Citing Electronic source of information}, 161 | Author = {{University of Sheffield Library}}, 162 | Date = {2001}, 163 | Organization = {University of Sheffield}, 164 | Url = {http://www.rfla.org/IV/rfla64/13801613.htm}, 165 | Urldate = {2007-02-23} 166 | } 167 | 168 | @Article{Miller1984-435-454a, 169 | Title = {stackelberg games on a network with CN network competitors}, 170 | Author = {Miller, T. C. and Tobin, R. L. and Freisz, T. L.}, 171 | Date = {1991}, 172 | Journal = {Journal of regional science}, 173 | Number = {4}, 174 | Pages = {435-454}, 175 | Volume = {31}, 176 | Doi = {infoofdoi}, 177 | Year = {1984} 178 | } 179 | 180 | @comment{jabref-entrytype: Online: req[author;title;date;url;urldate;organization] opt[doi]} 181 | 182 | @comment{jabref-entrytype: Report: req[author;title;type;number;address;institution;date;pages] opt[url;urldate;doi;subtitle]} 183 | 184 | @comment{jabref-entrytype: Thesis: req[author;title;type;address;institution;date;pages] opt[url;urldate;doi]} 185 | 186 | -------------------------------------------------------------------------------- /exampleandimage/egbibdiv.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{ctex,hyperref} 3 | \usepackage{geometry} 4 | \geometry{paperwidth=18cm,paperheight=20cm,% 5 | left=1cm,right=1cm,top=1cm,bottom=1.5cm} 6 | \usepackage[backend=biber,style=numeric]{biblatex}%gb7714-2015,defernumbers=true 7 | \addbibresource{example.bib} 8 | \renewcommand{\bibfont}{\zihao{6}} 9 | \usepackage{titlesec} 10 | %\titleformat{command}[shape]{format}{label}{sep}{before}[after] 11 | \titleformat{\section}{\centering\bfseries}{第\thesection 节}{1em}{}[] 12 | \titlespacing*{\section}{0pt}{0.0\baselineskip}{0.0\baselineskip}[0pt] 13 | \titleformat{\subsection}{\flushleft\bfseries}{\S\,\thesubsection}{1em}{}[] 14 | \titlespacing*{\subsection}{0pt}{0.0\baselineskip}{0.0\baselineskip}[0pt] 15 | \begin{document} 16 | \footnotesize 17 | 18 | 参考文献测试\cite{Gradshteyn2000--}。 19 | 20 | \section{refSegment A} 21 | \begin{refsegment} 22 | 23 | 分章节参考文献测试\cite{Chiani2003-840-845} 24 | \printbibliography[segment=1,heading=subbibliography,title=文献A] 25 | \end{refsegment} 26 | 27 | \section{refSegment B} 28 | \begin{refsegment} 29 | 参考文献测试\cite{张敏莉2007-500-503} 30 | \end{refsegment} 31 | %\printbibliography放在refsegment环境外也是可以的 32 | \printbibliography[segment=2,heading=subbibliography,title=文献B] 33 | 34 | \section{refsection C} 35 | \begin{refsection} 36 | 参考文献测试\cite{Zhang2007-500-503} 37 | \end{refsection} 38 | 39 | \section{refsection D} 40 | \begin{refsection} 41 | 分章节参考文献测试\cite{Andersen1995-42-49} 42 | \subsection{refsegment D-1} 43 | \begin{refsegment} 44 | 分章节参考文献测试\cite{Simon2004--}。 45 | \end{refsegment} 46 | 47 | \subsection{refsegment D-2} 48 | \begin{refsegment} 49 | 分章节参考文献测试\cite{Lin2004--}。 50 | \end{refsegment} 51 | \end{refsection} 52 | 53 | %\printbibliography[section=2,segment=0,heading=subbibliography,title=文献D0] 54 | %\printbibliography[section=2,segment=1,heading=subbibliography,title=文献D1] 55 | %\printbibliography[section=2,segment=2,heading=subbibliography,title=文献D2] 56 | \printbibliography[section=1,heading=subbibliography,title=文献C] 57 | \printbibliography[section=2,heading=subbibliography,title=文献D] 58 | 59 | %遍历非refsection内的参考文献 60 | \printbibliography[heading=bibliography,title=文献全局] 61 | 62 | %\printbibliography[heading=bibliography,title=文献全局,resetnumbers=true] 63 | % 64 | %\printbibliography[heading=bibliography,title=文献全局,omitnumbers=true] 65 | % 66 | %\begin{refcontext}[sorting=ynt] 67 | %\printbibliography[heading=bibliography,title=文献全局,resetnumbers=true] 68 | %\end{refcontext} 69 | 70 | \appendix 71 | \section{Section E} 72 | 参考文献测试\cite{Parsons2000--}。 73 | \end{document} -------------------------------------------------------------------------------- /exampleandimage/egbibdiva.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{ctex,hyperref} 3 | \usepackage{geometry} 4 | \geometry{paperwidth=21cm,paperheight=26cm,% 5 | left=1cm,right=1cm,top=1cm,bottom=1.5cm} 6 | \usepackage[backend=biber,style=numeric,sorting=none,defernumbers=true]{biblatex}%gb7714-2015,defernumbers=true 7 | \addbibresource{example.bib} 8 | \renewcommand{\bibfont}{\zihao{6}} 9 | \usepackage{titlesec} 10 | %\titleformat{command}[shape]{format}{label}{sep}{before}[after] 11 | \titleformat{\section}{\centering\bfseries}{第\thesection 节}{1em}{}[] 12 | \titlespacing*{\section}{0pt}{0.0\baselineskip}{0.0\baselineskip}[0pt] 13 | \titleformat{\subsection}{\flushleft\bfseries}{\S\,\thesubsection}{1em}{}[] 14 | \titlespacing*{\subsection}{0pt}{0.0\baselineskip}{0.0\baselineskip}[0pt] 15 | \begin{document} 16 | 17 | \small 参考文献测试\cite{Gradshteyn2000--}。 18 | 19 | \begin{refsegment} 20 | \section{refSegment A} 21 | 分章节参考文献测试\cite{Chiani2003-840-845} 22 | %\printbibliography[heading=subbibliography,title=文献A] %不制定segment则遍历所有的segment 23 | \printbibliography[segment=1,heading=subbibliography,title=文献A] 24 | \end{refsegment} 25 | 26 | \begin{refsegment} 27 | \section{refSegment B} 28 | 参考文献测试\cite{张敏莉2007-500-503} 29 | \end{refsegment} 30 | %\printbibliography放在refsegment环境外也是可以的 31 | \printbibliography[segment=2,heading=subbibliography,title=文献B] 32 | 33 | \begin{refsegment} 34 | \section{refsegment C} 35 | 分章节参考文献测试\cite{Simon2004--}。 36 | \end{refsegment} 37 | 38 | \begin{refsegment} 39 | \section{refsegment D} 40 | 分章节参考文献测试\cite{Lin2004--}。 41 | \end{refsegment} 42 | 43 | %遍历非refsection内的参考文献 44 | % \printbibliography[heading=bibliography,title=文献全局] 45 | 46 | % \begin{refcontext} 47 | % \printbibliography[heading=bibliography,title=文献全局,resetnumbers=true] 48 | % \end{refcontext} 49 | 50 | % \printbibliography[heading=bibliography,title=文献全局,sorting=none] 51 | 52 | \begin{refcontext}[sorting=none] 53 | \printbibliography[heading=bibliography,title=文献全局,resetnumbers=1] 54 | \end{refcontext} 55 | 56 | 57 | \end{document} -------------------------------------------------------------------------------- /exampleandimage/egbibenv.tex: -------------------------------------------------------------------------------- 1 | \documentclass[twoside]{report} 2 | \usepackage{ctex} 3 | \usepackage{geometry} 4 | \geometry{paperwidth=15cm,paperheight=15cm,top=0cm, bottom=1.5cm, left=1cm,right=1cm} 5 | \usepackage{titlesec} 6 | \titleformat{\chapter}{\zihao{4}\heiti}{\thechapter}{1em}{} 7 | \titlespacing*{\chapter}{0pt}{0.0\baselineskip}{0.5\baselineskip}[0pt] 8 | \titleformat{\section}{\centering\bfseries}{第\thesection 节}{1em}{}[] 9 | \titlespacing*{\section}{0pt}{0.0\baselineskip}{0.0\baselineskip}[0pt] 10 | \titleformat{\subsection}{\flushleft\bfseries}{\S\,\thesubsection}{1em}{}[] 11 | \titlespacing*{\subsection}{0pt}{0.0\baselineskip}{0.0\baselineskip}[0pt] 12 | \usepackage{xcolor} 13 | %书签功能,选项去掉链接红色方框 14 | \usepackage[CJKbookmarks,colorlinks,bookmarksnumbered=true,pdfstartview=FitH,linkcolor=blue]{hyperref} 15 | \usepackage[backend=biber,style=gb7714-2015]{biblatex} 16 | \addbibresource[location=local]{example.bib} 17 | 18 | \makeatletter 19 | \def\blx@bibitem#1{% 20 | \blx@ifdata{#1} 21 | {\begingroup 22 | \blx@getdata{#1}% 23 | \blx@bibcheck 24 | \iftoggle{blx@skipentry}{}{% 25 | \blx@setdefaultrefcontext{#1}% 26 | \global\let\blx@noitem\@empty 27 | \blx@setoptions@type\abx@field@entrytype 28 | \blx@setoptions@entry 29 | \blx@thelabelnumber 30 | \addtocounter{instcount}\@ne 31 | \blx@initsep 32 | \blx@namesep 33 | \csuse{blx@item@\blx@theenv}\relax 34 | % \blx@initsep %移动到上面去,恢复bibnamesep等的作用机制 35 | % \blx@namesep 36 | \csuse{blx@hook@bibitem}% 37 | \blx@execute 38 | \blx@initunit 39 | \blx@anchor 40 | \blx@beglangbib 41 | \bibsentence 42 | \blx@pagetracker 43 | \blx@driver\abx@field@entrytype 44 | \blx@postpunct 45 | \blx@endlangbib}% 46 | \par\endgroup}%这里增加了一个\par 47 | {}} 48 | \makeatother 49 | \newcommand{\itemcmd}{% 50 | \stepcounter{bibentrynumber} 51 | \settowidth{\lengthid}{[\arabic{bibentrynumber}]} 52 | \addtolength{\lengthid}{\biblabelsep} 53 | \setlength{\lengthlw}{\textwidth} 54 | \addtolength{\lengthlw}{-\lengthid} 55 | \addvspace{\bibitemsep}%恢复\bibitemsep的作用 56 | %\parshape 2 0em \textwidth \lengthid \lengthlw 57 | \hangindent\lengthid 58 | [\arabic{bibentrynumber}]\hspace{\biblabelsep}} 59 | \newcounter{bibentrynumber} 60 | \newlength{\lengthid} 61 | \newlength{\lengthlw} 62 | \defbibenvironment{envtest} 63 | {\begingroup\setlength{\parindent}{0em}\setcounter{bibentrynumber}{0}} 64 | {\endgroup} 65 | {\itemcmd}%\newline\itemcmd 66 | % 67 | %参考文献文本字体设置为默认,字号为6,利用ctex设置 68 | %如果不是利用ctex宏包,可以利用其它字号设置命令 69 | \renewcommand{\bibfont}{\zihao{5}} 70 | %设置各条参考文献之间的间距为0pt 71 | \setlength{\bibitemsep}{0ex} 72 | \setlength{\bibnamesep}{0ex} 73 | \setlength{\bibinitsep}{0ex} 74 | 75 | 76 | \newcommand{\itemcmdb}{\addvspace{\bibitemsep}} 77 | \defbibenvironment{marginref}{\begingroup\setlength{\parindent}{0em}} 78 | {\endgroup}{\itemcmdb}%\newline%\@endparenv%\clearpage 79 | 80 | \defbibenvironment{bibliography} 81 | {\list 82 | {\printfield[labelnumberwidth]{labelnumber}}%标签,由域labelnumber信息的提供 83 | {\setlength{\labelwidth}{\labelnumberwidth}%标签宽度设置为labelnumberwidth 84 | \setlength{\leftmargin}{\labelwidth}% 85 | \setlength{\labelsep}{\biblabelsep}%标签与内容间距设置为\biblabelsep 86 | \addtolength{\leftmargin}{\labelsep}%缩进宽度设置为\labelwidth+\labelsep 87 | \setlength{\itemsep}{\bibitemsep}%垂直间距 88 | \setlength{\parsep}{\bibparsep}}% 89 | \renewcommand*{\makelabel}[1]{\hss##1\hfill}} 90 | {\endlist} 91 | {\item} 92 | 93 | \begin{document} 94 | \chapter{文献表自定义} 95 | \begin{refsection} 96 | \section{文献表自定义} 97 | 98 | {\hangindent=2em \par She very soon came to an open field, with 99 | a wood on the other side of it: it looked much darker 100 | than the last wood, and Alice felt a little timid 101 | about going into it.\par} 102 | 103 | {\hangindent=2em She very soon came to an open field, with 104 | a wood on the other side of it: it looked much darker 105 | than the last wood, and Alice felt a little timid 106 | about going into it.\par} 107 | 108 | {\hangindent=2em She very soon came to an open field, with 109 | a wood on the other side of it: it looked much darker 110 | than the last wood, and Alice felt a little timid 111 | about going into it.} 112 | 113 | She very soon came to an open field, with 114 | a wood on the other side of it: it looked much darker 115 | than the last wood, and Alice felt a little timid 116 | about going into it. 117 | 118 | 序章内容\cite{GPS1988--,杨洪升2013-56-75,马克思2013-302-302} 119 | 正文内容一\cite{Andersen1995-42-49,BUSECK1980-117-211,Calkin2011-8-9} 120 | 正文内容二\cite{Parsons2000b--,Parsons2000--,Parsons2000noloc--,Parsons2000nodate--} 121 | \cite{1977-49-49,亚洲地质图编目组1978-194-208,陈晋镳1980-56-114} 122 | 123 | 124 | 125 | \printbibliography[heading=subbibintoc,env=envtest,title=【参考文献】] 126 | \end{refsection} 127 | 128 | \chapter{文献表自定义} 129 | \begin{refsection} 130 | \section{文献表自定义} 131 | 132 | 序章内容\cite{GPS1988--,杨洪升2013-56-75,马克思2013-302-302} 133 | 正文内容一\cite{Andersen1995-42-49,BUSECK1980-117-211,Calkin2011-8-9} 134 | 正文内容二\cite{Parsons2000b--,Parsons2000--,Parsons2000noloc--,Parsons2000nodate--} 135 | \cite{1977-49-49,亚洲地质图编目组1978-194-208,陈晋镳1980-56-114} 136 | 137 | \printbibliography[heading=subbibintoc,env=marginref,title=【参考文献】] 138 | \end{refsection} 139 | 140 | \chapter{文献表自定义} 141 | \begin{refsection} 142 | \section{文献表自定义} 143 | 144 | 序章内容\cite{GPS1988--,杨洪升2013-56-75,马克思2013-302-302} 145 | 正文内容一\cite{Andersen1995-42-49,BUSECK1980-117-211,Calkin2011-8-9} 146 | 正文内容二\cite{Parsons2000b--,Parsons2000--,Parsons2000noloc--,Parsons2000nodate--} 147 | \cite{1977-49-49,亚洲地质图编目组1978-194-208,陈晋镳1980-56-114} 148 | 149 | \printbibliography[heading=subbibintoc,title=【参考文献】] 150 | \end{refsection} 151 | \end{document} -------------------------------------------------------------------------------- /exampleandimage/egbibfilter.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{ctex,hyperref} 3 | \usepackage{geometry} 4 | \geometry{paperwidth=21cm,paperheight=26cm,% 5 | left=1cm,right=1cm,top=1cm,bottom=1.5cm} 6 | \usepackage[backend=biber,style=gb7714-2015]{biblatex} 7 | \addbibresource{example.bib} 8 | \renewcommand{\bibfont}{\zihao{6}} 9 | \usepackage{titlesec} 10 | %\titleformat{command}[shape]{format}{label}{sep}{before}[after] 11 | \titleformat{\section}{\centering\bfseries}{第\thesection 节}{1em}{}[] 12 | \titlespacing*{\section}{0pt}{0.0\baselineskip}{0.0\baselineskip}[0pt] 13 | \titleformat{\subsection}{\flushleft\bfseries}{\S\,\thesubsection}{1em}{}[] 14 | \titlespacing*{\subsection}{0pt}{0.0\baselineskip}{0.0\baselineskip}[0pt] 15 | \DeclareBibliographyCategory{reportandthesis} 16 | \addtocategory{reportandthesis}{汤万金2013-09-30--,Calkin2011-8-9,吴云芳2003--,CALMS1965--} 17 | \begin{document} 18 | 文献\cite{张伯伟2002--} 19 | \cite{CRAWFPRD1995--} 20 | \cite{陈志勇2011--} 21 | \cite{Babu2014--} 22 | \cite{汤万金2013-09-30--} 23 | \cite{Calkin2011-8-9} 24 | \cite{吴云芳2003--} 25 | \cite{CALMS1965--} 26 | \cite{张凯军2012-04-05--} 27 | \cite{KOSEKI2002--} 28 | \cite{全国广播电视标准化技术委员会2007-1-1} 29 | \cite{国家环境保护局科技标准司1996-2-3} 30 | \cite{楼梦麟2011-11-12} 31 | \cite{BUSECK1980-117-211} 32 | \cite{陈建军2010-93-93} 33 | \cite{DESMARAIS1992-605-609} 34 | \cite{张田勤2000--} 35 | \cite{萧钰2001--} 36 | 37 | \printbibliography[type=book,notkeyword=standard,title=【普通图书】] 38 | \defbibfilter{collections}{% 39 | type=collection 40 | or type=proceedings 41 | or type=incollection 42 | or type=inproceedings 43 | } 44 | \printbibliography[filter=collections,title=【论文集、会议录】] 45 | \defbibfilter{standard}{% 46 | ( type=book or type=inbook ) 47 | and keyword=standard 48 | } 49 | \printbibliography[filter=standard,title=【标准文献】] 50 | \printbibliography[type=inbook,notkeyword=standard,title=【专著中析出的文献】] 51 | \printbibliography[type=article,notkeyword=news,title=【期刊中析出的文献】] 52 | \printbibliography[type=article,keyword=news,title=【报纸析出的文献】] 53 | \printbibliography[category=reportandthesis,title=【报告和学位论文】] 54 | \printbibliography[notcategory=reportandthesis,title=【非报告和学位论文】] 55 | \end{document} -------------------------------------------------------------------------------- /exampleandimage/egbibfont.tex: -------------------------------------------------------------------------------- 1 | \documentclass{report} 2 | \usepackage{ctex} 3 | \usepackage{geometry} 4 | \geometry{paperwidth=15cm,paperheight=8cm,top=0cm, bottom=1.5cm, left=1cm,right=1cm} 5 | \usepackage{titlesec} 6 | \titleformat{\chapter}{\zihao{5}\heiti}{\thechapter}{1em}{} 7 | \titlespacing*{\chapter}{0pt}{0.0\baselineskip}{0.0\baselineskip}[0pt] 8 | \titleformat{\section}{\zihao{-5}\heiti}{\thesection}{1em}{} 9 | \titlespacing*{\section}{0pt}{0.0\baselineskip}{0.0\baselineskip}[0pt] 10 | \usepackage[backend=biber,style=gb7714-2015]{biblatex}%sorting=none, 11 | \addbibresource[location=local]{example.bib} 12 | 13 | \usepackage{fontspec} 14 | 15 | 16 | %\newcommand{\ftArial}{\fontspec{TeX Gyre Bonum}\selectfont} 17 | %\newcommand{\ftArial}{\fontspec{Latin Modern Roman}\selectfont} 18 | %\newcommand{\ftArial}{\fontspec{Droid Sans}\selectfont} 19 | \newcommand{\ftcouriernew}{\fontspec{DejaVu Sans}\selectfont} 20 | 21 | %\newcommand{\ftArial}{\fontspec{Iwona}\selectfont} 22 | \newcommand{\ftArial}{\fontspec{Source Sans Pro}\selectfont} 23 | %\newcommand{\ftArial}{\fontspec{Linux Libertine O}\selectfont} 24 | %\newcommand{\ftArial}{\fontspec{Cabin}\selectfont} 25 | 26 | 27 | %参考文献文本字体设置为默认,字号为6,利用ctex设置 28 | %如果不是利用ctex宏包,可以利用其它字号设置命令 29 | \renewcommand{\bibfont}{\zihao{6}} 30 | %设置各条参考文献之间的间距为0pt 31 | \setlength{\bibitemsep}{0pt} 32 | \setlength{\bibnamesep}{1ex} 33 | \setlength{\bibinitsep}{2ex} 34 | 35 | \makeatletter 36 | \newcommand{\itemcmd}[1]{#1\par} 37 | \defbibenvironment{marginref}{\begingroup 38 | \renewcommand{\baselinestretch}{0.8} 39 | %\setlength{\parindent}{0pt} 40 | \setlength{\parskip}{0pt}} 41 | {\endgroup}{\itemcmd}%\newline%\@endparenv%\clearpage 42 | \makeatother 43 | 44 | \begin{document} 45 | 46 | \nocite{GPS1988--,杨洪升2013-56-75,马克思2013-302-302} 47 | \nocite{Andersen1995-42-49,BUSECK1980-117-211,Calkin2011-8-9} 48 | 49 | %\chapter{序章} 50 | %\section{序节} 51 | %%\tiny 52 | %序章内容\cite{GPS1988--,杨洪升2013-56-75,马克思2013-302-302} 53 | %正文内容一\cite{Andersen1995-42-49,BUSECK1980-117-211,Calkin2011-8-9} 54 | %正文内容二\cite{Parsons2000b--,Parsons2000--,Parsons2000noloc--,Parsons2000nodate--} 55 | \printbibliography[heading=subbibliography,title=参考文献] 56 | \newpage 57 | \renewcommand{\bibfont}{\zihao{6}\ftArial\fangsong} 58 | \printbibliography[heading=subbibliography,title=参考文献] 59 | \newpage 60 | \renewcommand{\bibfont}{\zihao{6}\ttfamily} 61 | \printbibliography[heading=subbibliography,title=参考文献] 62 | \newpage 63 | \renewcommand{\bibfont}{\zihao{6}\ftcouriernew\kaishu} 64 | \printbibliography[env=marginref,heading=subbibliography,title=参考文献] 65 | \end{document} -------------------------------------------------------------------------------- /exampleandimage/egbibinbeamer.tex: -------------------------------------------------------------------------------- 1 | \documentclass[xcolor=svgnames]{beamer} 2 | \mode 3 | \usepackage{ctex} 4 | \usepackage{graphicx} 5 | \usepackage{xcolor} 6 | \usepackage{listings} 7 | \usepackage[backend=biber,style=gb7714-2015]{biblatex} 8 | \renewcommand{\bibfont}{\zihao{8}\songti} 9 | \addbibresource[location=local]{example.bib} 10 | 11 | \title{\LaTeX{} 参考文献之 \newline 12 | Biblatex宏包使用和GB/T7714-2015参考文献样式} 13 | %\renewcommand{\thefootnote}{\fnsymbol{footnote}} 14 | \author{胡振震\footnote{hzzmail@163.com}} 15 | \date{\today} 16 | \renewcommand{\footnotesize}{\tiny} 17 | 18 | \begin{document} 19 | \begin{frame}[plain] 20 | \titlepage 21 | \end{frame} 22 | 23 | \begin{frame}{测试参考文献} 24 | \tiny 25 | 在脚注中引用或者把文献表放到脚注中 26 | \footnote{在脚注中引用\footcite{Saito2006-169-176}} 27 | \footfullcite{中国职工教育研究会1985--} 28 | \footfullcite{Fontana2002-309-313} 29 | \footfullcite{Robertson2011--} 30 | \footfullcite{雷光春2012--} 31 | \footfullcite{Humphrey1971--} 32 | \footfullcite{马欢2011-27-27} 33 | \footfullcite{中国图书馆学会1957--} 34 | \footfullcite{刘彻东1998-38-39} 35 | \end{frame} 36 | 37 | \begin{frame}{参考文献} 38 | \printbibliography[heading=bibliography,title=参考文献] 39 | \end{frame} 40 | \end{document} 41 | 42 | 43 | -------------------------------------------------------------------------------- /exampleandimage/egbibinfoot.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{ctex} 3 | \usepackage[paperwidth=12cm,paperheight=9cm,% 4 | left=1cm,right=1cm,top=1cm,bottom=1.5cm]{geometry} 5 | \usepackage[colorlinks=true,pdfstartview=FitH,linkcolor=blue, 6 | anchorcolor=violet,citecolor=magenta]{hyperref}%书签功能,选项去掉链接红色方框 7 | \usepackage{titleref}%标题引用 8 | \usepackage[backend=biber,style=gb7714-2015ay]{biblatex} 9 | \renewcommand{\bibfont}{\zihao{6}} 10 | \addbibresource[location=local]{example.bib} 11 | 12 | \begin{document} 13 | 14 | \section{页脚的文献表} 15 | 参考文献\cite{白书农1998-146-163} 16 | \footfullcite{陈志勇2011--} 17 | \footfullcite{储大同2010-721-724} 18 | \footfullcite{顾炎武1982--} 19 | 中文段落参考文献中文段落参考文献中文段落参考文献中文段落参考文献中文段落 20 | 参考文献中文段落参考文献中文段落参考文献中文段落参考文献中文段落参考文献 21 | 中文段落参考文献中文段落参考文献中文段落参考 22 | 23 | \printbibliography[title=【全部引文】] 24 | \end{document} -------------------------------------------------------------------------------- /exampleandimage/egbibinfootmargin.tex: -------------------------------------------------------------------------------- 1 | \documentclass[twoside]{article} 2 | \usepackage{ctex} 3 | \usepackage{geometry} 4 | \geometry{includemp,paperwidth=21cm,paperheight=19cm,% 5 | left=1cm,right=1cm,marginparwidth=6cm,top=1cm,bottom=1.5cm} 6 | \usepackage{xcolor} 7 | %书签功能,选项去掉链接红色方框 8 | \usepackage[CJKbookmarks,colorlinks,bookmarksnumbered=true,pdfstartview=FitH,linkcolor=blue]{hyperref} 9 | \usepackage[backend=biber,style=gb7714-2015]{biblatex} 10 | \addbibresource[location=local]{example.bib} 11 | 12 | %\newcommand{\itemcmd}[1]{#1\par} 13 | \defbibenvironment{marginref}{\begingroup} 14 | {\endgroup}{\zihao{6}\songti}%\newline\itemcmd 15 | \defbibheading{marginref}{} 16 | \newcommand{\pz}[1]{% 定义 pz 为旁注命令 17 | \marginpar[\flushright\textcolor{blue}{\scriptsize#1}]{\scriptsize#1}} 18 | 19 | \newcommand{\pzcite}[1]{% 20 | \cite{#1} 21 | \marginpar[\flushright\textcolor{blue}{{\printbibliography[env=marginref,keyword=#1,heading=marginref]}}] 22 | {\printbibliography[env=marginref,keyword=#1,heading=marginref]}} 23 | 24 | \begin{document} 25 | \section{脚注和旁注中的文献表} 26 | 27 | 参考文献\pzcite{Eggrers--}中文段落参考文献中文段落参考文献中文段 28 | 参考文献中文段落参考文献中文段落参考文献中文段落参考文献中文段落 29 | 参考文献中文段落参考文献中文段落参考文献中文段落参考文献中文段落 30 | 参考文献\pzcite{汤万金2013-09-30--}中文段落参考文献中文段落参考 31 | 参考文献\footfullcite{刘裕国2013-01-12--} 32 | \footfullcite{Dublin2012-06-14--} 33 | \footfullcite{王夫之1845--} 34 | 中文段落参考文献中文段落参考文献中文段落参考文献中文段落 35 | 参考文献中文段落参考文献中文段落参考文献中文段落参考文献中文段落 36 | 37 | text text text text text text text text text 38 | \fbox{here is a marginpar}\pz{some note.} 39 | text text text text text text text text text 40 | text text text text text text text text text 41 | 42 | 参考文献中文段落参考文献中文段落参考文献中文 43 | \fbox{这里是旁注}\pz{中文旁注} 44 | 段落参考文献中文段落参考文献中文段落参考文献 45 | 中文段落参考文献中文段落参考 46 | 47 | 48 | \printbibliography[title=【参考文献】] 49 | \end{document} -------------------------------------------------------------------------------- /exampleandimage/egbibinmargin.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{ctex} 3 | \usepackage[includemp,paperwidth=12cm,paperheight=9cm,% 4 | left=1cm,right=1cm,marginparwidth=5cm,top=1cm,bottom=1.5cm]{geometry} 5 | \usepackage[colorlinks=true,pdfstartview=FitH,linkcolor=blue, 6 | anchorcolor=violet,citecolor=magenta]{hyperref}%书签功能,选项去掉链接红色方框 7 | \usepackage{titleref}%标题引用 8 | \usepackage[backend=biber,style=gb7714-2015ay]{biblatex} 9 | \renewcommand{\bibfont}{\zihao{6}} 10 | \addbibresource[location=local]{example.bib} 11 | \usepackage[% 12 | % bottom, % Footnotes appear always on bottom. This is necessary 13 | % % especially when floats are used 14 | % stable, % Make footnotes stable in section titles 15 | perpage, % Reset on each page 16 | % %para, % Place footnotes side by side of in one paragraph. 17 | side, % Place footnotes in the margin 18 | % ragged, % Use RaggedRight 19 | % marginal, 20 | % norule, % suppress rule above footnotes 21 | % %hang, 22 | % multiple, % rearrange multiple footnotes intelligent in the text. 23 | % %symbol, % use symbols instead of numbers 24 | ]{footmisc} 25 | 26 | \begin{document} 27 | 28 | \section{页边的文献表} 29 | 参考文献\cite{白书农1998-146-163} 30 | \footfullcite{陈志勇2011--} 31 | \footfullcite{储大同2010-721-724} 32 | \footfullcite{顾炎武1982--} 33 | 中文段落参考文献中文段落参考文献中文段落参考文献中文段落参考文献中文段落 34 | 参考文献中文段落参考文献中文段落参考文献中文段落参考文献中文段落参考文献 35 | 中文段落参考文献中文段落参考文献中文段落参考 36 | 37 | \newpage 38 | \newgeometry{left=1cm,right=1cm,top=1cm,bottom=2cm} 39 | \printbibliography[title=【全部引文】] 40 | \end{document} -------------------------------------------------------------------------------- /exampleandimage/egbilang.tex: -------------------------------------------------------------------------------- 1 | \documentclass{report} 2 | \usepackage{ctex} 3 | \usepackage{geometry} 4 | \geometry{paperwidth=15cm,paperheight=9.5cm,top=0cm, bottom=1.5cm, left=1cm,right=1cm} 5 | \usepackage{titlesec} 6 | \titleformat{\chapter}{\zihao{5}\heiti}{\thechapter}{1em}{} 7 | \titlespacing*{\chapter}{0pt}{0.0\baselineskip}{0.0\baselineskip}[0pt] 8 | \titleformat{\section}{\zihao{-5}\heiti}{\thesection}{1em}{} 9 | \titlespacing*{\section}{0pt}{0.0\baselineskip}{0.0\baselineskip}[0pt] 10 | \usepackage[backend=biber,style=gb7714-2015]{biblatex} 11 | \addbibresource[location=local]{example.bib} 12 | 13 | \begin{document} 14 | 15 | \chapter{序章} 16 | 序章内容\cite{GPS1988--} 17 | \defbibentryset{bilangyi2013}{易仕和2013--,Yi2013--} 18 | \defbibentryset{bilangzhang2007}{张敏莉2007-500-503,Zhang2007-500-503} 19 | 专著,双语文献引用\cite{bilangyi2013}\cite{bilangzhang2007} 20 | 21 | \printbibliography[heading=subbibliography,title=参考文献] 22 | 23 | \end{document} -------------------------------------------------------------------------------- /exampleandimage/egciteincaption.tex: -------------------------------------------------------------------------------- 1 | \documentclass{report} 2 | \usepackage{ctex} 3 | \usepackage{geometry} 4 | \geometry{paperwidth=12cm,paperheight=9cm,top=0cm, bottom=1.5cm, left=1cm,right=1cm} 5 | \usepackage{titlesec} 6 | \titleformat{\chapter}{\zihao{5}\heiti}{\thechapter}{1em}{} 7 | \titlespacing*{\chapter}{0pt}{0.5\baselineskip}{0.0\baselineskip}[0pt] 8 | \titleformat{\section}{\zihao{-5}\heiti}{\thesection}{1em}{} 9 | \titlespacing*{\section}{0pt}{0.5\baselineskip}{0.0\baselineskip}[0pt] 10 | \usepackage{hyperref} 11 | \usepackage[backend=biber,style=gb7714-2015]{biblatex} 12 | \addbibresource[location=local]{example.bib} 13 | 14 | \begin{document} 15 | \chapter{序章} 16 | \begin{figure}[!htb] 17 | \centering 18 | \fbox{\parbox[c][2cm][c]{4cm}{\centering\large example figure}} 19 | \caption{在题注中引用文献\cite{GPS1988--}}\label{cite:incaption} 20 | \end{figure} 21 | 22 | \printbibliography[heading=subbibliography,title=本章参考文献] 23 | \end{document} -------------------------------------------------------------------------------- /exampleandimage/egciteinfoot.tex: -------------------------------------------------------------------------------- 1 | \documentclass{report} 2 | \usepackage{ctex} 3 | \usepackage{geometry} 4 | \geometry{paperwidth=12cm,paperheight=8cm,top=0cm, bottom=1.5cm, left=1cm,right=1cm} 5 | \usepackage{hyperref} 6 | \usepackage{titlesec} 7 | \titleformat{\chapter}{\zihao{5}\heiti}{\thechapter}{1em}{} 8 | \titlespacing*{\chapter}{0pt}{0.5\baselineskip}{0.5\baselineskip}[0pt] 9 | \titleformat{\section}{\zihao{-5}\heiti}{\thesection}{1em}{} 10 | \titlespacing*{\section}{0pt}{0.5\baselineskip}{0.5\baselineskip}[0pt] 11 | \usepackage[backend=biber,style=gb7714-2015]{biblatex} 12 | \addbibresource[location=local]{example.bib} 13 | 14 | \begin{document} 15 | \chapter{序章} 16 | 17 | 正文内容脚注中引用参考文献\footnote{biblatex使用可以参考宏包手册\cite{Lehman2015}} 18 | 19 | \printbibliography[heading=subbibliography,title=本章参考文献] 20 | \end{document} -------------------------------------------------------------------------------- /exampleandimage/egciteinminipage.tex: -------------------------------------------------------------------------------- 1 | \documentclass{report} 2 | \usepackage{ctex} 3 | \usepackage{geometry} 4 | \geometry{paperwidth=12cm,paperheight=6cm,top=0cm, bottom=1.5cm, left=1cm,right=1cm} 5 | \usepackage{titlesec} 6 | \titleformat{\chapter}{\zihao{5}\heiti}{\thechapter}{1em}{} 7 | \titlespacing*{\chapter}{0pt}{0.5\baselineskip}{0.5\baselineskip}[0pt] 8 | \titleformat{\section}{\zihao{-5}\heiti}{\thesection}{1em}{} 9 | \titlespacing*{\section}{0pt}{0.5\baselineskip}{0.5\baselineskip}[0pt] 10 | \usepackage{hyperref} 11 | \usepackage[backend=biber,style=gb7714-2015]{biblatex} 12 | \addbibresource[location=local]{example.bib} 13 | 14 | \begin{document} 15 | \chapter{序章} 16 | \fbox{ 17 | \begin{minipage}{0.5\linewidth}\centering 18 | 使用小页环境引用文献\cite{GPS1988--} 19 | \end{minipage}} 20 | 21 | \printbibliography[heading=subbibliography,title=本章参考文献] 22 | \end{document} -------------------------------------------------------------------------------- /exampleandimage/egfontgreak.bib: -------------------------------------------------------------------------------- 1 | %% LaTeX2e file `egfontgreak.bib' 2 | %% generated by the `filecontents' environment 3 | %% from source `egfontgreak' on 2019/01/27. 4 | %% 5 | @ARTICLE{aritileeg, 6 | AUTHOR = {Zhang, Qi}, 7 | DATE = {2007}, 8 | JOURNALTITLE = {An periodical αβγδεζηθικλμνξοπρστυφχψω}, 9 | PAGES = {82--92}, 10 | TITLE = {An article for test αβγδεζηθικλμνξοπρστυφχψω}, 11 | VOLUME = {12}, 12 | NUMBER ={2}, 13 | } 14 | -------------------------------------------------------------------------------- /exampleandimage/egfontgreak.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{ctex} 3 | %\usepackage{fontspec} 4 | %\setmainfont{CMU Serif} 5 | \usepackage{geometry} 6 | \geometry{paperwidth=15cm,paperheight=12cm,top=0cm, bottom=1.5cm, left=1cm,right=1cm} 7 | \usepackage[backend=biber,style=gb7714-2015]{biblatex}%sorting=none, 8 | 9 | \usepackage{filecontents} 10 | \begin{filecontents}{\jobname.bib} 11 | @ARTICLE{aritileeg, 12 | AUTHOR = {Zhang, Qi}, 13 | DATE = {2007}, 14 | JOURNALTITLE = {An periodical αβγδεζηθικλμνξοπρστυφχψω}, 15 | PAGES = {82--92}, 16 | TITLE = {An article for test αβγδεζηθικλμνξοπρστυφχψω}, 17 | VOLUME = {12}, 18 | NUMBER ={2}, 19 | } 20 | \end{filecontents} 21 | \addbibresource[location=local]{\jobname.bib} 22 | 23 | \begin{document} 24 | 25 | \nocite{*} 26 | { 27 | \newcommand{\ftcmu}{\fontspec{CMU Serif}\selectfont} 28 | \renewcommand{\bibfont}{\ftcmu}%设置英文字体不影响中文字体 29 | \printbibliography 30 | 31 | } 32 | \end{document} -------------------------------------------------------------------------------- /exampleandimage/egfontinbiblio.tex: -------------------------------------------------------------------------------- 1 | \documentclass[twoside]{article} 2 | \usepackage{ctex} 3 | \usepackage{geometry} 4 | \geometry{paperwidth=21cm,paperheight=29cm,top=1.5cm, bottom=1.5cm, left=2.54cm,right=2.54cm} 5 | \usepackage{xcolor} 6 | \usepackage[CJKbookmarks,colorlinks,bookmarksnumbered=true,pdfstartview=FitH,linkcolor=blue]{hyperref} 7 | \usepackage[backend=biber,style=gb7714-2015,gbtype=true,block=par]{biblatex}%align=gb7714-2015 8 | 9 | \addbibresource[location=local]{example.bib} 10 | 11 | % 12 | % 换行的控制 13 | % 14 | % 选项 block=none , space , par , nbpar , ragged 15 | %\renewcommand*{\newblockpunct}{\par\nobreak} 16 | 17 | % 18 | % 标点类型的控制(全局字体能控制标点的字体) 19 | % 20 | % 21 | 22 | 23 | % \textit,sl,emph-楷体,\textbf,sf-黑体,\texttt-仿宋,\textsc,md,up-宋体 24 | % 25 | % 字体的控制 26 | % 27 | % 全局字体 28 | \renewcommand{\bibfont}{\zihao{-5}\bfseries}%\fangsong 29 | % 标题字体 30 | \DeclareFieldFormat{title}{\color{blue}\ttfamily#1\adddot\addthinspace}% 31 | \DeclareFieldFormat{journaltitle}{\color{blue}\ttfamily#1\isdot} 32 | \DeclareFieldFormat{issuetitle}{\color{blue}\ttfamily#1} 33 | \DeclareFieldFormat{maintitle}{\color{blue}\ttfamily#1} 34 | \DeclareFieldFormat{booktitle}{\color{blue}\ttfamily#1} 35 | \DeclareFieldFormat%将期刊等文献的标题中原来带的引号去掉 36 | [article,patent,thesis,unpublished] 37 | {title}{\color{blue}\ttfamily#1\adddot\addthinspace}%\mkbibquote{#1\isdot} 38 | \DeclareFieldFormat%将期刊等文献的标题中原来带的引号去掉 39 | [inbook,incollection,inproceedings] 40 | {title}{\color{blue}\ttfamily#1}%\nopunct\unspace 41 | 42 | % url和doi字体 43 | %\urlstyle{sf} 44 | %\def\UrlFont{\bfseries} 45 | \def\UrlFont{\ttfamily} 46 | 47 | % 48 | % 间距的控制 49 | % 50 | \setlength{\bibitemsep}{0ex} 51 | \setlength{\bibnamesep}{0ex} 52 | \setlength{\bibinitsep}{0ex} 53 | 54 | %\renewcommand{\thefootnote}{\textcircled{\tiny\arabic{footnote}}} 55 | 56 | \begin{document} 57 | 编译信息:biblatex v\versionofbiblatex;gb7714-2015*.* version number \versionofgbtstyle. 58 | %%%测试作者年/biblatex版本兼容性的文件 59 | %%%test file for author year style 60 | 61 | \section{文献表} 62 | 文献 63 | \cite{张伯伟2002--} 64 | \cite{雷光春2012--} 65 | \cite{汤万金2013-09-30--} 66 | \cite{贾东琴2011-45-52} 67 | \cite{韩吉人1985-90-99} 68 | \cite{马欢2011-27-27} 69 | \cite{张凯军2012-04-05--} 70 | \cite{国家环境保护局科技标准司1996-2-3} 71 | \cite{白书农1998-146-163} 72 | \cite{杨洪升2013-56-75} 73 | \cite{中国职工教育研究会1985--} 74 | \cite{丁文祥2000--} 75 | \cite{李强2012-05-03--} 76 | \cite{中华医学会湖北分会1984--} 77 | 78 | { 79 | %\hyphenation{kurose-gawa} 80 | %\hyphenpenalty=1000 81 | %\tolerance=500 82 | \printbibliography[heading=subbibliography,title=【参考文献】] 83 | } 84 | \end{document} -------------------------------------------------------------------------------- /exampleandimage/egheadclass.tex: -------------------------------------------------------------------------------- 1 | \documentclass{book} 2 | \usepackage{ctex} 3 | \usepackage[paperwidth=12cm,paperheight=6cm,top=1.5cm, bottom=1.5cm, left=1cm,right=1cm]{geometry} 4 | \usepackage{titlesec} 5 | \titleformat{\chapter}{\zihao{4}\heiti}{\thechapter}{1em}{} 6 | \titlespacing*{\chapter}{0pt}{0.0\baselineskip}{0.5\baselineskip}[0pt] 7 | \titleformat{\section}{\zihao{5}\heiti}{\thesection}{1em}{} 8 | \titlespacing*{\section}{0pt}{0.5\baselineskip}{0.5\baselineskip}[0pt] 9 | \usepackage[backend=biber,style=nature]{biblatex} 10 | \addbibresource[location=local]{example.bib} 11 | 12 | \renewcommand{\bibfont}{\zihao{-6}\songti} 13 | \setlength{\bibitemsep}{2pt} 14 | \usepackage{hyperref} 15 | \begin{document} 16 | \tableofcontents 17 | \begin{refsection} 18 | \chapter{序章} 19 | \section{序节} 20 | 序章内容\cite{GPS1988--} 21 | \defbibentryset{bilangyi2013}{易仕和2013--,Yi2013--} 22 | 专著,双语文献引用\cite{bilangyi2013} 23 | 24 | \phantomsection 25 | \addcontentsline{toc}{chapter}{参考文献} 26 | \printbibliography[heading=bibliography,title=本章参考文献] 27 | \end{refsection} 28 | 29 | \begin{refsection} 30 | \chapter{正文章一} 31 | \section{正文节一} 32 | 正文内容一\cite{杨洪升2013-56-75} 33 | 34 | \phantomsection 35 | \addcontentsline{toc}{section}{参考文献} 36 | \printbibliography[heading=subbibliography,title=本章参考文献] 37 | \end{refsection} 38 | 39 | \begin{refsection} 40 | \chapter{正文章二} 41 | \section{正文节二} 42 | 43 | 正文内容二\cite{马克思2013-302-302} 44 | \printbibliography[heading=subbibliography,title=本章参考文献] 45 | \end{refsection} 46 | \end{document} -------------------------------------------------------------------------------- /exampleandimage/egheadfancy.tex: -------------------------------------------------------------------------------- 1 | \documentclass{book} 2 | \usepackage{ctex} 3 | \usepackage[paperwidth=12cm,paperheight=6cm,top=1.5cm, bottom=1.5cm, left=1cm,right=1cm]{geometry} 4 | \usepackage{titlesec} 5 | \titleformat{\chapter}{\zihao{4}\heiti}{\thechapter}{1em}{} 6 | \titlespacing*{\chapter}{0pt}{0.0\baselineskip}{0.5\baselineskip}[0pt] 7 | \titleformat{\section}{\zihao{5}\heiti}{\thesection}{1em}{} 8 | \titlespacing*{\section}{0pt}{0.5\baselineskip}{0.5\baselineskip}[0pt] 9 | \usepackage[backend=biber,style=nature]{biblatex} 10 | \addbibresource[location=local]{example.bib} 11 | 12 | \renewcommand{\bibfont}{\zihao{-6}\songti} 13 | \setlength{\bibitemsep}{2pt} 14 | \usepackage{hyperref} 15 | \usepackage{fancyhdr} 16 | \pagestyle{fancy} 17 | \renewcommand{\chaptermark}[1]{% 18 | \markboth{#1}{}} 19 | \renewcommand{\sectionmark}[1]{% 20 | \markright{\thesection\ #1}} 21 | \fancyhf{} % delete current header and footer 22 | \fancyhead[LE,RO]{\bfseries\thepage} 23 | \fancyhead[LO]{\bfseries\rightmark} 24 | \fancyhead[RE]{\bfseries\leftmark} 25 | \renewcommand{\headrulewidth}{0.5pt} 26 | \renewcommand{\footrulewidth}{0pt} 27 | \addtolength{\headheight}{0.5pt} % space for the rule 28 | \fancypagestyle{plain}{% 29 | \fancyhead{} % get rid of headers on plain pages 30 | \renewcommand{\headrulewidth}{0pt} % and the line 31 | } 32 | 33 | \begin{document} 34 | \tableofcontents 35 | \begin{refsection} 36 | \chapter{序章} 37 | \section{序节} 38 | 序章内容\cite{GPS1988--} 39 | \defbibentryset{bilangyi2013}{易仕和2013--,Yi2013--} 40 | 专著,双语文献引用\cite{bilangyi2013} 41 | 42 | \phantomsection 43 | \addcontentsline{toc}{chapter}{参考文献} 44 | \printbibliography[heading=bibliography,title=本章参考文献] 45 | \end{refsection} 46 | 47 | \begin{refsection} 48 | \chapter{正文章一} 49 | \section{正文节一} 50 | 正文内容一\cite{杨洪升2013-56-75} 51 | 52 | \phantomsection 53 | \addcontentsline{toc}{section}{参考文献} 54 | \printbibliography[heading=subbibliography,title=本章参考文献] 55 | \end{refsection} 56 | 57 | \begin{refsection} 58 | \chapter{正文章二} 59 | \section{正文节二} 60 | 正文内容二\cite{马克思2013-302-302} 61 | \printbibliography[heading=subbibliography,title=本章参考文献] 62 | \end{refsection} 63 | 64 | 65 | 66 | \end{document} -------------------------------------------------------------------------------- /exampleandimage/egheadtitleps.tex: -------------------------------------------------------------------------------- 1 | \documentclass{book} 2 | \usepackage{ctex} 3 | \usepackage[paperwidth=12cm,paperheight=6cm,top=1.5cm, bottom=1.5cm, left=1cm,right=1cm]{geometry} 4 | \usepackage[pagestyles]{titlesec} 5 | \titleformat{\chapter}{\zihao{4}\heiti}{\thechapter}{1em}{} 6 | \titlespacing*{\chapter}{0pt}{-1.0\baselineskip}{0.5\baselineskip}[0pt] 7 | \titleformat{\section}{\zihao{5}\heiti}{\thesection}{1em}{} 8 | \titlespacing*{\section}{0pt}{0.5\baselineskip}{0.5\baselineskip}[0pt] 9 | \usepackage[backend=biber,style=nature]{biblatex} 10 | \addbibresource[location=local]{example.bib} 11 | 12 | \renewcommand{\bibfont}{\zihao{-6}\songti} 13 | \setlength{\bibitemsep}{2pt} 14 | \defbibheading{bibliography}[\bibname]{% 15 | \phantomsection% 16 | \addcontentsline{toc}{chapter}{#1}% 17 | \chapter*{#1}}% 18 | \defbibheading{subbibliography}[\bibname]{% 19 | \phantomsection% 20 | \addcontentsline{toc}{section}{#1}% 21 | \section*{#1}}% 22 | \usepackage{hyperref} 23 | 24 | \newpagestyle{main}{%偶数页 25 | \sethead[\small$\cdot$~\thepage~$\cdot$][] 26 | [\small\,\thesection\quad\sectiontitle]%奇数页 27 | {\small\,\thechapter\quad\chaptertitle}{}{\small$\cdot$~\thepage~$\cdot$} 28 | \setfoot{}{}{}\headrule\footrule} 29 | %注意\sectiontitle应该是titlesec宏包定义的命令 30 | \renewcommand\headrule{\setheadrule{1pt}} 31 | \renewcommand\footrule{\setfootrule{0pt}} 32 | 33 | \newpagestyle{premain}{ 34 | \sethead[\small$\cdot$~\thepage~$\cdot$][][\small\,目录] 35 | {\small\,\leftmark}{}{$\cdot$~\thepage~$\cdot$} 36 | \setfoot{}{}{}\headrule\footrule} 37 | 38 | \newpagestyle{pgref}{% 39 | \sethead[\small\,~\thepage~]% 偶数页左 40 | []% 偶数页中 41 | [\small\,参考文献]% 偶数页右 42 | {\small\,\thechapter\quad\chaptertitle\hfil}% 奇数页左 43 | {}% 奇数页中 44 | {\small\,~\thepage~}% 奇数页右 45 | \setfoot{}{}{}% 46 | \headrule% 47 | }% 48 | 49 | \begin{document} 50 | \pagestyle{premain} 51 | \tableofcontents 52 | \cleardoublepage 53 | 54 | \begin{refsection} 55 | \pagestyle{main} 56 | \chapter{序章} 57 | \section{序节} 58 | 序章内容\cite{GPS1988--} 59 | \defbibentryset{bilangyi2013}{易仕和2013--,Yi2013--} 60 | 专著,双语文献引用\cite{bilangyi2013} 61 | %\newpage 62 | %\vfil\hspace{1pt} 63 | %\newpage 64 | \pagestyle{pgref} 65 | \printbibliography[heading=bibliography,title=本章参考文献] 66 | \cleardoublepage%页眉页脚分割正确需要该命令 67 | \end{refsection} 68 | 69 | \begin{refsection} 70 | \pagestyle{main} 71 | \chapter{正文章一} 72 | \section{正文节一} 73 | 正文内容一\cite{杨洪升2013-56-75} 74 | %\newpage 75 | %\vfil\hspace{1pt} 76 | %\newpage 77 | \pagestyle{pgref} 78 | \printbibliography[heading=subbibliography,title=本章参考文献] 79 | \cleardoublepage 80 | \end{refsection} 81 | 82 | \begin{refsection} 83 | \pagestyle{main} 84 | \chapter{正文章二} 85 | \section{正文节二} 86 | 正文内容二\cite{马克思2013-302-302} 87 | %\newpage 88 | %\vfil\hspace{1pt} 89 | %\newpage 90 | \pagestyle{pgref} 91 | \printbibliography[heading=subbibliography,title=本章参考文献] 92 | \cleardoublepage 93 | \end{refsection} 94 | 95 | \end{document} -------------------------------------------------------------------------------- /exampleandimage/egmultilan.bib: -------------------------------------------------------------------------------- 1 | %% LaTeX2e file `egmultilan.bib' 2 | %% generated by the `filecontents' environment 3 | %% from source `egmultilan' on 2019/01/27. 4 | %% 5 | 6 | @INPROCEEDINGS{frenchref, 7 | AUTHOR = {Beneton Philippe and Touchard Jean and Beton Philippe and Betin Philippe}, 8 | BOOKTITLE = {Revue française de science politique}, 9 | DATE = {1968}, 10 | PAGES = {19--46}, 11 | TITLE = {ôçLes interprétations de la crise de mai-juinŕł}, 12 | } 13 | 14 | @ARTICLE{greenwood1988, 15 | AUTHOR = {Greenwood, Jeremy and Hercowitz, Zvi and Huffman, Gregory W and Williams, Joedge}, 16 | PUBLISHER = {JSTOR}, 17 | DATE = {1988}, 18 | JOURNALTITLE = {The American Economic Review}, 19 | KEYWORDS = {greenwood1988investment}, 20 | PAGES = {402--417}, 21 | TITLE = {Investment, capacity utilization, and the real business cycle}, 22 | } 23 | %langid={english} 24 | 25 | @BOOK{russainref, 26 | AUTHOR = {Кузнецов, А. В. and Кузнецов, C. В. and Кузнецов, D. В. and Кузнецов, E. В.}, 27 | TITLE = {Русский язык и языковая личность}, 28 | LOCATION = {М.}, 29 | PUBLISHER = {Диалог МГУ}, 30 | DATE = {1998}, 31 | PAGES = {28}, 32 | } 33 | %langid={russian} 34 | 35 | @ARTICLE{刘凤良2017, 36 | AUTHOR = {刘凤良 and 章潇萌 and 于泽 and 黄晓}, 37 | DATE = {2017}, 38 | JOURNALTITLE = {金融研究}, 39 | KEYWORDS = {刘凤良2017}, 40 | NUMBER = {2}, 41 | PAGES = {54--69}, 42 | TITLE = {高投资、结构失衡与价格指数二元分化}, 43 | }% langid={english} 44 | 45 | @BOOK{青木昌彦1996--, 46 | AUTHOR = {青木昌彦 and 青木昌一 and 青木昌二 and 青木昌三}, 47 | PUBLISHER = {東洋経済新報社}, 48 | DATE = {1996}, 49 | PAGES = {288}, 50 | TITLE = {メインバンク ・ システムのモニタリング機能としての特徴}, 51 | } 52 | 53 | -------------------------------------------------------------------------------- /exampleandimage/egmultilan.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{ctex} 3 | \usepackage[english,russian,french]{babel} 4 | \usepackage{fontspec} 5 | \setmainfont{CMU Serif} 6 | \usepackage{xcolor} 7 | \usepackage{hyperref} 8 | \usepackage{lipsum} 9 | \usepackage[paperwidth=14cm,paperheight=8.5cm,top=10pt,bottom=10pt,left=0.5cm,right=0.5cm]{geometry} 10 | \usepackage[backend=biber,style=gb7714-2015,autolang=other,gbpub=false,gbnamefmt=familyahead]{biblatex} 11 | 12 | \usepackage{filecontents} 13 | \begin{filecontents}{\jobname.bib} 14 | 15 | @INPROCEEDINGS{frenchref, 16 | AUTHOR = {Beneton Philippe and Touchard Jean and Beton Philippe and Betin Philippe}, 17 | BOOKTITLE = {Revue française de science politique}, 18 | DATE = {1968}, 19 | PAGES = {19--46}, 20 | TITLE = {ôçLes interprétations de la crise de mai-juinŕł}, 21 | } 22 | 23 | @ARTICLE{greenwood1988, 24 | AUTHOR = {Greenwood, Jeremy and Hercowitz, Zvi and Huffman, Gregory W and Williams, Joedge}, 25 | PUBLISHER = {JSTOR}, 26 | DATE = {1988}, 27 | JOURNALTITLE = {The American Economic Review}, 28 | KEYWORDS = {greenwood1988investment}, 29 | PAGES = {402--417}, 30 | TITLE = {Investment, capacity utilization, and the real business cycle}, 31 | } 32 | %langid={english} 33 | 34 | @BOOK{russainref, 35 | AUTHOR = {Кузнецов, А. В. and Кузнецов, C. В. and Кузнецов, D. В. and Кузнецов, E. В.}, 36 | TITLE = {Русский язык и языковая личность}, 37 | LOCATION = {М.}, 38 | PUBLISHER = {Диалог МГУ}, 39 | DATE = {1998}, 40 | PAGES = {28}, 41 | } 42 | %langid={russian} 43 | 44 | @ARTICLE{刘凤良2017, 45 | AUTHOR = {刘凤良 and 章潇萌 and 于泽 and 黄晓}, 46 | DATE = {2017}, 47 | JOURNALTITLE = {金融研究}, 48 | KEYWORDS = {刘凤良2017}, 49 | NUMBER = {2}, 50 | PAGES = {54--69}, 51 | TITLE = {高投资、结构失衡与价格指数二元分化}, 52 | }% langid={english} 53 | 54 | @BOOK{青木昌彦1996--, 55 | AUTHOR = {青木昌彦 and 青木昌一 and 青木昌二 and 青木昌三}, 56 | PUBLISHER = {東洋経済新報社}, 57 | DATE = {1996}, 58 | PAGES = {288}, 59 | TITLE = {メインバンク ・ システムのモニタリング機能としての特徴}, 60 | } 61 | 62 | \end{filecontents} 63 | \addbibresource{\jobname.bib} 64 | % 65 | \begin{document} 66 | 67 | \nocite{*} 68 | 69 | \printbibliography[title=参考文献] 70 | 71 | \end{document} -------------------------------------------------------------------------------- /exampleandimage/egpostersn.tex: -------------------------------------------------------------------------------- 1 | \documentclass{beamer} 2 | \usepackage[orientation=portrait,size=a0,scale=1.4,debug]{beamerposter} 3 | \mode{\usetheme{ZH}} 4 | \usepackage{chemformula} 5 | \usepackage[utf8]{inputenc} 6 | \usepackage[german, english]{babel} % required for rendering German special characters 7 | \usepackage{siunitx} %pretty measurement unit rendering 8 | \usepackage{hyperref} %enable hyperlink for urls 9 | \usepackage{ragged2e} 10 | %\usepackage[font=scriptsize,justification=justified]{caption} 11 | \usepackage{array,booktabs,tabularx} 12 | \usepackage[backend=biber,bibstyle=gb7714-2015-m,%nature,% 13 | citestyle=gb7714-2015,%,backref=true%gb,gbt7714_2005_n, 14 | align=gb7714-2015% 15 | ]{biblatex}%biber,caspervector 16 | \renewcommand{\bibfont}{\footnotesize} 17 | \addbibresource[location=local]{bib.bib} 18 | 19 | \newcolumntype{Z}{>{\centering\arraybackslash}X} % centered tabularx columns 20 | \sisetup{per=frac,fraction=sfrac} 21 | 22 | \title{\huge Opto-fMRI of Monoaminergic Systems and Psychotropic Drugs} 23 | \author{Horea-Ioan Ioanas$^{1,2}$, Bechara Saab$^{2}$, Markus Rudin$^{1}$} 24 | \institute[ETH]{$^{1}$Institute for Biomedical Engineering, ETH and University of Zurich \\ $^{2}$Preclinical Laboratory for Translational Research into Affective Disorders, DPPP, Psychiatric Hospital, University of Zurich} 25 | \date{\today} 26 | 27 | % edit this depending on how tall your header is. We should make this scaling automatic :-/ 28 | \newlength{\columnheight} 29 | \setlength{\columnheight}{104cm} 30 | 31 | \begin{document} 32 | \begin{frame} 33 | \begin{columns} 34 | \begin{column}{.43\textwidth} 35 | \begin{beamercolorbox}[center]{postercolumn} 36 | \begin{minipage}{.98\textwidth} % tweaks the width, makes a new \textwidth 37 | \parbox[t][\columnheight]{\textwidth}{ % must be some better way to set the the height, width and textwidth simultaneously 38 | \begin{myblock}{Introduction} 39 | \textbf{THIS IS NOT THE ORIGINAL DOCUMENT, and was produced from a modified static source, in order to guarantee portability. The original source is available \textcolor{red}{\href{https://bitbucket.org/TheChymera/znz_poster/src}{on bitbucket}}, and makes extensive use of PythonTeX. This also means you can expect PythonTeX to work nicely with this package and theme.} 40 | 41 | Monoaminergic systems are ensembles of neurons defined by the primary production of monoamine neurotransmitters (most prominently serotonin, dopamine, and noradrenaline). 42 | \begin{itemize} 43 | \item Their wide-spread projections have implicated them in numerous neuropsychiatric disorders (e.g. depression, anxiety, addiction, and schizophrenia). 44 | \item Their relevance to the control of neuronal function has made them targets of many therapeutic drugs (e.g. monoamine reuptake inhibitors) and drugs of abuse (e.g. amphetamines). 45 | \item A high degree of evolutionary conservation makes them excellent candidates for translational research in rodents. 46 | \end{itemize} 47 | The current project aims to establish opto-fMRI as an assay for monoaminergic systems. 48 | This assay will help ellucidate the functional mechanisms of psychotropic drugs, and facillitate the establishment of functional connectivity and inter-connectivity models for these most pervasive neuronal systems. 49 | \vspace{0.4em} 50 | \begin{figure} 51 | \begin{minipage}{0.43\textwidth} 52 | \centering% 53 | \fbox{img/mas.png}\\%\includegraphics[width=0.85\textwidth]{img/mas.png} 54 | \caption{Serotonergic (green), dopaminergic (red), and noradrenergic (blue) nuclei and significant projections \cite{Paivi}} 55 | \end{minipage} 56 | \hspace{1em} 57 | \begin{minipage}{0.45\textwidth} 58 | \centering% 59 | \fbox{img/drn\_mr\_p.png}\\%\includegraphics[width=1\textwidth]{img/drn_mr_p.png} 60 | \caption{Ascending serotonergic projections alone innervate the majority of cortical and subcortical areas \cite{Oegren2008}} 61 | \end{minipage} 62 | \end{figure} 63 | \end{myblock}\vfill 64 | \begin{myblock}{Chronic Serotonin Reuptake Inhibition} 65 | Selective Serotonin Reuptake Inhibitors (SSRI) are used in the treatment of depression, and have differing acute (e.g. stimulant and anxiogenic) and chronic (antidepressant and anxiolytic) effects - with the neuronal mechanism of the latter still being widely debated. 66 | Possible explanations include the down-regulation of either the serotonin transporter protein (SERT), and/or serotonergic autoreceptors (5-HT$_1$A). 67 | We are administering fluoxetine both chronically and acutely to a number of animals prepared for opto-fMRI; we present the timetable of the first cohort in figure~\ref{fig:tt}. 68 | \vspace{0.5em} 69 | \begin{figure} 70 | \begin{minipage}{0.94\textwidth} 71 | \centering% 72 | \fbox{img/dm.png}\\%\includegraphics[width=0.9\textwidth]{img/dm.png} 73 | \caption{Band-pass filtered pulse-train-resolved first-level design model, with pulse trains represented in cyan.} 74 | \label{fig:stim} 75 | \end{minipage} 76 | \end{figure} 77 | \begin{itemize} 78 | \item Opto-fMRI can be used to analyze chronic SSRI effects on serotonergic neurotransmission - by modelling the effect of treatment on individual pulse trains, or the interaction effect of treatment and pulse train number on series of pulse trains (as seen in figure~\ref{fig:stim}). 79 | \item The large-scale readout capacity of opto-fMRI can also detect whether there are regionally varying effects of chronic SSRI administration (and consequently allow a functional characterization of neuronal subpopulations of the dorsal raphe). 80 | \end{itemize} 81 | \vspace{0.5em} 82 | \begin{figure} 83 | \begin{minipage}{0.94\textwidth} 84 | \centering% 85 | \fbox{img/tt.png}\\%\includegraphics[width=0.9\textwidth]{img/tt.png} 86 | \caption{Animal cohort treatment and measurement timetable. Opto-fMRI scan dates are tinted turquoise. Treatment-free days are shaded light gray, chronic (i.p.) fluoxetine administration days medium gray, and acute (i.v.) fluoxetine administration days dark gray.} 87 | \label{fig:tt} 88 | \end{minipage} 89 | \end{figure} 90 | \end{myblock}\vfill 91 | }\end{minipage}\end{beamercolorbox} 92 | \end{column} 93 | \begin{column}{.57\textwidth} 94 | \begin{beamercolorbox}[center]{postercolumn} 95 | \begin{minipage}{.98\textwidth} % tweaks the width, makes a new \textwidth 96 | \parbox[t][\columnheight]{\textwidth}{ % must be some better way to set the the height, width and textwidth simultaneously 97 | \begin{myblock}{Methods} 98 | Optogenetic stimulation requires a number of preliminary procedures, including the breeding of genetically modified mice, the targeted infusion of a light-gated protein (ChR2) expressing viral vector, and the targeted implant of a durable optic fiber ferrule. 99 | \vspace{0.2em} 100 | \begin{figure} 101 | \begin{minipage}{.94\textwidth} 102 | \centering% 103 | \fbox{img/og.png}\\%\includegraphics[width=\textwidth]{img/og.png} 104 | \caption{\textbf{(a)} Optic fiber implant targeted at the serotonergic dorsal raphe (DR); histological validation of the ChR2 construct expression: \textbf{(b)} localized to the DR and \textbf{(c)} colocalized with serotonin. Data from Saab and colleagues, unpublished.} 105 | \end{minipage} 106 | \end{figure} 107 | \vspace{0.4em} 108 | For robust genotyping we have designed 2 multiplex-compatible primer pairs for the Cre recombinase (transgene construct) and GAPDH (positive control). 109 | These are listed below, alongside a genotyping assay featuring 3 controls (water, known transgene, and known wildtype - on the first, second-to-last and last non-ladder lanes respectively): 110 | \vspace{0.1em} 111 | \begin{figure} 112 | \begin{minipage}{.45\textwidth} 113 | \scriptsize 114 | \begin{tabular}{@{} p{.1\linewidth} r r @{}} 115 | \toprule 116 | Direction & \multicolumn{2}{c @{}}{Target Construct} \\ 117 | \cmidrule(l){2-3} 118 | & Cre & GAPDH \\ 119 | \cmidrule(lr){1-3} 120 | fw & \texttt{ACCAGCCAGCTATCAACTCG} & \texttt{CTCCATTTCCCCTGTTCTCC} \\ 121 | rv & \texttt{TTGCCCCTGTTTCACTATCC} & \texttt{GAGACCTGAATGCTGCTTCC} \\ 122 | \bottomrule 123 | \end{tabular} 124 | \end{minipage} 125 | \begin{minipage}{.45\textwidth} 126 | \centering% 127 | \fbox{img/ag1}\\%\includegraphics[width=0.95\textwidth]{img/ag1} 128 | \end{minipage} 129 | \end{figure} 130 | \vspace{1em} 131 | To facillitate multimodal and exploratory data analysis, LabbookDB - a relational database structure - was developed to replace the common lab book and integrate metadata directly with analysis tools. 132 | In order to facilitate rapid, cheap, and flexible access to the high computing power needed for exploratory fMRI analysis, a cloud-computing GNU/Linux image, NeuroGentoo was created; 133 | and populated with a multitude of neuroimaging package atoms. 134 | \vspace{0.5em} 135 | \begin{figure} 136 | \begin{minipage}{0.43\textwidth} 137 | \centering% 138 | \fbox{img/ng\_large.png}\\%\includegraphics[width=0.6\textwidth]{img/ng_large.png} 139 | \caption{NeuroGentoo Logo; for the software repository see: \href{https://github.com/TheChymera/neurogentoo}{github.com/TheChymera/neurogentoo}} 140 | \end{minipage} 141 | \hspace{1em} 142 | \begin{minipage}{0.45\textwidth} 143 | \centering% 144 | \fbox{img/db.png}\\%\includegraphics[width=0.34\textwidth]{img/db.png} 145 | \caption{Generic DB logo (\href{https://creativecommons.org/licenses/by-nc-sa/3.0/}{CC BY-NC-SA Barry Mieny}); for the software package see: \href{https://github.com/TheChymera/labbookdb}{github.com/TheChymera/labbookdb}} 146 | \end{minipage} 147 | \end{figure} 148 | \end{myblock}\vfill 149 | \begin{myblock}{Acute Fluoxetine Effects} 150 | Preliminary results from the comparison of the first two measurement sessions (as seen in figure~\ref{fig:tt}) indicate that the uncorrected response to optogenetic stimulation across all trains (depicted individually in figure~\ref{fig:stim}) is stronger and more widespread immediately after acute fluoxetine administration than in the drug-naive mouse. 151 | It is important to note that the results seen in figure~\ref{fig:fail} need further statistical ellaboration. 152 | \begin{figure} 153 | \begin{minipage}{0.85\textwidth} 154 | \centering% 155 | \fbox{img/fail.png}\\%\includegraphics[width=0.75\textwidth]{img/fail.png} 156 | \caption{Contrast for all stimulation train parameter estimates for the pre-drug-administration session (red) and the acute fluoxetine administration session (green). Note the considerably different scales.} 157 | \label{fig:fail} 158 | \end{minipage} 159 | \end{figure} 160 | \end{myblock}\vfill 161 | \begin{myblock}{References} 162 | \footnotesize 163 | \printbibliography[heading=bibliography,title=bibliography] 164 | %\bibliographystyle{abbrv} 165 | %\bibliography{./bib} 166 | \end{myblock}\vfill 167 | }\end{minipage}\end{beamercolorbox} 168 | \end{column} 169 | \end{columns} 170 | \end{frame} 171 | \end{document} 172 | -------------------------------------------------------------------------------- /exampleandimage/egrefsection.tex: -------------------------------------------------------------------------------- 1 | \documentclass{report} 2 | \usepackage{ctex} 3 | \usepackage[paperwidth=12cm,paperheight=6cm,top=0cm, bottom=1.5cm, left=1cm,right=1cm]{geometry} 4 | \usepackage{titlesec} 5 | \titleformat{\chapter}{\zihao{4}\heiti}{\thechapter}{1em}{} 6 | \titlespacing*{\chapter}{0pt}{0.0\baselineskip}{0.5\baselineskip}[0pt] 7 | \titleformat{\section}{\zihao{5}\heiti}{\thesection}{1em}{} 8 | \titlespacing*{\section}{0pt}{0.5\baselineskip}{0.5\baselineskip}[0pt] 9 | \usepackage[backend=biber,style=gb7714-2015]{biblatex} 10 | \addbibresource[location=local]{example.bib} 11 | 12 | 13 | \begin{document} 14 | \chapter{序章} 15 | \begin{refsection} 16 | 序章内容\cite{GPS1988--} 17 | \printbibliography[heading=subbibliography,title=本章参考文献] 18 | \end{refsection} 19 | 20 | \chapter{正文章一} 21 | \begin{refsection} 22 | 正文内容一\cite{杨洪升2013-56-75} 23 | \printbibliography[heading=subbibliography,title=本章参考文献] 24 | \end{refsection} 25 | 26 | \chapter{正文章二} 27 | \begin{refsection} 28 | 正文内容二\cite{马克思2013-302-302} 29 | \printbibliography[heading=subbibliography,title=本章参考文献] 30 | \end{refsection} 31 | \end{document} -------------------------------------------------------------------------------- /exampleandimage/egrefsectionb.tex: -------------------------------------------------------------------------------- 1 | \documentclass{report} 2 | \usepackage{ctex} 3 | \usepackage[paperwidth=12cm,paperheight=6cm,top=0cm, bottom=1.5cm, left=1cm,right=1cm]{geometry} 4 | \usepackage{titlesec} 5 | \titleformat{\chapter}{\zihao{4}\heiti}{\thechapter}{1em}{} 6 | \titlespacing*{\chapter}{0pt}{0.0\baselineskip}{0.5\baselineskip}[0pt] 7 | \titleformat{\section}{\zihao{5}\heiti}{\thesection}{1em}{} 8 | \titlespacing*{\section}{0pt}{0.5\baselineskip}{0.5\baselineskip}[0pt] 9 | \usepackage[backend=biber,refsection=chapter,style=gb7714-2015]{biblatex} 10 | \addbibresource[location=local]{example.bib} 11 | 12 | 13 | \begin{document} 14 | \chapter{序章} 15 | 序章内容\cite{GPS1988--} 16 | \printbibliography[heading=subbibliography,title=本章参考文献] 17 | 18 | \chapter{正文章一} 19 | 正文内容一\cite{杨洪升2013-56-75} 20 | \printbibliography[heading=subbibliography,title=本章参考文献] 21 | 22 | \chapter{正文章二} 23 | 正文内容二\cite{马克思2013-302-302} 24 | \printbibliography[heading=subbibliography,title=本章参考文献] 25 | \end{document} -------------------------------------------------------------------------------- /exampleandimage/egsectitle.tex: -------------------------------------------------------------------------------- 1 | \documentclass{book} 2 | \usepackage{ctex} 3 | \usepackage[paperwidth=12cm,paperheight=7cm,top=1.5cm, bottom=1.5cm, left=1cm,right=1cm]{geometry} 4 | %注意页面高度太小的话,可能会使[openright]失效,原因待研 5 | %这里设置paperheight=6或者5都会使第一章开启页不在奇数页 6 | \usepackage{xcolor} 7 | \usepackage[pagestyles]{titlesec} 8 | \usepackage{titletoc} 9 | \titleformat{\chapter}{\zihao{4}\heiti}{\thechapter}{1em}{} 10 | \titlespacing*{\chapter}{0pt}{0.0\baselineskip}{0.5\baselineskip}[0pt] 11 | \titleformat{\section}{\zihao{5}\heiti}{\thesection}{1em}{} 12 | \titlespacing*{\section}{0pt}{0.5\baselineskip}{0.5\baselineskip}[0pt] 13 | \usepackage[backend=biber,style=gb7714-2015]{biblatex} 14 | \addbibresource[location=local]{example.bib} 15 | \defbibheading{subbibliography}[\bibname]{% 16 | \section{#1}}% 17 | \renewcommand{\bibfont}{\zihao{-6}\songti} 18 | \setlength{\bibitemsep}{2pt} 19 | \usepackage{hyperref} 20 | 21 | \begin{document} 22 | \tableofcontents 23 | 24 | \begin{refsection} 25 | \chapter{序章} 26 | \titleformat{\section}[frame]{\normalfont}{\filright\footnotesize\enspace SECTION \thesection\enspace} 27 | {8pt}{\bfseries\filcenter} 28 | \section{序节} 29 | 序章内容\cite{GPS1988--} 30 | \printbibliography[heading=subbibliography,title=本章参考文献] 31 | \end{refsection} 32 | 33 | \begin{refsection} 34 | \chapter{正文章一} 35 | \section{正文节一} 36 | 正文内容一\cite{杨洪升2013-56-75} 37 | \printbibliography[heading=subbibliography,title=本章参考文献] 38 | \end{refsection} 39 | \end{document} -------------------------------------------------------------------------------- /exampleandimage/egstylecustomize.tex: -------------------------------------------------------------------------------- 1 | %测试快速定义格式: 2 | \documentclass{article} 3 | \usepackage{ctex} 4 | %定义版面 5 | \usepackage[paperwidth=120mm,paperheight=120mm,left=10mm,right=10mm,top=10mm, bottom=15mm]{geometry} 6 | %书签功能,选项去掉链接红色方框 7 | \usepackage[colorlinks=true,% 8 | pdfstartview=FitH,linkcolor=blue,anchorcolor=violet,citecolor=magenta]{hyperref} 9 | 10 | 11 | \usepackage{filecontents} 12 | \begin{filecontents}{eg.bib} 13 | 14 | @Book{CRAWFPRD1995--, 15 | Title = {Future libraries:dreams, maddness, \& reality}, 16 | Author = {W CRAWFPRD and M GORMAN}, 17 | Date = {1995}, 18 | Publisher = {American Library Association}, 19 | Location = {Chicago} 20 | } 21 | 22 | @Proceedings{Babu2014--, 23 | Title = {Proceedings of the second international conference on soft computing for problem solving, December 28-30}, 24 | Address = {New Delhi}, 25 | Publisher = {Springer}, 26 | Editor = {Babu, B. V. and NAGAR, A. K. AND DEEP, K. and others}, 27 | Year = {2014} 28 | } 29 | 30 | @Report{Calkin2011-8-9, 31 | Title = {a comparative risk assessment framework for wildland fire management: the 2010 cohesive strategy Science report:RMRS-GTR-262}, 32 | Author = {Calkin, D and Ager, a. and Thompson, m.}, 33 | Pages = {8-9}, 34 | Year = {2011} 35 | } 36 | 37 | @Thesis{CALMS1965--, 38 | Title = {Infrared spectroscopic studies on solid oxygen}, 39 | Author = {R B CALMS}, 40 | Date = {1965}, 41 | Institution = {Univ. of California}, 42 | Location = {Berkeley} 43 | } 44 | 45 | @Patent{KOSEKI2002--, 46 | Title = {Compiler}, 47 | Author = {A KOSEKI and H MOMOSE and M KAWAHITO and others}, 48 | Date = {2002-05-25}, 49 | Number = {US828402}, 50 | Url = {http://FF&p=1&u=netahtml/PTO/search-bool.html&r=5&f=G&l=50&col=AND&d=PG01&sl=IBM.AS.&0S=AN/IBM&RS=AN/IBM}, 51 | Urldate = {2002-05-28} 52 | } 53 | 54 | @Inbook{BUSECK1980-117-211, 55 | Title = {Subsolidus phenomena in pyroxenes}, 56 | Author = {P R BUSECK and NORD, Jr., G L and D R VEBLEN}, 57 | Bookauthor = {CT PREWITT}, 58 | Booktitle = {Pyroxense}, 59 | Date = {1980}, 60 | Pages = {117-211}, 61 | Publisher = {Mineralogical Society of America}, 62 | Location = {Washington, D.C.} 63 | } 64 | 65 | 66 | @Article{DESMARAIS1992-605-609, 67 | Title = {Carbon isotope evidence for the stepwise oxidation of the Proterozoic environment}, 68 | Author = {DES MARAIS, D J and H STRAUSS and R E SUMMONS and others}, 69 | Date = {1992}, 70 | Pages = {605-609}, 71 | Volume = {359}, 72 | Journaltitle = {Nature} 73 | } 74 | 75 | \end{filecontents} 76 | 77 | \usepackage[backend=biber,citestyle=numeric, 78 | bibstyle=studf,%citestyle=gb7714-2015,%backref=true 79 | ]{biblatex} 80 | \setlength{\bibitemsep}{2pt} 81 | \renewcommand{\bibfont}{\footnotesize} 82 | \defbibheading{bibliography}[\bibname]{% 83 | \subsection*{#1}}%\centering 84 | \addbibresource[location=local]{eg.bib} 85 | 86 | 87 | 88 | \begin{document} 89 | 参考文献 90 | \cite{CRAWFPRD1995--} 91 | \cite{Babu2014--} 92 | \cite{Calkin2011-8-9} 93 | \cite{CALMS1965--} 94 | \cite{KOSEKI2002--} 95 | \cite{BUSECK1980-117-211} 96 | \cite{DESMARAIS1992-605-609} 97 | 98 | \printbibliography[title=【参考文献】] 99 | \end{document} -------------------------------------------------------------------------------- /exampleandimage/egstylecustomizegb.tex: -------------------------------------------------------------------------------- 1 | %测试快速定义格式: 2 | \documentclass{article} 3 | \usepackage{ctex} 4 | %定义版面 5 | \usepackage[paperwidth=120mm,paperheight=120mm,left=10mm,right=10mm,top=10mm, bottom=15mm]{geometry} 6 | \usepackage[colorlinks=true,%%书签功能,选项去掉链接红色方框 7 | pdfstartview=FitH,linkcolor=blue,anchorcolor=violet,citecolor=magenta]{hyperref} 8 | \usepackage[backend=biber,citestyle=gb7714-2015, 9 | bibstyle=gbudf,%nature,% 10 | ]{biblatex} 11 | \renewcommand{\bibfont}{\zihao{6}} 12 | \defbibheading{bibliography}[\bibname]{% 13 | \subsubsection*{#1}}%\centering 14 | \addbibresource[location=local]{example.bib} 15 | 16 | \begin{document} 17 | 参考文献 18 | \cite{张伯伟2002--} 19 | \cite{陈志勇2011--} 20 | \cite{汤万金2013-09-30--} 21 | \cite{吴云芳2003--} 22 | \cite{张凯军2012-04-05--} 23 | \cite{全国广播电视标准化技术委员会2007-1-1} 24 | \cite{国家环境保护局科技标准司1996-2-3} 25 | \cite{楼梦麟2011-11-12} 26 | \cite{陈建军2010-93-93} 27 | \cite{张田勤2000--} 28 | \cite{萧钰2001--} 29 | \cite{CRAWFPRD1995--} 30 | \cite{Babu2014--} 31 | \cite{Calkin2011-8-9} 32 | \cite{CALMS1965--} 33 | \cite{KOSEKI2002--} 34 | \cite{BUSECK1980-117-211} 35 | \cite{DESMARAIS1992-605-609} 36 | \printbibliography[title=【参考文献】] 37 | \end{document} -------------------------------------------------------------------------------- /exampleandimage/egtest.tex: -------------------------------------------------------------------------------- 1 | %\let\itemudf=\item 2 | \documentclass{beamer} 3 | \usepackage{chemformula} 4 | %\usepackage[utf8]{inputenc} 5 | %\usepackage[german, english]{babel} % required for rendering German special characters 6 | %\usepackage{siunitx} %pretty measurement unit rendering 7 | \usepackage{hyperref} %enable hyperlink for urls 8 | \usepackage{ragged2e} 9 | %\usepackage[font=scriptsize,justification=justified]{caption} 10 | \usepackage{array,booktabs,tabularx} 11 | \usepackage[backend=biber,bibstyle=gb7714-2015-m,%nature,% 12 | citestyle=gb7714-2015,%,backref=true%gb,gbt7714_2005_n, 13 | align=left% 14 | ]{biblatex}%biber,caspervector 15 | \renewcommand{\bibfont}{\footnotesize} 16 | \addbibresource[location=local]{bib.bib} 17 | \defbeamertemplate*{bibliography item}{numeric} 18 | {\hbox{[\printfield{labelnumber}]}} 19 | \setbeamertemplate{bibliography item}[numeric]%book,numeric 20 | %\usepackage{calc} 21 | %\definecolor{ETH1}{RGB}{31,64,122} 22 | %\definecolor{ETH3}{RGB}{0,105,180} 23 | %\definecolor{ETH6}{RGB}{111,111,110} 24 | %\definecolor{ETH8}{RGB}{0,122,146} 25 | %\definecolor{ETH10}{RGB}{130,190,30} 26 | %\definecolor{tlg}{RGB}{230,230,230} 27 | %\setbeamercolor{headline}{fg=red,bg=ETH3} % This is the recommended color for Specialist community usage: change to ETH1 for general communication 28 | %\setbeamercolor{footline}{fg=red, bg=red} 29 | %\setbeamerfont{footline}{size=\large,series=\bf} 30 | %\setbeamercolor{separation line}{bg=ETH3} 31 | %\setbeamercolor{title in headline}{fg=white} 32 | %\setbeamercolor{author in headline}{fg=white} 33 | %\setbeamercolor{institute in headline}{fg=white} 34 | % 35 | %\setbeamercolor{framesubtitle}{fg=red, bg=ta2gray} 36 | %\setbeamercolor{author in head/foot}{fg=white, bg=ETH3} 37 | %\setbeamercolor{title in head/foot}{fg=red, bg=red} 38 | % 39 | %\setbeamercolor*{normal text}{fg=ETH6, bg=tlg} 40 | %\setbeamercolor*{block body}{fg=black, bg=white} 41 | %\setbeamercolor*{block title}{fg=black,bg=ETH10} 42 | %\setbeamerfont{block title}{size=\large,series=\bf} 43 | %\setbeamercolor{upper separation line head}{fg=red} 44 | % 45 | %\setbeamercolor*{example body}{fg=red,bg=red} 46 | %\setbeamercolor*{example text}{fg=red,bg=red} 47 | %\setbeamercolor*{example title}{bg=red,fg=red} 48 | % 49 | %\setbeamercolor{alerted text}{fg=red} 50 | %\setbeamercolor{structure}{fg=ETH1} 51 | % 52 | %\newenvironment<>{myblock}[1]{% 53 | % \begin{actionenv}#2% 54 | % \def\insertblocktitle{\centering#1}% 55 | % \par% 56 | % \usebeamertemplate{block begin}\leftskip=14pt\rightskip=14pt\vspace{10pt}} 57 | % {\par\vspace{1em}\usebeamertemplate{block end} 58 | % \end{actionenv}} 59 | % 60 | %\newlength{\mylength} 61 | %\setbeamertemplate{block begin}{ 62 | % \setlength{\mylength}{\textwidth+2ex}% 63 | % \vskip2ex 64 | % \begin{beamercolorbox}[ht=2.8ex,dp=2ex, wd=\mylength, center,rounded=false,shadow=false,leftskip=1cm,colsep*=0ex]{block title}% 65 | % \usebeamerfont*{block title}\centering \insertblocktitle 66 | % \end{beamercolorbox}\vskip-9pt% 67 | % {\ifbeamercolorempty[bg]{block body}{}{\nointerlineskip\vskip-0.5ex}}% 68 | % \usebeamerfont{block body}% 69 | % \begin{beamercolorbox}[rounded=false,shadow=false,center,wd=\textwidth,]{block body}% 70 | % \ifbeamercolorempty[bg]{block body}\vbox{}% 71 | % \begin{minipage}{0.96\textwidth}\vbox{}% 72 | % %\justify 73 | % } 74 | %\setbeamertemplate{block end}{ 75 | % \end{minipage} 76 | % \end{beamercolorbox} 77 | % } 78 | 79 | 80 | \title{\huge Opto-fMRI of Monoaminergic Systems and Psychotropic Drugs} 81 | \author{Horea-Ioan Ioanas$^{1,2}$, Bechara Saab$^{2}$, Markus Rudin$^{1}$} 82 | \institute[ETH]{$^{1}$Institute for Biomedical Engineering, ETH and University of Zurich \\ $^{2}$Preclinical Laboratory for Translational Research into Affective Disorders, DPPP, Psychiatric Hospital, University of Zurich} 83 | \date{\today} 84 | 85 | 86 | 87 | \begin{document} 88 | \begin{frame} 89 | \titlepage 90 | \end{frame} 91 | 92 | \begin{frame} 93 | \fbox{img/ag1}% 94 | reference 95 | \cite{Paivi} 96 | \cite{Oegren2008} 97 | \end{frame} 98 | 99 | \begin{frame} 100 | \begin{block}{References} 101 | \footnotesize 102 | \printbibliography[heading=bibliography,title=bibliography] 103 | \end{block} 104 | \end{frame} 105 | 106 | \begin{frame}{References} 107 | \footnotesize 108 | \begin{block} 109 | \justifying 110 | \begin{minipage}{\linewidth} 111 | \printbibliography[heading=bibliography,title=bibliography] 112 | \end{minipage} 113 | \end{block} 114 | \end{frame} 115 | 116 | \end{document} 117 | -------------------------------------------------------------------------------- /exampleandimage/egtestshort.bib: -------------------------------------------------------------------------------- 1 | %% LaTeX2e file `egtestshort.bib' 2 | %% generated by the `filecontents' environment 3 | %% from source `egtestshort' on 2019/01/27. 4 | %% 5 | @Inproceedings{refa, 6 | Title = {Interference cartography for hierarchical dynamic spectrum access}, 7 | Address = {Chicago, IL}, 8 | Author = {AlayaFeki, A. and B. Sayrac and S. Ben Jemaa and E. Moulines}, 9 | editor={Name, B and Dome, C}, 10 | Booktitle = {Proc. IEEE Symp. on New Frontiers in Dynamic Spectrum Access Networks}, 11 | shortbooktitle ={DySPAN}, 12 | Date = {2008-10}, 13 | Pages = {1-5} 14 | } 15 | 16 | @Inproceedings{refb, 17 | Title = {Interference cartography for hierarchical dynamic spectrum access}, 18 | Address = {Chicago, IL}, 19 | editor={Name, B and Dome, C}, 20 | Author = {BlayaFeki, A. and B. Sayrac and S. Ben Jemaa and E. Moulines}, 21 | Booktitle = {Proc. IEEE Symp. on New Frontiers in Dynamic Spectrum Access Networks}, 22 | shortbooktitle ={DySPAN}, 23 | Date = {2008-10}, 24 | Pages = {1-5} 25 | } 26 | 27 | @Inproceedings{FOURNEY1971-17-38, 28 | Title = {Advances in holographic photoelasticity}, 29 | Author = {M E FOURNEY}, 30 | Booktitle = {Symposium on Applications of Holography in Mechanics}, 31 | shortbooktitle ={AHM}, 32 | Date = {1971}, 33 | Pages = {17-38}, 34 | Publisher = {ASME}, 35 | Location = {New York} 36 | } 37 | 38 | @Inproceedings{裴丽生1981-2-10, 39 | Title = {在中国科协技术期刊编辑工作经验交流会上的讲话}, 40 | Author = {裴丽生}, 41 | Booktitle = {中国科协学术期刊编辑工作经验交流会资料选}, 42 | shortbooktitle ={科协学术}, 43 | Date = {1981}, 44 | Pages = {2-10}, 45 | Institution = {中国科学技术协会学会工作部}, 46 | Location = {北京} 47 | } 48 | 49 | @Book{Simon2001--, 50 | Title = {Spread Spectrum Communications Handbook}, 51 | Address = {New York City}, 52 | Author = {Simon, M. K. and Omura,J. K. and Scholtz,R. A. and Levitt,B. K.}, 53 | Publisher = {McGraw-Hill, Inc.}, 54 | Year = {2001} 55 | } 56 | -------------------------------------------------------------------------------- /exampleandimage/egtestshort.tex: -------------------------------------------------------------------------------- 1 | \documentclass[twoside]{article} 2 | \usepackage{ctex} 3 | \usepackage{geometry} 4 | \geometry{paperwidth=15cm,paperheight=13.5cm,top=0.5cm, bottom=0.0cm, left=0.5cm,right=0.5cm} 5 | \usepackage{xcolor} 6 | \usepackage[CJKbookmarks,colorlinks,bookmarksnumbered=true,pdfstartview=FitH,linkcolor=blue]{hyperref} 7 | %\usepackage[backend=biber,style=gb7714-2015,maxbibnames=5,minbibnames=5]{biblatex} 8 | \usepackage[backend=biber,style=gb7714-2015,gbpunctin=false]{biblatex}%align=gb7714-2015 9 | 10 | 11 | \DefineBibliographyStrings{english}{in={}} 12 | 13 | % printbiblist命令需要一个与其参数同名的文献输出驱动,详见92-bibliographylists.tex 14 | \DeclareBibliographyDriver{shortbooktitle}{% 15 | \printfield{booktitle}\par} 16 | \DeclareBibliographyDriver{booktitlelist}{% 17 | \printfield{booktitle}} 18 | 19 | 20 | % 给对应printbiblist参数的list设置一个默认的排序格式,当然排序格式也可以用sorting选项制定。这一排序格式设置是可选的。未制定排序格式时,则使用全局的排序。 21 | \DeclareSortingTemplate{shortbooktitle}{ 22 | \sort{ 23 | \field{booktitle} 24 | } 25 | } 26 | 27 | 28 | % 给对应printbiblist参数的list设置一个默认的过滤器。这是可选的。 29 | %\defbibcheck{shortbooktitle}{% 30 | %\iffieldundef{booktitle}{\skipentry} 31 | %{\ifcsdef{\strfield{shortbooktitle}=\strfield{booktitle}}{\skipentry} 32 | %{\savefieldcs{booktitle}{\strfield{shortbooktitle}=\strfield{booktitle}}}}% 33 | %} 34 | %这一这里的处理是为了去除重复选项 35 | %注意这里savefieldcs给命令{\strfield{shortbooktitle}=\strfield{booktitle}} 36 | %拷贝booktitle域的信息只是一种选择而已。不拷贝信息,而直接使用csdef{\strfield{shortbooktitle}=\strfield{booktitle}}也是一样的, 37 | %因为前面的ifcsdef判断只是判断cs是否已定义,而不管它定义的什么内容, 38 | %但因为biblatex中提供了savefieldcs命令,为方便,直接应用它。 39 | 40 | 41 | % biblatex会为printbiblist参数的list自动创建一个著录表环境,并使用默认的biblist标题。 42 | %两者都可以重定义,或者使用env或heading选项制定一个自定义的环境和标题。 43 | %注意环境默认使用当前缩略信息的对应的short域作为标签,比如shorthands列表使用shorthand域,而shorttitle列表则使用shorttitle标签。但非biblatex默认支持的short域则没有这一默认设置,需要自定义环境来实现标签。 44 | %比如定义如下的环境: 45 | \defbibenvironment{envbooktitle} 46 | {\list 47 | {\printfield{shortbooktitle}} 48 | {\setlength{\labelwidth}{\shorthandwidth}% 49 | \setlength{\leftmargin}{\labelwidth}% 50 | \setlength{\labelsep}{\biblabelsep}% 51 | \addtolength{\leftmargin}{\labelsep}% 52 | \setlength{\itemsep}{\bibitemsep}% 53 | \setlength{\parsep}{\bibparsep}% 54 | \renewcommand*{\makelabel}[1]{##1\hss}}} 55 | {\endlist} 56 | {\item} 57 | 58 | 59 | \usepackage{filecontents} 60 | \begin{filecontents}{\jobname.bib} 61 | @Inproceedings{refa, 62 | Title = {Interference cartography for hierarchical dynamic spectrum access}, 63 | Address = {Chicago, IL}, 64 | Author = {AlayaFeki, A. and B. Sayrac and S. Ben Jemaa and E. Moulines}, 65 | editor={Name, B and Dome, C}, 66 | Booktitle = {Proc. IEEE Symp. on New Frontiers in Dynamic Spectrum Access Networks}, 67 | shortbooktitle ={DySPAN}, 68 | Date = {2008-10}, 69 | Pages = {1-5} 70 | } 71 | 72 | @Inproceedings{refb, 73 | Title = {Interference cartography for hierarchical dynamic spectrum access}, 74 | Address = {Chicago, IL}, 75 | editor={Name, B and Dome, C}, 76 | Author = {BlayaFeki, A. and B. Sayrac and S. Ben Jemaa and E. Moulines}, 77 | Booktitle = {Proc. IEEE Symp. on New Frontiers in Dynamic Spectrum Access Networks}, 78 | shortbooktitle ={DySPAN}, 79 | Date = {2008-10}, 80 | Pages = {1-5} 81 | } 82 | 83 | @Inproceedings{FOURNEY1971-17-38, 84 | Title = {Advances in holographic photoelasticity}, 85 | Author = {M E FOURNEY}, 86 | Booktitle = {Symposium on Applications of Holography in Mechanics}, 87 | shortbooktitle ={AHM}, 88 | Date = {1971}, 89 | Pages = {17-38}, 90 | Publisher = {ASME}, 91 | Location = {New York} 92 | } 93 | 94 | @Inproceedings{裴丽生1981-2-10, 95 | Title = {在中国科协技术期刊编辑工作经验交流会上的讲话}, 96 | Author = {裴丽生}, 97 | Booktitle = {中国科协学术期刊编辑工作经验交流会资料选}, 98 | shortbooktitle ={科协学术}, 99 | Date = {1981}, 100 | Pages = {2-10}, 101 | Institution = {中国科学技术协会学会工作部}, 102 | Location = {北京} 103 | } 104 | 105 | @Book{Simon2001--, 106 | Title = {Spread Spectrum Communications Handbook}, 107 | Address = {New York City}, 108 | Author = {Simon, M. K. and Omura,J. K. and Scholtz,R. A. and Levitt,B. K.}, 109 | Publisher = {McGraw-Hill, Inc.}, 110 | Year = {2001} 111 | } 112 | \end{filecontents} 113 | \addbibresource{\jobname.bib} 114 | 115 | 116 | \begin{document} 117 | 编译信息:biblatex v\versionofbiblatex;gb7714-2015*.* version number \versionofgbtstyle. 118 | 119 | \section{文献表} 120 | 文献 121 | \cite{refa} 122 | \cite{refb} 123 | \cite{FOURNEY1971-17-38} 124 | \cite{裴丽生1981-2-10} 125 | \cite{Simon2001--} 126 | 127 | \printbiblist[title={文集名}]{shortbooktitle} 128 | 129 | \newrefcontext 130 | \printbiblist[title={文集名使用指定环境},env=envbooktitle]{shortbooktitle} 131 | %注意biblist可以用newrefcontext来使用同名的缩略表, 132 | %也可以用定义不同名的缩略表来实现,比如 133 | %\printbiblist[title={文集名使用指定环境},env=envbooktitle]{booktitlelist} 134 | 135 | %\printbibliography%[heading=subbibintoc,title=【参考文献】] 136 | \end{document} -------------------------------------------------------------------------------- /exampleandimage/egtestshorta.bib: -------------------------------------------------------------------------------- 1 | %% LaTeX2e file `egtestshorta.bib' 2 | %% generated by the `filecontents' environment 3 | %% from source `egtestshorta' on 2018/07/15. 4 | %% 5 | @ARTICLE{test1, 6 | AUTHOR = {John Smith}, 7 | TITLE = {A Tremendously Interesting Opinion}, 8 | SHORTHAND = {JSTIP}, 9 | SHORTTITLE = {TIP}, 10 | JOURNALTITLE = {Journal of Tremendously Interesting Opinions}, 11 | SHORTJOURNAL = {JTIO}, 12 | VOLUME = {1}, 13 | NUMBER = {1}, 14 | YEAR = {1947} 15 | } 16 | @ARTICLE{test2, 17 | AUTHOR = {John Tumble}, 18 | TITLE = {A Tremendously Interesting Idea}, 19 | SHORTHAND = {JSTII}, 20 | SHORTTITLE = {TII}, 21 | JOURNALTITLE = {Journal of Tremendously Interesting Ideas}, 22 | SHORTJOURNAL = {JTII}, 23 | VOLUME = {1}, 24 | NUMBER = {1}, 25 | YEAR = {1946} 26 | } 27 | -------------------------------------------------------------------------------- /exampleandimage/egtestshorta.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{geometry} 3 | \geometry{paperwidth=19cm,paperheight=10cm,top=0.5cm, bottom=0.0cm, left=0.5cm,right=0.5cm} 4 | \usepackage{fontspec} 5 | \usepackage[style=authoryear]{biblatex} 6 | \begin{filecontents}{\jobname.bib} 7 | @ARTICLE{test1, 8 | AUTHOR = {John Smith}, 9 | TITLE = {A Tremendously Interesting Opinion}, 10 | SHORTHAND = {JSTIP}, 11 | SHORTTITLE = {TIP}, 12 | JOURNALTITLE = {Journal of Tremendously Interesting Opinions}, 13 | SHORTJOURNAL = {JTIO}, 14 | VOLUME = {1}, 15 | NUMBER = {1}, 16 | YEAR = {1947} 17 | } 18 | @ARTICLE{test2, 19 | AUTHOR = {John Tumble}, 20 | TITLE = {A Tremendously Interesting Idea}, 21 | SHORTHAND = {JSTII}, 22 | SHORTTITLE = {TII}, 23 | JOURNALTITLE = {Journal of Tremendously Interesting Ideas}, 24 | SHORTJOURNAL = {JTII}, 25 | VOLUME = {1}, 26 | NUMBER = {1}, 27 | YEAR = {1946} 28 | } 29 | \end{filecontents} 30 | 31 | \addbibresource{\jobname.bib} 32 | 33 | \DeclareBibliographyDriver{shortjournal}{% 34 | \printfield{journaltitle}} 35 | 36 | \DeclareBibliographyDriver{shorttitle}{% 37 | \printfield{title}} 38 | 39 | \begin{document} 40 | \nocite{*} 41 | 42 | \printshorthands% With biber, just an alias for \printbiblist{shorthand} 43 | \printbiblist[title={Journal Shorthands}]{shortjournal} 44 | \printbiblist[title={Title Shorthands}]{shorttitle} 45 | \printbibliography 46 | \end{document} -------------------------------------------------------------------------------- /exampleandimage/egtestshortb.bib: -------------------------------------------------------------------------------- 1 | %% LaTeX2e file `egtestshortb.bib' 2 | %% generated by the `filecontents' environment 3 | %% from source `egtestshortb' on 2019/01/27. 4 | %% 5 | @book{talbert:1992, 6 | author = {Talbert, Charles H.}, 7 | title = {Reading John: A Literary and Theological Commentary on the Fourth Gospel and the Johannine Epistles}, 8 | location = {New York}, 9 | publisher = {Crossroad}, 10 | date = {1992} 11 | } 12 | @book{hofius:1989, 13 | author = {Hofius, Otfried}, 14 | title = {Paulusstudien}, 15 | series = {Wissenschaftliche Untersuchungen zum Neuen Testament}, 16 | shortseries = {WUNT}, 17 | number = {51}, 18 | location = {T\"{u}bingen}, 19 | publisher = {Mohr Siebeck}, 20 | date = {1989} 21 | } 22 | @mvbook{TDNT, 23 | editor = {Kittel, Gerhard and Friedrich, Gerhard}, 24 | title = {Theological Dictionary of the New Testament}, 25 | shorthand = {\emph{TDNT}}, 26 | translator = {Bromiley, Geoffrey W.}, 27 | volumes = {10}, 28 | location = {Grand Rapids}, 29 | publisher = {Eerdmans}, 30 | date = {1964/1976} 31 | } 32 | -------------------------------------------------------------------------------- /exampleandimage/egtestshortb.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{geometry} 3 | \geometry{paperwidth=19cm,paperheight=8cm,top=0.5cm, bottom=0.0cm, left=0.5cm,right=0.5cm} 4 | \usepackage[style=authoryear,backend=biber]{biblatex} 5 | \usepackage{filecontents} 6 | \begin{filecontents}{\jobname.bib} 7 | @book{talbert:1992, 8 | author = {Talbert, Charles H.}, 9 | title = {Reading John: A Literary and Theological Commentary on the Fourth Gospel and the Johannine Epistles}, 10 | location = {New York}, 11 | publisher = {Crossroad}, 12 | date = {1992} 13 | } 14 | @book{hofius:1989, 15 | author = {Hofius, Otfried}, 16 | title = {Paulusstudien}, 17 | series = {Wissenschaftliche Untersuchungen zum Neuen Testament}, 18 | shortseries = {WUNT}, 19 | number = {51}, 20 | location = {T\"{u}bingen}, 21 | publisher = {Mohr Siebeck}, 22 | date = {1989} 23 | } 24 | @mvbook{TDNT, 25 | editor = {Kittel, Gerhard and Friedrich, Gerhard}, 26 | title = {Theological Dictionary of the New Testament}, 27 | shorthand = {\emph{TDNT}}, 28 | translator = {Bromiley, Geoffrey W.}, 29 | volumes = {10}, 30 | location = {Grand Rapids}, 31 | publisher = {Eerdmans}, 32 | date = {1964/1976} 33 | } 34 | \end{filecontents} 35 | \addbibresource{\jobname.bib} 36 | 37 | %为abbreviations缩略表定义驱动 38 | \DeclareBibliographyDriver{abbreviations}{% 39 | \iffieldundef{shorthand}{}{\usedriver{}{\thefield{entrytype}}}% 40 | \iffieldundef{shortseries}{}{\printfield{series}}% 41 | } 42 | 43 | 44 | 45 | %为abbreviations缩略表定义环境 46 | \newlength{\abbrevwidth} 47 | \def\setmaxlength#1#2{% 48 | \ifdim\dimexpr#2>\dimexpr#1 49 | \global\setlength{#1}{#2}% 50 | \fi 51 | } 52 | 53 | \defbibenvironment{abbreviations} 54 | {\list 55 | {\printfield[shorthandwidth]{shortseries}% 56 | \printfield[shorthandwidth]{shorthand}} 57 | {\setmaxlength{\abbrevwidth}{\shorthandwidth}% 58 | \setmaxlength{\abbrevwidth}{\shortserieswidth}% 59 | \setlength{\labelwidth}{\shorthandwidth}% 60 | \setlength{\leftmargin}{\labelwidth}% 61 | \setlength{\labelsep}{\biblabelsep}% 62 | \addtolength{\leftmargin}{\labelsep}% 63 | \setlength{\itemsep}{\bibitemsep}% 64 | \setlength{\parsep}{\bibparsep}% 65 | \renewcommand*{\makelabel}[1]{##1\hss}}} 66 | {\endlist} 67 | {\item} 68 | 69 | 70 | 71 | 72 | %为abbreviations缩略表定义过滤器,采用DeclareBiblistFilter方法 73 | \DeclareBiblistFilter{abbreviations}{ 74 | \filteror{ 75 | \filter[type=field,filter=shorthand] 76 | \filter[type=field,filter=shortseries]% 77 | }} 78 | 79 | %为abbreviations缩略表定义过滤器,采用defbibcheck方法,是类似的 80 | %\defbibcheck{abbreviations}{% 81 | % \iffieldundef{series} 82 | % {} 83 | % {\ifcsdef{\strfield{series}} 84 | % {\skipentry} 85 | % {\savefieldcs{series}{\strfield{series}}}% 86 | % }% 87 | % \ifboolexpr{ 88 | % test {\iffieldundef{shorthand}} 89 | % and 90 | % test {\iffieldundef{shortseries}} 91 | % } 92 | % {\skipentry} 93 | % {}} 94 | 95 | %为abbreviations缩略表定义排序格式 96 | \DeclareSortingTemplate{abbreviations}{% 97 | \sort{% 98 | \field{shorthand}% 99 | \field{shortseries}% 100 | }% 101 | } 102 | 103 | \begin{document} 104 | \autocite{talbert:1992} 105 | \autocite{hofius:1989} 106 | \autocite{TDNT} 107 | \printbiblist{abbreviations} 108 | \printbibliography 109 | \end{document} -------------------------------------------------------------------------------- /exampleandimage/egtestshortc.bib: -------------------------------------------------------------------------------- 1 | %% LaTeX2e file `egtestshortc.bib' 2 | %% generated by the `filecontents' environment 3 | %% from source `egtestshortc' on 2019/01/27. 4 | %% 5 | @Article{Episkepsis1971:36, 6 | title = {La Commission préparatoire}, 7 | journaltitle = {Episkepsis}, 8 | shortjournal = {EP}, 9 | date = {1971}, 10 | number = {36}, 11 | pages = {2}, 12 | } 13 | @Article{Episkepsis1971:36_2, 14 | title = {Communique de la Commission}, 15 | journaltitle = {Episkepsis}, 16 | shortjournal = {EP}, 17 | date = {1971}, 18 | number = {36}, 19 | pages = {8--9}, 20 | } 21 | @Article{Episkepsis1972:54, 22 | title = {La première Conférence}, 23 | journaltitle = {Episkepsis}, 24 | shortjournal = {EP}, 25 | date = {1972}, 26 | number = {54}, 27 | pages = {2--5}, 28 | } 29 | 30 | @Collection{Episkepsis, 31 | title = {Episkepsis}, 32 | date = {1970/}, 33 | shorthand = {EP}, 34 | keywords = {primary}, 35 | } 36 | -------------------------------------------------------------------------------- /exampleandimage/egtestshortc.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{geometry} 3 | \geometry{paperwidth=12cm,paperheight=9cm,top=0.5cm, bottom=0.5cm, left=0.5cm,right=0.5cm} 4 | \usepackage[utf8]{inputenc} 5 | \usepackage[T1]{fontenc} 6 | \usepackage[babel=false]{csquotes} 7 | \usepackage[style=verbose-ibid,citepages=suppress]{biblatex} 8 | 9 | % 在标注或文献表中使用期刊的缩略名的方法 10 | 11 | %在标注时使用钩子 12 | %\AtEveryCitekey{% 13 | % \savefield{shortjournal}{\temptitle}% 14 | % \restorefield{journaltitle}{\temptitle}% 15 | %} 16 | 17 | %在作脚注等时使用userdriver时使用钩子 18 | %\AtUsedriver{ 19 | %\savefield{shortjournal}{\temptitle}% 20 | %\restorefield{journaltitle}{\temptitle}% 21 | %} 22 | 23 | %在输出文献表时使用钩子 24 | %\AtEveryBibitem{ 25 | % \savefield{shortjournal}{\temptitle}% 26 | % \restorefield{journaltitle}{\temptitle}% 27 | %} 28 | 29 | %全局的设置,利用宏定义的方法,当然也可以利用ifcitation等来做是否处于标注中等判断。 30 | \renewbibmacro*{journal}{% 31 | \iffieldundef{shortjournal} 32 | {\iffieldundef{journaltitle} 33 | {} 34 | {\printtext[journaltitle]{% 35 | \printfield[titlecase]{journaltitle}% 36 | \setunit{\subtitlepunct}% 37 | \printfield[titlecase]{journalsubtitle}}}} 38 | {\printfield{shortjournal}}} 39 | 40 | \usepackage{filecontents} 41 | 42 | \begin{filecontents}{\jobname.bib} 43 | @Article{Episkepsis1971:36, 44 | title = {La Commission préparatoire}, 45 | journaltitle = {Episkepsis}, 46 | shortjournal = {EP}, 47 | date = {1971}, 48 | number = {36}, 49 | pages = {2}, 50 | } 51 | @Article{Episkepsis1971:36_2, 52 | title = {Communique de la Commission}, 53 | journaltitle = {Episkepsis}, 54 | shortjournal = {EP}, 55 | date = {1971}, 56 | number = {36}, 57 | pages = {8--9}, 58 | } 59 | @Article{Episkepsis1972:54, 60 | title = {La première Conférence}, 61 | journaltitle = {Episkepsis}, 62 | shortjournal = {EP}, 63 | date = {1972}, 64 | number = {54}, 65 | pages = {2--5}, 66 | } 67 | 68 | @Collection{Episkepsis, 69 | title = {Episkepsis}, 70 | date = {1970/}, 71 | shorthand = {EP}, 72 | keywords = {primary}, 73 | } 74 | \end{filecontents} 75 | 76 | \addbibresource{\jobname.bib} 77 | 78 | \nocite{*} 79 | 80 | \begin{document} 81 | 82 | Some text \autocite{Episkepsis1971:36}. 83 | 84 | \printshorthands 85 | 86 | \printbibheading 87 | \printbibliography[keyword=primary,heading=subbibliography,title={Les sources principaux}] 88 | \printbibliography[notkeyword=primary,heading=subbibliography,title={Les sources secondaires}] 89 | 90 | \end{document} -------------------------------------------------------------------------------- /exampleandimage/egzazhi.tex: -------------------------------------------------------------------------------- 1 | \documentclass[twocolumn]{article} 2 | \usepackage{ctex} 3 | \usepackage{geometry} 4 | \geometry{papersize={21cm,18cm},top=2.5cm, bottom=2.5cm, left=1cm,right=1cm} 5 | \usepackage{xcolor} 6 | \usepackage[CJKbookmarks,colorlinks,bookmarksnumbered=true,pdfstartview=FitH,linkcolor=blue]{hyperref} 7 | \usepackage[backend=biber,style=zazhi]{biblatex}% 8 | 9 | \addbibresource[location=local]{egbib.bib} 10 | %\renewcommand{\bibfont}{\zihao{6}} 11 | %\setlength{\bibitemsep}{0ex} 12 | %\setlength{\bibnamesep}{0ex} 13 | %\setlength{\bibinitsep}{0ex} 14 | 15 | \begin{document} 16 | 17 | \newpage 18 | \section{bibliography} 19 | \begin{refsection} 20 | one author\cite{Harker1987-20-25} 21 | \cite{Hsin1990-15-20,Prigogine1976-93-134} 22 | \cite{USL2001--,,Cone1963--,ISO1982--} 23 | 24 | two authors\cite{Carter2011--} 25 | 26 | three or more authors\cite{Hino1993-173-193,Miller1984-435-454,Miller1984-435-454a} 27 | 28 | 29 | \printbibliography[heading=bibliography] 30 | \end{refsection} 31 | 32 | \newgeometry{top=1.5cm, bottom=1.5cm, left=1cm,right=1cm} 33 | \section{文献表} 34 | \begin{refsection} 35 | 文献\cite{McEliece1984-44-53,Mittelbach2004--,MARTIN1996-85-96, 36 | FOURNEY1971-17-38,HOPKINSON--,TACHIBANA2002--,Eggrers--,ISO1982--,CALMS1965--} 37 | 38 | \printbibliography[heading=bibliography] 39 | \end{refsection} 40 | 41 | \end{document} -------------------------------------------------------------------------------- /exampleandimage/gb7714-2015ms.cbx: -------------------------------------------------------------------------------- 1 | %% 2 | %% --------------------------------------------------------------- 3 | %% biblatex-gb7714-2015 --- A biblatex implementation of the 4 | %% GBT7714-2015 citation style,numerical sequence 5 | %% Maintained by huzhenzhen 6 | %% E-mail: hzzmail@163.com 7 | %% Released under the LaTeX Project Public License v1.3c or later 8 | %% --------------------------------------------------------------- 9 | %% 10 | \def\versionofgbtstyle{2018/12/22 v1.0o} 11 | \ProvidesFile{gb7714-2015.cbx}[\versionofgbtstyle biblatex citation style] 12 | 13 | % 14 | % 加载标准样式 15 | % 16 | \RequireCitationStyle{numeric-comp} %numeric 17 | 18 | 19 | % 20 | % 选项设置 21 | % 22 | \ExecuteBibliographyOptions{ 23 | autocite = superscript , 24 | autopunct = true , 25 | %sorting = none , 26 | maxcitenames=1, 27 | mincitenames=1, 28 | } 29 | 30 | %textcite标注命令中的标点设置 31 | %\DeclareDelimFormat[textcite]{andothersdelim}{\addspace}% 32 | 33 | % 34 | % 定义一个上标方括号wrapper 35 | % 36 | \newcommand*\mkbibsuperbracket[1]{% 37 | \mkbibsuperscript{\mkbibbrackets{#1}}% 38 | } 39 | 40 | % 41 | % 重定义cite命令 42 | % 43 | % 方法:\DeclareCiteCommand{\cite}[\mkbibparens]{precode}{loopcode}{sepcode}{postcode} 44 | \DeclareCiteCommand{\cite}[\mkbibsuperbracket]%利用mkbibsuperbracket添加方括号 45 | {\usebibmacro{cite:init}% 46 | \usebibmacro{prenote}} 47 | {\usebibmacro{citeindex}% 48 | \usebibmacro{cite:comp}} 49 | {} 50 | {\usebibmacro{cite:dump}% 51 | \usebibmacro{postnote}} 52 | 53 | % 54 | % 定义upcite命令 55 | % 20180604,v1.0l,hzz 56 | % 方法:对supercite增加[] 57 | \DeclareCiteCommand{\upcite}[\mkbibsuperbracket] 58 | {\usebibmacro{cite:init} 59 | \let\multicitedelim=\supercitedelim 60 | \iffieldundef{prenote} 61 | {} 62 | {\BibliographyWarning{Ignoring prenote argument}}% 63 | \iffieldundef{postnote} 64 | {} 65 | {\BibliographyWarning{Ignoring postnote argument}}} 66 | {\usebibmacro{citeindex}% 67 | \usebibmacro{cite:comp}} 68 | {} 69 | {\usebibmacro{cite:dump}} 70 | 71 | % 72 | % 新定义pagescite命令,以满足标签带页码的国标要求 73 | % 74 | % 原理方法: 75 | % 1.修改postnote的输出格式 76 | \DeclareFieldFormat{postnote}{#1} 77 | % 2.新增页码输出宏 78 | \newbibmacro*{postpages}{% 79 | \iffieldundef{postnote} 80 | {\printfield[postnote]{pages}} 81 | {\printfield{postnote}}} 82 | % 3.新增\pagescite引用命令 83 | \DeclareCiteCommand{\pagescite}[\mkbibsuperscript]%\mkbibbrackets,仍然用上标 84 | {[\usebibmacro{cite:init}%]直接添加方括号 85 | \usebibmacro{prenote}% 86 | } 87 | {\usebibmacro{citeindex}% 88 | \usebibmacro{cite:comp}} 89 | {} 90 | {\usebibmacro{cite:dump}]% 91 | \usebibmacro{postpages}} 92 | 93 | % 94 | % 定义yearpagescite,为与ay样式兼容,等同于\pagescite 95 | % 96 | \DeclareCiteCommand{\yearpagescite}[\mkbibsuperscript]%\mkbibbrackets,仍然用上标 97 | {[\usebibmacro{cite:init}%]直接添加方括号 98 | \usebibmacro{prenote}% 99 | } 100 | {\usebibmacro{citeindex}% 101 | \usebibmacro{cite:comp}} 102 | {} 103 | {\usebibmacro{cite:dump}]% 104 | \usebibmacro{postpages}} 105 | 106 | % 107 | % 定义\yearcite命令,为与ay样式兼容,且提供不输出页码的标签格式, 108 | % 109 | % 原理方法:等同于\pagescite,但不要页码 110 | \DeclareCiteCommand{\yearcite}[\mkbibsuperscript]%\mkbibbrackets,仍然用上标 111 | {[\usebibmacro{cite:init}%]直接添加方括号 112 | \usebibmacro{prenote}% 113 | } 114 | {\usebibmacro{citeindex}% 115 | \usebibmacro{cite:comp}} 116 | {} 117 | {\usebibmacro{cite:dump}]} 118 | 119 | % 120 | % 定义\authornumcite命令,输出作者信息,然后在后面带上顺序编码 121 | % 20180427,v1.0k,增加,hzz 122 | % gb7714样式新定义的命令都把cite放到最后,比如前面的pagescite,yearcite,这里的\authornumcite 123 | % 区别于biblatex定义的命令都把cite放到前面,比如citeauthor等。 124 | %见numeric.CBX 125 | \newbibmacro*{cite}{% 126 | \printtext[bibhyperref]{% 127 | \printfield{labelprefix}% 128 | \printfield{labelnumber}% 129 | \ifbool{bbx:subentry} 130 | {\printfield{entrysetcount}} 131 | {}}} 132 | %见numeric.CBX,\DeclareCiteCommand{\cite}, 133 | \DeclareCiteCommand{\authornumcite}%[\mkbibsuperscript] 134 | {\usebibmacro{prenote}} 135 | {\iffieldequalstr{userf}{cn}{\renewcommand*{\andothersdelim}{\addthinspace}}%\addthinspace 136 | {\renewcommand*{\andothersdelim}{\addspace}}% 137 | \printnames{labelname}\mkbibsuperscript{\mkbibbrackets{\usebibmacro{citeindex}% 138 | \usebibmacro{cite}}}} 139 | {\multicitedelim} 140 | {\usebibmacro{postnote}} 141 | -------------------------------------------------------------------------------- /exampleandimage/makeclear.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | 4 | del /q *.aux *.bbl *.blg *.log *.out *.toc *.bcf *.xml *.synctex *.nlo *.nls *.bak *.ind *.idx *.ilg *.lof *.lot *.ent-x *.tmp *.ltx *.los *.lol *.loc *.listing *.gz *.synctex(busy) 5 | del /q *.nav *.snm *.vrb *.fls *.xdv *.fdb_latexmk 6 | -------------------------------------------------------------------------------- /exampleandimage/makeclear.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Copyright (c) 2012-2016 hzz 3 | 4 | #clear aux files 5 | 6 | rm -r *.aux *.bbl *.blg *.log *.out *.toc *.bcf *.xml *.synctex *.nlo *.nls *.bak *.ind *.idx *.ilg *.lof *.lot *.ent-x *.tmp *.ltx *.los *.lol *.loc *.listing *.gz *.userbak *.nav *.snm *.vrb 7 | 8 | 9 | -------------------------------------------------------------------------------- /exampleandimage/project-ega-bibliography.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hushidong/biblatex-solution-to-latex-bibliography/efbc7b757b1edfed8cfc4bce16fc211093bd5e6b/exampleandimage/project-ega-bibliography.png -------------------------------------------------------------------------------- /exampleandimage/project-ega-citation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hushidong/biblatex-solution-to-latex-bibliography/efbc7b757b1edfed8cfc4bce16fc211093bd5e6b/exampleandimage/project-ega-citation.png -------------------------------------------------------------------------------- /exampleandimage/qs1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hushidong/biblatex-solution-to-latex-bibliography/efbc7b757b1edfed8cfc4bce16fc211093bd5e6b/exampleandimage/qs1.png -------------------------------------------------------------------------------- /exampleandimage/readme: -------------------------------------------------------------------------------- 1 | 子文件夹放置 示例和图片 2 | -------------------------------------------------------------------------------- /exampleandimage/studf.bbx: -------------------------------------------------------------------------------- 1 | \ProvidesFile{studf.bbx}[2016/12/07 v1.0e biblatex bibliography style] 2 | 3 | %===================================================================== 4 | %加载标准样式 5 | \RequireBibliographyStyle{numeric-comp} 6 | \RequireBibliographyStyle{standard} 7 | 8 | %===================================================================== 9 | %设置宏包选项 10 | \ExecuteBibliographyOptions{ 11 | sorting=none, 12 | useprefix=true, %名字的信息包括前缀 13 | %firstinits=true, %名字有缩写,参考3.1.2.3 Internal 14 | giveninits=true, 15 | date = year, %日期仅写到年 16 | maxnames = 5 , %设置名字最大数量 17 | minnames = 5 %设置缩减后的名字最小数量 18 | %uniquename = init 19 | } 20 | 21 | %===================================================================== 22 | %设置单元或块的标点 23 | \renewcommand*{\revsdnamepunct}{}% 24 | \renewcommand*{\subtitlepunct}{\addcolon\space} %修改标题和其它标题信息间的标点 25 | \renewcommand*{\newblockpunct}{\par\nobreak} 26 | \renewcommand*{\bibpagespunct}{\addcolon\space}%页码引用格式的修改%修改为用冒号 27 | 28 | %===================================================================== 29 | %设置域格式 30 | \DeclareFieldFormat{labelnumberwidth}{\mkbibbrackets{#1}\hfill} %修改序号标签格式为左对齐,注意各参考文献内容还是对齐的, 31 | \DeclareFieldFormat{title}{\texttt{#1}\adddot\addthinspace}% \textit,sl,emph-楷体,\textbf,sf-黑体,\texttt-仿宋,\textsc,md,up-宋体 32 | \DeclareFieldFormat{journaltitle}{\itshape#1\isdot} 33 | \DeclareFieldFormat{issuetitle}{\itshape#1} 34 | \DeclareFieldFormat{maintitle}{\itshape#1} 35 | \DeclareFieldFormat{booktitle}{\itshape#1} 36 | \DeclareFieldFormat%将期刊等文献的标题中原来带的引号去掉 37 | [article,patent,thesis,unpublished] 38 | {title}{\texttt{#1}\adddot\addthinspace}% 39 | \DeclareFieldFormat%将期刊等文献的标题中原来带的引号去掉 40 | [inbook,incollection,inproceedings] 41 | {title}{\texttt{#1}\nopunct\unspace}% 42 | \DeclareListFormat{publisher}{\itshape%%重设出版社格式,加\itshape 43 | \usebibmacro{list:delim}{#1}% 44 | #1\isdot 45 | \usebibmacro{list:andothers}} 46 | \DeclareListFormat{location}{\itshape%%重设出版地格式,加\itshape 47 | \usebibmacro{list:delim}{#1}% 48 | #1\isdot 49 | \usebibmacro{list:andothers}} 50 | \DeclareFieldFormat{titlecase}{\MakeCapital#1}%重设标题格式,将其修改为首字母大写 51 | \DeclareFieldFormat{pages}{#1}%页码引用格式的修改%去掉前面引导页码的pp.等字符 52 | \renewbibmacro*{name:given-family}[4]{\bfseries%重设姓名格式,设置粗体。name域格式使用该bibmacro格式 53 | \usebibmacro{name:delim}{#2#3#1}% 54 | \usebibmacro{name:hook}{#2#3#1}% 55 | \ifdefvoid{#2}{}{\mkbibnamegiven{#2}\isdot\bibnamedelimd}% 56 | \ifdefvoid{#3}{}{% 57 | \mkbibnameprefix{#3}\isdot 58 | \ifprefchar 59 | {} 60 | {\ifuseprefix{\bibnamedelimc}{\bibnamedelimd}}}% 61 | \mkbibnamefamily{#1}\isdot 62 | \ifdefvoid{#4}{}{\bibnamedelimd\mkbibnamesuffix{#4}\isdot}} 63 | \newbibmacro*{name:family-given}[4]{\bfseries%%重设姓名格式,设置粗体 64 | \ifuseprefix 65 | {\usebibmacro{name:delim}{#3#1}% 66 | \usebibmacro{name:hook}{#3#1}% 67 | \ifdefvoid{#3}{}{% 68 | \ifcapital 69 | {\mkbibnameprefix{\MakeCapital{#3}}\isdot} 70 | {\mkbibnameprefix{#3}\isdot}% 71 | \ifprefchar{}{\bibnamedelimc}}% 72 | \mkbibnamefamily{#1}\isdot 73 | \ifdefvoid{#4}{}{\bibnamedelimd\mkbibnamesuffix{#4}\isdot}% 74 | \ifdefvoid{#2}{}{\revsdnamepunct\bibnamedelimd\mkbibnamegiven{#2}\isdot}} 75 | {\usebibmacro{name:delim}{#1}% 76 | \usebibmacro{name:hook}{#1}% 77 | \mkbibnamefamily{#1}\isdot 78 | \ifdefvoid{#4}{}{\bibnamedelimd\mkbibnamesuffix{#4}\isdot}% 79 | \ifboolexpe{% 80 | test {\ifdefvoid{#2}} 81 | and 82 | test {\ifdefvoid{#3}}} 83 | {} 84 | {\revsdnamepunct}% 85 | \ifdefvoid{#2}{}{\bibnamedelimd\mkbibnamegiven{#2}\isdot}% 86 | \ifdefvoid{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}}} 87 | 88 | %===================================================================== 89 | %设置驱动格式 90 | \DeclareBibliographyAlias{incollection}{inbook} %inbook类 91 | \DeclareBibliographyAlias{inproceedings}{inbook} 92 | \DeclareBibliographyAlias{proceedings}{book} %book类 93 | \DeclareBibliographyAlias{collection}{book} 94 | \DeclareBibliographyAlias{unpublished}{book} 95 | \DeclareBibliographyAlias{manual}{book} 96 | \DeclareBibliographyAlias{report}{book} 97 | \DeclareBibliographyAlias{thesis}{book} 98 | \DeclareBibliographyAlias{online}{book} 99 | \DeclareBibliographyAlias{patent}{book} 100 | \DeclareBibliographyDriver{book}{%%设置驱动,将一些块去掉 101 | \usebibmacro{bibindex}% 102 | \usebibmacro{begentry}% 103 | \usebibmacro{author/editor+others/translator+others}% 104 | \setunit{\printdelim{nametitledelim}}\newblock 105 | \usebibmacro{maintitle+title}% 106 | \newunit 107 | \printlist{language}% 108 | \newunit\newblock 109 | \usebibmacro{byauthor}% 110 | \newunit%\newblock 111 | \usebibmacro{byeditor+others}% 112 | \newunit%\newblock 113 | \printfield{edition}% 114 | \newunit 115 | \iffieldundef{maintitle} 116 | {\printfield{volume}% 117 | \printfield{part}} 118 | {}% 119 | \newunit 120 | \printfield{volumes}% 121 | \newunit%\newblock 122 | \usebibmacro{series+number}% 123 | \newunit%\newblock 124 | \printfield{note}% 125 | \newunit%\newblock 126 | \usebibmacro{publisher+location+date}% 127 | \newunit%\newblock 128 | \usebibmacro{chapter+pages}% 129 | \newunit 130 | \printfield{pagetotal}% 131 | \newunit%\newblock 132 | \iftoggle{bbx:isbn} 133 | {\printfield{isbn}} 134 | {}% 135 | \newunit%\newblock 136 | \usebibmacro{doi+eprint+url}% 137 | \newunit%\newblock 138 | \usebibmacro{addendum+pubstate}% 139 | \setunit{\bibpagerefpunct}%\newblock 140 | \usebibmacro{pageref}% 141 | \newunit%\newblock 142 | \iftoggle{bbx:related} 143 | {\usebibmacro{related:init}% 144 | \usebibmacro{related}} 145 | {}% 146 | \usebibmacro{finentry}} 147 | \newbibmacro*{doi+eprint+url}{%%%设置bibmacro,将一些块去掉 148 | \iftoggle{bbx:doi} 149 | {\printfield{doi}} 150 | {}% 151 | \newunit%\newblock 152 | \iftoggle{bbx:eprint} 153 | {\usebibmacro{eprint}} 154 | {}% 155 | \newunit%\newblock 156 | \iftoggle{bbx:url} 157 | {\usebibmacro{url+urldate}} 158 | {}} 159 | \DeclareBibliographyDriver{article}{%%%设置驱动,将一些块去掉 160 | \usebibmacro{bibindex}% 161 | \usebibmacro{begentry}% 162 | \usebibmacro{author/translator+others}% 163 | \setunit{\printdelim{nametitledelim}}\newblock 164 | \usebibmacro{title}% 165 | \newunit 166 | \printlist{language}% 167 | \newunit\newblock 168 | \usebibmacro{byauthor}% 169 | \newunit%\newblock 170 | \usebibmacro{bytranslator+others}% 171 | \newunit%\newblock 172 | \printfield{version}% 173 | \newunit%\newblock 174 | \usebibmacro{in:}% 175 | \usebibmacro{journal+issuetitle}% 176 | \newunit 177 | \usebibmacro{byeditor+others}% 178 | \newunit 179 | \usebibmacro{note+pages}% 180 | \newunit%\newblock 181 | \iftoggle{bbx:isbn} 182 | {\printfield{issn}} 183 | {}% 184 | \newunit%\newblock 185 | \usebibmacro{doi+eprint+url}% 186 | \newunit%\newblock 187 | \usebibmacro{addendum+pubstate}% 188 | \setunit{\bibpagerefpunct}%\newblock 189 | \usebibmacro{pageref}% 190 | \newunit%\newblock 191 | \iftoggle{bbx:related} 192 | {\usebibmacro{related:init}% 193 | \usebibmacro{related}} 194 | {}% 195 | \usebibmacro{finentry}} 196 | \DeclareBibliographyDriver{inbook}{%%%设置驱动,将一些块去掉 197 | \usebibmacro{bibindex}% 198 | \usebibmacro{begentry}% 199 | \usebibmacro{author/translator+others}% 200 | \setunit{\printdelim{nametitledelim}}\newblock 201 | \usebibmacro{title}% 202 | \newunit 203 | \printlist{language}% 204 | \newunit\newblock 205 | \usebibmacro{byauthor}% 206 | \newunit%\newblock 207 | \usebibmacro{in:}% 208 | \usebibmacro{bybookauthor}% 209 | \newunit%\newblock 210 | \usebibmacro{maintitle+booktitle}% 211 | \newunit%\newblock 212 | \usebibmacro{byeditor+others}% 213 | \newunit%\newblock 214 | \printfield{edition}% 215 | \newunit 216 | \iffieldundef{maintitle} 217 | {\printfield{volume}% 218 | \printfield{part}} 219 | {}% 220 | \newunit 221 | \printfield{volumes}% 222 | \newunit%\newblock 223 | \usebibmacro{series+number}% 224 | \newunit%\newblock 225 | \printfield{note}% 226 | \newunit%\newblock 227 | \usebibmacro{publisher+location+date}% 228 | \newunit%\newblock 229 | \usebibmacro{chapter+pages}% 230 | \newunit%\newblock 231 | \iftoggle{bbx:isbn} 232 | {\printfield{isbn}} 233 | {}% 234 | \newunit%\newblock 235 | \usebibmacro{doi+eprint+url}% 236 | \newunit%\newblock 237 | \usebibmacro{addendum+pubstate}% 238 | \setunit{\bibpagerefpunct}%\newblock 239 | \usebibmacro{pageref}% 240 | \newunit%\newblock 241 | \iftoggle{bbx:related} 242 | {\usebibmacro{related:init}% 243 | \usebibmacro{related}} 244 | {}% 245 | \usebibmacro{finentry}} 246 | -------------------------------------------------------------------------------- /exampleandimage/test-backref.tex: -------------------------------------------------------------------------------- 1 | %测试反向超链接 2 | 3 | \documentclass[twoside]{article} 4 | \usepackage{ctex} 5 | \usepackage{xcolor} 6 | \usepackage[CJKbookmarks,colorlinks]{hyperref} 7 | \usepackage[backend=biber,style=gb7714-2015,backref]{biblatex} 8 | \usepackage{filecontents} 9 | \begin{filecontents}{\jobname.bib} 10 | @Book{易仕和2013--, 11 | Title = {超声速和高超声速喷管设计}, 12 | Address = {北京}, 13 | Author = {易仕和 and 赵玉新 and 何霖 and 张敏莉}, 14 | Publisher = {国防工业出版社}, 15 | Year = {2013} 16 | } 17 | \end{filecontents} 18 | \addbibresource[location=local]{\jobname.bib} 19 | 20 | 21 | \begin{document} 22 | 23 | 24 | %\pagenumbering{arabic} %会导致错误的反向超链接 25 | \pagenumbering{roman} %将封面页页码改为罗马字母就可以得到正确的反向超链接。 26 | \title{title} 27 | \maketitle 28 | \clearpage 29 | 30 | \pagenumbering{arabic} 31 | \section{文献表} 32 | 33 | 文献\cite{易仕和2013--} 34 | 35 | \newpage 36 | \printbibliography 37 | \end{document} -------------------------------------------------------------------------------- /exampleandimage/test-gbk-pdflatex.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hushidong/biblatex-solution-to-latex-bibliography/efbc7b757b1edfed8cfc4bce16fc211093bd5e6b/exampleandimage/test-gbk-pdflatex.tex -------------------------------------------------------------------------------- /exampleandimage/test-gbk-xelatex.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hushidong/biblatex-solution-to-latex-bibliography/efbc7b757b1edfed8cfc4bce16fc211093bd5e6b/exampleandimage/test-gbk-xelatex.tex -------------------------------------------------------------------------------- /exampleandimage/test-registered-diff.tex: -------------------------------------------------------------------------------- 1 | 2 | 3 | \documentclass{article} 4 | \usepackage{ctex} 5 | \usepackage[backend=biber,style=gb7714-2015]{biblatex} 6 | %\usepackage[no-math]{fontspec} 7 | \usepackage{mathtools,amsthm,amsfonts,amssymb,bm} 8 | \usepackage[defaultsups]{newtxtext} 9 | \usepackage{newtxmath} 10 | \usepackage[opentype]{sourcecodepro} 11 | \usepackage{upgreek} 12 | \usepackage{wasysym} 13 | \usepackage{anyfontsize} 14 | \usepackage{metalogo,doc} 15 | 16 | \usepackage{filecontents} 17 | \begin{filecontents}{\jobname.bib} 18 | @Book{lorem, 19 | Title = {宋论trademark\textregistered{}trademark\texttrademark{}}, 20 | Author = {王夫之}, 21 | Edition = {刻本}, 22 | Publisher = {曾氏}, 23 | Location = {金陵}, 24 | Year = {1845(清同治四年)} 25 | } 26 | 27 | @Book{lorema, 28 | Title = {宋论trademark{\textregistered{}}trademark{\texttrademark{}}}, 29 | Author = {王夫之}, 30 | Edition = {刻本}, 31 | Publisher = {曾氏}, 32 | Location = {金陵}, 33 | Year = {1845(清同治四年)} 34 | } 35 | 36 | \end{filecontents} 37 | 38 | \addbibresource{\jobname.bib} 39 | 40 | \begin{document} 41 | trademark\textregistered{} 42 | 43 | trademark\texttrademark{} 44 | 45 | 详\cite{lorem,lorema} 46 | 见文献 47 | 48 | \printbibliography 49 | \end{document} -------------------------------------------------------------------------------- /exampleandimage/test-registered.tex: -------------------------------------------------------------------------------- 1 | 2 | 3 | \documentclass{article} 4 | \usepackage{ctex} 5 | \usepackage[backend=biber,style=gb7714-2015]{biblatex} 6 | 7 | 8 | \usepackage{filecontents} 9 | \begin{filecontents}{\jobname.bib} 10 | @Book{lorem, 11 | Title = {宋论trademark\textregistered{}trademark\texttrademark{}}, 12 | Author = {王夫之}, 13 | Edition = {刻本}, 14 | Publisher = {曾氏}, 15 | Location = {金陵}, 16 | Year = {1845(清同治四年)} 17 | } 18 | 19 | @Book{lorema, 20 | Title = {宋论trademark{\textregistered{}}trademark{\texttrademark{}}}, 21 | Author = {王夫之}, 22 | Edition = {刻本}, 23 | Publisher = {曾氏}, 24 | Location = {金陵}, 25 | Year = {1845(清同治四年)} 26 | } 27 | 28 | \end{filecontents} 29 | 30 | \addbibresource{\jobname.bib} 31 | 32 | \begin{document} 33 | trademark\textregistered{} 34 | 35 | trademark\texttrademark{} 36 | 37 | 详\cite{lorem,lorema} 38 | 见文献 39 | 40 | \printbibliography 41 | \end{document} -------------------------------------------------------------------------------- /exampleandimage/test-utf8-pdflatex-cls.tex: -------------------------------------------------------------------------------- 1 | %测试文档编码及其编译问题 2 | %中文utf8 3 | %使用pdflatex编译,需为ctex指定UTF8选项,该选项可以在文档类加载时给出。 4 | 5 | \documentclass[UTF8]{article} 6 | \usepackage{ctex} 7 | \usepackage[backend=biber,style=numeric]{biblatex} 8 | 9 | \usepackage{filecontents} 10 | \begin{filecontents}{\jobname.bib} 11 | @Book{lorem, 12 | Title = {宋论}, 13 | Author = {王夫之}, 14 | Edition = {刻本}, 15 | Publisher = {曾氏}, 16 | Location = {金陵}, 17 | Year = {1845(清同治四年)} 18 | } 19 | \end{filecontents} 20 | 21 | \addbibresource{\jobname.bib} 22 | 23 | \begin{document} 24 | 详\cite{lorem} 25 | 见文献 26 | 27 | \printbibliography 28 | \end{document} -------------------------------------------------------------------------------- /exampleandimage/test-utf8-pdflatex-pkg.tex: -------------------------------------------------------------------------------- 1 | %测试文档编码及其编译问题 2 | %中文utf8 3 | %使用pdflatex编译,需为ctex指定UTF8选项。 4 | 5 | \documentclass{article} 6 | \usepackage[UTF8]{ctex} 7 | \usepackage[backend=biber,style=numeric]{biblatex} 8 | 9 | 10 | \usepackage{filecontents} 11 | \begin{filecontents}{\jobname.bib} 12 | @Book{lorem, 13 | Title = {宋论}, 14 | Author = {王夫之}, 15 | Edition = {刻本}, 16 | Publisher = {曾氏}, 17 | Location = {金陵}, 18 | Year = {1845(清同治四年)} 19 | } 20 | \end{filecontents} 21 | 22 | \addbibresource{\jobname.bib} 23 | 24 | \begin{document} 25 | 详\cite{lorem} 26 | 见文献 27 | 28 | \printbibliography 29 | \end{document} -------------------------------------------------------------------------------- /exampleandimage/testautopunct.tex: -------------------------------------------------------------------------------- 1 | \documentclass[twoside]{article} 2 | \usepackage{ctex} 3 | \usepackage{geometry} 4 | \geometry{paperwidth=21cm,paperheight=29cm,top=1.5cm, bottom=1.5cm, left=2.54cm,right=2.54cm} 5 | \usepackage{xcolor} 6 | \usepackage[CJKbookmarks,colorlinks,bookmarksnumbered=true,pdfstartview=FitH,linkcolor=blue]{hyperref} 7 | %\usepackage[backend=biber,style=gb7714-2015,maxbibnames=5,minbibnames=5]{biblatex} 8 | \usepackage[backend=biber,style=numeric,autocite=footnote,autopunct=true]{biblatex}%align=gb7714-2015 9 | \usepackage{filecontents} 10 | \begin{filecontents}{\jobname.bib} 11 | 12 | @Inproceedings{refa, 13 | Title = {Interference cartography for hierarchical dynamic spectrum access}, 14 | Address = {Chicago, IL}, 15 | Author = {AlayaFeki, A. and B. Sayrac and S. Ben Jemaa and E. Moulines}, 16 | editor={Name, B and Dome, C}, 17 | Booktitle = {Proc. IEEE Symp. on New Frontiers in Dynamic Spectrum Access Networks (DySPAN)}, 18 | Date = {2008-10}, 19 | Pages = {1-5} 20 | } 21 | 22 | @Inproceedings{refb, 23 | Title = {Interference cartography for hierarchical dynamic spectrum access}, 24 | Address = {Chicago, IL}, 25 | editor={Name, B and Dome, C}, 26 | Author = {BlayaFeki, A. and B. Sayrac and S. Ben Jemaa and E. Moulines}, 27 | Booktitle = {Proc. IEEE Symp. on New Frontiers in Dynamic Spectrum Access Networks (DySPAN)}, 28 | Date = {2008-10}, 29 | Pages = {1-5} 30 | } 31 | 32 | @Inproceedings{refc, 33 | Title = {Interference cartography for hierarchical dynamic spectrum access}, 34 | Address = {Chicago, IL}, 35 | bookauthor={Name, B and Dome, C}, 36 | Author = {ClayaFeki, A. and B. Sayrac and S. Ben Jemaa and E. Moulines}, 37 | Booktitle = {Proc. IEEE Symp. on New Frontiers in Dynamic Spectrum Access Networks (DySPAN)}, 38 | Date = {2008-10}, 39 | Pages = {1-5} 40 | } 41 | 42 | @Inproceedings{refd, 43 | Title = {Interference cartography for hierarchical dynamic spectrum access}, 44 | Address = {Chicago, IL}, 45 | bookauthor={Name, B and Dome, C}, 46 | Author = {MlayaFeki, A. and B. Sayrac and S. Ben Jemaa and E. Moulines}, 47 | Booktitle = {Proc. IEEE Symp. on New Frontiers in Dynamic Spectrum Access Networks (DySPAN)}, 48 | Date = {2008-10}, 49 | Pages = {1-5} 50 | } 51 | 52 | @Book{Simon2001--, 53 | Title = {Spread Spectrum Communications Handbook}, 54 | Address = {New York City}, 55 | Author = {Simon, M. K. and Omura,J. K. and Scholtz,R. A. and Levitt,B. K.}, 56 | Publisher = {McGraw-Hill, Inc.}, 57 | Year = {2001} 58 | } 59 | \end{filecontents} 60 | \addbibresource{\jobname.bib} 61 | 62 | 63 | \begin{document} 64 | %编译信息:biblatex v\versionofbiblatex;gb7714-2015*.* version number \versionofgbtstyle. 65 | 66 | \section{文献表} 67 | 文献\cite{refc}. 68 | 69 | 文献\autocite{refa}. 70 | 71 | 文献\autocite{refb}。 72 | 73 | 文献\cite{refd}. 74 | 75 | 文献\cite{Simon2001--}. 76 | 77 | \printbibliography%[heading=subbibintoc,title=【参考文献】] 78 | \end{document} -------------------------------------------------------------------------------- /exampleandimage/testcharcode-gbk-xelatex.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hushidong/biblatex-solution-to-latex-bibliography/efbc7b757b1edfed8cfc4bce16fc211093bd5e6b/exampleandimage/testcharcode-gbk-xelatex.tex -------------------------------------------------------------------------------- /exampleandimage/testcharcode-utf8-xelatex.tex: -------------------------------------------------------------------------------- 1 | \documentclass[twoside]{article} 2 | \usepackage{ctex} 3 | \usepackage{xcolor} 4 | \usepackage{hyperref} 5 | \usepackage{lipsum} 6 | \usepackage{filecontents} 7 | \begin{document} 8 | \section{set title} 9 | 10 | 文献 11 | 12 | \newcounter{charcode} 13 | \setcounter{charcode}{`文} 14 | 编码为:\thecharcode 15 | 16 | 17 | \end{document} -------------------------------------------------------------------------------- /exampleandimage/testcjk-gbk-pdflatex.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hushidong/biblatex-solution-to-latex-bibliography/efbc7b757b1edfed8cfc4bce16fc211093bd5e6b/exampleandimage/testcjk-gbk-pdflatex.tex -------------------------------------------------------------------------------- /exampleandimage/testcjk-utf-xelatex.tex: -------------------------------------------------------------------------------- 1 | \documentclass[UTF8]{ctexart} 2 | \usepackage{etoolbox} 3 | \newif\ifCJK 4 | \def\testCJK#1{% 5 | \begingroup 6 | \global\CJKfalse 7 | \def\CJKsymbol##1{\global\CJKtrue} 8 | \setbox0=\hbox{#1}% 9 | \endgroup} 10 | 11 | \providetoggle{ifCJKforgbt} 12 | \def\testCJKfirstchar#1{% 13 | \begingroup 14 | \global\togglefalse{ifCJKforgbt} 15 | \def\CJKsymbol##1{\global\toggletrue{ifCJKforgbt}} 16 | \setbox0=\hbox{#1}% 17 | \endgroup 18 | }% 19 | 20 | \begin{document} 21 | 22 | %\testCJK{Eng} 23 | %\ifCJK CJK\else Eng\fi 24 | % 25 | %\testCJK{eng汉字} 26 | %\ifCJK CJK\else Eng\fi 27 | % 28 | %\testCJKfirstchar{汉字eng} 29 | %\iftoggle{ifCJKforgbt}{cjk}{eng} 30 | %\testCJKfirstchar{eng汉字} 31 | %\iftoggle{ifCJKforgbt}{cjk}{eng} 32 | 33 | \def\hztmp{汉} 34 | \expandafter\testCJKfirstchar\hztmp 35 | 36 | \iftoggle{ifCJKforgbt}{cjk}{eng} 37 | 38 | \end{document} -------------------------------------------------------------------------------- /exampleandimage/testcjk-utf.tex: -------------------------------------------------------------------------------- 1 | \documentclass[UTF8]{ctexart} 2 | \usepackage{etoolbox} 3 | \usepackage{xstring} 4 | 5 | % 6 | % 判断CJK字符的函数,用于判断作者等信息是否由中文字符构成 7 | % 8 | % 原理方法: 9 | % 2E00-2E7F 追加标点 10 | % 2E80-2EFF cjk部首补充 11 | % 2FF0-2FFF 表意文字描述符 12 | % 3000-303F cjk符号和标点 13 | % 3300-33FF cjk兼容 14 | % 3400-4DBF cjk统一表意符号扩展 15 | % 4E00-9FBF cjk统一表意符号 16 | % 中文范围4E00-9FA5 17 | \providetoggle{ifCJKforgbt} 18 | \def\testCJKfirstchar#1#2&{%#1#2& 19 | \ifnumgreater{`#1}{"2E7F}{\toggletrue{ifCJKforgbt}}{\togglefalse{ifCJKforgbt}}% 20 | }% 21 | % 利用edef展开或xstring抽取第一个字符判断 22 | % 现在采用xstring方法,避免抽取的是编组符号 23 | \def\testCJKfirst#1{% 24 | %\edef\tempa{#1}% 25 | %\expandarg%\noexpandarg 26 | \exploregroups% 27 | \StrChar{#1}{1}[\tempa]% 28 | \expandafter\testCJKfirstchar\tempa&} 29 | 30 | \begin{document} 31 | 32 | 33 | \testCJKfirst{汉字eng} 34 | \iftoggle{ifCJKforgbt}{cjk}{eng} 35 | \testCJKfirst{eng汉字} 36 | \iftoggle{ifCJKforgbt}{cjk}{eng} 37 | 38 | \end{document} -------------------------------------------------------------------------------- /exampleandimage/testeggbk.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hushidong/biblatex-solution-to-latex-bibliography/efbc7b757b1edfed8cfc4bce16fc211093bd5e6b/exampleandimage/testeggbk.tex -------------------------------------------------------------------------------- /exampleandimage/testeggbkay.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hushidong/biblatex-solution-to-latex-bibliography/efbc7b757b1edfed8cfc4bce16fc211093bd5e6b/exampleandimage/testeggbkay.tex -------------------------------------------------------------------------------- /exampleandimage/testfilterCategory.tex: -------------------------------------------------------------------------------- 1 | \documentclass[twoside]{article} 2 | \usepackage{ctex} 3 | \usepackage{xcolor} 4 | \usepackage{hyperref} 5 | \usepackage{lipsum} 6 | \usepackage[top=10pt,bottom=10pt,left=10pt,right=10pt]{geometry} 7 | %\usepackage[backend=biber,style=gb7714-2015,gbalign=gb7714-2015, 8 | %gbnamefmt=none,gbfieldstd=false,gbtype=true,gbpunctin=true,gbpub=true]{biblatex} 9 | 10 | \usepackage[backend=biber,style=gb7714-2015,gbalign=center]{biblatex} 11 | %gbnamefmt=givenahead,lowercase,familyahead,pinyin 12 | 13 | 14 | \usepackage{filecontents} 15 | \begin{filecontents}{\jobname.bib} 16 | @ARTICLE{fazzari1993working, 17 | AUTHOR = {Fazzari, Steven M and Petersen, Bruce C}, 18 | PUBLISHER = {JSTOR}, 19 | DATE = {1993}, 20 | JOURNALTITLE = {The RAND Journal of Economics}, 21 | PAGES = {328--342}, 22 | TITLE = {Working capital and fixed investment: new evidence on financing constraints}, 23 | nameformat={lowercase}, 24 | }%namefmtid={1}, 25 | 26 | @INCOLLECTION{adam2011house, 27 | AUTHOR = {Adam, Klaus and Kuang, Pei and Marcet, Albert}, 28 | PUBLISHER = {University of Chicago Press}, 29 | BOOKTITLE = {NBER Macroeconomics Annual 2011, Volume 26}, 30 | DATE = {2011}, 31 | PAGES = {77--122}, 32 | TITLE = {House price booms and the current account}, 33 | }%namefmtid={0}, 34 | 35 | @ARTICLE{bernanke1989agency, 36 | AUTHOR = {Bernanke, Ben and Gertler, Mark}, 37 | PUBLISHER = {JSTOR}, 38 | DATE = {1989}, 39 | JOURNALTITLE = {The American Economic Review}, 40 | PAGES = {14--31}, 41 | TITLE = {Agency costs, net worth, and business fluctuations}, 42 | nameformat={givenahead}, 43 | }%namefmtid={2}, 44 | 45 | @REPORT{calvo2006phoenix, 46 | AUTHOR = {Calvo, Guillermo A and Izquierdo, Alejandro and Talvi, Ernesto}, 47 | INSTITUTION = {National Bureau of Economic Research}, 48 | DATE = {2006}, 49 | TITLE = {Phoenix miracles in emerging markets: recovering without credit from systemic financial crises}, 50 | nameformat={familyahead}, 51 | }%namefmtid={3}, 52 | 53 | @ARTICLE{wang2006another, 54 | AUTHOR = {Wang, Peng-fei and Wen, Yi}, 55 | PUBLISHER = {Elsevier}, 56 | DATE = {2006}, 57 | JOURNALTITLE = {Journal of Economic Dynamics and Control}, 58 | NUMBER = {12}, 59 | PAGES = {2533--2552}, 60 | TITLE = {Another look at sticky prices and output persistence}, 61 | VOLUME = {30}, 62 | nameformat={pinyin}, 63 | }%namefmtid={4}, 64 | 65 | @REPORT{xu2012role, 66 | AUTHOR = {Xu, TengTeng}, 67 | INSTITUTION = {Faculty of Economics, University of Cambridge}, 68 | DATE = {2012}, 69 | TITLE = {The role of credit in international business cycles}, 70 | nameformat={pinyin}, 71 | } 72 | 73 | @ARTICLE{zhang2009china, 74 | AUTHOR = {Zhang, Wen lang}, 75 | PUBLISHER = {Elsevier}, 76 | DATE = {2009}, 77 | JOURNALTITLE = {Journal of Macroeconomics}, 78 | NUMBER = {3}, 79 | PAGES = {473--484}, 80 | TITLE = {China’s monetary policy: Quantity versus price rules}, 81 | VOLUME = {31}, 82 | nameformat={pinyin}, 83 | } 84 | 85 | @Book{Yi2013--, 86 | Title = {Supersonic and hypersonic nozzle design}, 87 | Address = {BeiJing}, 88 | Author = {Yi, Shi-He and Zhao, Yu Xin and He, Lin and Zhang, Ming Li}, 89 | Publisher = {National Defense Industry Press}, 90 | Year = {2013}, 91 | nameformat={pinyin}, 92 | } 93 | 94 | @Book{易仕和2013--, 95 | Title = {超声速和高超声速喷管设计}, 96 | Address = {北京}, 97 | Author = {易仕和 and 赵玉新 and 何霖 and 张敏莉}, 98 | Publisher = {国防工业出版社}, 99 | Year = {2013} 100 | } 101 | 102 | @Periodical{AAAS1883--, 103 | Title = {Science}, 104 | Date = {1883}, 105 | Editor = {{American Association for the Advancement of Science}}, 106 | Number = {1}, 107 | Volume = {1}, 108 | Location = {Washington, D.C.}, 109 | Publisher = {American Association for the Advancement of Science} 110 | } 111 | 112 | @Proceedings{ROSENTHALL1963--, 113 | Title = {Proceedings of the Fifth Canadian Mathematical Congress, University of Montreal, 1961}, 114 | Date = {1963}, 115 | Publisher = {University of Toronto Press}, 116 | Editor = {E M ROSENTHALL}, 117 | Location = {Toronto} 118 | } 119 | 120 | @Thesis{CALMS1965--, 121 | Title = {Infrared spectroscopic studies on solid oxygen}, 122 | Author = {R B CALMS}, 123 | Date = {1965}, 124 | Institution = {Univ. of California}, 125 | Location = {Berkeley} 126 | } 127 | 128 | @Report{WHO1970--, 129 | Title = {Factors regulating the immune response}, 130 | Author = {{World Health Organization}}, 131 | Date = {1970}, 132 | Institution = {WHO}, 133 | Location = {Geneva}, 134 | Titleaddon = {report of WHO Scientific Group} 135 | } 136 | 137 | @Inproceedings{FOURNEY1971-17-38, 138 | Title = {Advances in holographic photoelasticity}, 139 | Author = {M E FOURNEY}, 140 | Booktitle = {Symposium on Applications of Holography in Mechanics, August 23-25, 1971, University of Southern California, Los Angeles, California}, 141 | Date = {1971}, 142 | Pages = {17-38}, 143 | Publisher = {ASME}, 144 | Location = {New York} 145 | } 146 | 147 | @Article{Zhang2007-500-503, 148 | Title = {The design and experimental investigations of supersonic length shorted nozzle}, 149 | Author = {Zhang, Min-li and Yi, Shi he and Zhao, Yuxin}, 150 | Journal = {ACTA AERODYNAMICA SINICA}, 151 | Number = {4}, 152 | Pages = {500-503}, 153 | Volume = {25}, 154 | Year = {2007}, 155 | nameformat={pinyin}, 156 | } 157 | 158 | @Article{张2007-500-503, 159 | Title = {超声速短化喷管的设计和试验研究}, 160 | Author = {张敏莉 and 易仕和 and 赵玉新 and 李明}, 161 | Journal = {空气动力学报}, 162 | Year = {2007}, 163 | Number = {4}, 164 | Pages = {500-503}, 165 | Volume = {25}, 166 | language = {chinese} 167 | } 168 | \end{filecontents} 169 | \addbibresource{\jobname.bib} 170 | 171 | \defbibentryset{bilangyi2013}{易仕和2013--,Yi2013--} 172 | \defbibentryset{bilangzhang2007}{张2007-500-503,Zhang2007-500-503} 173 | 174 | \DeclareBibliographyCategory{kindsofnameformats} 175 | \addtocategory{kindsofnameformats}{zhang2009china,xu2012role,wang2006another, 176 | calvo2006phoenix,bernanke1989agency,adam2011house,fazzari1993working} 177 | 178 | \begin{document} 179 | \section{作者姓名格式} 180 | 181 | \nocite{*} 182 | 183 | \printbibliography[category=kindsofnameformats,title=五种不同的姓名格式] 184 | 185 | \printbibliography[notcategory=kindsofnameformats,title=某种期刊的姓名格式] 186 | 187 | \end{document} -------------------------------------------------------------------------------- /exampleandimage/testfilterCheck.tex: -------------------------------------------------------------------------------- 1 | \documentclass[twoside]{article} 2 | \usepackage[heading]{ctex} 3 | \usepackage{geometry} 4 | \geometry{paperwidth=21cm,paperheight=29cm,top=1.5cm, bottom=1.5cm, left=2.54cm,right=2.54cm} 5 | \ctexset{ 6 | section = { 7 | beforeskip ={0pt}, 8 | afterskip={0pt} }, 9 | subsection = { 10 | beforeskip ={0pt}, 11 | afterskip={0pt} } 12 | } 13 | \usepackage{xcolor} 14 | \usepackage[CJKbookmarks,colorlinks,bookmarksnumbered=true,pdfstartview=FitH,linkcolor=blue]{hyperref} 15 | \usepackage[backend=biber,style=gb7714-2015,gbpub=true]{biblatex}%align=gb7714-2015,gbnamefmt=lowercase 16 | \renewcommand{\bibfont}{\zihao{-5}} 17 | \setlength{\bibitemsep}{0pt} 18 | \defbibheading{bibliography}[\refname]{% 19 | \subsection*{#1}} 20 | \usepackage{filecontents} 21 | \begin{filecontents}{\jobname.bib} 22 | @Article{Zhang2007-500-503, 23 | Title = {The design and experimental investigations of supersonic length shorted nozzle}, 24 | Author = {Zhang, Min-li and Yi, Shi-he and Zhao, Yu-xin}, 25 | Journal = {ACTA AERODYNAMICA SINICA}, 26 | Number = {4}, 27 | Pages = {500-503}, 28 | Volume = {25}, 29 | Year = {2007} 30 | } 31 | 32 | @Book{Yi2013--, 33 | Title = {Supersonic and hypersonic nozzle design}, 34 | Address = {Beijing}, 35 | Author = {Yi, Shi he and Zhao, Yu xin and He, Lin and Zhang, Min li}, 36 | Publisher = {National Defense Industry Press}, 37 | Year = {2013} 38 | } 39 | 40 | @Book{LIAO2012--, 41 | Title = {Electronic countermeasure techniques for missile penetration}, 42 | Address = {Beijing}, 43 | Author = {LIAO, ping and JIANG, qin bo}, 44 | Publisher = {National Defense Industry Press}, 45 | Year = {2013} 46 | } 47 | 48 | @Book{LIU2003--, 49 | Title = {Introduction of Ballistic Misille Techniques}, 50 | Address = {Beijing}, 51 | Author = {LIU, shi Qiu}, 52 | Publisher = {China Astronautic Publishing House}, 53 | Year = {2003} 54 | } 55 | 56 | @Article{lZhang2007-500-503, 57 | Title = {The design and experimental investigations of supersonic length shorted nozzle}, 58 | Author = {Zhang, Min-li and Yi, Shi-he and Zhao, Yu-xin}, 59 | Journal = {ACTA AERODYNAMICA SINICA}, 60 | Number = {4}, 61 | Pages = {500-503}, 62 | Volume = {25}, 63 | nameformat={lowercase}, 64 | Year = {2007} 65 | } 66 | 67 | @Book{lYi2013--, 68 | Title = {Supersonic and hypersonic nozzle design}, 69 | Address = {Beijing}, 70 | Author = {Yi, Shi he and Zhao, Yu xin and He, Lin and Zhang, Min li}, 71 | Publisher = {National Defense Industry Press}, 72 | nameformat={lowercase}, 73 | Year = {2013} 74 | } 75 | 76 | @Book{lLIAO2012--, 77 | Title = {Electronic countermeasure techniques for missile penetration}, 78 | Address = {Beijing}, 79 | Author = {LIAO, ping and JIANG, qin bo}, 80 | Publisher = {National Defense Industry Press}, 81 | nameformat={lowercase}, 82 | Year = {2013} 83 | } 84 | 85 | @Book{lLIU2003--, 86 | Title = {Introduction of Ballistic Misille Techniques}, 87 | Address = {Beijing}, 88 | Author = {LIU, shi Qiu}, 89 | Publisher = {China Astronautic Publishing House}, 90 | nameformat={lowercase}, 91 | Year = {2003} 92 | } 93 | 94 | @Article{gZhang2007-500-503, 95 | Title = {The design and experimental investigations of supersonic length shorted nozzle}, 96 | Author = {Zhang, Min-li and Yi, Shi-he and Zhao, Yu-xin}, 97 | Journal = {ACTA AERODYNAMICA SINICA}, 98 | Number = {4}, 99 | Pages = {500-503}, 100 | Volume = {25}, 101 | nameformat={givenahead}, 102 | Year = {2007} 103 | } 104 | 105 | @Book{gYi2013--, 106 | Title = {Supersonic and hypersonic nozzle design}, 107 | Address = {Beijing}, 108 | Author = {Yi, Shi he and Zhao, Yu xin and He, Lin and Zhang, Min li}, 109 | Publisher = {National Defense Industry Press}, 110 | nameformat={givenahead}, 111 | Year = {2013} 112 | } 113 | 114 | @Book{gLIAO2012--, 115 | Title = {Electronic countermeasure techniques for missile penetration}, 116 | Address = {Beijing}, 117 | Author = {LIAO, ping and JIANG, qin bo}, 118 | Publisher = {National Defense Industry Press}, 119 | nameformat={givenahead}, 120 | Year = {2013} 121 | } 122 | 123 | @Book{gLIU2003--, 124 | Title = {Introduction of Ballistic Misille Techniques}, 125 | Address = {Beijing}, 126 | Author = {LIU, shi Qiu}, 127 | Publisher = {China Astronautic Publishing House}, 128 | nameformat={givenahead}, 129 | Year = {2003} 130 | } 131 | 132 | @Article{fZhang2007-500-503, 133 | Title = {The design and experimental investigations of supersonic length shorted nozzle}, 134 | Author = {Zhang, Min-li and Yi, Shi-he and Zhao, Yu-xin}, 135 | Journal = {ACTA AERODYNAMICA SINICA}, 136 | Number = {4}, 137 | Pages = {500-503}, 138 | Volume = {25}, 139 | nameformat={familyahead}, 140 | Year = {2007} 141 | } 142 | 143 | @Book{fYi2013--, 144 | Title = {Supersonic and hypersonic nozzle design}, 145 | Address = {Beijing}, 146 | Author = {Yi, Shi he and Zhao, Yu xin and He, Lin and Zhang, Min li}, 147 | Publisher = {National Defense Industry Press}, 148 | nameformat={familyahead}, 149 | Year = {2013} 150 | } 151 | 152 | @Book{fLIAO2012--, 153 | Title = {Electronic countermeasure techniques for missile penetration}, 154 | Address = {Beijing}, 155 | Author = {LIAO, ping and JIANG, qin bo}, 156 | Publisher = {National Defense Industry Press}, 157 | nameformat={familyahead}, 158 | Year = {2013} 159 | } 160 | 161 | @Book{fLIU2003--, 162 | Title = {Introduction of Ballistic Misille Techniques}, 163 | Address = {Beijing}, 164 | Author = {LIU, shi Qiu}, 165 | Publisher = {China Astronautic Publishing House}, 166 | nameformat={familyahead}, 167 | Year = {2003} 168 | } 169 | 170 | @Article{pZhang2007-500-503, 171 | Title = {The design and experimental investigations of supersonic length shorted nozzle}, 172 | Author = {Zhang, Min-li and Yi, Shi-he and Zhao, Yu-xin}, 173 | Journal = {ACTA AERODYNAMICA SINICA}, 174 | Number = {4}, 175 | Pages = {500-503}, 176 | Volume = {25}, 177 | nameformat={pinyin}, 178 | Year = {2007} 179 | } 180 | 181 | @Book{pYi2013--, 182 | Title = {Supersonic and hypersonic nozzle design}, 183 | Address = {Beijing}, 184 | Author = {Yi, Shi he and Zhao, Yu xin and He, Lin and Zhang, Min li}, 185 | Publisher = {National Defense Industry Press}, 186 | nameformat={pinyin}, 187 | Year = {2013} 188 | } 189 | 190 | @Book{pLIAO2012--, 191 | Title = {Electronic countermeasure techniques for missile penetration}, 192 | Address = {Beijing}, 193 | Author = {LIAO, ping and JIANG, qin bo}, 194 | Publisher = {National Defense Industry Press}, 195 | nameformat={pinyin}, 196 | Year = {2013} 197 | } 198 | 199 | @Book{pLIU2003--, 200 | Title = {Introduction of Ballistic Misille Techniques}, 201 | Address = {Beijing}, 202 | Author = {LIU, shi Qiu}, 203 | Publisher = {China Astronautic Publishing House}, 204 | nameformat={pinyin}, 205 | Year = {2003} 206 | } 207 | \end{filecontents} 208 | \addbibresource{\jobname.bib} 209 | 210 | \defbibcheck{uppercase}{% 211 | \iffieldundef{nameformat}{}{\skipentry}} 212 | 213 | \defbibcheck{lowercase}{% 214 | \iffieldequalstr{nameformat}{lowercase}{}{\skipentry}} 215 | 216 | \defbibcheck{givenahead}{% 217 | \iffieldequalstr{nameformat}{givenahead}{}{\skipentry}} 218 | 219 | \defbibcheck{familyahead}{% 220 | \iffieldequalstr{nameformat}{familyahead}{}{\skipentry}} 221 | 222 | \defbibcheck{pinyin}{% 223 | \iffieldequalstr{nameformat}{pinyin}{}{\skipentry}} 224 | 225 | \begin{document} 226 | 227 | \section*{五种不同的姓名格式} 228 | \nocite{*} 229 | 230 | \printbibliography[check=uppercase,title=国标风格-全大写] 231 | \printbibliography[check=lowercase,title=国标风格-大小写不变] 232 | \printbibliography[check=pinyin,title=中文常见风格-拼音] 233 | \printbibliography[check=givenahead,title=biblatex标准风格-名在前] 234 | \printbibliography[check=familyahead,title=biblatex标准风格-姓在前] 235 | 236 | 237 | \end{document} -------------------------------------------------------------------------------- /exampleandimage/testindexofbib.tex: -------------------------------------------------------------------------------- 1 | \documentclass[twoside]{article} 2 | \usepackage{ctex} 3 | \usepackage{geometry} 4 | \geometry{paperwidth=21cm,paperheight=29cm,top=1.5cm, bottom=1.5cm, left=2.54cm,right=2.54cm} 5 | \usepackage{xcolor} 6 | \usepackage[CJKbookmarks,colorlinks,bookmarksnumbered=true,pdfstartview=FitH,linkcolor=blue]{hyperref} 7 | \usepackage[backend=biber,style=gb7714-2015,gbtype=true,block=none,indexing=true]{biblatex}%align=gb7714-2015 8 | \addbibresource[location=local]{example.bib} 9 | \usepackage{makeidx} 10 | \makeindex 11 | 12 | \begin{document} 13 | 14 | \section{文献表} 15 | 文献 16 | \cite{张伯伟2002--} 17 | \cite{白书农1998-146-163} 18 | \cite{杨洪升2013-56-75} 19 | \cite{中华医学会湖北分会1984--} 20 | \cite{雷光春2012--} 21 | \cite{贾东琴2011-45-52} 22 | \cite{汤万金2013-09-30--} 23 | \cite{韩吉人1985-90-99} 24 | \cite{马欢2011-27-27} 25 | \cite{张凯军2012-04-05--} 26 | \cite{国家环境保护局科技标准司1996-2-3} 27 | \cite{中国职工教育研究会1985--} 28 | \cite{丁文祥2000--} 29 | \cite{李强2012-05-03--} 30 | 31 | \cite{OBRIEN1994--} 32 | \cite{FOURNEY1971-17-38} 33 | \cite{Park2010-696-715} 34 | \cite{Babu2014--} 35 | \cite{Calkin2011-8-9} 36 | \cite{CALMS1965--} 37 | \cite{KOSEKI2002--} 38 | \cite{standardinfoiso158} 39 | \cite{Dublin2012-06-14--} 40 | 41 | \printbibliography 42 | \printindex 43 | \end{document} -------------------------------------------------------------------------------- /exampleandimage/texstudio-cmd-build.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hushidong/biblatex-solution-to-latex-bibliography/efbc7b757b1edfed8cfc4bce16fc211093bd5e6b/exampleandimage/texstudio-cmd-build.JPG -------------------------------------------------------------------------------- /exampleandimage/texstudio-cmd-build.eps: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 EPSF-3.0 2 | %%Pages: 1 3 | %%BoundingBox: 0 0 41 32 4 | %%DocumentData: Clean7Bit 5 | %%LanguageLevel: 2 6 | %%EndComments 7 | %%Page: 1 1 8 | save 2 dict begin 9 | {/DeviceRGB setcolorspace 10 | /T currentfile/ASCII85Decode filter def 11 | /F T/DCTDecode filter def 12 | <> image F closefile T closefile} 15 | %%BeginData:; 16 | exec 17 | s4IA0!"_al8O`[\!Ob!!!!5!!!SAP*#_G!!!!$0f/k1P*, 26 | eH!!!!$0f/k1l5Td/!!!95!!!:nz*9mM(!!iQ)zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz 27 | zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz 28 | zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz 29 | zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz 30 | zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz 31 | zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz 32 | zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz 33 | zzzzz1,(F@3\`BN0Jst-1cdKP3]&Yn1,(F@3\`BN0Jst-1cdKP3]&Yn!!#:bA,pHHB`N#NB`N2SF9$ 34 | =]@/tBLDZFeX!!*&X$Qs,)FDs8o05bh`@:X:cAM.J2D(g-BE%`pu0JdKH?*RqH;7FLH>@"NA1'T*%154B3d>L\D.Rft+F%a>DK@j`4X+qlA2?#P2`3qlA 40 | 2?#P2`31b_$FG\qC\6ZQaHFCdjKFCdWu061T83^dP#@rc:&FD 42 | 5Z25!3jrAi`=kF(96)E-,f4DBNt1Aia@0Dfp.b,'A$BA3+=2Ai4%.A2PrJ@5DFG0em3I/R`0G0eHol 43 | 1LrF%0fUq#0k)=LG\q87F#miA4X+Q]FDs8o05u&SCbBXHB.me*04es2D.RU,F"]7#0eX_74Chq_@rc 44 | -hFDl1`4E=tE3`BU0+F%a>DK@jZA7dtKBQS?83\N.1GBYZ`1G3TdB.ku"3B8`H1+tC10ZOeE%*6F"?A;UOtZ1LbBV#mqFa(`=5<-7:2j.P 84 | s"@2`NfY6UX@47n?3D;cHat='/U/@q9._B4u!oF*)PJGBeCZK7nr5LPUeEP*;,qQC!u,R\HRQV5C/h 85 | WN*81['d?O\@K2f_o0O6a2lBFdaQ^rf%8R-g>V&OjQ5OekiqC&o(2MHp@n@XqZ"J6*ru?D!%;)SAnPdkC3+K 88 | >G'A1VH@gd&KnbA=M2II[Pa.Q$R$jD;USO``Vl6SpZEppG[^WcW]#)A'`Q#s>ai`&\eCE.%f\,!OkGC;f--qbo8Mo067S>OF$AbVV 90 | ElmCOqP(]uCWOEKJm_M*bd\NPH0:34WVj 91 | g9qgN\Zh6*b(nr(TO#a*&E'Cs.GOc(l83C%iQGo/QfGN"%.&?PEd]);I\$OuEAoN=ERY+E/gH"l:&c 92 | ;lp(A#WFo.Hs$+rr@J^3]tI^qgNY@/$SId.K5jCGqK#oYF8gLceT!*k-7$oc[b\.rr>gWqGsT,e'-f 93 | i[6s'[fq166):)"9M/K]riFo-\g.:"-OkiQ:kXA2*bnhG^<0'-]H_]acI6Mn_X(eE9PU5:"[r&nG8A 94 | HB=;tkul%t]6C_%jmla,2$C-;klm-KS1Q^T%55B;_r+oRcp48HZ;%Qa[)a`27"b_;"4p*)tg6Zi:#t 95 | \3KH?rrbrpA7)Mqh+nI&+Qi"p5f7,~> 96 | %%EndData 97 | end restore showpage 98 | %%Trailer 99 | %%EOF 100 | -------------------------------------------------------------------------------- /exampleandimage/texstudio-cmd-set.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hushidong/biblatex-solution-to-latex-bibliography/efbc7b757b1edfed8cfc4bce16fc211093bd5e6b/exampleandimage/texstudio-cmd-set.JPG -------------------------------------------------------------------------------- /exampleandimage/texstudio-cmd-set.eps: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 EPSF-3.0 2 | %%Pages: 1 3 | %%BoundingBox: 0 0 32 27 4 | %%DocumentData: Clean7Bit 5 | %%LanguageLevel: 2 6 | %%EndComments 7 | %%Page: 1 1 8 | save 2 dict begin 9 | {/DeviceRGB setcolorspace 10 | /T currentfile/ASCII85Decode filter def 11 | /F T/DCTDecode filter def 12 | <> image F closefile T closefile} 15 | %%BeginData:; 16 | exec 17 | s4IA0!"_al8O`[\!Ob!!!!5!!!SAP*#_G!!!!$2),(2P*, 26 | eH!!!!$2),(2l5Td/!!!95!!!:nz*9mM(!!iQ)zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz 27 | zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz 28 | zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz 29 | zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz 30 | zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz 31 | zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz 32 | zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz 33 | zzzzz1,(F@3\`BN0Jst-1cdKO3]/nt1,(F@3\`BN0Jst-1cdKO3]/nt!!#:bA,pHHB`N#NB`N2SF9$ 34 | =]@/tBLDZFeX!!*&X$Qs,)FDs8o05bh`@:X:cAM.J2D(g-BE%`pu0JdKH?*RqH;7FLH>@"NA1'T*%154B3d>L\D.Rft+F%a>DK@j`4X+qlA2?#P2`3qlA 40 | 2?#P2`3DK@jZA7dtKBQS?83\N.1GBYZ`1G3TdB.ku"3B8`H1+tC10ZOeE%*6F"?A;UOtZ1LbBV#mqFa(`=5<-7:2j.P 84 | s"@2`NfY6UX@47n?3D;cHat='/U/@q9._B4u!oF*)PJGBeCZK7nr5LPUeEP*;,qQC!u,R\HRQV5C/h 85 | WN*81['d?O\@K2f_o0O6a2lBFdaQ^rf%8R-g>V&OjQ5OekiqC&o(2MHp@n@XqZ"J6*ru?D!%;)SAnPdkC3+K 88 | >G'A1VH@gd&KnbA=M2II[Pa.Q$R$jD;USO``Vl6SpZEppG[^WcW]#)A'`Q#s>ai`&\eCE.%f\,!EGEQN?2!"noFl;-cY 90 | O89@O5PNF;rra> 91 | ^h7rCYV1,Jg/oH/j7Orq)7lZ$*$I3mqj(@k'+k^h-DODn&r&4E)0C;A9a2+_(2%;+j5\t!ZJ\$]i#% 92 | m*$cHR[ZD3Tm:Wh=H$_&_NU`(7.Clqf_T492rKSb?pdqcP 95 | %%EndData 96 | end restore showpage 97 | %%Trailer 98 | %%EOF 99 | -------------------------------------------------------------------------------- /exampleandimage/texstudio-compilerchain.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hushidong/biblatex-solution-to-latex-bibliography/efbc7b757b1edfed8cfc4bce16fc211093bd5e6b/exampleandimage/texstudio-compilerchain.JPG -------------------------------------------------------------------------------- /exampleandimage/texstudio-defaulttool.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hushidong/biblatex-solution-to-latex-bibliography/efbc7b757b1edfed8cfc4bce16fc211093bd5e6b/exampleandimage/texstudio-defaulttool.JPG -------------------------------------------------------------------------------- /exampleandimage/texstudio-path-linux.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hushidong/biblatex-solution-to-latex-bibliography/efbc7b757b1edfed8cfc4bce16fc211093bd5e6b/exampleandimage/texstudio-path-linux.png -------------------------------------------------------------------------------- /exampleandimage/zazhi.cbx: -------------------------------------------------------------------------------- 1 | %% 2 | %% --------------------------------------------------------------- 3 | %% zazhi --- instructions 4 | %% Maintained by: 5 | %% history: 6 | %% 2017/10/26 v1.0 7 | %% E-mail: hzzmail@163.com 8 | %% Released under the LaTeX Project Public License v1.3c or later 9 | %% --------------------------------------------------------------- 10 | %% 11 | \ProvidesFile{zazhi.cbx}[2017/10/26 v1.0 biblatex citation style] 12 | 13 | \RequireCitationStyle{authoryear} 14 | %\RequireCitationStyle{numeric} 15 | 16 | \ExecuteBibliographyOptions{ 17 | %autocite = superscript , 18 | %autopunct = true , 19 | %sorting = none , 20 | maxcitenames=2, 21 | mincitenames=1, 22 | uniquename=init,%因为使用了名字缩写选项,所以需要设置uniquename=init而不是full避免冲突 23 | labeldate=true, 24 | uniquelist=minyear, 25 | } 26 | 27 | %\DefineBibliographyStrings{english}{ 28 | %and = {and},%将第2和3人名见的and符号改成 逗号,用\finalnamedelim命令也可以定义,参见3.9.1节 29 | %} 30 | 31 | %\renewcommand*{\multicitedelim}{and} 32 | 33 | \DeclareDelimFormat{nameyeardelim}{\addcomma\addspace} 34 | 35 | \newbibmacro*{cite:labelname}{% 36 | \usebibmacro{bbx:dashcheck}% 37 | {}%\bibnamedash% 38 | {\usebibmacro{bbx:savehash}% 39 | \printnames{labelname}% 40 | \setunit{\printdelim{nameyeardelim}}}} 41 | 42 | \renewbibmacro*{cite}{% 43 | \iffieldundef{shorthand}% 44 | {\ifthenelse{\ifnameundef{labelname}\OR\iffieldundef{labelyear}}% 45 | {\usebibmacro{cite:label}% 46 | \setunit{\printdelim{nonameyeardelim}}}% 47 | {\renewcommand*{\finalnamedelim}{% 48 | \ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}% 49 | \addspace and\space}% 50 | \renewbibmacro*{name:andothers}{% 51 | \ifboolexpr{% 52 | test {\ifnumequal{\value{listcount}}{\value{liststop}}} 53 | and 54 | test \ifmorenames 55 | }% 56 | {\ifnumgreater{\value{liststop}}{1}% 57 | {\finalandcomma}% 58 | {}% 59 | \andothersdelim\mkbibemph{\bibstring{andothers}}}% 60 | {}}% 61 | \usebibmacro{cite:labelname}%\printnames{labelname}% 62 | }% 63 | \usebibmacro{cite:labelyear+extrayear}}% 64 | {\usebibmacro{cite:shorthand}}} 65 | 66 | %\DeclareCiteCommand{\cite}[\mkbibparens]{⟨precode⟩}{⟨loopcode⟩}{⟨sepcode⟩}{⟨postcode⟩} 67 | % 68 | \DeclareCiteCommand{\cite}[\mkbibparens] 69 | {\usebibmacro{prenote}} 70 | {\usebibmacro{citeindex}% 71 | \usebibmacro{cite}} 72 | {\multicitedelim} 73 | {\usebibmacro{postnote}} 74 | 75 | \DeclareCiteCommand{\parencite}[\mkbibparens] 76 | {\usebibmacro{prenote}} 77 | {\usebibmacro{citeindex}% 78 | \usebibmacro{cite}} 79 | {\multicitedelim} 80 | {\usebibmacro{postnote}} 81 | -------------------------------------------------------------------------------- /gb7714-2015-gbk.def: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hushidong/biblatex-solution-to-latex-bibliography/efbc7b757b1edfed8cfc4bce16fc211093bd5e6b/gb7714-2015-gbk.def -------------------------------------------------------------------------------- /gb7714-2015.cbx: -------------------------------------------------------------------------------- 1 | %% 2 | %% --------------------------------------------------------------- 3 | %% biblatex-gb7714-2015 --- A biblatex implementation of the 4 | %% GBT7714-2015 citation style,numerical sequence 5 | %% Maintained by huzhenzhen 6 | %% E-mail: hzzmail@163.com 7 | %% Released under the LaTeX Project Public License v1.3c or later 8 | %% --------------------------------------------------------------- 9 | %% 10 | \def\versionofgbtstyle{2018/12/22 v1.0o} 11 | \ProvidesFile{gb7714-2015.cbx}[\versionofgbtstyle biblatex citation style] 12 | 13 | % 14 | % 加载标准样式 15 | % 16 | \RequireCitationStyle{numeric-comp} %numeric 17 | 18 | 19 | % 20 | % 选项设置 21 | % 22 | \ExecuteBibliographyOptions{ 23 | autocite = superscript , 24 | autopunct = true , 25 | %sorting = none , 26 | maxcitenames=1, 27 | mincitenames=1, 28 | } 29 | 30 | %textcite标注命令中的标点设置 31 | %\DeclareDelimFormat[textcite]{andothersdelim}{\addspace}% 32 | 33 | % 34 | % 定义一个上标方括号wrapper 35 | % 36 | \newcommand*\mkbibsuperbracket[1]{% 37 | \mkbibsuperscript{\mkbibbrackets{#1}}% 38 | } 39 | 40 | % 41 | % 重定义cite命令 42 | % 43 | % 方法:\DeclareCiteCommand{\cite}[\mkbibparens]{precode}{loopcode}{sepcode}{postcode} 44 | \DeclareCiteCommand{\cite}[\mkbibsuperbracket]%利用mkbibsuperbracket添加方括号 45 | {\usebibmacro{cite:init}% 46 | \usebibmacro{prenote}} 47 | {\usebibmacro{citeindex}% 48 | \usebibmacro{cite:comp}} 49 | {} 50 | {\usebibmacro{cite:dump}% 51 | \usebibmacro{postnote}} 52 | 53 | % 54 | % 定义upcite命令 55 | % 20180604,v1.0l,hzz 56 | % 方法:对supercite增加[] 57 | \DeclareCiteCommand{\upcite}[\mkbibsuperbracket]% 58 | {\usebibmacro{cite:init}% 59 | \let\multicitedelim=\supercitedelim 60 | \iffieldundef{prenote} 61 | {} 62 | {\BibliographyWarning{Ignoring prenote argument}}% 63 | \iffieldundef{postnote} 64 | {} 65 | {\BibliographyWarning{Ignoring postnote argument}}} 66 | {\usebibmacro{citeindex}% 67 | \usebibmacro{cite:comp}} 68 | {} 69 | {\usebibmacro{cite:dump}} 70 | 71 | % 72 | % 新定义pagescite命令,以满足标签带页码的国标要求 73 | % 74 | % 原理方法: 75 | % 1.修改postnote的输出格式 76 | \DeclareFieldFormat{postnote}{#1} 77 | % 2.新增页码输出宏 78 | \newbibmacro*{postpages}{% 79 | \iffieldundef{postnote} 80 | {\printfield[postnote]{pages}} 81 | {\printfield{postnote}}} 82 | % 3.新增\pagescite引用命令 83 | \DeclareCiteCommand{\pagescite}[\mkbibsuperscript]%\mkbibbrackets,仍然用上标 84 | {[\usebibmacro{cite:init}%]直接添加方括号 85 | \usebibmacro{prenote}% 86 | } 87 | {\usebibmacro{citeindex}% 88 | \usebibmacro{cite:comp}} 89 | {} 90 | {\usebibmacro{cite:dump}]% 91 | \usebibmacro{postpages}} 92 | 93 | % 94 | % 定义yearpagescite,为与ay样式兼容,等同于\pagescite 95 | % 96 | \DeclareCiteCommand{\yearpagescite}[\mkbibsuperscript]%\mkbibbrackets,仍然用上标 97 | {[\usebibmacro{cite:init}%]直接添加方括号 98 | \usebibmacro{prenote}% 99 | } 100 | {\usebibmacro{citeindex}% 101 | \usebibmacro{cite:comp}} 102 | {} 103 | {\usebibmacro{cite:dump}]% 104 | \usebibmacro{postpages}} 105 | 106 | % 107 | % 定义\yearcite命令,为与ay样式兼容,且提供不输出页码的标签格式, 108 | % 109 | % 原理方法:等同于\pagescite,但不要页码 110 | \DeclareCiteCommand{\yearcite}[\mkbibsuperscript]%\mkbibbrackets,仍然用上标 111 | {[\usebibmacro{cite:init}%]直接添加方括号 112 | \usebibmacro{prenote}% 113 | } 114 | {\usebibmacro{citeindex}% 115 | \usebibmacro{cite:comp}} 116 | {} 117 | {\usebibmacro{cite:dump}]} 118 | 119 | % 120 | % 定义\authornumcite命令,输出作者信息,然后在后面带上顺序编码 121 | % 20180427,v1.0k,增加,hzz 122 | % gb7714样式新定义的命令都把cite放到最后,比如前面的pagescite,yearcite,这里的\authornumcite 123 | % 区别于biblatex定义的命令都把cite放到前面,比如citeauthor等。 124 | %见numeric.CBX 125 | \newbibmacro*{cite}{% 126 | \printtext[bibhyperref]{% 127 | \printfield{labelprefix}% 128 | \printfield{labelnumber}% 129 | \ifbool{bbx:subentry} 130 | {\printfield{entrysetcount}} 131 | {}}} 132 | %见numeric.CBX,\DeclareCiteCommand{\cite}, 133 | \DeclareCiteCommand{\authornumcite}%[\mkbibsuperscript] 134 | {\usebibmacro{prenote}} 135 | {\iffieldequalstr{userf}{cn}{\renewcommand*{\andothersdelim}{\addthinspace}}%\addthinspace 136 | {\renewcommand*{\andothersdelim}{\addspace}}% 137 | \printnames{labelname}\mkbibsuperscript{\mkbibbrackets{\usebibmacro{citeindex}% 138 | \usebibmacro{cite}}}} 139 | {\multicitedelim} 140 | {\usebibmacro{postnote}} 141 | -------------------------------------------------------------------------------- /gb7714-2015ay.cbx: -------------------------------------------------------------------------------- 1 | %% 2 | %% --------------------------------------------------------------- 3 | %% biblatex-gb7714-2015 --- A biblatex implementation of the 4 | %% GBT7714-2015 citation style,author year sequence 5 | %% Maintained by huzhenzhen 6 | %% E-mail: hzzmail@163.com 7 | %% Released under the LaTeX Project Public License v1.3c or later 8 | %% --------------------------------------------------------------- 9 | %% 10 | \def\versionofgbtstyle{2018/12/22 v1.0o} 11 | \ProvidesFile{gb7714-2015ay.cbx}[\versionofgbtstyle biblatex citation style] 12 | 13 | % 14 | % 加载标准样式 15 | % 16 | \RequireCitationStyle{authoryear} 17 | 18 | 19 | 20 | \ExecuteBibliographyOptions{ 21 | %autocite = superscript , 22 | %autopunct = true , 23 | %sorting = none , 24 | maxcitenames=1, 25 | mincitenames=1, 26 | uniquename=init,%因为使用了名字缩写选项,所以需要设置uniquename=init而不是full避免冲突 27 | uniquelist=minyear 28 | } 29 | % 30 | % 选项设置,针对3.7以下版本 31 | % 32 | % 原理方法:labeldate用于控制是否给引用标签提供日期的成分 33 | \defversion{3.4}{cbxopt}{ 34 | \ExecuteBibliographyOptions{ 35 | labeldate=true 36 | } 37 | } 38 | 39 | % 40 | % 选项设置,针对3.7以上版本 41 | % 42 | % 原理方法:labeldateparts用于控制是否给引用标签提供日期的成分 43 | \defversion{3.7}{cbxopt}{ 44 | \ExecuteBibliographyOptions{ 45 | labeldateparts=true 46 | } 47 | } 48 | 49 | \ifboolexpr{%选择选项设置 50 | test {\iftoggle{iftlfive}}%biblatex<=3.2 51 | or 52 | test {\iftoggle{iftlsix}}%3.3<=biblatex<=3.6 53 | }{\switchversion{3.4}{cbxopt}}{\switchversion{3.7}{cbxopt}}%else: biblatex>=3.7 54 | 55 | 56 | \ifboolexpr{%兼容cite:labelyear+extrayear 57 | test {\iftoggle{iftlfive}}%biblatex<=3.2 58 | or 59 | test {\iftoggle{iftlsix}}%3.3<=biblatex<=3.6 60 | or 61 | test {\iftoggle{iftlseven}}%3.7=biblatex 62 | }{\newbibmacro{cite:labeldate+extradate}{\usebibmacro{cite:labelyear+extrayear}}}{}%else: biblatex>3.7 63 | 64 | %textcite标注命令中的标点设置,注意只针对textcite命令。 65 | \DeclareDelimFormat[textcite]{nameyeardelim}{}%\addcomma\space 66 | \DeclareDelimFormat[textcite]{andothersdelim}{\iffieldequalstr{userf}{cn}{\addthinspace}{\addspace}}% 67 | \AtEveryCitekey{% 68 | \iffieldequalstr{userf}{cn}{\renewcommand*{\andothersdelim}{\addthinspace}}%\addthinspace 69 | {\renewcommand*{\andothersdelim}{\addspace}}% 70 | } 71 | 72 | 73 | 74 | % 75 | % 重定义cite:label,针对biblatex3.8以上版本set条目集的标注(引用)标签 76 | % 77 | % 原理方法:当条目是set时,v3.8以上版本,都没有有用的信息(区别于3.7以下版本set复制第一个成员的信息), 78 | % 于是利用entrykey来给出标签,那么就要set的条目关键字是需要的字符串,注意字符串中间不能有空格 79 | \renewbibmacro*{cite:label}{% 80 | \iffieldundef{label}% 81 | {\iffieldundef{labeltitle}{\printtext[bibhyperref]{\printfield{entrykey}}}%entrykey 82 | {\printtext[bibhyperref]{\printfield[citetitle]{labeltitle}}}}% 83 | {\printtext[bibhyperref]{\printfield{label}}}} 84 | 85 | % 86 | % 重定义cite命令 87 | % 88 | % 方法:\DeclareCiteCommand{\cite}[\mkbibparens]{precode}{loopcode}{sepcode}{postcode} 89 | \DeclareCiteCommand{\cite}[\mkbibparens] 90 | {\usebibmacro{prenote}} 91 | {\usebibmacro{citeindex}% 92 | \usebibmacro{cite}} 93 | {\multicitedelim} 94 | {\usebibmacro{postnote}} 95 | 96 | % 97 | % 定义upcite命令 98 | % 20180604,v1.0l,hzz 99 | % 方法:与yearcite命令相同 100 | \DeclareCiteCommand{\upcite} 101 | {\printtext{(}\usebibmacro{prenote}} 102 | {\usebibmacro{cite:labeldate+extradate}}% 103 | {\multicitedelim} 104 | {\printtext{)}} 105 | 106 | % 107 | % 重定义parencite命令 108 | % 109 | \DeclareCiteCommand{\parencite}[\mkbibparens] 110 | {\usebibmacro{prenote}} 111 | {\usebibmacro{citeindex}% 112 | \usebibmacro{cite}} 113 | {\multicitedelim} 114 | {\usebibmacro{postnote}} 115 | 116 | 117 | % 118 | % 新定义pagescite命令,以满足标签带页码的国标要求 119 | % 120 | % 原理方法: 121 | % 1.修改postnote的输出格式 122 | \newbibmacro*{postpages}{% 123 | \iffieldundef{postnote} 124 | {\printfield{pages}} 125 | {\printfield{postnote}}} 126 | % 2.新增页码输出宏(括号外的页码格式) 127 | \DeclareFieldFormat{postnote}{#1} 128 | % 3.新增\pagescite引用命令 129 | \DeclareCiteCommand{\pagescite} 130 | {\printtext{(}\usebibmacro{prenote}} 131 | {\usebibmacro{citeindex}% 132 | \usebibmacro{cite}} 133 | {\multicitedelim} 134 | {\printtext{)}\textsuperscript{\usebibmacro{postpages}}} 135 | 136 | % 137 | % 定义yearpagescite,用于当文中作者已经存在,需要页码和年份的情况 138 | % 139 | % 原理:增加一个命令yearpagescite 140 | % 参考biblatex.DEF中的\DeclareCiteCommand*{\citeyear}命令 141 | \DeclareCiteCommand{\yearpagescite} 142 | {\printtext{(}\usebibmacro{prenote}} 143 | {\usebibmacro{cite:labeldate+extradate}}%\printfield{year}\printfield{extrayear} 144 | {\multicitedelim} 145 | {\printtext{)}\textsuperscript{\usebibmacro{postpages}}} 146 | 147 | % 148 | % 定义yearcite,用于当文中作者已经存在,仅需要年份的情况 149 | % 150 | % 原理:增加一个命令yearcite 151 | \DeclareCiteCommand{\yearcite}%仅输出年份,不要页码 152 | {\printtext{(}\usebibmacro{prenote}} 153 | {\usebibmacro{cite:labeldate+extradate}}%\printfield{year}\printfield{extrayear} 154 | {\multicitedelim} 155 | {\printtext{)}} 156 | 157 | % 158 | % 定义\authornumcite命令,输出作者信息,然后在后面带上顺序编码 159 | % 20180427,v1.0k,增加,hzz 160 | % 为与顺序编码制兼容,增加了命令,定义与cite相同 161 | \DeclareCiteCommand{\authornumcite}[\mkbibparens] 162 | {\usebibmacro{prenote}} 163 | {\usebibmacro{citeindex}% 164 | \usebibmacro{cite}} 165 | {\multicitedelim} 166 | {\usebibmacro{postnote}} 167 | -------------------------------------------------------------------------------- /gb7714-2015ms.cbx: -------------------------------------------------------------------------------- 1 | %% 2 | %% --------------------------------------------------------------- 3 | %% biblatex-gb7714-2015 --- A biblatex implementation of the 4 | %% GBT7714-2015 citation style,numerical sequence 5 | %% Maintained by huzhenzhen 6 | %% E-mail: hzzmail@163.com 7 | %% Released under the LaTeX Project Public License v1.3c or later 8 | %% --------------------------------------------------------------- 9 | %% 10 | \def\versionofgbtstyle{2018/12/22 v1.0o} 11 | \ProvidesFile{gb7714-2015.cbx}[\versionofgbtstyle biblatex citation style] 12 | 13 | % 14 | % 加载标准样式 15 | % 16 | \RequireCitationStyle{numeric-comp} %numeric 17 | 18 | 19 | % 20 | % 选项设置 21 | % 22 | \ExecuteBibliographyOptions{ 23 | autocite = superscript , 24 | autopunct = true , 25 | %sorting = none , 26 | maxcitenames=1, 27 | mincitenames=1, 28 | } 29 | 30 | %textcite标注命令中的标点设置 31 | %\DeclareDelimFormat[textcite]{andothersdelim}{\addspace}% 32 | 33 | % 34 | % 定义一个上标方括号wrapper 35 | % 36 | \newcommand*\mkbibsuperbracket[1]{% 37 | \mkbibsuperscript{\mkbibbrackets{#1}}% 38 | } 39 | 40 | % 41 | % 重定义cite命令 42 | % 43 | % 方法:\DeclareCiteCommand{\cite}[\mkbibparens]{precode}{loopcode}{sepcode}{postcode} 44 | \DeclareCiteCommand{\cite}[\mkbibsuperbracket]%利用mkbibsuperbracket添加方括号 45 | {\usebibmacro{cite:init}% 46 | \usebibmacro{prenote}} 47 | {\usebibmacro{citeindex}% 48 | \usebibmacro{cite:comp}} 49 | {} 50 | {\usebibmacro{cite:dump}% 51 | \usebibmacro{postnote}} 52 | 53 | % 54 | % 定义upcite命令 55 | % 20180604,v1.0l,hzz 56 | % 方法:对supercite增加[] 57 | \DeclareCiteCommand{\upcite}[\mkbibsuperbracket] 58 | {\usebibmacro{cite:init} 59 | \let\multicitedelim=\supercitedelim 60 | \iffieldundef{prenote} 61 | {} 62 | {\BibliographyWarning{Ignoring prenote argument}}% 63 | \iffieldundef{postnote} 64 | {} 65 | {\BibliographyWarning{Ignoring postnote argument}}} 66 | {\usebibmacro{citeindex}% 67 | \usebibmacro{cite:comp}} 68 | {} 69 | {\usebibmacro{cite:dump}} 70 | 71 | % 72 | % 新定义pagescite命令,以满足标签带页码的国标要求 73 | % 74 | % 原理方法: 75 | % 1.修改postnote的输出格式 76 | \DeclareFieldFormat{postnote}{#1} 77 | % 2.新增页码输出宏 78 | \newbibmacro*{postpages}{% 79 | \iffieldundef{postnote} 80 | {\printfield[postnote]{pages}} 81 | {\printfield{postnote}}} 82 | % 3.新增\pagescite引用命令 83 | \DeclareCiteCommand{\pagescite}[\mkbibsuperscript]%\mkbibbrackets,仍然用上标 84 | {[\usebibmacro{cite:init}%]直接添加方括号 85 | \usebibmacro{prenote}% 86 | } 87 | {\usebibmacro{citeindex}% 88 | \usebibmacro{cite:comp}} 89 | {} 90 | {\usebibmacro{cite:dump}]% 91 | \usebibmacro{postpages}} 92 | 93 | % 94 | % 定义yearpagescite,为与ay样式兼容,等同于\pagescite 95 | % 96 | \DeclareCiteCommand{\yearpagescite}[\mkbibsuperscript]%\mkbibbrackets,仍然用上标 97 | {[\usebibmacro{cite:init}%]直接添加方括号 98 | \usebibmacro{prenote}% 99 | } 100 | {\usebibmacro{citeindex}% 101 | \usebibmacro{cite:comp}} 102 | {} 103 | {\usebibmacro{cite:dump}]% 104 | \usebibmacro{postpages}} 105 | 106 | % 107 | % 定义\yearcite命令,为与ay样式兼容,且提供不输出页码的标签格式, 108 | % 109 | % 原理方法:等同于\pagescite,但不要页码 110 | \DeclareCiteCommand{\yearcite}[\mkbibsuperscript]%\mkbibbrackets,仍然用上标 111 | {[\usebibmacro{cite:init}%]直接添加方括号 112 | \usebibmacro{prenote}% 113 | } 114 | {\usebibmacro{citeindex}% 115 | \usebibmacro{cite:comp}} 116 | {} 117 | {\usebibmacro{cite:dump}]} 118 | 119 | % 120 | % 定义\authornumcite命令,输出作者信息,然后在后面带上顺序编码 121 | % 20180427,v1.0k,增加,hzz 122 | % gb7714样式新定义的命令都把cite放到最后,比如前面的pagescite,yearcite,这里的\authornumcite 123 | % 区别于biblatex定义的命令都把cite放到前面,比如citeauthor等。 124 | %见numeric.CBX 125 | \newbibmacro*{cite}{% 126 | \printtext[bibhyperref]{% 127 | \printfield{labelprefix}% 128 | \printfield{labelnumber}% 129 | \ifbool{bbx:subentry} 130 | {\printfield{entrysetcount}} 131 | {}}} 132 | %见numeric.CBX,\DeclareCiteCommand{\cite}, 133 | \DeclareCiteCommand{\authornumcite}%[\mkbibsuperscript] 134 | {\usebibmacro{prenote}} 135 | {\iffieldequalstr{userf}{cn}{\renewcommand*{\andothersdelim}{\addthinspace}}%\addthinspace 136 | {\renewcommand*{\andothersdelim}{\addspace}}% 137 | \printnames{labelname}\mkbibsuperscript{\mkbibbrackets{\usebibmacro{citeindex}% 138 | \usebibmacro{cite}}}} 139 | {\multicitedelim} 140 | {\usebibmacro{postnote}} 141 | -------------------------------------------------------------------------------- /makeclear.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | 4 | del /q *.aux *.bbl *.blg *.log *.out *.toc *.bcf *.xml *.synctex *.nlo *.nls *.bak *.ind *.idx *.ilg *.lof *.lot *.ent-x *.tmp *.ltx *.los *.lol *.loc *.listing *.gz *.synctex(busy) 5 | del /q *.nav *.snm *.vrb *.fls *.xdv *.fdb_latexmk 6 | 7 | -------------------------------------------------------------------------------- /makeclear.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Copyright (c) 2012-2016 hzz 3 | 4 | #clear aux files 5 | 6 | rm -r *.aux *.bbl *.blg *.log *.out *.toc *.bcf *.xml *.synctex *.nlo *.nls *.bak *.ind *.idx *.ilg *.lof *.lot *.ent-x *.tmp *.ltx *.los *.lol *.loc *.listing *.gz *.userbak *.nav *.snm *.vrb *.fls *.xdv *.fdb_latexmk 7 | 8 | 9 | -------------------------------------------------------------------------------- /makeclearpdf.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | 4 | cd exampleandimage 5 | 6 | del *.pdf /Q 7 | 8 | cd .. 9 | 10 | 11 | cd egbibtex 12 | 13 | del *.pdf /Q 14 | 15 | cd .. 16 | 17 | -------------------------------------------------------------------------------- /makefile.bat: -------------------------------------------------------------------------------- 1 | :: Copyright (c) 2012-2016 hzz 2 | 3 | @echo off 4 | 5 | title %date% %time% makefile 6 | 7 | :: compile the tex file 8 | 9 | del /q *.aux *.bbl *.blg *.log *.out *.toc *.bcf *.xml *.synctex *.nlo *.nls *.bak *.ind *.idx *.ilg *.lof *.lot *.ent-x *.tmp *.ltx *.los *.lol *.loc *.listing *.gz *.synctex(busy) 10 | del /q *.nav *.snm *.vrb *.fls *.xdv *.fdb_latexmk 11 | 12 | xelatex.exe --synctex=-1 biblatex-solution-to-latex-bibliography.tex 13 | 14 | biber biblatex-solution-to-latex-bibliography 15 | 16 | xelatex.exe --synctex=-1 biblatex-solution-to-latex-bibliography.tex 17 | 18 | xelatex.exe --synctex=-1 biblatex-solution-to-latex-bibliography.tex 19 | 20 | ::call makeclear 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /makefile.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Copyright (c) 2012-2016 hzz 3 | 4 | # exec path for tex live 2016 5 | export PATH=${PATH}:/usr/local/texlive/2016/bin/x86_64-linux 6 | 7 | #compile the tex file 8 | cd exampleandimage 9 | 10 | ./compiler.sh 11 | 12 | cd .. 13 | 14 | ./makeclear.sh 15 | 16 | xelatex --synctex=-1 biblatex-solution-to-latex-bibliography.tex 17 | 18 | biber biblatex-solution-to-latex-bibliography 19 | 20 | xelatex --synctex=-1 biblatex-solution-to-latex-bibliography.tex 21 | 22 | xelatex --synctex=-1 biblatex-solution-to-latex-bibliography.tex 23 | 24 | ./makeclear.sh 25 | 26 | 27 | -------------------------------------------------------------------------------- /makefileall.bat: -------------------------------------------------------------------------------- 1 | :: Copyright (c) 2012-2016 hzz 2 | 3 | @echo off 4 | 5 | title %date% %time% makefileall 6 | 7 | :: compile the tex file 8 | 9 | cd exampleandimage 10 | 11 | call compiler 12 | 13 | cd .. 14 | 15 | cd egbibtex 16 | 17 | call cpbibtex 18 | 19 | cd .. 20 | 21 | 22 | 23 | del /q *.aux *.bbl *.blg *.log *.out *.toc *.bcf *.xml *.synctex *.nlo *.nls *.bak *.ind *.idx *.ilg *.lof *.lot *.ent-x *.tmp *.ltx *.los *.lol *.loc *.listing *.gz *.synctex(busy) 24 | 25 | del /q *.nav *.snm *.vrb *.fls *.xdv *.fdb_latexmk 26 | 27 | xelatex.exe --synctex=-1 biblatex-solution-to-latex-bibliography.tex 28 | 29 | biber biblatex-solution-to-latex-bibliography 30 | 31 | xelatex.exe --synctex=-1 biblatex-solution-to-latex-bibliography.tex 32 | 33 | xelatex.exe --synctex=-1 biblatex-solution-to-latex-bibliography.tex 34 | 35 | 36 | 37 | ::call makeclear 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /makegithub.bat: -------------------------------------------------------------------------------- 1 | title %date% %time% make-ctan-pkg 2 | 3 | cd .. 4 | 5 | mkdir biblatex-solution-to-latex-bibliography 6 | 7 | cd biblatex-solution-to-latex-bibliography 8 | 9 | mkdir exampleandimage 10 | 11 | mkdir egbibtex 12 | 13 | cd .. 14 | 15 | copy biblatex-solution-to-latex-bibliography-master\*.* biblatex-solution-to-latex-bibliography\*.* /Y 16 | 17 | copy biblatex-solution-to-latex-bibliography-master\exampleandimage\*.* biblatex-solution-to-latex-bibliography\exampleandimage\*.* /Y 18 | 19 | copy biblatex-solution-to-latex-bibliography-master\egbibtex\*.* biblatex-solution-to-latex-bibliography\egbibtex\*.* /Y 20 | 21 | cd biblatex-solution-to-latex-bibliography 22 | 23 | call makeclear 24 | 25 | cd 26 | 27 | call makeclearpdf 28 | 29 | cd .. 30 | 31 | zip.exe -r -q -v biblatex-solution-to-latex-bibliography.zip biblatex-solution-to-latex-bibliography 32 | 33 | pause --------------------------------------------------------------------------------