I'm referencing a URL in the following way:

\bibitem{r10} PC Magazine \emph{https://www.pcmag.com/encyclopedia/term/37919/application-program}, 2011

The output is something like this:

enter image description here

I tried to remove the spaces after PC and Magazine, but to no avail. How can I do it? Thanks!

  • 3
    Seems you should use \raggedright for you bibliography. But this is very speculative, because we would need a minimal working example with bibliography and some information about the expected result. Currently I even do not know whether or not you are using a manually made bibliography or bibtex (but it seems you are not using biblatex). BTW: Why don't you use \url (from either url or hyperref)? – Schweinebacke Nov 6 '17 at 8:21
  • 3
    you should not use \emph to mark an URL, use \url from the url package. It does not guarantee a better line break, but it know legal break points in URLs – daleif Nov 6 '17 at 8:22
  • @Schweinebacke thanks for your comment and suggestion. I'm a beginner with Latex. I would definitely follow your advice. Thanks! – AhmedWas Nov 6 '17 at 8:36
  • @daleif, thanks for your comment. I'll do what you suggested. – AhmedWas Nov 6 '17 at 8:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.