## 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

### one newbie problem about bibtex coping with latex

Thank you for your help in advance. I'am really confused by this problem in my urgent assignment.

my easy code looks like following:

% Template file for a standard thesis% Template file for a standard thesis\documentclass[12pt]{thesis}\usepackage{natbib} \begin{document} bla..bla..... \bibliographystyle{apa}\bibliography{mybib} \end{document}

it causes an error
! Undefined control sequence.<argument> \undefinedpagestyle  l.1 \begin{thebibliography}{} ?

mybib.bib :
@mastersthesis{struss,      AUTHOR = "Joseph A. Struss",      TITLE = "An investigation of the sequence of utilizing a simulation in an introductory programming course",      SCHOOL = "Iowa State University",      YEAR = 1996}

if I commented these two guys
\bibliographystyle{apa}\bibliography{mybib}

it will run just fine.

I have a file called apa.bst under the same directory with my .tex file and also mybib.bib.
Attachments
isuthesis.cls
Last edited by Stefan Kottwitz on Sat Feb 02, 2013 11:23 pm, edited 5 times in total.
Reason: inline code changed to code block

Tags:

Stefan Kottwitz
Posts: 9504
Joined: Mon Mar 10, 2008 9:44 pm
Hi,

welcome to the board!

There are different thesis classes. Which one do you use? Perhaps post it as attachment to a forum post, or provide a link where it can be downloaded.

Stefan

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

welcome to the board!

There are different thesis classes. Which one do you use? Perhaps post it as attachment to a forum post, or provide a link where it can be downloaded.

Stefan

hi,thank you for your answer.Should there be a file to support class thesis? Is that not built in. I've changed it into report or article somehow. But still the same problem.

Stefan Kottwitz
Posts: 9504
Joined: Mon Mar 10, 2008 9:44 pm
deathlypest wrote:Should there be a file to support class thesis? Is that not built in.

The file would be called thesis.cls. There is no built-in standard class thesis. Several people had the idea to develop one, and chose that name. So nobody can test your code without to know which class you use.

deathlypest wrote:But still the same problem.

Are you sure you chose the lines, which are responsible, for the code snippet above? If not, post a complete small code example, such as a reduced copy of your code, not just some lines, which nobody can test.

Once we can verify a problem, we usually can solve it.

Stefan

deathlypest
Posts: 12
Joined: Fri Feb 01, 2013 11:39 pm
Stefan_K wrote:
deathlypest wrote:Should there be a file to support class thesis? Is that not built in.

The file would be called thesis.cls. There is no built-in standard class thesis. Several people had the idea to develop one, and chose that name. So nobody can test your code without to know which class you use.

deathlypest wrote:But still the same problem.

Are you sure you chose the lines, which are responsible, for the code snippet above? If not, post a complete small code example, such as a reduced copy of your code, not just some lines, which nobody can test.

Once we can verify a problem, we usually can solve it.

Stefan

Thanks for your elaborate explaination.I have uploaded the necessary .cls file and also tested my provided codes which should have sketched exact problem of mine.

Stefan Kottwitz
Posts: 9504
Joined: Mon Mar 10, 2008 9:44 pm
It's not yet sufficient to test the problem. We don't have the isutraditional package (well, we could search on the Internet), but more important: you uploaded isuthesis.cls but your document uses thesis.cls, as I can see in the example code. And when I tested it (with a downloaded isutraditional.sty) it worked without errors.

So still not possible to verify the error. However, try this, in your preamble, it might help, as it defines page styles which are commonly used:

\usepackage{fancyhdr}

Stefan

deathlypest
Posts: 12
Joined: Fri Feb 01, 2013 11:39 pm
Stefan_K wrote:It's not yet sufficient to test the problem. We don't have the isutraditional package (well, we could search on the Internet), but more important: you uploaded isuthesis.cls but your document uses thesis.cls, as I can see in the example code. And when I tested it (with a downloaded isutraditional.sty) it worked without errors.

So still not possible to verify the error. However, try this, in your preamble, it might help, as it defines page styles which are commonly used:

\usepackage{fancyhdr}

Stefan

I have shrinked the codes getting rid of useless packages.
Really the error is gone , it's weird.
But the contents in mybib.bib aren't represented in main text.Can you tell me what's wrong with my connection. Really appreciate your time and patience!!

Stefan Kottwitz
Posts: 9504
Joined: Mon Mar 10, 2008 9:44 pm
deathlypest wrote:I have shrinked the codes getting rid of useless packages.
Really the error is gone , it's weird.

So the error was caused by a code line or a package which has been removed. Good that it's gone, but if you would like to locate the cause, repeat and remove step by step, test each step, so you would get it isolated.

deathlypest wrote:But the contents in mybib.bib aren't represented in main text.

You need to run BibTeX, either via your editor or bibtex documentname at the command prompt. Citations in the text are required to have the references in the bibliography. Having all can be forced by \nocite{*}.

Stefan

deathlypest
Posts: 12
Joined: Fri Feb 01, 2013 11:39 pm
Stefan_K wrote:
deathlypest wrote:I have shrinked the codes getting rid of useless packages.
Really the error is gone , it's weird.

So the error was caused by a code line or a package which has been removed. Good that it's gone, but if you would like to locate the cause, repeat and remove step by step, test each step, so you would get it isolated.

deathlypest wrote:But the contents in mybib.bib aren't represented in main text.

You need to run BibTeX, either via your editor or bibtex documentname at the command prompt. Citations in the text are required to have the references in the bibliography. Having all can be forced by \nocite{*}.

Stefan

yeah thanks again
I have found something about that three steps compilation on website and tried it.

Additional I have added \nocite{*} as you mentioned and also one \cite{key} which represents as a question mark at last.

I have no idea to progress.Do you need more informations.I don't know what I can provide here. Latex is just such hard work.

Stefan Kottwitz