0

Problem with referencing when natbib is used (XeLaTex)

Thank you for your time. I am using a template from my institute to write my thesis. When I run the document, it compiles alright but fails to produce references. In the places where I use \cite{*}, only question marks show in those places. I have been trying and researching for the past 24hrs, but all no avail. Please help solve this problem. While compiling, I see the following warnings:

  1. Package caption Warning: Unsupported document class (or package) detected, usage of the caption package is not recommended.See the caption package documentation for explanation.

  2. Package natbib Warning: Citation `mcintyre1952method' on page 1 undefined on input line 5, line 7, etc.

I am using TeXworks 2.9. The structure of my document looks like this:

\documentclass[msc]{fbe} %withcoadvisor,coadvisorsigne  
\RequirePackage{fontspec}  
\fontspec{Times New Roman}%Times New Roman  
\setmainfont{Times New Roman}%Comic Sans MS  
\usepackage{graphicx}

\usepackage{enumerate} %for different forms of enumeration  
\DeclareMathOperator*{\argmax}{arg\,max}  
\DeclareMathOperator*{\argmin}{arg\,min}  
\usepackage{algorithm} %for designing algorithm  
\usepackage[noend]{algpseudocode} %algorithm related  
\usepackage{booktabs} %for toprule, midrule etc.  
\usepackage[caption=false]{subfig}>


\newtheorem{theorem}{Theorem}[section]  
\newtheorem{definition}[theorem]{Definition}  
\newtheorem{lemma}[theorem]{Lemma}  



% #########################################  
% ###    Use XeLaTeX     ###  
% #########################################  

% DON'T use inputenc package !!!  
% amsmath, amsfonts, amssymb, setspace packages have beeen used. DON'T ADD!  
% natbib ve caption packages have beeen used. DON'T ADD!  

\begin{document}  

....  
\startbibliography  
    \bibliographystyle{plain}  
    \bibliography{mybib}  
....  
\end{document} 

Thank you in advance.

leandriis
  • 62,593
  • 1
    Welcome to TeX.se. The warning from the caption package is probably nothing to worry about since the documentclass you're using loads caption. Did you run bibtex on the file? This is probably a duplicate of Question mark or bold citation key instead of citation number. – Alan Munn Jun 17 '19 at 20:42
  • 1
    I did not run bibtex. I only ran XeLaTeX. This is really getting me frustrated as the deadline for submission is fast approaching. Thanks Alan – Abubakr Taylor Jun 17 '19 at 20:48
  • 1
    It’s the BibTeX program that generates the formatted bibliography. If you don’t run it , no formatted bibliography, and no properly resolved citation call-outs. After running BibTeX, be sure to run XeLaTeX twice more. – Mico Jun 17 '19 at 20:54
  • @Mico, running BibTex actually got my computer frozen. additionally, I see a message like 'The style file: fbe.bst. Illegal, another \bibstyle command ---line 121 of file MyThesis.aux etc. – Abubakr Taylor Jun 17 '19 at 21:10
  • I'm guessing here, because we don't have fbe.cls (the documentclass you are using) but I suspect that it also comes with its own bibliography style (fbe.bst) in which case you need remove your own \bibliographystyle{plain} command, delete your .aux files and recompile (xelatex - bibtex - xelatex -xelatex). Can you post a link to the document class? – Alan Munn Jun 17 '19 at 21:28
  • @Mico It worked eventually, exactly the way you suggested I run it. Thank you so very much! – Abubakr Taylor Jun 17 '19 at 21:28
  • @AbubakrTaylor Was that directed at Mico's comment or mine? – Alan Munn Jun 17 '19 at 21:29
  • @AlanMunn, thank you. It worked so well. Indeed, dealing with designed templates can actually be so frustrating! At least, I am done with my thesis now. That is the good news. – Abubakr Taylor Jun 17 '19 at 21:31
  • @AlanMunn, I tried both, which both produced the desirable results. Thanks once more. – Abubakr Taylor Jun 17 '19 at 21:58

0 Answers0