[Tex/LaTex] Citing a website in Overleaf and Zotero

overleafzotero

I just started to use Zotero in Overleaf. When I tried to cite a wiki page, I got an error:

./main.bbl:3:
Missing $ inserted.
<inserted text> 
                $
l.3 \bibitem[_wi, 2016]{_wikipedia:user_2016}

When I check Zotero.bib, I saw that the record starts an underscore, which causes the problem (I tried to manually remove and it solves the problem).

    @misc{_wikipedia:user_2016,
    title = {Wikipedia:{User} pages},
    copyright = {Creative Commons Attribution-ShareAlike License},
    shorttitle = {Wikipedia},
    abstract = {Abstract},
    language = {en},
    urldate = {2016-03-05TZ},
    journal = {Wikipedia, the free encyclopedia},
    month = feb,
    year = {2016},
    note = {Page Version ID: 707348267}
}

How to prevent this problem? Because, doing this manually is not manageable for a larger scale project.

Thank you very much,
Adam

Best Answer

This is a known issue on the Zotero side: https://github.com/zotero/translators/issues/771. I'm not sure if Overleaf allows you to modify the Zotero bibtex export it uses -- if so, fixing this in the javascript is pretty easy (or, more easily still, you can use the better bibtex add-on. Otherwise you'd have to wait until someone finally gets around to fixing this in Zotero proper. (The underscore gets added because of a missing author, btw. Not that that's a good reason.)