BibTeX, biblatex and biberBibliography does not appear in PDF

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
Prashantkg88
Posts: 2
Joined: Wed Sep 12, 2012 10:17 pm

Bibliography does not appear in PDF

Post by Prashantkg88 »

Hello Guys

I am a newbie in using LaTeX for documentation purposes. I am using miktex 2.9 and texmaker. I wrote following script for citing bibliographies in my document.

Code: Select all

\documentclass{mscLiterature}

\begin{document}

\bibliographystyle{ieeetr}
\printbib{MyBib}
\bibliography{MyBib}
If you want to know more about \LaTeX\ you better read \cite{texbook}.

\end{document}
It gives an error that there are undefined references. Hence, I can only see[?] in my PDF file where I am citing the literature.

The MyBib.bib looks like:

Code: Select all

@BOOK{texbook,
   author = "Donald E. Knuth",
   title= "The {{\TeX}book}",
   publisher = "Addison-Wesley",
   year = "1984"
}

I am also getting the same error even when I am writing following set of lines before \end{document}:

Code: Select all

latex mscLiterature
bibtex mscLiterature
latex mscLiterature
pdfLatex mscLiterature
pdf Viewer mscLiterature
Kindly help me out if I need to install anything new or call any package for avoiding this error. One of my friend is using TexWorks and he can properly see the bibliographies as desired using same set of commands. So, I was wondering if I need to switch to that on my PC too.

Thanks a lot in advance!
Last edited by Stefan Kottwitz on Wed Sep 12, 2012 10:54 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Bibliography does not appear in PDF

Post by kaiserkarl13 »

Your sequence is a bit unorthodox (but probably not the source of your problems). Try this instead:

Code: Select all

pdflatex mscLiterature
bibtex mscLiterature
pdflatex mscLiterature
pdflatex mscLiterature
pdf Viewer mscLiterature.pdf
It seems like the sequence you used should still have worked, though.

I can't be certain what's going on, as I don't have your document class (which has the same name as your .tex file; that's WEIRD, and suspicious). Try it with just the article or report class and see if you still have trouble.

I have also not seen \printbib and don't know what it does. Try getting rid of that, too.

By the way, you should see a .bbl file appear; what does that file contain? (It should contain your bibliography).
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Bibliography does not appear in PDF

Post by localghost »

I'm (as kaiserkar13) a bit confused by some points in your code.
  • The mscLiterature class is not a standard class. Unfortunately you neither attached it to your post nor added a link where to get it.
  • Your processing sequence indicates that your source file is called mscLiterature.tex. This could cause a clash with the name of the class.
So, for an adequate problem description you better provide a proper and self-contained minimal example that lets us comprehend what might be going wrong.


Best regards and welcome to the board
Thorsten
Prashantkg88
Posts: 2
Joined: Wed Sep 12, 2012 10:17 pm

Bibliography does not appear in PDF

Post by Prashantkg88 »

Hi Guys

Thanks for such a prompt and good reply. I tried everything but nothing seems to work.
  1. mscLiterature is a document class created by my faculty for its own standard documentation purposes.
  2. I tried changing the name to avoid clash with document class.
  3. I tried getting rid of \printbib command and also tried using different sequence of commands with bibtex and pdflatex as mentioned.
  4. I am also not getting .bbl file in my folder.


The above things were happening when I am using F1 or direct run for making PDF.

However, I figured that I also have a .bat file named "make_postscript_Literature" and when I am running it then I am getting the .bbl file and bibliography is also appearing. What is the catch here ?

I have attached a .rar file containing all files. You can run the .tex file first using F1 button & then using .bat file with name as I mentioned above. Then you can see the difference. And "mrproperLatex.bat" file removes all temporary files created.

Let me know about the difference while running via two different types.

Thanks!
kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Bibliography does not appear in PDF

Post by kaiserkarl13 »

If you're not getting a .bbl file, then either you are not running bibtex at all, or you're running it and getting an error.

If you run these commands (from the command line!), do you get any errors? I ask this because I have seen many examples of IDE's hiding errors, causing the mistaken impression that there are no errors.
Post Reply