2016-12-31 08:28:51 +00:00
|
|
|
# \DeclareLyXCiteEngine[jurabib.sty]{Jurabib (BibTeX)}
|
2012-03-01 00:41:30 +00:00
|
|
|
# DescriptionBegin
|
2016-12-31 08:28:51 +00:00
|
|
|
# Jurabib supports a range of author-year styles primarily suitable for law studies
|
|
|
|
# and the Humanities. It includes localizations for English, German, French, Dutch,
|
|
|
|
# Spanish and Italian.
|
2012-03-01 00:41:30 +00:00
|
|
|
# DescriptionEnd
|
|
|
|
|
|
|
|
# Author: Julien Rioux <jrioux@lyx.org>
|
|
|
|
|
2020-10-25 15:43:32 +00:00
|
|
|
Format 85
|
2012-03-01 00:41:30 +00:00
|
|
|
|
|
|
|
Requires jurabib
|
|
|
|
|
2017-01-04 12:30:50 +00:00
|
|
|
# The framework (biblatex|bibtex)
|
2016-12-31 18:44:32 +00:00
|
|
|
CiteFramework bibtex
|
2017-01-04 12:30:50 +00:00
|
|
|
|
|
|
|
# Cite style variants (default|authoryear|natbib)
|
|
|
|
# We provide only authoryear citations
|
2012-03-01 00:41:30 +00:00
|
|
|
CiteEngineType authoryear
|
2017-01-04 12:30:50 +00:00
|
|
|
|
|
|
|
# Default style file
|
2012-03-01 00:41:30 +00:00
|
|
|
DefaultBiblio jurabib
|
|
|
|
|
2017-01-07 15:44:27 +00:00
|
|
|
# Maximum number of names before "et al." chimes in
|
|
|
|
MaxCiteNames 3
|
|
|
|
|
2017-01-04 12:30:50 +00:00
|
|
|
|
|
|
|
# The syntax of the cite command definitions below is:
|
|
|
|
# LyXName|alias*<!_stardesc!_stardesctooltip>[][]=latexcmd
|
|
|
|
#
|
|
|
|
# * LyXName: The LyX name as output in the LyX file. For
|
|
|
|
# portability reasons, we try to use the same
|
|
|
|
# name for same-formatted commands in the
|
|
|
|
# different engines (thus many names stem from
|
|
|
|
# natbib).
|
|
|
|
# * Alias: A (comma-separated) list of commands that fall
|
|
|
|
# back to the given LyX name in the current engine.
|
|
|
|
# This is a bit like "ObsoletedBy" in the layouts.
|
|
|
|
# * latexcmd: The actual LaTeX command that is output.
|
|
|
|
#
|
|
|
|
# Alias and latexcmd are optional. If no latexcmd is given, the
|
|
|
|
# LyXName will be output to LaTeX.
|
|
|
|
#
|
|
|
|
# Note further:
|
|
|
|
#
|
2017-01-13 10:53:22 +00:00
|
|
|
# * The LyXName "keyonly" has a special meaning: only the citation key,
|
|
|
|
# without any latex command, is output.
|
2017-01-04 12:30:50 +00:00
|
|
|
# * Capitalization indicates that the command also has a capitalized
|
|
|
|
# form (\Latexcmd vs. \latexcmd). These usually enforce upcasing of
|
|
|
|
# name prefixes (von Goethe => Von Goethe).
|
|
|
|
# * Brackets [] indicate the number of optional arguments (0, 1, 2).
|
|
|
|
# * The star * indicates there is a starred version of the command
|
|
|
|
# (\latexcmd* vs. \latexcmd). By default, the starred version means:
|
|
|
|
# Expand the author list even if the maxnames setting would cause
|
|
|
|
# BibTeX/Biber to shorten it with "et al.".
|
|
|
|
# If the star has a different meaning for a command, it can be
|
|
|
|
# specified in angle brackets: <!_stardesc!_stardesctooltip>.
|
|
|
|
# Maximal two translatable macro keywords, marked by the prefix '!_',
|
|
|
|
# can be given. The first points to the string that replaces the
|
|
|
|
# "Full aut&hor list" checkbox label in the Citation dialog, the
|
|
|
|
# second one an optional tooltip for this checkbox. Note that these
|
|
|
|
# two macros have to be defined in the CiteFormat section (see below),
|
|
|
|
# dropping the '!' from the prefix (see below), e.g.:
|
|
|
|
# _stardesc Starred command label
|
|
|
|
# _stardesctooltip Tooltip for the starred command checkbox.
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-03-01 00:41:30 +00:00
|
|
|
# FIXME: support for these jurabib styles (fileformat)
|
|
|
|
# citefield []{}
|
|
|
|
# footcite [][]
|
|
|
|
# footcitetitle [][]
|
|
|
|
# footcitet [][]
|
|
|
|
# footcitep [][]
|
|
|
|
# footcitealt [][]
|
|
|
|
# footcitealp [][]
|
|
|
|
# footciteauthor [][]
|
|
|
|
# footciteyear [][]
|
|
|
|
# footciteyearpar [][]
|
|
|
|
# footfullcite [][]
|
|
|
|
|
2017-01-04 12:30:50 +00:00
|
|
|
#
|
|
|
|
# CITE COMMAND DEFINITIONS
|
|
|
|
#
|
2012-03-01 00:41:30 +00:00
|
|
|
CiteEngine authoryear
|
|
|
|
# \cite* is not implemented: use \cite instead, it's the same
|
|
|
|
cite [][]
|
|
|
|
citetitle [][]
|
|
|
|
citet [][]
|
|
|
|
citep [][]
|
|
|
|
citealt [][]
|
|
|
|
citealp [][]
|
|
|
|
citeauthor [][]
|
|
|
|
citeyear [][]
|
|
|
|
citeyearpar [][]
|
|
|
|
fullcite [][]
|
|
|
|
nocite
|
2017-01-13 10:53:22 +00:00
|
|
|
keyonly
|
2012-03-01 00:41:30 +00:00
|
|
|
End
|
|
|
|
|
2017-01-04 12:30:50 +00:00
|
|
|
#
|
|
|
|
# CITE FORMAT
|
|
|
|
#
|
|
|
|
|
|
|
|
# The following defines how the commands are represented in the GUI
|
|
|
|
# (inset button and citation dialog) as well as in XHTML, docbook and
|
|
|
|
# plain text output.
|
|
|
|
#
|
2017-03-18 10:26:23 +00:00
|
|
|
|
|
|
|
# Input standard format definitions for the bibliography
|
|
|
|
Input stdciteformats.inc
|
|
|
|
|
2012-03-01 00:41:30 +00:00
|
|
|
CiteFormat authoryear
|
2017-01-04 12:30:50 +00:00
|
|
|
#
|
|
|
|
# MACROS
|
|
|
|
#
|
2018-01-27 13:26:36 +00:00
|
|
|
# 1. Translatable bits (need to be marked by _ prefix, if translated to the GUI language,
|
|
|
|
# or B_, if translated to the buffer language)
|
2017-01-07 16:32:45 +00:00
|
|
|
# Note that preceding and trailing spaces matter.
|
2017-01-04 12:30:50 +00:00
|
|
|
#
|
2012-03-01 00:41:30 +00:00
|
|
|
_notcited not cited
|
|
|
|
_addtobib Add to bibliography only.
|
2017-01-13 10:53:22 +00:00
|
|
|
_keyonly Key only.
|
|
|
|
_key Key
|
2012-03-01 00:41:30 +00:00
|
|
|
_fullcite bibliography entry
|
|
|
|
_bibentry Bibliography entry.
|
|
|
|
_before before
|
|
|
|
_shorttitle short title
|
2017-01-07 16:32:45 +00:00
|
|
|
# The following are handled by BiblioInfo
|
2018-01-27 13:26:36 +00:00
|
|
|
B_etal et al.
|
|
|
|
B_namesep /
|
|
|
|
B_lastnamesep /
|
|
|
|
B_pairnamesep /
|
2012-03-01 00:41:30 +00:00
|
|
|
|
2017-01-04 12:30:50 +00:00
|
|
|
#
|
|
|
|
# 2. Macros re-used in the style definitions
|
|
|
|
#
|
2012-03-01 00:41:30 +00:00
|
|
|
!open (
|
|
|
|
!sep ;
|
|
|
|
!close )
|
2017-01-07 16:40:23 +00:00
|
|
|
!obracket [
|
|
|
|
!cbracket ]
|
2012-03-01 00:41:30 +00:00
|
|
|
|
2017-01-04 12:30:50 +00:00
|
|
|
# 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
|
2013-03-27 19:46:32 +00:00
|
|
|
!startlink {!<a href='#LyXCite-%clean:key%'>!}
|
2013-01-10 14:24:53 +00:00
|
|
|
!endlink {!</a>!}
|
|
|
|
|
2017-01-07 16:40:23 +00:00
|
|
|
# "ShortAuthor", "Author" or "??"
|
2017-01-09 16:54:56 +00:00
|
|
|
!shortauthor {%shortauthor%[[%shortauthor%]][[{%abbrvciteauthor%[[%abbrvciteauthor%]][[??]]}]]}
|
2017-01-07 16:40:23 +00:00
|
|
|
# "... 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%]]}]]}
|
2017-01-04 12:30:50 +00:00
|
|
|
# "prenote "
|
|
|
|
!textbefore {%textbefore%[[%textbefore% ]]}
|
|
|
|
# "/prenote" (button) / "/prenote/<before>" (dialog)
|
|
|
|
!textbefore2 {%textbefore%[[/%textbefore%]][[{%dialog%[[/<%_before%>]]}]]}
|
|
|
|
# ", postnote"
|
|
|
|
!textafter {%textafter%[[, %textafter%]]}
|
|
|
|
# " postnote"
|
|
|
|
!textafter2 {%textafter%[[ %textafter%]]}
|
|
|
|
# Add a year if it exists (else "??") and possibly a modifier (as in 2017a)
|
|
|
|
!year {%year%[[%year%]][[??]]}{%modifier%[[%modifier%]]}
|
|
|
|
|
|
|
|
# "ShortAuthor/prenote postnote..."
|
2013-01-10 14:24:53 +00:00
|
|
|
!cite %!startlink%%!shortauthor%%!endlink%%!textbefore2%%!textafter2%%!nextcite%
|
2017-01-04 12:30:50 +00:00
|
|
|
# "ShortAuthor/prenote ShortTitle postnote..."
|
2013-01-10 14:24:53 +00:00
|
|
|
!citetitle %!startlink%%!shortauthor%%!endlink%%!textbefore2%%!shorttitle%%!textafter2%%!nextcitetitle%
|
2017-01-04 12:30:50 +00:00
|
|
|
# "prenote ShortAuthor (Year, postnote)..."
|
2013-01-10 14:24:53 +00:00
|
|
|
!citet %!textbefore%%!startlink%%!shortauthor%%!endlink% %!open%%!year%%!textafter%%!close%%!nextcitet%
|
2017-01-04 12:30:50 +00:00
|
|
|
# "(prenote ShortAuthor, Year, postnote)"
|
2012-03-01 00:41:30 +00:00
|
|
|
!citep %!open%%!citealp%%!close%
|
2017-01-04 12:30:50 +00:00
|
|
|
# "prenote ShortAuthor Year, postnote..."
|
2013-01-10 14:24:53 +00:00
|
|
|
!citealt %!textbefore%%!startlink%%!shortauthor% %!year%%!endlink%%!textafter%%!nextcitealt%
|
2017-01-04 12:30:50 +00:00
|
|
|
# "prenote ShortAuthor, Year, postnote..."
|
2013-01-10 14:24:53 +00:00
|
|
|
!citealp %!textbefore%%!startlink%%!shortauthor%, %!year%%!endlink%%!textafter%%!nextcitealp%
|
2017-01-04 12:30:50 +00:00
|
|
|
# "prenote ShortAuthor, postnote..."
|
2013-01-10 14:24:53 +00:00
|
|
|
!citeauthor %!textbefore%%!startlink%%!shortauthor%%!endlink%%!textafter%%!nextauthor%
|
2017-01-04 12:30:50 +00:00
|
|
|
# "prenote Year, postnote..."
|
2013-01-10 14:24:53 +00:00
|
|
|
!citeyear %!textbefore%%!startlink%%!year%%!endlink%%!textafter%%!nextyear%
|
2017-01-04 12:30:50 +00:00
|
|
|
# "prenote (Year), postnote..."
|
2013-01-10 14:24:53 +00:00
|
|
|
!citeyearpar %!textbefore%%!open%%!startlink%%!year%%!endlink%%!close%%!textafter%%!nextyearpar%
|
2017-01-04 12:30:50 +00:00
|
|
|
# "prenote in: Key, postnote..."
|
2013-01-25 22:42:15 +00:00
|
|
|
!fullcite {%textbefore%[[%textbefore% in: ]]}%bibentry%{%textafter%[[ %textafter%]]}%!nextfullcite%
|
2012-03-01 00:41:30 +00:00
|
|
|
|
2017-01-04 12:30:50 +00:00
|
|
|
# "...; ShortAuthor postnote..."
|
2013-01-10 14:24:53 +00:00
|
|
|
!nextcite {%next%[[%!sep% %!startlink%%!shortauthor%%!endlink%%!textafter2%%!nextcite%]]}
|
2017-01-04 12:30:50 +00:00
|
|
|
# "...; ShortAuthor ShortTitle postnote..."
|
2013-01-10 14:24:53 +00:00
|
|
|
!nextcitetitle {%next%[[%!sep% %!startlink%%!shortauthor%%!endlink%%!shorttitle%%!textafter2%%!nextcitetitle%]]}
|
2017-01-04 12:30:50 +00:00
|
|
|
# "...; prenote ShortAuthor (Year, postnote)..."
|
2012-03-01 00:41:30 +00:00
|
|
|
!nextcitet {%next%[[%!sep% %!citet%]]}
|
2017-01-04 12:30:50 +00:00
|
|
|
# "...; prenote ShortAuthor Year, postnote..."
|
2012-03-01 00:41:30 +00:00
|
|
|
!nextcitealt {%next%[[%!sep% %!citealt%]]}
|
2017-01-04 12:30:50 +00:00
|
|
|
# "...; prenote ShortAuthor, Year, postnote..."
|
2012-03-01 00:41:30 +00:00
|
|
|
!nextcitealp {%next%[[%!sep% %!citealp%]]}
|
2017-01-04 12:30:50 +00:00
|
|
|
# "...; prenote ShortAuthor, postnote..."
|
2012-03-01 00:41:30 +00:00
|
|
|
!nextauthor {%next%[[%!sep% %!citeauthor%]]}
|
2017-01-04 12:30:50 +00:00
|
|
|
# "...; prenote Year, postnote..."
|
2012-03-01 00:41:30 +00:00
|
|
|
!nextyear {%next%[[%!sep% %!citeyear%]]}
|
2017-01-04 12:30:50 +00:00
|
|
|
# "...; prenote (Year), postnote..."
|
2012-03-01 00:41:30 +00:00
|
|
|
!nextyearpar {%next%[[%!sep% %!citeyearpar%]]}
|
2017-01-04 12:30:50 +00:00
|
|
|
# "...; Key, postnote..."
|
|
|
|
!nextfullcite {%next%[[%!sep% %bibentry%%textafter%%!nextfullcite%]]}
|
|
|
|
# "...; Key..."
|
2012-03-01 00:41:30 +00:00
|
|
|
!nextkey {%next%[[%!sep% %key%%!nextkey%]]}
|
|
|
|
|
2017-01-04 12:30:50 +00:00
|
|
|
#
|
|
|
|
# ACTUAL STYLE DEFINITIONS
|
|
|
|
#
|
2012-03-01 00:41:30 +00:00
|
|
|
|
2017-01-04 12:30:50 +00:00
|
|
|
# "ShortAuthor/prenote postnote; NextShortAuthor postnote..."
|
2012-03-01 00:41:30 +00:00
|
|
|
cite %!cite%
|
2017-01-04 12:30:50 +00:00
|
|
|
# "ShortAuthor/prenote ShortTitle postnote; NextShortAuthor ShortTitle postnote..."
|
2012-03-01 00:41:30 +00:00
|
|
|
citetitle %!citetitle%
|
2017-01-04 12:30:50 +00:00
|
|
|
# "prenote ShortAuthor (Year, postnote); prenote NextShortAuthor (Year, postnote)..."
|
2012-03-01 00:41:30 +00:00
|
|
|
citet %!citet%
|
2017-01-04 12:30:50 +00:00
|
|
|
# "(prenote ShortAuthor, Year, postnote)"
|
2012-03-01 00:41:30 +00:00
|
|
|
citep %!citep%
|
2017-01-04 12:30:50 +00:00
|
|
|
# "prenote ShortAuthor Year, postnote; prenote NextShortAuthor Year, postnote..."
|
2012-03-01 00:41:30 +00:00
|
|
|
citealt %!citealt%
|
2017-01-04 12:30:50 +00:00
|
|
|
# "prenote ShortAuthor, Year, postnote.; prenote NextShortAuthor, Year, postnote..."
|
2012-03-01 00:41:30 +00:00
|
|
|
citealp %!citealp%
|
2017-01-04 12:30:50 +00:00
|
|
|
# "prenote ShortAuthor, postnote; prenote NextShortAuthor, postnote..."
|
2012-03-01 00:41:30 +00:00
|
|
|
citeauthor %!citeauthor%
|
2017-01-04 12:30:50 +00:00
|
|
|
# "prenote Year, postnote; prenote Year, postnote..."
|
2012-03-01 00:41:30 +00:00
|
|
|
citeyear %!citeyear%
|
2017-01-04 12:30:50 +00:00
|
|
|
# "prenote (Year), postnote; prenote (Year), postnote..."
|
2012-03-01 00:41:30 +00:00
|
|
|
citeyearpar %!citeyearpar%
|
2017-01-04 12:30:50 +00:00
|
|
|
# "Bibliography entry." (dialog) / "Key; Key ... (full cite)" (button)
|
2013-01-25 22:42:15 +00:00
|
|
|
fullcite {%dialog%[[%_bibentry%]][[{%label%[[%!fullcite%]][[%key%%!nextkey% (%_fullcite%)]]}]]}
|
2017-01-04 12:30:50 +00:00
|
|
|
# "Add to bibliography only." (dialog) / "Key; Key ... (not cited)" (button)
|
2012-03-01 00:41:30 +00:00
|
|
|
nocite {%dialog%[[%_addtobib%]][[%key%%!nextkey% (%_notcited%)]]}
|
2017-01-13 10:53:22 +00:00
|
|
|
# Output only the key
|
|
|
|
keyonly {%dialog%[[%_keyonly%]][[%_key%: %key%%!nextkey%]]}
|
2012-03-01 00:41:30 +00:00
|
|
|
End
|