On Thu, Mar 29, 2001 at 12:12:08PM +0300, Tuukka Toivonen wrote:
> I wrote an article where I used pointers to references using the "Insert
> citation..." dialog. Works fine for normal articles. Then I thought that
> the IEEEtran article style is nice and switched to it. Magically almost
> with no effort the document looks much nicer now. However, there's a
> problem with the citations.
>
> When I have many citations, they are shown as following in the article
> document class:
> [4,5,6]
> With the IEEEtran they show up as
> [4], [?], [?]
> first, the numbers are not together inside the square brackets which I'd
> like to use. And much more worse, only the first reference is shown well,
> all the rest show up as question marks. Is there any way to fix this
> except to insert all references one by one?
This is a bug in lyx-1.1.6 which will be fixed in 1.1.6fix2.
The problem is that lyx inserts spaces between the keys in the \cite command.
You can edit the .lyx file with a text editor and remove these spaces
(i.e. \cite{foo, bar} -> \cite{foo,bar}).
However, when using the IEEEtran style, multiple citations appear as
[4], [5], [6]. If you want the normal behavior, either edit the
IEEEtran.cls file or redefine the \cite command in the preamble.
You can do the latter by adding \usepackage{cite} in the preamble
(note that instead of [4,5,6] you will get [4-6]).
Also, if you redefine the \cite command you will not need to remove the
spaces in the .lyx file.