Issue: BibTeX Export and Amperstand's in URLs
Hello,
I'm running into an issue using my exported BibTeX files for citations in LaTeX. Some repositories (such as ScienceDirect) have URL's with amperstands in them. When compiling the BibTeX file with these URL's, this error is reported:
...\url{http://www.foo.com/foo/michaels&foo}
\end{APACrefURL}
I can't figure out why you would want to use a tab mark
here. If you just want an ampersand, the remedy is
simple: Just type `I\&' now.
The obvious solution for me at this point is to either remove the URL from Zotero, or remove the URL field from the BibTeX file. However, I'd prefer not to have to edit those in order to get a working BibTeX file.
Any advice or a fix would be greatly appreciated.
I'm running into an issue using my exported BibTeX files for citations in LaTeX. Some repositories (such as ScienceDirect) have URL's with amperstands in them. When compiling the BibTeX file with these URL's, this error is reported:
...\url{http://www.foo.com/foo/michaels&foo}
\end{APACrefURL}
I can't figure out why you would want to use a tab mark
here. If you just want an ampersand, the remedy is
simple: Just type `I\&' now.
The obvious solution for me at this point is to either remove the URL from Zotero, or remove the URL field from the BibTeX file. However, I'd prefer not to have to edit those in order to get a working BibTeX file.
Any advice or a fix would be greatly appreciated.
This article has a good table on escaping characters in LaTeX: http://libraries.mit.edu/help/refworks/refworkslatexfaq.html
And this post indicates that, in some instances, escaping in URLs in needed: http://osdir.com/ml/kde.tellico.general/2007-05/msg00060.html
this problem will be resolved.
This example works for me:
test.tex:
\documentclass{article}
\usepackage{natbib}
\usepackage{url}
\begin{document}
\bibliographystyle{plainnat}
\cite{abc}
\bibliography{test}
\end{document}
test.bib:
@Article{abc,
author = {A. Bee},
title = {Whatever},
journal = {J. Whatever},
year = {2009},
url = {\url{a&+%^b}}
}