Thanks, Jürgen,
for the workaround. Since this will remove the commata between author and year globally, I decided to leave is to the Publisher. I am not willing to wreck my nerves and spill my time
for the shareholders.
But I appreciated your help very much,
Yours
Wolfgang


Am 04.10.2014 um 11:34 schrieb Jürgen Spitzmüller:
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


Reply via email to