When you write a scientific/engineering article including a thesis, you probably have to do:
make command. The following is a sample Makefile :SRC=thesis REPORT=$(SRC).pdf all: $(REPORT) $(REPORT): $(SRC).tex pdflatex $(SRC).tex && bibtex $(SRC) && pdflatex $(SRC).tex && pdflatex $(SRC).tex && wc -w *.tex */*.tex clean: rm -f *~ *.dvi $(SRC).ps $(SRC).pdf |