# numerical citations, annotations, capitalization of the `van' part of
# author names, shortened and full author lists, and more.
# DescriptionEnd
-# Excludes: basic | jurabib | biblatex
# Author: Julien Rioux <jrioux@lyx.org>
-Format 62
+Format 68
Requires natbib
# Default style files for either engine type
DefaultBiblio authoryear:plainnat|numerical:plainnat
+# Maximum number of names before "et al." chimes in
+MaxCiteNames 2
+
# The syntax of the cite command definitions below is:
# LyXName|alias*<!_stardesc!_stardesctooltip>[][]=latexcmd
#
# Note further:
#
+# * The LyXName "keyonly" has a special meaning: only the citation key,
+# without any latex command, is output.
# * Capitalization indicates that the command also has a capitalized
# form (\Latexcmd vs. \latexcmd). These usually enforce upcasing of
# name prefixes (von Goethe => Von Goethe).
citeyear[]
citeyearpar[][]
nocite
+ keyonly
End
CiteEngine numerical
citeyearpar[][]
citeyear
nocite
+ keyonly
End
# There are common definitions (default) and specific definitions for
# either cite engine type (which overwrite existing defaults.
#
+
+# Input standard format definitions for the bibliography
+Input stdciteformats.inc
+
CiteFormat default
#
# MACROS
#
- # 1. Translatable bits (need to be marked by _ prefix)
+ # 1. Translatable bits (need to be marked by _ prefix, if translated to the GUI language,
+ # or B_, if translated to the buffer language)
+ # Note that preceding and trailing spaces matter.
#
_notcited not cited
_addtobib Add to bibliography only.
+ _keyonly Key only.
+ _key Key
+ # The following are handled by BiblioInfo
+ B_etal et al.
+ B_namesep , [[separate author names in citation, except for last name]]
+ B_lastnamesep , and [[separate name of last author in citation]]
+ B_pairnamesep and [[separate two authors in citation]]
#
# 2. Macros re-used in the style definitions
!endlink {!</a>!}
# "Author et al." or "??"
- !abbrvauthor {%abbrvauthor%[[%abbrvauthor%]][[??]]}
+ !abbrvciteauthor {%abbrvciteauthor%[[%abbrvciteauthor%]][[??]]}
+ # "Author, ..." or "??"
+ !fullciteauthor {%fullciteauthor%[[%fullciteauthor%]][[??]]}
+ # Handle starred command: abbr. or full author list
+ !makeauthor {%ifstar%[[%!fullciteauthor%]][[%!abbrvciteauthor%]]}
# "prenote "
!textbefore {%textbefore%[[%textbefore% ]]}
# ", postnote"
# "...; Author..."
!nextauthor {%next%[[%!sep% %!startlink%%!abbrvauthor%%!endlink%%!nextauthor%]]}
+ # Handle starred command: abbr. or full author list
+ !makenextauthor {%next%[[%!sep% %!startlink%%!makeauthor%%!endlink%%!makenextauthor%]]}
# "..., CiteKey..."
!nextkey {%next%[[%!sep% %key%%!nextkey%]]}
# "..., Year..."
citeyearpar %!open%%!textbefore%%!startlink%%!year%%!endlink%%!nextyear%%!textafter%%!close%
# "Add to bibliography only." (dialog) / "[ID] (not cited)" (button)
nocite {%dialog%[[%_addtobib%]][[%key%%!nextkey% (%_notcited%)]]}
+ # Output only the key
+ keyonly {%dialog%[[%_keyonly%]][[%_key%: %key%%!nextkey%]]}
End
CiteFormat authoryear
!close )
# "Author et al. (cf. Year..."
- !makecitet %!startlink%%!abbrvauthor%%!endlink% %!open%%!textbefore%%!year%%!nextcitet%
+ !makecitet %!startlink%%!makeauthor%%!endlink% %!open%%!textbefore%%!year%%!nextcitet%
# "Author et al. cf. Year..." [sic!]
- !makecitealt %!startlink%%!abbrvauthor% %!textbefore%%!year%%!endlink%%!nextcitealt%
+ !makecitealt %!startlink%%!makeauthor% %!textbefore%%!year%%!endlink%%!nextcitealt%
# "Author et al., Year..."
- !makecitealp %!startlink%%!abbrvauthor%, %!year%%!endlink%%!nextcitealp%
+ !makecitealp %!startlink%%!makeauthor%, %!year%%!endlink%%!nextcitealp%
# "...); Nextauthor (Year..."
- !nextcitet {%next%[[%!close%%!sep% %!startlink%%!abbrvauthor%%!endlink% %!open%%!year%%!nextcitet%]]}
+ !nextcitet {%next%[[%!close%%!sep% %!startlink%%!makeauthor%%!endlink% %!open%%!year%%!nextcitet%]]}
# "...; NextAuthor et al. Year..."
!nextcitealt {%next%[[%!sep% %!makecitealt%]]}
# "...; NextAuthor et al., Year..."
# "Author cf. Year; NextAuthor Year, p. xx" [sic!]
citealt %!makecitealt%%!textafter%
# "Author; NextAuthor, p. xx"
- citeauthor %!startlink%%!abbrvauthor%%!endlink%%!nextauthor%%!textafter%
+ citeauthor %!startlink%%!makeauthor%%!endlink%%!makenextauthor%%!textafter%
# "Year; NextYear, p. xx"
citeyear %!startlink%%!year%%!endlink%%!nextyear%%!textafter%
!close ]
# "Author [cf. ID..."
- !makecitet %!abbrvauthor% %!open%%!textbefore%{%dialog%[[#ID]][[%!startlink%{%numericallabel%[[%numericallabel%]][[#%key%]]}%!endlink%]]}%!nextcitet%
+ !makecitet %!makeauthor% %!open%%!textbefore%{%dialog%[[#ID]][[%!startlink%{%numericallabel%[[%numericallabel%]][[#%key%]]}%!endlink%]]}%!nextcitet%
# "Author cf. ID..."
- !makecitealt %!abbrvauthor% %!textbefore%{%dialog%[[#ID]][[%!startlink%{%numericallabel%[[%numericallabel%]][[#%key%]]}%!endlink%]]}%!nextcitealt%
+ !makecitealt %!makeauthor% %!textbefore%{%dialog%[[#ID]][[%!startlink%{%numericallabel%[[%numericallabel%]][[#%key%]]}%!endlink%]]}%!nextcitealt%
# "ID..."
!hashkey {%dialog%[[#ID]][[%!startlink%{%numericallabel%[[%numericallabel%]][[#%key%]]}%!endlink%%!nexthashkey%]]}
# "...], NextAuthor [ID..."
- !nextcitet {%next%[[%!close%%!sep% %!abbrvauthor% %!open%%!textbefore%{%dialog%[[#ID]][[%!startlink%{%numericallabel%[[%numericallabel%]][[#%key%]]}%!endlink%]]}%!nextcitet%]]}
+ !nextcitet {%next%[[%!close%%!sep% %!makeauthor% %!open%%!textbefore%{%dialog%[[#ID]][[%!startlink%{%numericallabel%[[%numericallabel%]][[#%key%]]}%!endlink%]]}%!nextcitet%]]}
# "..., NextAuthor ID..."
- !nextcitealt {%next%[[%!sep% %!abbrvauthor% {%dialog%[[#ID]][[%!startlink%{%numericallabel%[[%numericallabel%]][[#%key%]]}%!endlink%]]}%!nextcitealt%]]}
+ !nextcitealt {%next%[[%!sep% %!makeauthor% {%dialog%[[#ID]][[%!startlink%{%numericallabel%[[%numericallabel%]][[#%key%]]}%!endlink%]]}%!nextcitealt%]]}
# FIXME: What is this?
!nexthashid {%next%[[%!sep% #ID%!nexthashid%]]}
# "..., NextID..."
# "Author cf. ID, NextAuthor ID, p. xx"
citealt %!makecitealt%%!textafter%
# "Author, NextAuthor"
- citeauthor %!startlink%%!abbrvauthor%%!endlink%%!nextauthor%
+ citeauthor %!startlink%%!makeauthor%%!endlink%%!makenextauthor%
# "Year, NextYear"
citeyear %!startlink%%!year%%!endlink%%!nextyear%