2016-12-31 08:28:51 +00:00
|
|
|
# \DeclareLyXCiteEngine[natbib.sty]{Natbib (BibTeX)}
|
2012-03-01 00:41:30 +00:00
|
|
|
# DescriptionBegin
|
2016-12-31 08:28:51 +00:00
|
|
|
# Natbib supports a range of both author-year and numerical styles mainly
|
|
|
|
# aimed at the Humanities. It features automatic sorting and merging of
|
|
|
|
# numerical citations, annotations, capitalization of the `van' part of
|
|
|
|
# author names, shortened and full author lists, and more.
|
2012-03-01 00:41:30 +00:00
|
|
|
# DescriptionEnd
|
2016-12-31 18:44:32 +00:00
|
|
|
# Excludes: basic | jurabib | biblatex
|
2012-03-01 00:41:30 +00:00
|
|
|
|
|
|
|
# Author: Julien Rioux <jrioux@lyx.org>
|
|
|
|
|
2016-10-22 07:25:01 +00:00
|
|
|
Format 62
|
2012-03-01 00:41:30 +00:00
|
|
|
|
|
|
|
Requires natbib
|
|
|
|
|
2016-12-31 18:44:32 +00:00
|
|
|
CiteFramework bibtex
|
2012-03-01 00:41:30 +00:00
|
|
|
CiteEngineType authoryear|numerical
|
2016-12-31 13:57:09 +00:00
|
|
|
DefaultBiblio authoryear:plainnat|numerical:plainnat
|
2012-03-01 00:41:30 +00:00
|
|
|
|
|
|
|
CiteEngine authoryear
|
|
|
|
Citet*[][]
|
|
|
|
Citep*[][]
|
|
|
|
Citealt*[][]
|
|
|
|
Citealp*[][]
|
|
|
|
Citeauthor*[]
|
|
|
|
citeyear[]
|
|
|
|
citeyearpar[][]
|
|
|
|
nocite
|
|
|
|
End
|
|
|
|
|
|
|
|
CiteEngine numerical
|
|
|
|
Citep*[][]
|
|
|
|
Citealp*[][]
|
|
|
|
Citet*[][]
|
|
|
|
Citealt*[][]
|
|
|
|
Citeauthor*
|
|
|
|
citeyearpar[][]
|
|
|
|
citeyear
|
|
|
|
nocite
|
|
|
|
End
|
|
|
|
|
|
|
|
CiteFormat default
|
|
|
|
# translatable bits
|
|
|
|
_notcited not cited
|
|
|
|
_addtobib Add to bibliography only.
|
|
|
|
|
|
|
|
# macros
|
2013-03-27 19:46:32 +00:00
|
|
|
!startlink {!<a href='#LyXCite-%clean:key%'>!}
|
2013-01-10 14:24:53 +00:00
|
|
|
!endlink {!</a>!}
|
|
|
|
|
|
|
|
!nextauthor {%next%[[%!sep% %!startlink%%!abbrvauthor%%!endlink%%!nextauthor%]]}
|
2012-03-01 00:41:30 +00:00
|
|
|
!nextkey {%next%[[%!sep% %key%%!nextkey%]]}
|
2013-01-10 14:24:53 +00:00
|
|
|
!nextyear {%next%[[%!sep% %!startlink%%!year%%!endlink%%!nextyear%]]}
|
2012-03-01 00:41:30 +00:00
|
|
|
|
|
|
|
!abbrvauthor {%abbrvauthor%[[%abbrvauthor%]][[??]]}
|
|
|
|
!textbefore {%textbefore%[[%textbefore% ]]}
|
|
|
|
!textafter {%textafter%[[, %textafter%]]}
|
2013-05-13 18:58:12 +00:00
|
|
|
!year {%year%[[%year%]][[??]]}{%modifier%[[%modifier%]]}
|
2012-03-01 00:41:30 +00:00
|
|
|
|
|
|
|
# cite styles
|
|
|
|
citet %!citet%%!textafter%%!close%
|
|
|
|
citealt %!citealt%%!textafter%
|
2013-01-10 14:24:53 +00:00
|
|
|
citeyearpar %!open%%!textbefore%%!startlink%%!year%%!endlink%%!nextyear%%!textafter%%!close%
|
2012-03-01 00:41:30 +00:00
|
|
|
nocite {%dialog%[[%_addtobib%]][[%key%%!nextkey% (%_notcited%)]]}
|
|
|
|
End
|
|
|
|
|
|
|
|
CiteFormat authoryear
|
2013-05-13 18:29:49 +00:00
|
|
|
!open (
|
|
|
|
!sep ;
|
|
|
|
!close )
|
|
|
|
|
2013-01-10 14:24:53 +00:00
|
|
|
!citet %!startlink%%!abbrvauthor%%!endlink% %!open%%!textbefore%%!year%%!nextcitet%
|
|
|
|
!citealt %!startlink%%!abbrvauthor% %!textbefore%%!year%%!endlink%%!nextcitealt%
|
|
|
|
!citealp %!startlink%%!abbrvauthor%, %!year%%!endlink%%!nextcitealp%
|
2012-03-01 00:41:30 +00:00
|
|
|
|
|
|
|
!nextcitet {%next%[[%!close%%!sep% %!citet%]]}
|
|
|
|
!nextcitealt {%next%[[%!sep% %!citealt%]]}
|
|
|
|
!nextcitealp {%next%[[%!sep% %!citealp%]]}
|
|
|
|
|
|
|
|
cite %!citet%%!textafter%%!close%
|
|
|
|
citep %!open%%!textbefore%%!citealp%%!textafter%%!close%
|
|
|
|
citealp %!textbefore%%!citealp%%!textafter%
|
2013-01-10 14:24:53 +00:00
|
|
|
citeauthor %!startlink%%!abbrvauthor%%!endlink%%!nextauthor%%!textafter%
|
|
|
|
citeyear %!startlink%%!year%%!endlink%%!nextyear%%!textafter%
|
2012-03-01 00:41:30 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
CiteFormat numerical
|
2013-05-13 18:29:49 +00:00
|
|
|
!open [
|
|
|
|
!sep ,
|
|
|
|
!close ]
|
|
|
|
|
2013-05-14 19:50:13 +00:00
|
|
|
!citet %!abbrvauthor% %!open%%!textbefore%{%dialog%[[#ID]][[%!startlink%{%numericallabel%[[%numericallabel%]][[#%key%]]}%!endlink%]]}%!nextcitet%
|
|
|
|
!citealt %!abbrvauthor% %!textbefore%{%dialog%[[#ID]][[%!startlink%{%numericallabel%[[%numericallabel%]][[#%key%]]}%!endlink%]]}%!nextcitealt%
|
2012-03-01 00:41:30 +00:00
|
|
|
|
2013-05-14 19:50:13 +00:00
|
|
|
!hashkey {%dialog%[[#ID]][[%!startlink%{%numericallabel%[[%numericallabel%]][[#%key%]]}%!endlink%%!nexthashkey%]]}
|
2012-03-01 00:41:30 +00:00
|
|
|
|
|
|
|
!nextcitet {%next%[[%!close%%!sep% %!citet%]]}
|
|
|
|
!nextcitealt {%next%[[%!sep% %!citealt%]]}
|
|
|
|
!nexthashid {%next%[[%!sep% #ID%!nexthashid%]]}
|
2013-05-14 19:50:13 +00:00
|
|
|
!nexthashkey {%next%[[%!sep% %!startlink%{%numericallabel%[[%numericallabel%]][[#%key%]]}%!endlink%%!nexthashkey%]]}
|
2012-03-01 00:41:30 +00:00
|
|
|
|
|
|
|
cite %!open%%!textbefore%%!hashkey%%!textafter%%!close%
|
|
|
|
citep %!open%%!textbefore%%!hashkey%%!textafter%%!close%
|
|
|
|
citealp %!textbefore%%!hashkey%%!textafter%
|
2013-01-10 14:24:53 +00:00
|
|
|
citeauthor %!startlink%%!abbrvauthor%%!endlink%%!nextauthor%
|
|
|
|
citeyear %!startlink%%!year%%!endlink%%!nextyear%
|
2012-03-01 00:41:30 +00:00
|
|
|
End
|