BibTeX, biblatex and biberEmpty Bibliography

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
bazman
Posts: 78
Joined: Mon Jan 26, 2009 3:24 am

Empty Bibliography

Post by bazman »

Hi there,

I currently have two files.

However when I compile the below all I get is a page with References at the sop and everything else blank.

The file does not seem to be linking to "myrefs" how do I fix it?

Code: Select all

\documentclass{article} % Your input file must contain these two lines
\usepackage{fancyvrb}
\DefineVerbatimEnvironment{code}{Verbatim}{fontsize=\small}
\DefineVerbatimEnvironment{example}{Verbatim}{fontsize=\small}
\usepackage{natbib}
\usepackage{amsmath}
\usepackage{pdflscape}
\usepackage{amsfonts}
\usepackage{bm}
\usepackage{grffile}
\usepackage{graphicx}
\usepackage{multirow}
\usepackage{enumerate}
\usepackage[%
  font=small,
  labelfont=bf,
  figurewithin=section,
  tablewithin=section,
  tableposition=top
]{caption}

\makeatletter
  \def\env@matrix{\hskip -\arraycolsep
  \let\@ifnextchar\new@ifnextchar
  \array{*\c@MaxMatrixCols l}}
\makeatother

\begin{document} % plus the \end{document} command at the end
\parskip = 1pc %change spacing between paragraphs
\parindent = 0pc %change paragraph indentation
\pagestyle{empty}

\clearpage
\setcounter{page}{1}
\pagestyle{plain}



\clearpage

\pagestyle{empty}

\bibliographystyle{plain}	% (uses file "plain.bst")
\bibliography{myrefs}		% expects file "myrefs.bib" 


\end{document}

and myrefs,bib

Code: Select all

@Article{Sankaran_1963,
  author =       {M. Sankaran},
  title =        {Approximations to the non-central chi-square distribution,},
  journal =      "Biometrica",
  year =         {1963},
  volume =    {50},
  number =    {},
  month =     {},
  pages =     {199-204},
  note =      {},
  annote =    {}
}
Last edited by bazman on Mon Sep 26, 2011 7:04 pm, edited 2 times in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Re: Empty Bibliography

Post by localghost »

This is the expected result if there are no citations.


Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
bazman
Posts: 78
Joined: Mon Jan 26, 2009 3:24 am

Re: Empty Bibliography

Post by bazman »

thanks!
bazman
Posts: 78
Joined: Mon Jan 26, 2009 3:24 am

Empty Bibliography

Post by bazman »

OK so now the reference shows in the bibliography.

However in the body of the output text all I get is Sankaran[?]?

Code: Select all

\documentclass{article} % Your input file must contain these two lines
\usepackage{fancyvrb}
\DefineVerbatimEnvironment{code}{Verbatim}{fontsize=\small}
\DefineVerbatimEnvironment{example}{Verbatim}{fontsize=\small}
\usepackage{natbib}
\usepackage{amsmath}
\usepackage{pdflscape}
\usepackage{amsfonts}
\usepackage{bm}
\usepackage{grffile}
\usepackage{graphicx}
\usepackage{multirow}
\usepackage{enumerate}
\usepackage[%
  font=small,
  labelfont=bf,
  figurewithin=section,
  tablewithin=section,
  tableposition=top
]{caption}

\makeatletter
  \def\env@matrix{\hskip -\arraycolsep
  \let\@ifnextchar\new@ifnextchar
  \array{*\c@MaxMatrixCols l}}
\makeatother

\begin{document} % plus the \end{document} command at the end
\parskip = 1pc %change spacing between paragraphs
\parindent = 0pc %change paragraph indentation
\pagestyle{empty}

\clearpage
\setcounter{page}{1}
\pagestyle{plain}

To speed up conversion an accurate approximation is used, which was derived by Sankaran \cite{Sankaran_1963}:


\clearpage

\pagestyle{empty}

\bibliographystyle{plain}	% (uses file "plain.bst")
\bibliography{myrefs}		% expects file "myrefs.bib" 


\end{document}
Siavash
Posts: 9
Joined: Tue Sep 27, 2011 1:32 am

Re: Empty Bibliography

Post by Siavash »

I have the exact same problem and I'm guessing that you've used some \ref in your thesis. I don't know why but that messes up with the bibliography. Any idea anyone?
bazman
Posts: 78
Joined: Mon Jan 26, 2009 3:24 am

Re: Empty Bibliography

Post by bazman »

Yes I have used \ref elsewhere in my thesis.
andrEdo96
Posts: 1
Joined: Sun Apr 20, 2014 8:40 pm

Re: Empty Bibliography

Post by andrEdo96 »

I had this same problem. Change the name Sankaran_1963 for Sankaran1963 or other without character "_".
Post Reply