首页 > 编程知识 正文

latex中的参考文献格式,latex科研论文模板怎么用

时间:2023-05-05 17:59:30 阅读:278376 作者:2409

问题1:生成不带编号的具有悬挂缩进的参考文献格式
想人陪的老师:使用bibitem生成的文献

原来的参考文献样式以及代码如下所示:


生成不带编号的具有悬挂缩进的参考文献格式

添加第一部分代码即可:

makeatletter renewcommand@biblabel[1]{} renewenvironment{thebibliography}[1] {section*{refname}% @mkboth{MakeUppercaserefname}{MakeUppercaserefname}% list{@biblabel{@arabicc@enumiv}}% {settowidthlabelwidth{@biblabel{#1}}% leftmarginlabelwidth advanceleftmarginlabelsep advanceleftmargin by 2em% itemindent -2em% @openbib@code usecounter{enumiv}% letp@enumiv@empty renewcommandtheenumiv{@arabicc@enumiv}}% sloppy clubpenalty4000 @clubpenalty clubpenalty widowpenalty4000% sfcode`.@m} {def@noitemerr {@latex@warning{Empty `thebibliography' environment}}% endlist} makeatotherbegin{thebibliography}{99} bibitem{Ref1}% Format for Journal ReferenceC.L. Liu, F. Yin, D.H. Wang and Q.F. Wang, Online and Offline Handwritten Chinese Character Recognition: Benchmarking on New Databases, Pattern Recognition, vol.46, pp.155–162. (2013)bibitem{Ref2}F. Kimura, K. Takashina, S. Tsuruoka, and Y. Miyake, Modified Quadratic Discriminant Functions and the Application to Chinese Character Recognition. IEEE Trans. Pattern Analysis and Machine Intelligence, end{thebibliography}

高贵的电话:使用bibtex生成不带编号的具有悬挂缩进的参考文献格式
使用高贵的电话的就把想人陪的老师的那些都删除

代码:

%添加宏包:usepackage{natbib}usepackage{natbibspacing}%设置参考文献间的间距setlength{bibspacing}{0baselineskip}%设置文献的样式bibliographystyle{plain} %添加自己的bib文件bibliography{mybibs}

注意必须有.bib文件,不然调用natbib宏包会报错:
--------------------------------------------------------------------------------------------------------
! Package natbib 快三计划QQion, vol.46, pp.155–162. (2013)bibitem{Ref2}F. Kimura, K. Takashina, S. Tsuruoka, and Y. Miyake, Modified Quadratic Discriminant Functions and the Application to Chinese Character Recognition. IEEE Trans. Pattern Analysis and Machine Intelligence, end{thebibliography}

高贵的电话:使用bibtex生成不带编号的具有悬挂缩进的参考文献格式
使用高贵的电话的就把想人陪的老师的那些都删除

代码:

%添加宏包:usepackage{natbib}usepackage{natbibspacing}%设置参考文献间的间距setlength{bibspacing}{0baselineskip}%设置文献的样式bibliographystyle{plain} %添加自己的bib文件bibliography{mybibs}

注意必须有.bib文件,不然调用natbib宏包会报错:
--------------------------------------------------------------------------------------------------------
! Package natbib Error: Bibliography not compatible with author-year citations.

(natbib) Press to continue in numerical citation style.

See the natbib package documentation for explanation.
Type H for immediate help.

l.88 …mandNAT@force@numbers{}NAT@force@numbers

?
--------------------------------------------------------------------------------------------------------
当然有时候有.bib文件也会报错,那么检查
Follow these steps:
1.Delete the .aux and the .bbl files
2.Do your changes (in the bibliographystyle or in any option of natbib)
3.Run LaTeX
4.Run BibTeX
5.借鉴与这里
6.点击打开链接http://tex.stackexchange.com/questions/54480/package-natbib-error-bibliography-not-compatible-with-author-year-citations

另外不同行间距的文献格式,通过参数修改得到

问题2:将正文中显示编号的参考文献改为显示作者加年份的表达方式

不同的引用命令得到不同的正文的引用样式:
注意需要调用natbib宏包才能开启这个大招~
作者缩写(年份)
(作者缩写,年份)

要将作者加年份的引用方式改为编号的,又需要别的方法,反向操作不管用~暂时不想整理

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。