Hi,
I have the problem that in my bibtex I have an url like this:
howpublished = {{http://www.foo.com/double__underlines}}
This throws an error if directly compiled.
double\{__}underlines does not work, \_\_ works but gives a space in between like this _ _.
How can I do this?
Thanks a bunch.
Text Formatting ⇒ How to make double underline in an url
NEW: TikZ book now 40% off at Amazon.com for a short time.

Re: How to make double underline in an url
Frankly I think it's a good thing if there is a small space between the underscores, or else it might be hard to read the URL. Personally, I'd load the url (or hyperref) package and put in:
howpublished = {\url{http://www.foo.com/double__underlines}},
but frankly, I think \_\_ looks fine too. (No space in the middle, but still a small visible gap in the output.)
If you really want to get rid of the gap, I suppose you could use either \_\negthinspace\_ or \underline{~~}, but again, I think the gap is a good thing.
howpublished = {\url{http://www.foo.com/double__underlines}},
but frankly, I think \_\_ looks fine too. (No space in the middle, but still a small visible gap in the output.)
If you really want to get rid of the gap, I suppose you could use either \_\negthinspace\_ or \underline{~~}, but again, I think the gap is a good thing.
Re: How to make double underline in an url
Thanks a lot. That's what I needed.