1 # \DeclareLyXModule[natbib.sty]{Natbib}
3 # Loads the LaTeX package natbib, a citation engine. Natbib supports
4 # both author-year and numerical styles for citations, automatic sorting
5 # and merging of numerical citations, annotations, capitalization of the
6 # `van' part of author names, shortened and full author lists, and more.
8 # Excludes: basic | jurabib
9 # Category: Citation engine
11 # Author: Julien Rioux <jrioux@lyx.org>
17 CiteEngineType authoryear|numerical
18 DefaultBiblio plainnat
45 _addtobib Add to bibliography only.
52 !nextauthor {%next%[[%!sep% %!abbrvauthor%%!nextauthor%]]}
53 !nextkey {%next%[[%!sep% %key%%!nextkey%]]}
54 !nextyear {%next%[[%!sep% %!year%%!nextyear%]]}
56 !abbrvauthor {%abbrvauthor%[[%abbrvauthor%]][[??]]}
57 !textbefore {%textbefore%[[%textbefore% ]]}
58 !textafter {%textafter%[[, %textafter%]]}
59 !year {%year%[[%year%]][[??]]}
62 citet %!citet%%!textafter%%!close%
63 citealt %!citealt%%!textafter%
64 citeyearpar %!open%%!textbefore%%!year%%!nextyear%%!textafter%%!close%
65 nocite {%dialog%[[%_addtobib%]][[%key%%!nextkey% (%_notcited%)]]}
69 !citet %!abbrvauthor% %!open%%!textbefore%%!year%%!nextcitet%
70 !citealt %!abbrvauthor% %!textbefore%%!year%%!nextcitealt%
71 !citealp %!abbrvauthor%, %!year%%!nextcitealp%
73 !nextcitet {%next%[[%!close%%!sep% %!citet%]]}
74 !nextcitealt {%next%[[%!sep% %!citealt%]]}
75 !nextcitealp {%next%[[%!sep% %!citealp%]]}
77 cite %!citet%%!textafter%%!close%
78 citep %!open%%!textbefore%%!citealp%%!textafter%%!close%
79 citealp %!textbefore%%!citealp%%!textafter%
80 citeauthor %!abbrvauthor%%!nextauthor%%!textafter%
81 citeyear %!year%%!nextyear%%!textafter%
85 !citet %!abbrvauthor% %!open%%!textbefore%{%dialog%[[#ID]][[#%key%]]}%!nextcitet%
86 !citealt %!abbrvauthor% %!textbefore%{%dialog%[[#ID]][[#%key%]]}%!nextcitealt%
88 !hashkey {%dialog%[[#ID]][[#%key%%!nexthashkey%]]}
90 !nextcitet {%next%[[%!close%%!sep% %!citet%]]}
91 !nextcitealt {%next%[[%!sep% %!citealt%]]}
92 !nexthashid {%next%[[%!sep% #ID%!nexthashid%]]}
93 !nexthashkey {%next%[[%!sep% #%key%%!nexthashkey%]]}
95 cite %!open%%!textbefore%%!hashkey%%!textafter%%!close%
96 citep %!open%%!textbefore%%!hashkey%%!textafter%%!close%
97 citealp %!textbefore%%!hashkey%%!textafter%
98 citeauthor %!abbrvauthor%%!nextauthor%
99 citeyear %!year%%!nextyear%