]> git.lyx.org Git - lyx.git/commitdiff
Natbib authoryear uses (Ref1; Ref2) by default.
authorJulien Rioux <jrioux@lyx.org>
Mon, 13 May 2013 18:29:49 +0000 (20:29 +0200)
committerJulien Rioux <jrioux@lyx.org>
Mon, 13 May 2013 18:29:49 +0000 (20:29 +0200)
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.

lib/layouts/natbib.module

index ba028c012d291ca858001ede8a292e751bdc99e3..b9195e58e5defce47aa5eac52bcfa4155205fa2c 100644 (file)
@@ -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%