From ecf5bf6309a5420ea18639cb361673bacc2c9d5e Mon Sep 17 00:00:00 2001 From: EthanDeng Date: Tue, 23 Aug 2022 16:15:55 +0800 Subject: [PATCH] bib usage error --- elegantbook-cn.tex | 2 +- elegantbook.cls | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/elegantbook-cn.tex b/elegantbook-cn.tex index 6d583e3..f0c64ca 100644 --- a/elegantbook-cn.tex +++ b/elegantbook-cn.tex @@ -594,7 +594,7 @@ Class elegantbook Warning: Because you didn't provide a prefix. 之前我们将文献调用的命令放在模板里面,然后用户反馈 \lstinline{\cite} 命令无法自动补全,因此我们新版本将其拿到外面来,新版本打印参考文献的命令的方法是,在导言区(也即 \lstinline|\begin{document}| 之前),加入: \begin{lstlisting} - \lstinline|\addbibresource[location=local]{reference.bib}|。 + \addbibresource[location=local]{reference.bib} \end{lstlisting} 然后再需要打印文献的地方使用: diff --git a/elegantbook.cls b/elegantbook.cls index a2154df..5d43e5e 100644 --- a/elegantbook.cls +++ b/elegantbook.cls @@ -1363,7 +1363,7 @@ breaklines=true, keywordstyle=\color{winered}, commentstyle=\color{gray}, - emph={elegantpaper,fontenc,fontspec,xeCJK,citestyle,FiraMono,xunicode,figure,fig,image,img,table,itemize,enumerate,ctex,microtype,description,times,booktabs,tabular,PDFLaTeX,XeLaTeX,type1cm,BibTeX,device,color,mode,lang,amsthm,tcolorbox,titlestyle,cite,ctex,listings,base,math,scheme,toc,esint,chinesefont,amsmath,bibstyle,natbib,pgfornament}, + emph={elegantpaper,fontenc,fontspec,xeCJK,citestyle,FiraMono,xunicode,figure,fig,image,img,table,itemize,enumerate,ctex,microtype,description,times,booktabs,tabular,PDFLaTeX,XeLaTeX,type1cm,BibTeX,device,color,mode,lang,amsthm,tcolorbox,titlestyle,cite,ctex,listings,base,math,scheme,toc,esint,chinesefont,amsmath,bibstyle,natbib,pgfornament,addbibresource,printbibliography}, emphstyle={\color{frenchplum}}, morekeywords={DeclareSymbolFont,SetSymbolFont,toprule,midrule,bottomrule,institute,version,includegraphics,setmainfont,setsansfont,setmonofont ,setCJKmainfont,setCJKsansfont,setCJKmonofont,RequirePackage,figref,tabref,email,maketitle,keywords,definecolor,extrainfo,logo,cover,subtitle,appendix,chapter,section,hypersetup,mainmatter,frontmatter,tableofcontents,elegantpar,heiti,kaishu,lstset,pagecolor,zhnumber,marginpar,part,equote,marginnote,bioinfo,datechange,listofchange,lvert,lastpage,songti,heiti,fangsong,setCJKfamilyfont,textbf,elegantnewtheorem,thmcnt,colorlet,usesamecnt}, frame=single,