如题,使用overleaf进行论文写作,没有下载并添加gbt-7714-numerical.bst等文件。期望将图片
中的人名样式改为:"Sauer T.","Strogatz S H.",其余内容(书名、日期等)格式不变。
目前我的代码如下:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
A.cls文件
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{A}[2021/05/24]
\LoadClass[UTF8,openany,a4paper,oneside,zihao=-4]{ctexbook}
% 参考文献格式 GB/T7714-2015
% 来自https://github.com/hushidong/biblatex-gb7714-2015
\RequirePackage[backend=biber,gbpub=false, style=gb7714-2015]{biblatex}
% 设置目录(可能与tocloft宏包存在潜在的冲突)
\RequirePackage{titletoc}
%条目段间距
\setlength{\bibitemsep}{0.03ex}
\setlength{\bibnamesep}{0.03ex}
%英文条目间距
\setlength{\bibinitsep}{0.03ex}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
main.tex文件
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[]{A}
\addbibresource{content/reference.bib}
\begin{document}
\cite{Sauer} \cite{Strogatz}
\addcontentsline{toc}{chapter}{参考文献} %由于参考文献不是chapter,这句把参考文献加入目录
\printbibliography
\newpage
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
reference.bib文件(在content文件夹下)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@Book{Sauer,
author = "Timothy Sauer",
title = "Numerical Analysis",
edition = "2",
publisher = "Pearson Education, Inc",
year = "2012",
pages="316--317",
}
@Book{Strogatz,
author = "S H Strogatz",
title = "Nonlinear Dynamics and Chaos: With Application to Physics, Biology, Chemistry and Engineering",
publisher = "Perseus Books Publishing, Cambridge",
year = "1994",
}