I want to cite and format the bibliographic references according to APA style. So I tried:



But the output of the reference list seems weird Spaces are totally wrong, and the hyperlink of the website has a strange font.

So what can I do to solve it out?

  • Welcome to TeX.SE. You need to load the url package and/or the hyperref package in order to enable line breaks in long URL strings. – Mico Feb 26 '18 at 8:56

To typeset long URL strings, it's a good idea to load the url package and/or the hyperref package. That way, LaTeX is much more likely to "find" permissible line break opportunities.

enter image description here

  author = "Cody C. Delistraty",
  title  = "The Beauty-Happiness Connection",
  year   = 2014,
  month  = "Aug.",
  howpublished = "Atlantic Media Co.", 
  url    = "https://www.theatlantic.com/health/archive/2014/08/the-beautyhappiness-connection/375678/",


  • If you want the URL string to use the main text font instead of a monospaced font, just issue the directive \urlstyle{same} after loading the url package. – Mico Feb 26 '18 at 9:27
  • Yes, it works. Thanks very much! Another problem is what if I want the url in the reference to be a hyperlink? What should I do, instead of "\cite{xxxxx}"? – user155860 Feb 26 '18 at 15:36
  • @user155860 - If you want to enable hyperlinking of URL strings, you must load the hyperref package. – Mico Feb 26 '18 at 15:43
  • However, if I use "hyperref" package, I can't use \cite{xxx} command. So what should I do? – user155860 Mar 4 '18 at 8:57
  • 1
    Yes,hyperref going after url solves the problem. Thank you! – user155860 Mar 5 '18 at 9:16

Your Answer

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

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