1

I'm using TeXstudio and trying to list the bibliography content in the document. I compiled the .tex file and there is no errors but I got no output.

\documentclass[12pt]{article}
\usepackage{graphicx}
\usepackage{indentfirst}
\usepackage{mathtools}
\usepackage{amsmath}
\usepackage{blindtext}
\usepackage{changepage}
\usepackage{lipsum}
\usepackage{filecontents}
\usepackage[style=authoryear, backend=bibtex]{biblatex}

\newenvironment{subs}
  {\adjustwidth{2em}{0pt}}
  {\endadjustwidth}

\begin{filecontents}{sample.bib}


@article{awad2011machine,
  title={Machine Learning methods for E-mail Classification},
  author={Awad, WA and ELseuofi, SM},
  journal={International Journal of Computer Applications},
  volume={16},
  number={1},
  year={2011},
  publisher={International Journal of Computer Applications, 244 5 th Avenue,\# 1526, New York, NY 10001, USA India}
}

@article{willett2006porter,
  title={The Porter stemming algorithm: then and now},
  author={Willett, Peter},
  journal={Program},
  volume={40},
  number={3},
  pages={219--223},
  year={2006},
  publisher={Emerald Group Publishing Limited}
}



@inproceedings{mccallum1998comparison,
  title={A comparison of event models for naive bayes text classification},
  author={McCallum, Andrew and Nigam, Kamal and others},
  booktitle={AAAI-98 workshop on learning for text categorization},
  volume={752},
  pages={41--48},
  year={1998},
  organization={Citeseer}
}


@article{pop2006approach,
  title={An approach of the Naive Bayes classifier for the document classification},
  author={Pop, Ioan},
  journal={General Mathematics},
  volume={14},
  number={4},
  pages={135--138},
  year={2006},
  publisher={University}
}
\end{filecontents}

\bibliography{sample}




\begin{document}

\nocite{*}
\printbibliography

\end{document}

I tried so many proposed solutions but unfortunately nothing worked

Mico
  • 506,678
F 505
  • 525

1 Answers1

3

I tried so many proposed solutions but unfortunately nothing worked

It would be helpful if you were a bit more specific as to which proposed solutions you've tried.

I don't have TeXstudio on my computer, so I can't judge what your front-end is doing. When I run your code from TeXworks as the front-end and MacTeX2016 as the back-end, I do notice that biblatex issues complaints about "too many commas" in the publisher field of the entry awad2011machine. If I change the field named publisher to xpublisher in all entries and re-run your code, I get no more warning messages.

That said, you should make more of an effort to make sure that the contents of all entries are correct. A quick glance over your code immediately shows incorrect capitalization and failure to prevent lowercasing of words by BibTeX.

Here's the output of applying some judicious corrections to your code -- note that I've also replaced \bibliography{sample} with the more idiomatic \addbibresource{sample.bib}:

enter image description here

\RequirePackage{filecontents}
\begin{filecontents}{sample.bib}
@article{awad2011machine,
  title  ={Machine learning methods for \mbox{E-mail} Classification},
  author ={Awad, W. A. and Elseuofi, S. M.},
  journal={International Journal of Computer Applications},
  volume ={16},
  number ={1},
  year   ={2011},
  xpublisher={International Journal of Computer Applications, 244 5th Avenue, \#~1526, New York, NY 10001, USA}
}
@article{willett2006porter,
  title  ={The {Porter} stemming algorithm: then and now},
  author ={Willett, Peter},
  journal={Program},
  volume ={40},
  number ={3},
  pages  ={219--223},
  year   ={2006},
  xpublisher={Emerald Group Publishing Limited}
}
@inproceedings{mccallum1998comparison,
  title  ={A comparison of event models for {Naive Bayes} text classification},
  author ={McCallum, Andrew and Nigam, Kamal and others},
  booktitle={AAAI-98 Workshop on Learning for Text Categorization},
  volume ={752},
  pages  ={41--48},
  year   ={1998},
  organization={Citeseer}
}
@article{pop2006approach,
  title  ={An approach of the {Naive Bayes} classifier for the document classification},
  author ={Pop, Ioan},
  journal={General Mathematics},
  volume ={14},
  number ={4},
  pages  ={135--138},
  year   ={2006},
  xpublisher={University}
}
\end{filecontents}

\documentclass[12pt]{article}
\usepackage[style=authoryear, backend=bibtex]{biblatex}
\addbibresource{sample.bib}

%\usepackage{graphicx}
%\usepackage{indentfirst}
%\usepackage{mathtools}
%\usepackage{amsmath}
%\usepackage{blindtext}
%\usepackage{changepage}
%\usepackage{lipsum}
%\newenvironment{subs}
%  {\adjustwidth{2em}{0pt}}
%  {\endadjustwidth}

\begin{document}
\nocite{*}
\printbibliography
\end{document}
Mico
  • 506,678