LaTeX forum ⇒ BibTeX, biblatex and biberone 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

Postby deathlypest » Sun Feb 03, 2013 12:24 pm

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 Infominimal 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
  1. % Template file for a standard thesis
  2. \documentclass[12pt]{thesis}
  3. \usepackage{natbib}
  4.  
  5. \begin{document}
  6.  
  7. reference
  8.  
  9. \bibliographystyle{apa}
  10. \bibliography{mybib}
  11. \nocite{*}
  12. \cite{HK}
  13.  
  14. \end{document}


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


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:

User avatar
Stefan Kottwitz
Site Admin
Posts: 9445
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Sun Feb 03, 2013 12:53 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
Site admin

deathlypest
Posts: 12
Joined: Fri Feb 01, 2013 11:39 pm

Postby deathlypest » Sun Feb 03, 2013 1:16 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.

User avatar
Stefan Kottwitz
Site Admin
Posts: 9445
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Sun Feb 03, 2013 1:55 pm

Perhaps your editor is hiding error messages. When I run BibTeX on the console or using my editor TeXworks, it shows:

  1. This is BibTeX, Version 0.99d (Web2C 2011)
  2. The top-level auxiliary file: thestest.aux
  3. The style file: apa.bst
  4. Database file #1: mybib.bib
  5. I was expecting a `,' or a `}'---line 11 of file mybib.bib
  6. : year=1999
  7. : .
  8. I'm skipping whatever remains of this entry
  9. (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
Site admin


Return to “BibTeX, biblatex and biber”

Who is online

Users browsing this forum: No registered users and 4 guests