我在 LaTeX 中使用 bibtex 来制作参考书目。我想使用 URL 并需要引用。如何将 URL 添加到 .bib 文件中。此外,我使用 chicago 作为参考书目样式。我编写了以下代码,但它没有出现在我的参考资料中。我该如何修复它?
\begin{filecontents*}{mybib1.bib}
@misc{bworld,
author = {Ingo Lütkebohle},
title = {{BWorld Robot Control Software}},
howpublished = "\url{http://aiweb.techfak.uni-bielefeld.de/content/bworld-
robot-control-software/}",
year = {2008},
}
\end{filecontents*}
\usepackage{url}
\begin{document}
The information is available in \citep{bworld}.
\bibliographystyle{chicago}
\bibliography{mybib1}
\end{document}
答案1
评论太长,需要标记
使用以下代码编译(另存为myfile.tex
)
pdflatex myfile
bibtex myfile
pdflatex myfile
pdflatex myfile
内容myfile.tex
:
\documentclass{article}
\usepackage{filecontents}
\begin{filecontents*}{mybib1.bib}
@misc{bworld,
author = {Ingo Lütkebohle},
title = {{BWorld Robot Control Software}},
howpublished = "\url{http://aiweb.techfak.uni-bielefeld.de/content/bworld-
robot-control-software/}",
year = {2008},
}
\end{filecontents*}
\usepackage{natbib}
\usepackage{url}
\begin{document}
The information is available in \citep{bworld}.
\bibliographystyle{chicago}
\bibliography{mybib1}
\end{document}