% !Mode:: "TeX:UTF-8" % 用于测试zju中应用biblatex-gb7714-2015的情况 % \documentclass[twoside]{article} \usepackage{ctex}%[zihao=-4] \usepackage{fontspec} \setmainfont{CMU Serif} \IfFileExists{SourceHanSerifSC-Regular.otf} {\setCJKmainfont{SourceHanSerifSC-Regular.otf}}{} %\IfFontExistsTF{⟨font name⟩}{⟨true branch⟩}{⟨false branch⟩} \usepackage{xcolor} \usepackage{toolbox} \usepackage[colorlinks,citecolor=blue]{hyperref} \usepackage{lipsum} \usepackage{geometry}%,showframe,showcrop \geometry{ a4paper, marginpar=0pt, includeheadfoot, vmargin={1in,1in}, hmargin={1.25in,1.25in}, headsep=4mm } \RequirePackage[backend=biber,style=gb7714-2015]{biblatex} \usepackage{filecontents} \begin{filecontents}{\jobname.bib} % use `texdoc biblatex` to get help @www{zjuthesisrules, title = {浙江大学本科生毕业论文(设计)编写规则}, author = {浙江大学本科生院}, year = {2018}, url = {http://bksy.zju.edu.cn/attachments/2018-01/01-1517384518-1149149.pdf}, } @www{tikz, title = {tikz宏包}, author = {Till Tantau}, year = {2018}, url = {https://sourceforge.net/projects/pgf/}, } \end{filecontents} \addbibresource{\jobname.bib} % %\def\cs#1{\textbackslash\texttt{#1}} % %\def\BibTeX{\texttt{BibTex}} \begin{document} \section*{ZJU} \nocite{*} \printbibliography \end{document}