BibTeX, biblatex and biberone newbie problem about bibtex coping with latex

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

one newbie problem about bibtex coping with latex

Post by deathlypest »

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

Code: Select all

% 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

Code: Select all

@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.

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

one newbie problem about bibtex coping with latex

Post by Stefan Kottwitz »

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
LaTeX.org admin
deathlypest
Posts: 12
Joined: Fri Feb 01, 2013 11:39 pm

one newbie problem about bibtex coping with latex

Post by deathlypest »

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: 10335
Joined: Mon Mar 10, 2008 9:44 pm

one newbie problem about bibtex coping with latex

Post by Stefan Kottwitz »

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

Code: Select all

This is BibTeX, Version 0.99d (Web2C 2011)
The top-level auxiliary file: thestest.aux
The style file: apa.bst
Database file #1: mybib.bib
I 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
LaTeX.org admin
Post Reply