50字范文,内容丰富有趣,生活中的好帮手!
50字范文 > latex 参考文献 natbib biblatex 引用网页 超链接

latex 参考文献 natbib biblatex 引用网页 超链接

时间:2018-08-19 18:05:47

相关推荐

latex 参考文献 natbib  biblatex 引用网页 超链接

在使用 natbib 工具包管理参考文献时, 引用网页比较麻烦,因为格式不好调整。经过了不少摸索,自己总结一些技巧心得。

1. 网址中的下划线要注意写成 \_, 而不是直接复制 _, 否则会提示missing $ inserted 这样的错误。

2. 文献类型最好用 unpublished, 比较好调整格式, 将网址以及 accessed 内容写到 note 里。若采用 misc 这样的文献类型,不容易调整格式。

3. 在网址中用 \ 空格 表示一个空格,\\ 则强制换行

举例:

\documentclass{article}%\usepackage[utf8]{inputenc}\usepackage{filecontents}\usepackage{biblatex}\begin{filecontents}{mybib.bib}@unpublished{Survey,title={Survey on the access tofinance of enterprises},author={Sophie Doove and Petra Gibcus andTon Kwaak and Lia Smit and Tommy Span},year=,note ={Accessed 16 June . http://wwwe.ansa.it/documents/1415814222451\_Rapporto.pdf/ },}\end{filecontents}\bibliography{mybib}\begin{document}For example, a survey in \cite{Survey} showed that many enterprises encountered capital shortage.\printbibliography\end{document}

显示效果:

4. 在网址中添加超链接,要用到 hyperref 宏包。使用 hypersetup 调整颜色,使用 \href{网址}{链接内容} 编辑超链接。

举例:

\documentclass{article}\usepackage{filecontents}\usepackage[citestyle=authoryear,natbib]{biblatex}\usepackage{geometry}\usepackage{hyperref}\hypersetup{colorlinks=true,linkcolor=blue,filecolor=gray,urlcolor=blue,citecolor=blue,}\begin{filecontents}{mybib.bib}@unpublished{Survey,title={Survey on the access tofinance of enterprises},author={Sophie Doove and Petra Gibcus andTon Kwaak and Lia Smit and Tommy Span},year=,note ={Accessed 16 June . \href{http://wwwe.ansa.it/documents/1415814222451\_Rapporto.pdf/}{http://wwwe.ansa.it/documents/1415814222451\_Rapporto.pdf/}},}\end{filecontents}\bibliography{mybib}\begin{document}For example, a survey in \citet{Survey} showed that many enterprises encountered capital shortage.\printbibliography\end{document}

显示效果:

爽歪了!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。