Discussion:
citation style
Wolfgang Engelmann
2014-10-04 06:01:14 UTC
Permalink
Hello,

a nice feature of recent lyx versions is that one can choose the type of
citation by right-clicking on the citation. What I am missing here is,
however, this type:
authors et al. 2010 (no comma!)
there is only
authors et al., 2010
The first one is demanded by a Springer Publ style.
Is this difficult to include in a later version of lyx and how can I
achieve it at the time being (ERT?)

Wolfgang
Jürgen Spitzmüller
2014-10-04 08:10:47 UTC
Permalink
Post by Wolfgang Engelmann
Hello,
a nice feature of recent lyx versions is that one can choose the type of
citation by right-clicking on the citation. What I am missing here is,
authors et al. 2010 (no comma!)
there is only
authors et al., 2010
Works here. Pleae post a minimal example file.

Jürgen
Wolfgang Engelmann
2014-10-04 08:36:49 UTC
Permalink
Post by Jürgen Spitzmüller
Post by Wolfgang Engelmann
Hello,
a nice feature of recent lyx versions is that one can choose the type of
citation by right-clicking on the citation. What I am missing here is,
authors et al. 2010 (no comma!)
there is only
authors et al., 2010
Works here. Pleae post a minimal example file.
Jürgen
Here are the examples. I forgot in my mail, that the references are in
parenthesis, without it works.
Wolfgang
Jürgen Spitzmüller
2014-10-04 08:47:05 UTC
Permalink
Post by Wolfgang Engelmann
Here are the examples.
Please send a _minimal_ example file. This one has over 60 pages, and I would
need to delete a dozens of unavailable graphics first.
http://wiki.lyx.org/FAQ/MinimalExample

Jürgen
Wolfgang Engelmann
2014-10-04 09:08:23 UTC
Permalink
I am awful sorry, I sent the wrong file. Wolfgang
Post by Jürgen Spitzmüller
Post by Wolfgang Engelmann
Here are the examples.
Please send a _minimal_ example file. This one has over 60 pages, and I would
need to delete a dozens of unavailable graphics first.
http://wiki.lyx.org/FAQ/MinimalExample
Jürgen
Wolfgang Engelmann
2014-10-04 09:25:54 UTC
Permalink
This was indeed something which should not happen: to send the original
file from which
I had prepared the short one. It should at least not have gone to the list!
There is no excuse, but the publisher wants the proof reading done in
such a short time,
that I was too nervous (and too old, by the way).
Must donate to the LyX people...

Wolfgang, full of shame
Post by Wolfgang Engelmann
I am awful sorry, I sent the wrong file. Wolfgang
Post by Jürgen Spitzmüller
Post by Wolfgang Engelmann
Here are the examples.
Please send a _minimal_ example file. This one has over 60 pages, and I would
need to delete a dozens of unavailable graphics first.
http://wiki.lyx.org/FAQ/MinimalExample
Jürgen
Jürgen Spitzmüller
2014-10-04 09:34:38 UTC
Permalink
Post by Wolfgang Engelmann
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
Wolfgang Engelmann
2014-10-04 09:51:34 UTC
Permalink
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
Post by Jürgen Spitzmüller
Post by Wolfgang Engelmann
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
\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
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
Loading...