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{Survey2014,
  title={Survey on the access to
finance of enterprises},
  author={Sophie Doove and Petra Gibcus and
Ton Kwaak and Lia Smit and Tommy Span},
  year=2014,
  note ={Accessed 16 June 2017. http://wwwe.ansa.it/documents/1415814222451\_Rapporto.pdf/ },
}
\end{filecontents}

\bibliography{mybib}

\begin{document}
For example, a survey in \cite{Survey2014} 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{Survey2014,
  title={Survey on the access to
finance of enterprises},
  author={Sophie Doove and Petra Gibcus and
Ton Kwaak and Lia Smit and Tommy Span},
  year=2014,
  note ={Accessed 16 June 2017.  \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{Survey2014} showed that many enterprises encountered capital shortage.
\printbibliography

\end{document}


显示效果:

爽歪了!

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

心态与习惯

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值