9
 @online{senfus,
title={article name},
 url= {https://m**.s*/U****d/Om%20MPB/F****g/Kxyzy.pdf},
 }

While citing this reference, I am getting following error because of the term "%" in the url.

Paragraph ended before \BR@@bibitem was complete.\par

Is using tinyurl/google url shortener a good idea for citing the article's url.

10

You did not mention which bibliography style you use, but most styles wrap the content of the url field in a \url{...} macro, and provide a very basic definition for it that can not handle special characters like %.

The solution is to simply load the url or hyperref package, as those define sophisticated versions of the \url macro that do handle special characters.

  • 2
    Using 'IEEEtran' bibliography style – Pratap Dheeraj May 6 '13 at 8:22
  • 1
    Then using the url or hyperref package should indeed work. – mafp May 6 '13 at 9:06
6

You need to escape the % in your bib file because the % symbol has special meaning in LaTeX. See http://en.wikibooks.org/wiki/LaTeX/Basics#Reserved_Characters.

Try replacing % with \% in the URL field in the bib file.

  • It doesn't work! Still getting the same error. – Pratap Dheeraj May 7 '13 at 10:07
  • 1
    # also need to be escaped (\#) – Nux Mar 10 '14 at 13:47
  • 2
    Escaping symbols such as &, #, and % in a URL string pretty much guarantees that the URL string can't be made into a hyperlink if the hyperref package is loaded. It's much better -- certainly much less work in the medium to long term -- to encase the entire URL in a \url{..} directive. – Mico Aug 14 '16 at 11:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.