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 !startlink {!<a href='#LyXCite-%key%'>!}
55 !nextauthor {%next%[[%!sep% %!startlink%%!abbrvauthor%%!endlink%%!nextauthor%]]}
56 !nextkey {%next%[[%!sep% %key%%!nextkey%]]}
57 !nextyear {%next%[[%!sep% %!startlink%%!year%%!endlink%%!nextyear%]]}
59 !abbrvauthor {%abbrvauthor%[[%abbrvauthor%]][[??]]}
60 !textbefore {%textbefore%[[%textbefore% ]]}
61 !textafter {%textafter%[[, %textafter%]]}
62 !year {%year%[[%year%]][[??]]}
65 citet %!citet%%!textafter%%!close%
66 citealt %!citealt%%!textafter%
67 citeyearpar %!open%%!textbefore%%!startlink%%!year%%!endlink%%!nextyear%%!textafter%%!close%
68 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%
88 !citet %!abbrvauthor% %!open%%!textbefore%{%dialog%[[#ID]][[%!startlink%#%key%%!endlink%]]}%!nextcitet%
89 !citealt %!abbrvauthor% %!textbefore%{%dialog%[[#ID]][[%!startlink%#%key%%!endlink%]]}%!nextcitealt%
91 !hashkey {%dialog%[[#ID]][[%!startlink%#%key%%!endlink%%!nexthashkey%]]}
93 !nextcitet {%next%[[%!close%%!sep% %!citet%]]}
94 !nextcitealt {%next%[[%!sep% %!citealt%]]}
95 !nexthashid {%next%[[%!sep% #ID%!nexthashid%]]}
96 !nexthashkey {%next%[[%!sep% %!startlink%#%key%%!endlink%%!nexthashkey%]]}
98 cite %!open%%!textbefore%%!hashkey%%!textafter%%!close%
99 citep %!open%%!textbefore%%!hashkey%%!textafter%%!close%
100 citealp %!textbefore%%!hashkey%%!textafter%
101 citeauthor %!startlink%%!abbrvauthor%%!endlink%%!nextauthor%
102 citeyear %!startlink%%!year%%!endlink%%!nextyear%