0

I have a thesis latex document which compiles seperately written chapters into a larger thesis document. My in-text citations and references list are not showing up in my final compiled PDF.

Is there a reason why this happens? I am compiling, running the bib file and compiling twice as mentioned for the references to build properly. However, I still dont have any luck.

Here is an example of my documents:

  1. Ch1_Intro.tex file
\clearpage

blablabla \cite{reference1}

\bibliographystyle{unsrt} %% NATBIB command
{\renewcommand{\bibname}{References}\bibliography{refs_Ch1}}

2)Compiled_Thesis.tex file

\usepackage[journal=ancham]{achemso}
\setkeys{acs}{articletitle=true}
\usepackage{natbib} % Top-level referencing package
\usepackage[sectionbib]{chapterbib} % Additional support for chapter-based bibliographies
\setlength{\bibsep}{0pt plus 0.3ex} % reduce spacing between bibliography entries
\usepackage{xkeyval} 
\usepackage{hyperref} % Make references clickable 
\hypersetup{
  colorlinks   = true, %Colours links 
  urlcolor     = red, %Colour for external hyperlinks
  linkcolor    = blue, %Colour of internal links
  citecolor   = blue} %Colour of citations
\renewcommand{\chapterautorefname}{Chapter} % autoref to chapter uses capital C  
\usepackage{xpatch} % remove leading space for non-superscripted citations
\makeatletter % remove leading space for non-superscripted citations
\xpatchcmd\citenum{\NAT@spacechar}{\unkern}{}{\fail} % remove leading space for non-superscripted citations
\makeatother % remove leading space for non-superscripted citations
\renewcommand*{\thefootnote}{\fnsymbol{footnote}} % use symbols rather than numbers for footnotes
\renewcommand*{\bibfont}{\footnotesize} % make the bibliography font smaller
\renewcommand{\bibname}{References}

begin{document}

\include{Ch1_Intro}

end{document}

  1. refs_Ch1.bib file
@article{reference1},
  citation-number = {1},
  author = {me},
  title = {my paper},
  date = {2007},
  volume = {84},
  pages = {644},
  language = {en},
  journal = {my journal},
  number = {4}
}
4
  • if bibtex failed to generate a biblography there will be error messages in its log file (.blg) but you appear to have no \bibliographystyle command. – David Carlisle Feb 9 at 19:39
  • Thank you. The issue is that even when I uncomment the \bibliographystyle command, I have no luck generating the references. – Siba Feb 10 at 17:18
  • as I say if bibtex failed to generate the references it will show an error in the log unsrt isn't really designed for natbib it is better to start with a natbib sty;e but either way the .blg should give information, if you fix your tex so it has \bibliographystye and show the .blg that you get someone can debug – David Carlisle Feb 10 at 17:43
  • note you are using chapterbib so you need to run bibtex for each chapter, but we can not test the example posted, no \documentclass and \ missing from begin and end document – David Carlisle Feb 10 at 23:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.