[Tex/LaTex] .bib file causes build crash, url error

bibliographiesbibtexurls

I have this code in my .bib file:

@misc{akcelerometry,
author = {Prof. Ing. Miroslav Husák, CSc.},
title = "Akcelerometry {[online]}",
url = {http://www.micro.feld.cvut.cz/home/X34SES/prednasky/08%20Akcelerometry.pdf},
type = {web page},
month = november,
year = {{2013}},
note = "[cit. 2014-03-08]"
}

It crashes but when i change url for example to https://tex.stackexchange.com/ it works good.

EDIT:

bibliography style: http://pastebin.com/9KGLbuCB csn690.bst

latex code:

\bibliographystyle{csn690}
\bibliography{mybibliographyfile}

Best Answer

The cause of the problem is the % character -- which has a "special" meaning in TeX -- in the field

url = {http://www.micro.feld.cvut.cz/home/X34SES/prednasky/08%20Akcelerometry.pdf},

"Escaping" the % symbol, i.e., writing it as \%, might at first blush seem to provide a fix. However, it introduces a new problem: A backslash character is now printed in the URL string, which makes it almost certain that your readers will be unable to find the publication online.

Rather than "escape" the % symbol, you should encase the entire URL string in the instruction \url, i.e., write the field as

url = "\url{http://www.micro.feld.cvut.cz/home/X34SES/prednasky/08%20Akcelerometry.pdf}",

The command \url not only typesets its argument in a monospaced ("typewriter") font but, importantly, also suspends any TeX-special meanings of characters such as &, ^, %, $, #, and ~.

You will need to load either the url or the hyperref package in the preamble of your document to activate the command \url.

Related Question