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'm having troubles while using the url command in my bibliography.

I mean:

1)
\bibitem{[8]}
{\url{http://projects.webappsec.org/w/page/13246989/Web20Application20Security20Statistics\#Tableofcontent}}

2)
\bibitem{[5]}
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 at 14:08
add comment

1 Answer 1

\urlstyle{rm}

or

\urlstyle{same}

(See Roey Angel's comment).

The documentation of package url says:

Style:
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
1  
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
add comment

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.