LaTeX forum ⇒ OthersOverleaf Citations not working

Information and discussion about other TeX distributions not listed above; installation, administration; field reports
Posts: 1
Joined: Fri Nov 22, 2019 11:12 am

Overleaf Citations not working

Postby late2latex » Fri Nov 22, 2019 11:23 am

Hi, I am working on my thesis and am using a class that was written by the graduate studies office of my Uni. The problem, however, is that it is sorta compatible with Overleaf. I have three issues here with my project.

1. The main thesis citations index started from where the paper citation index ended instead of starting over from one again.

2. Citing multiple authors is not being printed in [1-2] format, it is instead in [1,2] format, which I do not want.

3. The .bib files with the bibliography are unresponsive. Only the \bibitem is working.
I am using the following packages to get started.
 % ... additions to ptotemplate ...
\usepackage[numbers,square,sort&compress]{natbib} % ... authoryear or numbers ...


Any help would be appreciated. Thank you.

Posts: 662
Joined: Tue Mar 25, 2008 5:02 pm

Postby kaiserkarl13 » Thu Jan 02, 2020 5:25 am

I don't know if I actually understanding point #1, but I suggest you read the chapterbib documentation: if you want references on a per-chapter basis, they SHOULD start over, but you'll need to load it and read the parts about use with natbib. If you want a global bibliography, you need [rootbib] (see documentation). You might have to reset the counter yourself when using natbib; I used code like this once upon a time:

The style [1,2] is normal; you would only put a range with [1-3] (instead of [1,2,3]), which is what "sort&compress" is for.

What does "The .bib files with the bibliography are unresponsive. Only the \bibitem is working" mean? Note that "\bibitem" is used by the thebibliography environment, which BibTeX generates for you based on the .aux and .bib files. You should either be writing your bibliography inside the thebibliography environment (i.e., manually) or generating it with BibTeX, not both.

In the future, try to reproduce the problem you're having using one of the standard classes, then post a Infominimal working example.

Return to “Others”

Who is online

Users browsing this forum: No registered users and 2 guests