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.
48 !startlink {!<a href='#LyXCite-%clean:key%'>!}
51 !nextauthor {%next%[[%!sep% %!startlink%%!abbrvauthor%%!endlink%%!nextauthor%]]}
52 !nextkey {%next%[[%!sep% %key%%!nextkey%]]}
53 !nextyear {%next%[[%!sep% %!startlink%%!year%%!endlink%%!nextyear%]]}
55 !abbrvauthor {%abbrvauthor%[[%abbrvauthor%]][[??]]}
56 !textbefore {%textbefore%[[%textbefore% ]]}
57 !textafter {%textafter%[[, %textafter%]]}
58 !year {%year%[[%year%]][[??]]}{%modifier%[[%modifier%]]}
61 citet %!citet%%!textafter%%!close%
62 citealt %!citealt%%!textafter%
63 citeyearpar %!open%%!textbefore%%!startlink%%!year%%!endlink%%!nextyear%%!textafter%%!close%
64 nocite {%dialog%[[%_addtobib%]][[%key%%!nextkey% (%_notcited%)]]}
72 !citet %!startlink%%!abbrvauthor%%!endlink% %!open%%!textbefore%%!year%%!nextcitet%
73 !citealt %!startlink%%!abbrvauthor% %!textbefore%%!year%%!endlink%%!nextcitealt%
74 !citealp %!startlink%%!abbrvauthor%, %!year%%!endlink%%!nextcitealp%
76 !nextcitet {%next%[[%!close%%!sep% %!citet%]]}
77 !nextcitealt {%next%[[%!sep% %!citealt%]]}
78 !nextcitealp {%next%[[%!sep% %!citealp%]]}
80 cite %!citet%%!textafter%%!close%
81 citep %!open%%!textbefore%%!citealp%%!textafter%%!close%
82 citealp %!textbefore%%!citealp%%!textafter%
83 citeauthor %!startlink%%!abbrvauthor%%!endlink%%!nextauthor%%!textafter%
84 citeyear %!startlink%%!year%%!endlink%%!nextyear%%!textafter%
92 !citet %!abbrvauthor% %!open%%!textbefore%{%dialog%[[#ID]][[%!startlink%{%numericallabel%[[%numericallabel%]][[#%key%]]}%!endlink%]]}%!nextcitet%
93 !citealt %!abbrvauthor% %!textbefore%{%dialog%[[#ID]][[%!startlink%{%numericallabel%[[%numericallabel%]][[#%key%]]}%!endlink%]]}%!nextcitealt%
95 !hashkey {%dialog%[[#ID]][[%!startlink%{%numericallabel%[[%numericallabel%]][[#%key%]]}%!endlink%%!nexthashkey%]]}
97 !nextcitet {%next%[[%!close%%!sep% %!citet%]]}
98 !nextcitealt {%next%[[%!sep% %!citealt%]]}
99 !nexthashid {%next%[[%!sep% #ID%!nexthashid%]]}
100 !nexthashkey {%next%[[%!sep% %!startlink%{%numericallabel%[[%numericallabel%]][[#%key%]]}%!endlink%%!nexthashkey%]]}
102 cite %!open%%!textbefore%%!hashkey%%!textafter%%!close%
103 citep %!open%%!textbefore%%!hashkey%%!textafter%%!close%
104 citealp %!textbefore%%!hashkey%%!textafter%
105 citeauthor %!startlink%%!abbrvauthor%%!endlink%%!nextauthor%
106 citeyear %!startlink%%!year%%!endlink%%!nextyear%