2

I am writing thesis chapter with individual bibliography. Executing with Xelatex, and I found no errors, preview shows everything but citations and reference. Although, I have written report with citation it works fine.

However, I googled for solution but all ways failed, some of are Post1 Post2 Post3

Here is a simplest example of thesis from overleaf page which works on overleaf , but doesn't work on TexStudio(MacTex). any suggestion will be appreciated.

main.tex

%!TEX program = xelatex
%!BIB program = bibtex

\documentclass[11pt,oneside]{book} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[a4paper]{geometry}

\title{Per-chapter bibliographies with chapterbib}

\usepackage[sectionbib]{natbib} \usepackage{chapterbib}

\begin{document} \include{chap1}

\end{document}

chap1.tex

\chapter{First Chapter}

This example chapter, here's a citation! \citep{greenwade93}

\bibliographystyle{IEEEtran} \bibliography{sample}

sample.bib

@article{greenwade93,
    author  = "George D. Greenwade",
    title   = "The {C}omprehensive {T}ex {A}rchive {N}etwork ({CTAN})",
    year    = "1993",
    journal = "TUGBoat",
    volume  = "14",
    number  = "3",
    pages   = "342--351"
}

This was tried with MacTex and Texstudio in MacOS.

Results

enter image description here

enter image description here

Works fine in Overleaf website

enter image description here

iMqrious
  • 31
  • 3

0 Answers0