The branch, master, has been updated. - Log -----------------------------------------------------------------
commit 3d4076b598deb18660e50ec9c327efc3b15f15d0 Author: Julien Rioux <[email protected]> Date: Mon May 13 20:29:49 2013 +0200 Natbib authoryear uses (Ref1; Ref2) by default. I was confused when I checked this. It looks like plainnat.bst overwrites this default to use [Ref1, Ref2] style instead, but when using natbib's defaults you get the (Ref1; Ref2) style. diff --git a/lib/layouts/natbib.module b/lib/layouts/natbib.module index ba028c0..b9195e5 100644 --- a/lib/layouts/natbib.module +++ b/lib/layouts/natbib.module @@ -45,10 +45,6 @@ CiteFormat default _addtobib Add to bibliography only. # macros - !open [ - !sep , - !close ] - !startlink {!<a href='#LyXCite-%clean:key%'>!} !endlink {!</a>!} @@ -69,6 +65,10 @@ CiteFormat default End 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% @@ -85,6 +85,10 @@ CiteFormat authoryear End CiteFormat numerical + !open [ + !sep , + !close ] + !citet %!abbrvauthor% %!open%%!textbefore%{%dialog%[[#ID]][[%!startlink%#%key%%!endlink%]]}%!nextcitet% !citealt %!abbrvauthor% %!textbefore%{%dialog%[[#ID]][[%!startlink%#%key%%!endlink%]]}%!nextcitealt% ----------------------------------------------------------------------- Summary of changes: lib/layouts/natbib.module | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) hooks/post-receive -- The LyX Source Repository
