On Thursday 16 March 2006 11:38, Nagy Gabor wrote:
> Hi, I use LyX 1.3.6 (from Debian etch).
>
> I export my file in latex, and then I do this:
>
> $ latex thesis-komascript.tex
>
> Is this correct, or shall I use another command line?
>
> I get some warnings:
> TeX Warning: Citation `key-3' on page 4 undefined on input line 148.
>
> I don't understand this. I have in line 148 a \cite{key-3}, but I think I
> have a key for it. I have this:
>
> \begin{thebibliography}{10}
> \bibitem{key-3}http://asn1.elibel.tm.fr/en/standards/index.htm
>
> I have the same with other citations, and similar with cross-references.
>
> I have skimmed the generated dvi, and it seems that the references are
> generated OK.
>
> Can I just ignore these warnings, or is there anything I could do to have
> them go away?
>
> Cheers,
> Gabor

From the warnings you get, there's no error in your .tex file.  What's 
happening here is that the first time you process your source, latex creates 
a number of additional files, depending on the resources you're using.  
Normally, it creates at least a thesis-komascript.aux and a 
thesis-komascript.log.  The second (thesis-komascript.log) is the log file; 
it contains all warning and error messages  you might get during processing.  
It's the first (thesis-komascript.aux) that you'll want.  It contains all 
references to labels you created in your source together with the information 
you'll want to associate with the label, like equation number, section 
number, page number, etc.

Therefore, you'll have to run latex on your file (thesis-komascript.tex) at 
least once more so that it can associate the label reference with the desired 
number.  If you are also bibtex'ing, then you'll have to run latex, then 
bibtex, then latex again, sometimes twice, until it gets all references and 
citations correctly.

Happy latex'ing.  It reminds me of the good ole days when there was no such 
things as LyX, TeXmacs, scientific word to simplify our exciting task of 
writing a thesis...

-- 
Rudi Gaelzer
Department of Physics
Instituto of Physics and Mathematics
Federal University of Pelotas
Caixa Postal 354 - Campus UFPel
96010-900 Pelotas - RS
Phone: +55-53-3275-7416
FAX:   +55-53-3275-7343
Registered Linux User # 153741

Reply via email to