# Author: Julien Rioux <jrioux@lyx.org>
-Format 62
+Format 63
Requires jurabib
# Default style file
DefaultBiblio jurabib
+# Maximum number of names before "et al." chimes in
+MaxCiteNames 3
+
# The syntax of the cite command definitions below is:
# LyXName|alias*<!_stardesc!_stardesctooltip>[][]=latexcmd
# MACROS
#
# 1. Translatable bits (need to be marked by _ prefix)
+ # Note that preceding and trailing spaces matter.
#
_notcited not cited
_addtobib Add to bibliography only.
_bibentry Bibliography entry.
_before before
_shorttitle short title
+ # The following are handled by BiblioInfo
+ _etal et al.
+ _namesep /
+ _lastnamesep /
+ _pairnamesep /
#
# 2. Macros re-used in the style definitions
!open (
!sep ;
!close )
+ !obracket [
+ !cbracket ]
# A link that lets us jump to the bibliography entry in LyXHTML
# %clean:key% will be substituted by the cite key to give a unique id
!startlink {!<a href='#LyXCite-%clean:key%'>!}
!endlink {!</a>!}
- # "ShortAuthor" or "??"
- !shortauthor {%shortauthor%[[%shortauthor%]][[??]]}
- # "... ShortTitle" (button) / "... ShortTitle <short title>" (dialog)
- !shorttitle {%shorttitle%[[ %shorttitle%]][[{%dialog%[[ <%_shorttitle%>]]}]]}
+ # "ShortAuthor", "Author" or "??"
+ !shortauthor {%shortauthor%[[%shortauthor%]][[{%abbrvauthor%[[%abbrvauthor%]][[??]]}]]}
+ # "... ShortTitle"
+ !shorttitle {%shorttitle%[[ %shorttitle%]][[{%dialog%[[ <%_shorttitle%>]][[%!makejurashorttitle%]]}]]}
+ # Title or "??"
+ !maketitle {%title%[[ %title%]][[ ??]]}
+ # "Journal Volume [Year]"
+ !jurashorttitle {%journal%[[ %journal%]]}{%volume%[[ %volume%]]}{%year%[[ %!obracket%%year%%!cbracket%]]}
+ # Handle short title fallback
+ !makejurashorttitle {%ifentrytype:article%[[%!jurashorttitle%]][[{%ifentrytype:periodical%[[%!jurashorttitle%]][[ %!maketitle%]]}]]}
# "prenote "
!textbefore {%textbefore%[[%textbefore% ]]}
# "/prenote" (button) / "/prenote/<before>" (dialog)