Latex Learning——4 biblography

论文中参考文献是很重要的一项,其中引用很难处理。

不使用文献库

首先手动建立文献

\begin{thebibliography}{20}
\bibitem{x_liuhaiyang}  刘海洋. \LaTeX 入门 [M]. 北京: 电子工业出版社, 2013.
\bibitem{x_huwei}  胡伟. \LaTeX 2e完全学习手册(第二版). 北京: 清华大学出版社, 2013.
\end{thebibliography}

之后在document中引用即可。

Bibliography文献库

本文用Bibliography数据库加入文献

  1. 引入文献数据库 \bibliography{database1,database2}
    说明: 数据库都是以.bib为扩展名 database1.bib,database2.bib.
  2. 设置Bibliography的格式 \bibliographystyle{plain}
    其中的格式 主要应用plain(按字母排序),unsrt (按引用循序排序)

生成文献编译顺序xelatex->bibtex->xelatex->xelatex
vscode 中如何一次性编译,可参考我第一篇配置Texlive+vscode中的补充

我们可以在文中使用(cite{key}文中产生索引 \notice{key} 文中没有索引)进行引用。
对于中文来说,一般引用的为上标。重新定义命令
\newcommand{\upcite}[1]{\textsuperscript{\textsuperscript{\cite{#1}}}}
直接使用 \upcite 即为上标


最后我们看一下.bib中的格式

@entry_type{key,
field_name = {field text},
....
field_name = {field text} }

@ 后面为文章类型
{} 中第一行为引用的key,可以在中文中使用

我们可以在Google scholar中直接复制bibtex即可
在这里插入图片描述
下图即为其中的内容
在这里插入图片描述

补:常用文章类型及其必须具备的元素:
@article: Entry for an article from a journal or magazine.
required fields: author, title, journal, year.
optional fields: volume, number, pages, month, note.
@book: Entry for a book with a definite publisher.
required fields: author or editor, title, publisher, year.
optional fields: volume or number, series, address, edition, month, note.

提供一个例子

tex源代码

\documentclass[UTF8]{article}


\usepackage{fontspec}
\setmainfont{Times New Roman}
\newcommand{\upcite}[1]{\textsuperscript{\textsuperscript{\cite{#1}}}}


\title{Natrual Language Process}
\author{Hongchuan CAO}
\date{\today}

\begin{document}

\maketitle
\begin{abstract}
    We have seen that to typeset something in \LaTeX, we type in the
    text to be typeset together with some \LaTeX\ commands.
    Words must be separated by spaces (does not matter how many)
    and lines maybe broken arbitrarily.
\end{abstract}


We have seen that to typeset\upcite{watson1989indiana} something in \LaTeX, we type in the
text to be typeset together with some \LaTeX\ commands.
Words must be separated by spaces (does not matter how many)
and lines maybe broken\cite{nass2001does} arbitrarily.


\bibliography{example.bib}
\bibliographystyle{unsrt}

\end{document}

example.bib 文献库代码

@article{watson1989indiana,
  title={The Indiana Speech Training Aid (ISTRA) I: Comparisons between human and computer-based evaluation of speech quality},
  author={Watson, Charles S and Reed, Daniel J and Kewley-Port, Diane and Maki, Daniel},
  journal={Journal of Speech, Language, and Hearing Research},
  volume={32},
  number={2},
  pages={245--251},
  year={1989},
  publisher={ASHA}
}

@article{oviatt1998predicting,
  title={Predicting hyperarticulate speech during human-computer error resolution},
  author={Oviatt, Sharon and MacEachern, Margaret and Levow, Gina-Anne},
  journal={Speech Communication},
  volume={24},
  number={2},
  pages={87--110},
  year={1998},
  publisher={Elsevier}
}

@article{nass2001does,
  title={Does computer-synthesized speech manifest personality? Experimental tests of recognition, similarity-attraction, and consistency-attraction.},
  author={Nass, Clifford and Lee, Kwan Min},
  journal={Journal of experimental psychology: applied},
  volume={7},
  number={3},
  pages={171},
  year={2001},
  publisher={American Psychological Association}
}

编译效果:
在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值