## LaTeX forum ⇒ BibTeX, biblatex and biber ⇒ one newbie problem about bibtex coping with latex Topic is solved

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
deathlypest
Posts: 12
Joined: Fri Feb 01, 2013 11:39 pm

### Re: one newbie problem about bibtex coping with latex

Stefan_K wrote:Sure, LaTeX is not easy at the beginning. With more experience, there's full control. I'm sure it would be easy if I could see the code. More information needed? Sure - as I said above: a minimal working example. Follow the link to learn why and how. Your task is just to provide information to reproduce the problem. We would do the task to fix it then.

Stefan

I have tried this,the codes look following
% Template file for a standard thesis\documentclass[12pt]{thesis}\usepackage{natbib} \begin{document} reference \bibliographystyle{apa}\bibliography{mybib}\nocite{*}\cite{HK} \end{document}

here is my .bib
@BOOK{HK,AUTHOR={H. Kopka and P. W. Daly},TITLE={A Guide to LaTeX},PUBLISHER={Addison-Wesley},ADDRESS={Reading, MA},YEAR=1999.}

no extra package except natbib ,there is no file thesis.cls anywhere.
I have compile .tex(pdftex)-compile .bib(bibtex separately)-compile .tex (pdftex)

The tool used is Texworks
reference wasn't printed out

Thank you very much
Last edited by Stefan Kottwitz on Sun Feb 03, 2013 12:53 pm, edited 1 time in total.
Reason: inline code changed to code block

Tags:

Stefan Kottwitz
Posts: 9557
Joined: Mon Mar 10, 2008 9:44 pm
deathlypest wrote:there is no file thesis.cls anywhere

The same on my system (thesis classes are not standard), so no real test possible.

deathlypest wrote:reference wasn't printed out

There's a mistake in the YEAR line, the dot is invalid, it has to be a comma (or nothing at the end here). BibTeX would stop with an error.

Stefan

deathlypest
Posts: 12
Joined: Fri Feb 01, 2013 11:39 pm
Stefan_K wrote:
deathlypest wrote:there is no file thesis.cls anywhere

The same on my system (thesis classes are not standard), so no real test possible.

deathlypest wrote:reference wasn't printed out

There's a mistake in the YEAR line, the dot is invalid, it has to be a comma (or nothing at the end here). BibTeX would stop with an error.

Stefan

it works. You are right there should be nothing at the end. Thank you again.
There is very difficult to debug in latex because there is no explicit error message.

Stefan Kottwitz
Posts: 9557
Joined: Mon Mar 10, 2008 9:44 pm
Perhaps your editor is hiding error messages. When I run BibTeX on the console or using my editor TeXworks, it shows:

This is BibTeX, Version 0.99d (Web2C 2011)The top-level auxiliary file: thestest.auxThe style file: apa.bstDatabase file #1: mybib.bibI was expecting a ,' or a }'---line 11 of file mybib.bib  : year=1999  :          .I'm skipping whatever remains of this entry(There was 1 error message)

It said, that a comma was expected at this point. Like here, error messages are often detailed. Just the editor should support it. Also, users can look into the log file (.log, .blg) to see all errors, warnings, and much more information.

Stefan