URL 引用:控制断点并添加“Accessed”作为前缀文本

URL 引用:控制断点并添加“Accessed”作为前缀文本

请考虑以下 BibTex 参考输出(来源如下):

在此处输入图片描述

我正在使用\bibliographystyle{plain},因为输出符合我正在撰写的论文的要求。我尝试过natbib,但没有成功,因为所有参考书目样式都发生了变化,即使使用该plainnat样式也是如此。效果不佳的是引用的 URL 的引用需要包含访问日期。所有其他引用(我也引用书籍、论文等)都正常工作。

1)有没有办法在日期前添加前缀“访问:”(并且只有当它们存在时才添加?),第一个条目看起来像

[1] Wikipedia, https://en.wikipedia.org, Accessed: March 2014

2) 有没有什么方法可以控制 URL 的断开,使得 URL 最好不断开(在示例 [3] 和 [4] 中,如果在 URL 前面插入换行符,URL 可以保持完整,而示例 [5] 的 URL 太长,无法保持在一行内)?

3) 有没有比我所采用的更简单的定义 URL 条目的方法(见下文)?

这是 LaTex 源代码:

\documentclass[a4paper]{scrartcl}
    \bibliographystyle{plain}
    \usepackage{url}
    \usepackage{cite}
    \begin{document}
    \nocite{wiki-web1,wiki-web2,wiki-web3,wiki-web4,wiki-web5}
    \bibliography{bibtex}
\end{document}

以及 BibTex 来源:

@Other{wiki-web1,
  Title                    = {Wikipedia},
  HowPublished             = {\url{https://en.wikipedia.org}},
  Month                    = mar,
  Timestamp                = {2014.03.16},
  Year                     = {2014}
},

@Other{wiki-web2,
  Title                    = {Wikipedia},
  Author = {Wikipedia Foundation},
  HowPublished             = {\url{https://en.wikipedia.org/wiki/Main_Page}},
  Month                    = mar,
  Year                     = {2014}
},

@Other{wiki-web3,
  Title                    = {Wikipedia},
  Author = {Wikipedia Foundation (SF)},
  HowPublished             = {\url{https://en.wikipedia.org/wiki/Main_Page}},
  Month                    = mar,
  Year                     = {2014}
},

@Other{wiki-web4,
  Title                    = {Wikipedia},
  Author = {Wikipedia Foundation (SF)},
  HowPublished             = {\url{https://en.wikipedia.org/wiki/Main_Page}},
  Month                    = mar,
  Year                     = {2014}
},

@Other{wiki-web5,
  Title                    = {Wikipedia},
  Author = {Wikipedia Foundation (SF)},
  HowPublished             = {\url{https://en.wikipedia.org/wiki/File:Camborne_Redruth_Community_Hospital_-_geograph.org.uk_-_716833.jpg#filehistory}},
  Month                    = mar,
  Year                     = {2014}
}

答案1

与 Web 文档相关的日期可能有两种作用。yearmonth字段通常表示什么时候文档创建或发布的时间。要提供有关您(上次)访问文档的时间的信息,您可以note为每个条目设置一个字段,例如

note = "Last accessed 16 March 2014",

添加字段的完整 MWEnote将生成以下输出:

在此处输入图片描述

\RequirePackage{filecontents}
\documentclass[a4paper]{scrartcl}
\bibliographystyle{plainnat}
\usepackage[hyphens]{url}
\usepackage[numbers]{natbib}
\begin{filecontents*}{\jobname.bib}
@misc{wiki-web1,
  Title                    = {Wikipedia},
  howpublished         = "\url{https://en.wikipedia.org}",
  Month                    = mar,
  Timestamp                = {2014.03.16},
  Year                     = {2014},
  note = "Last accessed 16 March 2014",
}

@misc{wiki-web2,
  Title                    = {Wikipedia},
  Author = {Wikipedia Foundation},
  howpublished         = "\url{https://en.wikipedia.org/wiki/Main_Page}",
  Month                    = mar,
  Year                     = {2014},
  note = "Last accessed 16 March 2014",
}

@misc{wiki-web3,
  Title                    = {Wikipedia},
  Author = {Wikipedia Foundation (SF)},
  howpublished         = "\url{https://en.wikipedia.org/wiki/Main_Page}",
  Month                    = mar,
  Year                     = {2014},
  note = "Last accessed 16 March 2014",
}

@misc{wiki-web4,
  Title                    = {Wikipedia},
  Author = {Wikipedia Foundation (SF)},
  howpublished         = "\url{https://en.wikipedia.org/wiki/Main_Page}",
  Month                    = mar,
  Year                     = {2014},
  note = "Last accessed 16 March 2014",
}

@misc{wiki-web5,
  Title                    = {Wikipedia},
  Author = {Wikipedia Foundation (SF)},
  howpublished         = "\url{https://en.wikipedia.org/wiki/File:Camborne_Redruth_Community_Hospital_-_geograph.org.uk_-_716833.jpg#filehistory}",
  Month                    = mar,
  Year                     = {2014},
  note = "Last accessed 16 March 2014",
}
\end{filecontents*}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\begin{document}
\nocite{wiki-web1,wiki-web2,wiki-web3,wiki-web4,wiki-web5}
\bibliography{\jobname}
\end{document}

回答您的其他一些疑问。是的,某些书目样式会自动在字段前插入换行符url。但是您的条目没有提供名为 的字段url,只有howpublished

相关内容