LaTeX forum ⇒ OthersOverleaf Citations not working

Information and discussion about other TeX distributions not listed above; installation, administration; field reports
late2latex
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.
Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \documentclass[times,12pt,titlepage]{mstogs}
  2. \doublespacing
  3. % ... additions to ptotemplate ...
  4. \usepackage[numbers,square,sort&compress]{natbib} % ... authoryear or numbers ...
  5. %\setlength{\bibhang}{0.5in}
  6. \usepackage{docmute}
  7. \usepackage{siunitx}
  8. \usepackage{graphicx}
  9. \usepackage{url}
  10. \usepackage[nopar]{lipsum}
  11. \usepackage{threeparttable}
  12. \usepackage{psfrag}
  13. %\usepackage{cite}
  14. \usepackage{threeparttable}
  15. \usepackage[noprefix]{nomencl}
  16. \makenomenclature
  17. \usepackage[sectionbib]{chapterbib}
  18.  
  19. \bibliographystyle{mstogs}


Any help would be appreciated. Thank you.

kaiserkarl13
Posts: 643
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:
Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \@ifpackageloaded{natbib}{
  2. \let\newchapter\chapter
  3. \renewcommand{\chapter}{\setcounter{NAT@ctr}{0}\newchapter}
  4. }


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 1 guest