Yep, that was the problem. I assumed that upgrading to LyX 1.1.6fix2 would
either fix this problem in a backwards compatible way OR automatically all
multi-citation references to remove the problematic space. In case anyone
else comes across this, here's the Perl script I wrote to remove the spaces:
----------------------------------
#!/usr/bin/perl
while (<>) {
    chop;
    if ($_ =~ /\\begin_inset LatexCommand \\cite{(.*)}/) {
        $cites = $1;
        $cites =~ s/ file://gi;
        print "\\begin_inset LatexCommand \\cite{$cites}\n";
    } else {
        print $_ . "\n";
    }
}
----------------------------------

Thanks everyone for your help!

Ramon

----- Original Message -----
From: "Dekel Tsur" <[EMAIL PROTECTED]>
To: "Ramon Felciano" <[EMAIL PROTECTED]>; "LyX users"
<[EMAIL PROTECTED]>
Sent: Wednesday, May 30, 2001 9:50 AM
Subject: Re: Bibliographic references spilling over into margins


> On Wed, May 30, 2001 at 12:54:48PM +0200, Herbert Voss wrote:
> > On Wed, 30 May 2001, Ramon Felciano wrote:
> > > > Put \usepackage{apalike} in the preamble.
> > > >
> > > I tried this but am now getting citation errors:
> > >
> > > -------------------------------
> > > White space in argument---line 326 of file final-draft-v09.aux
> > >  : \citation{Cardelli1991Operations,
> > >  :
Bracha1992Modularity}
> > > I'm skpping whatever remains of this command
> > > -------------------------------
> >
> > i suppose that you have something like
> > \cite{me, you}
> > with a space after comma. try to delete it.
>
> Yes.
> This happens if you created the citation with lyx 1.1.6/1.1.6fix1.
> Citations created with 1.1.6fix2 will be OK.
> To fix old citations, open the .lyx file with some text editor, and remove
the
> spaces.

Reply via email to