在 LaTeX bibtex 檔案中使用 URL

在 LaTeX bibtex 檔案中使用 URL

我正在使用 bibtex 作為 LaTeX 的參考書目。我想使用 URL,並且需要引用。如何將 URL 新增至 .bib 檔案。另外,我使用芝加哥作為參考書目風格。我編寫了以下程式碼,但它沒有出現在我的參考文獻中。我該如何修復它?

 \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}

在此輸入影像描述

相關內容