TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm having troubles while using the url command in my bibliography.

I mean:


Justin~Clarke ``SQL Injection Attacks and Defense'', Syngress Publishing, Inc.2009

Unfortunately font 1) is different from 2).

What should I do in oder to get the same font for both items?

I'd like the font used in 1)

to be identical to the one displayed in 2)

share|improve this question
Since you have some responses below that seem to answer your question, please consider marking one of them as ‘Accepted’ by clicking on the tickmark below their vote count (see How do you accept an answer?). This shows which answer helped you most, and it assigns reputation points to the author of the answer (and to you!). It's part of this site's idea to identify good questions and answers through upvotes and acceptance of answers. – Jubobs Mar 2 '14 at 14:08



(See Roey Angel's comment).

The documentation of package url says:

You can switch the style of printing using \urlstyle{tt}, where tt can be any defined style. The pre-defined styles are tt, rm, sf, and same which all allow the same linebreaks but different fonts – the first three select a specific font and the same style uses the current text font. You can define your own styles with different fonts and/or line-breaking by following the explanations below. The \url command follows whatever the currently-set style dictates.

share|improve this answer
I would suggest \usrlstyle{same} which would make the package use the same font as in the rest of the document. The package default it your typewriter font, if I'm not mistaken. – Roey Angel Dec 15 '12 at 15:29

Your Answer


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.