文章目录
前言1 基本框架2 参考文献的编号符合文中引用顺序3 将作者名缩写(但是姓不缩写)4 调整参考文献之间的距离(类似行距)5 调整参考文献的字体大小小结参考文献前言
在此记录我对LaTeX中参考文献references的尝试,主要涵盖如题几个方面。
1 基本框架
\documentclass[10pt]{article}\begin{document}<your text>\bibliographystyle{plain}\bibliography{E:/mybib}\end{document}
2 参考文献的编号符合文中引用顺序
\documentclass[10pt]{article}#1 加上这一行\usepackage[numbers,sort]{natbib}\begin{document}<your text>#2 把plain改成unsrt\bibliographystyle{unsrt} \bibliography{E:/mybib}\end{document}
3 将作者名缩写(但是姓不缩写)
\documentclass[10pt]{article}\usepackage[numbers,sort]{natbib}\begin{document}<your text>#1 把unsrt改成ieeetr\bibliographystyle{ieeetr} \bibliography{E:/mybib}\end{document}
4 调整参考文献之间的距离(类似行距)
\documentclass[10pt]{article}\usepackage[numbers,sort]{natbib}#1 加上这一行\setlength{\bibsep}{1.5pt}\begin{document}<your text>\bibliographystyle{ieeetr} \bibliography{E:/mybib}\end{document}
5 调整参考文献的字体大小
\documentclass[10pt]{article}\usepackage[numbers,sort]{natbib}\setlength{\bibsep}{1.5pt}% 方法1:加入下面这一行,但是这个只有几个选项,比如:\Large, \large, \small, \tiny 等等。不完全符合我的需求% \def\bibfont{\scriptsize}% 方法2:加入下面这一行,非常灵活。 其中第一个参数 7.5 是字体大小, 第二个参数 10 是行距大小。自己可以视情况调整。\def\bibfont{\fontsize{7.5}{10}\selectfont}\begin{document}<your text>\bibliographystyle{ieeetr} \bibliography{E:/mybib}\end{document}
小结
别看写起来很简单,当时研究的时候还是花了一些时间的。有时候还需要看natbib的文档。
而且现在的网页、参考文献都有点坑,话说不全。latex的一些命令的使用,也不介绍参数意义,或者用法也不说全。所以还是得自己多琢磨,巧妙思考。
参考文献
从这么多参考文献、网页也可以看出来。。。还是有点费劲的。
总之一顿试。。
How to change font size in Bibliography using BibTex with apacite packageHow to print bibliography using natbib?How to resize reference fonts in beamer when using apacite?https://hal.archives-ouvertes.fr/file/index/docid/826659/filename/ws-ijtaf.clsWhat is the second value in \fontsize for?LaTeX — specify font point size?How to change font size for bibliography?Reduce font size of bibliography; overfull bibliographyBiblatex bibliography stylesIs it possible to get unsrt + abbrv bibliography?How to abbreviate author’s firstname in bibliographyWhy am I getting an error when using \renewcommand, here?tiny fonts for IEEEtran not working on biblography\bibfont issueHow can I keep the font size unchanged while using ‘natbib’ in IEEEtran?Proper usage of biblatex-ieee BibLaTeX style in an IEEEtran documentSmaller font for the reference sectionReducing spacing in the bibliographyLaTeX error: Option clash for package hyperrefBibliographystyle invalid, what am I doing wrong in my latex file or bibtex file?Bibliographystyle invalidCompile error when using \bibliography: “can only use in preamble”BibTeX Problem: Can be used only in preamble