Re: bibliography question
- From: Enrico Gregorio <gregorio@xxxxxxxxxxxxx>
- Date: Mon, 10 Oct 2005 17:34:20 +0200
Huub wrote:
> Hi,
>
> Reading the latex-lshort.pdf I can find a lot of info, but this doesn't
> get clear to me: if I use \cite{} in the text and bibitem{} in the
> bibliography, can I use e.g. \cite{P1} and bibitem{P1} or does this only
> work using [P1] and bibitem[P1]{}? Now I'm getting a lot of 'missing
> \item' messages when compiling the document.
You have the choice of using either \bibitem[x]{y} or \bibitem{y};
in both cases you refer to the bibliography item with \cite{y}.
The optional argument is the label that will appear for the citation;
if you don't use it, then the label will be the order number of
the item.
With \bibitem[P1]{} you won't be able to refer to the item in the text.
For example, with
=====
\begin{thebibliography}{P1}
\bibitem[P1]{} aaa
\bibitem[P2]{} bbb
\end{thebibliography}
=====
every \cite{} will be expanded like []. Instead you can use
=====
\begin{thebibliography}{P1}
\bibitem[P1]{P1} aaa
\bibitem[P2]{P2} bbb
\end{thebibliography}
=====
and a \cite{P2} would be expanded as [P2]. But the two arguments
are independent of each other, so you can use as "y" a more informative
label.
Thus an example such as
=====
.... \cite{author-1998} ... \cite{author-2005} ...
....
\begin{thebibliography}{P1}
\bibitem[P1]{author-1998} aaa
\bibitem[P2]{author-2005} bbb
\end{thebibliography}
=====
will result in something like
=====
.... [P1] ... [P2] ...
....
References
[P1] aaa
[P2] bbb
=====
The "missing \item" message is usually produced when you forget
the argument to \begin{thebibliography} which is compulsory anyway
and should be a string as wide as the largest label in the items.
Ciao
Enrico
.
- Follow-Ups:
- Re: bibliography question
- From: Huub
- Re: bibliography question
- References:
- bibliography question
- From: Huub
- bibliography question
- Prev by Date: bibliography question
- Next by Date: Re: long division symbol
- Previous by thread: bibliography question
- Next by thread: Re: bibliography question
- Index(es):
Relevant Pages
|