Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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 http://tex.stackexchange.com/ it works good.

EDIT:

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

latex code:

\bibliographystyle{csn690}
\bibliography{mybibliographyfile}
share|improve this question
    
Welcome to TeX.SE! Which bibliography style do you use? –  Mico Mar 8 at 17:18
    
I have my own csn690.bst –  SpeedEX505 Mar 8 at 17:20
1  
A link to the bib style and a minimal example of LaTeX code are necessary. –  egreg Mar 8 at 17:22
    
check my edit I've done –  SpeedEX505 Mar 8 at 17:27
    
Try escaping the % character: url = {http://www.micro.feld.cvut.cz/home/X34SES/prednasky/08\%20Akcelerometry.pdf} –  vaettchen Mar 8 at 17:29

2 Answers 2

up vote 4 down vote accepted

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.

share|improve this answer
    
Thanks, that provides me with a solution for a situation that I so far have simply accepted for my own work! –  vaettchen Mar 8 at 20:02

Escaping the % character:

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

will help!

share|improve this answer
    
It will also print a backslash character in the URL string, presumably rendering it invalid. –  Mico Mar 8 at 18:01

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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