如何引用知名网站的文章

如何引用知名网站的文章

我想引用知名网站的文章和具体作者。我的问题是,我还想在引用中包含网站信息。例如,我引用了《冲浪杂志》的一篇文章,但该文章仅在网上发表,并未在杂志上发表。或者,我想引用 surfline.com 上一位指定作者的文章,但我希望 surfline.com 仅显示在引用中,而不仅仅是包含在引用的 url 部分中。

我的代码如下:

对于在线参考文献,我在 .bib 文件 (Cite.bib) 中使用了以下格式

 @MISC{maldives,
   author =       "Connoly, Darlene",
   title =        "Controversy in the Maldives",
   editor =       "Surfline.com",
   month =        "August",
   year =         "2012",
   url =          "\url{http://www.surfline.com/surf-news/maldives-surf-access-controversy-update_75296/ }",
   note =         "[Online; posted 27-August-2012]",
 }

 @MISC{mull,
   author =       "Mull, Jeff",
   title =        "Maldives Controversy",
   editor =       "Surfing Magazine",
   month =        "September",
   year =         "2010",
   url =          "\url{http://www.surfermag.com/features/maldives-controversy/ }",
   note =         "[Online; posted 13-September-2012]",
 }

对于 .tex 文件,我使用以下代码/包

 \usepackage{natbib}
 \usepackage{url}

 \begin{document}

  text

 \nocite{mull}
 \bibliographystyle{plainnat}
 \bibliography{Cite}

 \end{document}

当我尝试使用“pdftexify”编译文档时出现以下错误。

Package natbib warning: Citation 'Mull' undefined on input line 373 

[23] [24] [25] (C:\Users\...\LaTex\title.bbl
! TeX capacity exceeded, sorry [input stack size=5000].
\@makeother #1->\catcode '#1
                        12\relax
1.12 ...

! ==> Fatal error occured, no output PDF file produced!
Transcript written on title.log.
texify: pdflatex.exe failed for some reason (see log file)

但是,如果我尝试使用来自“Cite.bib”的 @ARTICLE 或 @BOOK 引用相同的语法,则不会出现错误。我正在寻找一种方法来引用在线文章的作者以及他们发表的网站。任何帮助都将非常有帮助。

此外,如果在引文中单独包含网站名称并不重要或不经常这样做,那么我可以省略 @MISC 条目中的编辑部分。我尝试省略编辑字段,但仍然收到相同的错误消息。

答案1

我对这个稍微改动过的文件没有任何问题:

\documentclass{article}
\usepackage{filecontents}% <-- useful for embedding external files in the main file
\begin{filecontents*}{\jobname.bib}
@MISC{maldives,
   author =       {Connoly, Darlene},
   title =        {Controversy in the Maldives},
   editor =       {Surfline.com},
   month =        {August},
   year =         {2012},
   url = {http://www.surfline.com/surf-news/maldives-surf-access-controversy-update_75296/},
   note =         {[Online; posted 27-August-2012]},
 }

@MISC{maldives-alt,
   author =       {Connoly, Darlene},
   title =        {Controversy in the Maldives},
   editor =       {Surfline.com},
   month =        {August},
   year =         {2012},
   note = {\href{http://www.surfline.com/surf-news/maldives-surf-access-controversy-update_75296/}{Surfline.com} {[Online; posted 27-August-2012]}},
 }


@MISC{mull,
   author =       {Mull, Jeff},
   title =        {Maldives Controversy},
   editor =       {Surfing Magazine},
   month =        {September},
   year =         {2010},
   url =          {http://www.surfermag.com/features/maldives-controversy/},
   note =         {[Online; posted 13-September-2012]},
 }
\end{filecontents*}
\usepackage{natbib}
\usepackage{url}
\usepackage[colorlinks]{hyperref}

\begin{document}

Please refer to \cite{maldives} and \cite{mull}.
And this citation `hides' the link `in the url portion of the citation': \cite{maldives-alt}.

\bibliographystyle{plainnat}
\bibliography{\jobname}

\end{document}

答案2

我喜欢比布拉特克斯包。它支持易于定义格式的电子版。示例:

biblatex-eprint.tex

\documentclass{article}
\usepackage[colorlinks]{hyperref}
\usepackage[style=alphabetic, doi=false, isbn=false]{biblatex}
\addbibresource{references.bib}
\DeclareFieldFormat{eprint:eccc}{ECCC\addcolon\space\ifhyperref
    {\href{http://eccc.hpi-web.de/report/#1/}{\nolinkurl{#1}}}
    {\nolinkurl{#1}}}
\DeclareFieldAlias{eprint:ECCC}{eprint:eccc}
\begin{document}
\nocite{Voronoi}
\printbibliography
\end{document}

参考文献.bib

@article{Voronoi,
    author     = {Micciancio, Daniele  and  Voulgaris, Panagiotis},
    title      = {A Deterministic Single Exponential Time Algorithm for Most Lattice Problems Based on Voronoi Cell Computations},
    journal    = {SIAM Journal on Computing},
    volume     = {42},
    number     = {3},
    year       = 2013,
    pages      = {1364--1391},
    eprint     = {2010/014},
    eprinttype = "eccc",
    adsurl     = {http://eccc.hpi-web.de/report/2010/014/},
    bibsource  = {DBLP, http://dblp.uni-trier.de}
}

arXiv.org 已经获得了充分支持。

有关更多信息,请参阅 biblatex 文档 §§ 3.11.7 和 4.11.2。

相关内容