1

I have problems with a web page I retrieved using Mendeley. It was automatically saved in my .bib file using the @misc format. However, when I cite such a web page using APA rules, it does not show the URL in my references. Do you know how I could solve this? I read I could convert the @misc reference to @Online. However, the .bib Mendeley generated file does not allow me to edit it. Here is how my reference is shown in the .bib file:

@misc{Kronick2014WhyStreets,
    title = {{Why Only Half of Venezuelans Are in the Streets}},
    year = {2014},
    author = {Kronick, Dorothy},
    url = {http://fivethirtyeight.com/features/why-venezeulas-middle-class-is-taking-to-the-streets/}
}

The APA reference is shown like this:

Kronick, D. (2014). Why Only Half of Venezuelans Are in the Streets.

I need the URL next to it.

Thank you

2
  • 1
    Please tell us which bibliography style you employ. Also, do you employ a citation management package, such as cite or natbib?
    – Mico
    Dec 8, 2021 at 10:13
  • I use these commands: \usepackage[nameinlink, capitalise, noabbrev]{cleveref} \usepackage{natbib} \bibliographystyle{apalike} Dec 8, 2021 at 10:22

1 Answer 1

1

apalike is a very ancient bibliography style, as it predates the creation of the world wide web and URL strings. In consequence, apalike hasn't been told what to do with the url field. BibTeX simply ignores bib fields with unrecognized names.

What to do? You'll need to (a) load the url or, better still, the xurl package and (b) change the field

url = {http://fivethirtyeight.com/features/why-venezeulas-middle-class-is-taking-to-the-streets/}

to

note = {\url{http://fivethirtyeight.com/features/why-venezeulas-middle-class-is-taking-to-the-streets/}}

Then, perform a full recompile cycle: LaTeX, BibTeX, and LaTeX twice more.

Alternatively, just select a more recent bib style that knows what to do with a field called url.

12
  • I don't know how to edit the.bib file, since I am synchronizing it with Mendeley with the overleaf premium, and it seems I cannot edit such a file. Do you know if the Chicago Style citation allows me to cite websites? What package do I need? Thank you Dec 8, 2021 at 11:12
  • 2
    Instead of the apalike bib style (and the natbib citation management, right?), I suggest you use the apacite bib style and the apacite citation management package. Asidie: whenever you change the argument of \bibliographystyle, it's usually a good idea to delete all aux files and perform a full recompile cycle.
    – Mico
    Dec 8, 2021 at 11:27
  • Since you're using Mendeley (aside: I do not use it), you could look into how to use the note field to house URL strings.
    – Mico
    Dec 8, 2021 at 11:28
  • Thank you. Now I have the following problem. I added the Note to the APA references using the URL package but I have a very long URL link that does not fit the page and moves to the extreme right side of my page margin. How could I fix it? This is my reference: @misc{Kronick2014WhyFiveThirtyEight., title = {{Why Only Half of Venezuelans Are in the Streets. FiveThirtyEight.}}, year = {2014}, author = {Kronick, Dorothy}, note={\url{fivethirtyeight.com/features/…} } Dec 26, 2021 at 16:32
  • 1
    @AntonioSmithBravo - Have you tried loading xurl instead of url? That, or loading url with the option hyphens?
    – Mico
    Dec 26, 2021 at 17:19

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.