Wolfgang Engelmann wrote:
> I am awful sorry, I sent the wrong file. Wolfgang
By default, natbib does not provide a citation command with author-year in
parathesis and no comma between author and year.
An workaround is to use the citation command with comma and pass the following
to the preamble:
\setcitestyle{aysep={}}
This will remove the comma between author and year globally in the output.
If you want the comma to be omitted in the LyX view as well, paste the
following to Document > Local Format, hit "Validate" and "OK" (you might need
to restart to see the effect):
CiteFormat authoryear
!open (
!sep ;
!close )
!citet %!startlink%%!abbrvauthor%%!endlink%
%!open%%!textbefore%%!year%%!nextcitet%
!citealt %!startlink%%!abbrvauthor%
%!textbefore%%!year%%!endlink%%!nextcitealt%
!citealp %!startlink%%!abbrvauthor% %!year%%!endlink%%!nextcitealp%
!nextcitet {%next%[[%!close%%!sep% %!citet%]]}
!nextcitealt {%next%[[%!sep% %!citealt%]]}
!nextcitealp {%next%[[%!sep% %!citealp%]]}
cite %!citet%%!textafter%%!close%
citep %!open%%!textbefore%%!citealp%%!textafter%%!close%
citealp %!textbefore%%!citealp%%!textafter%
citeauthor %!startlink%%!abbrvauthor%%!endlink%%!nextauthor%%!textafter%
citeyear %!startlink%%!year%%!endlink%%!nextyear%%!textafter%
End
HTH,
Jürgen