不同的格式,以便同时显示 URL 和 DOI 编号

不同的格式,以便同时显示 URL 和 DOI 编号

我目前正在撰写一篇科学论文,想显示 URL 和请求的日期,以及更多信息和 DOI 编号(如果有的话)(以下是我拥有的和我想要的的示例)我使用 Citavi 并使用 ieee access 引用样式。在 Word 中,我得到了一个输出,我希望在 Overleaf 中的 Latex 中得到这个输出,但不幸的是,这个输出不是我的想法。有人知道我必须如何改变它才能达到我想要的效果吗?

参考书目

@article{Gandhi.27.5.2018,
 abstract = {Artificial Intelligence has become prevalent recently. People across different disciplines are trying to apply AI to make their tasks a lot easier. For example, economists are using AI to predict$\ldots$},
 author = {Gandhi, Rohith},
 year = {27.5.2018},
 title = {Introduction to Machine Learning Algorithms: Linear Regression},
 url = {\url{https://towardsdatascience.com/introduction-to-machine-learning-algorithms-linear-regression-14c4e325882a}},
 urldate = {12.02.2021},
 journal = {Towards Data Science},
 file = {}
}


@article{Cock.2011,
 author = {de Cock, Dean},
 year = {2011},
 title = {Ames, Iowa: Alternative to the Boston Housing Data as an End of Semester Regression Project},
 volume = {19},
 number = {3},
 journal = {Journal of Statistics Education},
 doi = {\url{10.1080/10691898.2011.11889627}},
 file = {}
}

主文本

\usepackage{url}
\usepackage{hyperref}
\begin{document}
Some Text ~\cite{Cock.2011}. And more Text ~\cite{Gandhi.27.5.2018}.
.
.
.
\renewcommand{\refname}{Literaturverzeichnis}
\bibliographystyle{ieeetr}
\bibliography{bibliography}


\end{document}

我想要的是

Literaturverzeichnis

[1] D. de Cock, “Ames, Iowa: Alternative to the Boston Housing Data as an End of Semester Regression Project,” Journal of Statistics Education, vol. 19, no. 3, 2011, doi: 10.1080/10691898.2011.11889627.
[2] R. Gandhi, “Introduction to Machine Learning Algorithms: Linear Regression,” Towards Data Science, 27 May., 2018. https://towardsdatascience.com/introduction-to-machine-learning-algorithms-linear-regression-14c4e325882a (accessed: 12-Feb-21).

我得到了什么

Literaturverzeichnis

[1]  D. de Cock, “Ames, iowa: Alternative to the boston housing data as an end of semesterregression project,”Journal of Statistics Education, vol. 19, no. 3, 2011.
[2]  R. Gandhi, “Introduction to machine learning algorithms: Linear regression,”TowardsData Science, 27.5.2018.

答案1

我的主要建议是,您用围兜样式取代古老的、几乎是史前时代的ieeetr围兜样式IEEEtran

我还想建议您修复书目条目中的几个小错误。例如,条目类型@article不适合该gandhi条目,因为它未在学术期刊上发表。还要将地名括在花括号中,以防止它们转换为小写;一些示例:AmesIowaBoston。我还将\url{...}从字段名称的参数中删除包装器url

在此处输入图片描述

\documentclass{article}
\begin{filecontents}[overwrite]{bibliography.bib}
@misc{Gandhi.27.5.2018,
 abstract= {Artificial Intelligence has become prevalent recently. People across different disciplines are trying to apply AI to make their tasks a lot easier. For example, economists are using AI to predict$\ldots$},
 author  = {Gandhi, Rohith},
 year    = 2018,
 title   = {Introduction to Machine Learning Algorithms: Linear Regression},
 url     = {https://towardsdatascience.com/introduction-to-machine-learning-algorithms-linear-regression-14c4e325882a},
 urldate = {12.02.2021},
 howpublished = {Towards Data Science},
 file    = {}
}

@article{Cock.2011,
 author = {de Cock, Dean},
 year   = 2011,
 title  = {{Ames, Iowa}: Alternative to the {Boston} Housing Data as an End of Semester Regression Project},
 volume = {19},
 number = {3},
 journal= {Journal of Statistics Education},
 url    = {https://doi.org/10.1080/10691898.2011.11889627},
 file   = {}
}
\end{filecontents}

\usepackage[ngerman]{babel}
\addto\extrasngerman{\renewcommand{\refname}{Literaturverzeichnis}}

\usepackage{xurl} % <-- more modern than 'url'
\usepackage[colorlinks,allcolors=blue]{hyperref} 

\begin{document}
Some text~\cite{Cock.2011}. And more text~\cite{Gandhi.27.5.2018}.

\bibliographystyle{IEEEtran}
\bibliography{bibliography}
\end{document}

相关内容