2017-01-08 08:39:46 +00:00
|
|
|
# \DeclareLyXCiteEngine[biblatex.sty]{Biblatex (natbib mode)}
|
|
|
|
# DescriptionBegin
|
|
|
|
# This Biblatex variety emulates the Natbib citation commands and
|
|
|
|
# thus is best suited for switching from Natbib (or the pre-LyX 2.3
|
|
|
|
# Biblatex workaround) to Biblatex.
|
|
|
|
# The natbib mode supports slightly different and a few more styles
|
|
|
|
# than normal Biblatex. As with normal Biblatex, the use of 'biber'
|
|
|
|
# as Bibliography processor is advised.
|
|
|
|
# DescriptionEnd
|
|
|
|
|
|
|
|
# Author: Jürgen Spitzmüller <spitz@lyx.org>
|
|
|
|
|
2024-08-12 10:29:14 +00:00
|
|
|
Format 107
|
2017-01-08 08:39:46 +00:00
|
|
|
|
|
|
|
Requires biblatex
|
|
|
|
|
|
|
|
PackageOptions biblatex natbib=true
|
|
|
|
|
|
|
|
# The framework (biblatex|bibtex)
|
|
|
|
CiteFramework biblatex
|
|
|
|
|
|
|
|
# Cite style variants (default|authoryear|natbib)
|
|
|
|
# We provide both authoryear and numerical citations
|
|
|
|
CiteEngineType authoryear|numerical
|
|
|
|
|
|
|
|
# Default style files for either engine type
|
|
|
|
DefaultBiblio authoryear:authoryear|numerical:numeric
|
|
|
|
|
|
|
|
# Maximum number of names before "et al." chimes in
|
|
|
|
MaxCiteNames 3
|
|
|
|
|
|
|
|
|
|
|
|
# The syntax of the cite command definitions below is:
|
2024-07-10 14:58:34 +00:00
|
|
|
# style@LyXName|alias*<!_stardesc!_stardesctooltip>[][]=latexcmd
|
2017-01-08 08:39:46 +00:00
|
|
|
#
|
2024-07-11 08:28:38 +00:00
|
|
|
# * style: A (comma-separated) list of citestyles to which
|
2024-07-13 15:20:29 +00:00
|
|
|
# this command is specific. If preceeded by '!',
|
|
|
|
# the list indicates citestyles for which the command
|
|
|
|
# is _not_ supported.
|
2017-01-08 08:39:46 +00:00
|
|
|
# * 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.
|
|
|
|
#
|
2024-07-11 08:28:38 +00:00
|
|
|
# Style, alias and latexcmd are optional. If no latexcmd is given, the
|
2017-01-08 08:39:46 +00:00
|
|
|
# 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-08 08:39:46 +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.
|
Support for "qualified citation lists"
These are biblatex-specific multicite commands that allow for multiple
pre- and postnotes, as in:
\cites(pre)(post)[pre1][post1]{key1}[pre2][post2]{key2}...
with an optional general pre- and postnote, which applies to the whole
list (like [][] in normal cite commands) and an optional pre- and
postnotes for each item, so that pagination can actually be specified in
multi-cite references, as in:
(cf. Miller 2015, 2; furthermore Smith 2013, 23-23; Jenkins 2012, 103,
also refer to chapter 6 in this book)
See the biblatex manual, sec. 3.8.3., for details.
File format change.
2017-01-21 13:25:17 +00:00
|
|
|
# * A trailing $ indicates that a command features "qualified citation
|
|
|
|
# lists" (a specific Biblatex feature)
|
2017-01-08 08:39:46 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# CITE COMMAND DEFINITIONS for either engine type
|
|
|
|
#
|
|
|
|
# We support the same cite command as natbib
|
|
|
|
# and add biblatex citation commands on top.
|
|
|
|
|
|
|
|
CiteEngine authoryear
|
|
|
|
Citet|textcite*[][]
|
|
|
|
Citep|parencite*[][]
|
2024-07-11 08:28:38 +00:00
|
|
|
apa,apa6@nptextcite$[][]
|
2017-01-08 08:39:46 +00:00
|
|
|
Citealt|cite*[][]
|
|
|
|
Citealp*[][]
|
|
|
|
Citeauthor*[][]
|
|
|
|
citeyearpar[][]
|
2019-05-07 12:48:39 +00:00
|
|
|
citeyear[][]=cite*
|
2017-01-08 08:39:46 +00:00
|
|
|
citebyear[][]=citeyear
|
Support for "qualified citation lists"
These are biblatex-specific multicite commands that allow for multiple
pre- and postnotes, as in:
\cites(pre)(post)[pre1][post1]{key1}[pre2][post2]{key2}...
with an optional general pre- and postnote, which applies to the whole
list (like [][] in normal cite commands) and an optional pre- and
postnotes for each item, so that pagination can actually be specified in
multi-cite references, as in:
(cf. Miller 2015, 2; furthermore Smith 2013, 23-23; Jenkins 2012, 103,
also refer to chapter 6 in this book)
See the biblatex manual, sec. 3.8.3., for details.
File format change.
2017-01-21 13:25:17 +00:00
|
|
|
Footcite$[][]=smartcite
|
2024-07-13 15:32:54 +00:00
|
|
|
!mla,mla-strict,mla-new,mla7@Autocite$|mlaautocite[][]
|
2024-07-14 06:57:02 +00:00
|
|
|
mla,mla-strict,mla-new,mla7@Mlaautocite|autocite,headlesscite*<!_mlaautocitestar!_mlaautocitetooltip>$[][]=autocite
|
2017-01-08 08:39:46 +00:00
|
|
|
citetitle*<!_citetitlestar!_citetitlestartooltip>[][]
|
2024-07-13 15:20:29 +00:00
|
|
|
!mla,mla-strict,mla-new,mla7@fullcite[][]
|
2017-01-08 08:39:46 +00:00
|
|
|
footfullcite[][]
|
|
|
|
nocite
|
2017-01-13 10:53:22 +00:00
|
|
|
keyonly
|
2017-01-08 08:39:46 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
CiteEngine numerical
|
|
|
|
Citep|citealp,citealt*[][]
|
|
|
|
Citet|textcite*[][]
|
|
|
|
supercite
|
Support for "qualified citation lists"
These are biblatex-specific multicite commands that allow for multiple
pre- and postnotes, as in:
\cites(pre)(post)[pre1][post1]{key1}[pre2][post2]{key2}...
with an optional general pre- and postnote, which applies to the whole
list (like [][] in normal cite commands) and an optional pre- and
postnotes for each item, so that pagination can actually be specified in
multi-cite references, as in:
(cf. Miller 2015, 2; furthermore Smith 2013, 23-23; Jenkins 2012, 103,
also refer to chapter 6 in this book)
See the biblatex manual, sec. 3.8.3., for details.
File format change.
2017-01-21 13:25:17 +00:00
|
|
|
Footcite$[][]=smartcite
|
|
|
|
Autocite$[][]
|
2017-01-08 08:39:46 +00:00
|
|
|
Citeauthor[][]*
|
|
|
|
citeyearpar[][]
|
|
|
|
citeyear|citebyear[][]
|
|
|
|
citetitle*<!_citetitlestar!_citetitlestartooltip>[][]
|
|
|
|
fullcite[][]
|
|
|
|
footfullcite[][]
|
|
|
|
nocite
|
2017-01-13 10:53:22 +00:00
|
|
|
keyonly
|
2017-01-08 08:39:46 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
# There are common definitions (default) and specific definitions for
|
|
|
|
# either cite engine type (which overwrite existing defaults.
|
|
|
|
#
|
2017-03-18 10:26:23 +00:00
|
|
|
|
|
|
|
# Input standard format definitions for the bibliography
|
|
|
|
Input stdciteformats.inc
|
|
|
|
|
2017-01-08 08:39:46 +00:00
|
|
|
CiteFormat default
|
|
|
|
#
|
|
|
|
# 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-08 08:39:46 +00:00
|
|
|
# Note that preceding and trailing spaces matter.
|
|
|
|
#
|
|
|
|
_notcited not cited
|
|
|
|
_addtobib Add to bibliography only.
|
2017-01-13 10:53:22 +00:00
|
|
|
_keyonly Key only.
|
|
|
|
_key Key
|
2018-01-27 13:26:36 +00:00
|
|
|
B_finaland , and
|
2017-01-08 08:39:46 +00:00
|
|
|
_footnote Footnote
|
|
|
|
_foot Foot
|
|
|
|
_fullcite bibliography entry
|
|
|
|
_bibentry Full bibliography entry.
|
|
|
|
_autocite Autocite
|
|
|
|
_auto Auto
|
|
|
|
# GUI strings for the starred commands
|
|
|
|
_citetitlestar F&orce full title[[Possible substitute to All aut&hors]]
|
|
|
|
_citetitlestartooltip Use full title even if shorttitle exists
|
2024-07-13 15:32:54 +00:00
|
|
|
_mlaautocitestar Omit aut&hors[[Possible substitute to All aut&hors]]
|
|
|
|
_mlaautocitestartooltip Omit authors or editors in the citation
|
2017-01-08 08:39:46 +00:00
|
|
|
# The following are handled by BiblioInfo
|
2018-01-27 13:26:36 +00:00
|
|
|
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]]
|
2017-01-08 08:39:46 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# 2. Macros re-used in the style definitions
|
|
|
|
#
|
|
|
|
# NOTE: Year is always in parens, also in numerical style
|
|
|
|
!yearopen (
|
|
|
|
!yearclose )
|
|
|
|
|
|
|
|
# A dummy year modifier. This just indicates that a modifier might be output,
|
|
|
|
# to differentiate \cite* and \citeyear
|
|
|
|
!dummymod [a]
|
|
|
|
|
|
|
|
# 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>!}
|
|
|
|
|
|
|
|
# Add " , and " before the last item (but " and " if there are only two), else ", "
|
2018-01-27 13:26:36 +00:00
|
|
|
!smartsep {%second%[[{%next%[[%B_namesep%]][[%B_pairnamesep%]]}]][[{%next%[[%B_namesep%]][[%B_lastnamesep%]]}]]}
|
2017-01-08 08:39:46 +00:00
|
|
|
|
2024-07-11 07:20:19 +00:00
|
|
|
# "Author et al." (if > 3 authors) or "??" (variant in parentheses)
|
2024-07-11 07:47:37 +00:00
|
|
|
!abbrvpciteauthor {%abbrvciteauthor%[[{%ifstyle:apa,apa6%[[%abbrvciteauthor&%]][[%abbrvciteauthor%]]}]][[??]]}
|
2017-01-08 08:39:46 +00:00
|
|
|
# "Author et al." or "??"
|
2017-01-09 16:54:56 +00:00
|
|
|
!abbrvciteauthor {%abbrvciteauthor%[[%abbrvciteauthor%]][[??]]}
|
|
|
|
# "Author, ..." or "??"
|
|
|
|
!fullciteauthor {%fullciteauthor%[[%fullciteauthor%]][[??]]}
|
|
|
|
# Handle starred command: abbr. or full author list
|
|
|
|
!makeauthor {%ifstar%[[%!fullciteauthor%]][[%!abbrvciteauthor%]]}
|
2017-01-08 08:39:46 +00:00
|
|
|
# "prenote "
|
|
|
|
!textbefore {%textbefore%[[%textbefore% ]]}
|
2024-07-11 11:38:22 +00:00
|
|
|
# Separator before textafter
|
|
|
|
!tasep {%ifstyle:mla,mla-strict,mla-new,mla7%[[]][[,]]}
|
2017-01-08 08:39:46 +00:00
|
|
|
# ", postnote"
|
2024-07-11 11:38:22 +00:00
|
|
|
!textafter {%textafter%[[%!tasep% %textafter%]]}
|
Support for "qualified citation lists"
These are biblatex-specific multicite commands that allow for multiple
pre- and postnotes, as in:
\cites(pre)(post)[pre1][post1]{key1}[pre2][post2]{key2}...
with an optional general pre- and postnote, which applies to the whole
list (like [][] in normal cite commands) and an optional pre- and
postnotes for each item, so that pagination can actually be specified in
multi-cite references, as in:
(cf. Miller 2015, 2; furthermore Smith 2013, 23-23; Jenkins 2012, 103,
also refer to chapter 6 in this book)
See the biblatex manual, sec. 3.8.3., for details.
File format change.
2017-01-21 13:25:17 +00:00
|
|
|
# "prenote " (for qualified lists)
|
|
|
|
!ctextbefore {%curpretext%[[%curpretext% ]]}
|
|
|
|
# ", postnote" (for qualified lists)
|
2024-07-11 11:38:22 +00:00
|
|
|
!ctextafter {%curposttext%[[%!tasep% %curposttext%]]}
|
2017-01-08 08:39:46 +00:00
|
|
|
# Add a year if it exists (else "??") and possibly a modifier (as in 2017a)
|
|
|
|
!makeyear {%year%[[%year%]][[??]]}{%modifier%[[%modifier%]]}
|
|
|
|
# Add a year if it exists (else "??") and indicate a possible modifier (as in 2017[a])
|
|
|
|
!myear {%year%[[%year%]][[??]]}{%modifier%[[%modifier%]][[{%export%[[]][[%!dummymod%]]}]]}
|
2019-11-12 12:52:05 +00:00
|
|
|
# Add a shorthand if it exists else myear (see above)
|
2024-07-11 11:38:22 +00:00
|
|
|
!shmyear {%shorthand%[[%shorthand%]][[{%ifstyle:mla,mla-strict,mla-new,mla7%[[%!makeshorttitle%]][[%!myear%]]}]]}
|
2017-01-08 08:39:46 +00:00
|
|
|
# Add a year if it exists (else "??") without any modifier at all
|
|
|
|
!byear {%year%[[%year%]][[??]]}
|
|
|
|
# Add a shorttitle or title if it exists (else "??")
|
|
|
|
!makeshorttitle {%shorttitle%[[%shorttitle%]][[{%title%[[%title%]][[??]]}]]}
|
|
|
|
# Add a title (or "??")
|
|
|
|
!maketitle {%ifstar%[[{%title%[[%title%]][[??]]}]][[%!makeshorttitle%]]}
|
|
|
|
# "cf. Key..."
|
|
|
|
!fullcite %bibentry%%!nextfullcite%
|
|
|
|
|
|
|
|
# "...; Author..."
|
2017-01-09 16:54:56 +00:00
|
|
|
!nextauthor {%next%[[%!sep% %!startlink%%!makeauthor%%!endlink%%!nextauthor%]]}
|
2017-01-08 08:39:46 +00:00
|
|
|
# "..., CiteKey..."
|
|
|
|
!nextkey {%next%[[%!sep% %key%%!nextkey%]]}
|
|
|
|
# ".., Year..." (including extra label, as in 2017a)
|
|
|
|
!nextyear {%next%[[%!sep% %!startlink%%!makeyear%%!endlink%%!nextyear%]]}
|
|
|
|
# "...; Nextyear ..." (including emulated extra label, as in 2017[a])
|
2019-11-12 12:52:05 +00:00
|
|
|
!nextshmyear {%next%[[%!sep% %!startlink%%!shmyear%%!endlink%%!nextshmyear%]]}
|
2017-01-08 08:39:46 +00:00
|
|
|
# "...; Nextyear ..." (without any extra label)
|
|
|
|
!nextbyear {%next%[[%!sep% %!startlink%%!byear%%!endlink%%!nextbyear%]]}
|
|
|
|
# "...; Nexttitle ..."
|
|
|
|
!makenexttitle {%next%[[%!sep% %!startlink%%!maketitle%%!endlink%%!makenexttitle%]]}
|
|
|
|
# "...; NextKey..."
|
|
|
|
!nextfullcite {%next%[[%!sep% %bibentry%%!nextfullcite%]]}
|
|
|
|
|
|
|
|
#
|
|
|
|
# ACTUAL STYLE DEFINITIONS
|
|
|
|
#
|
|
|
|
# (identical in authoryear and numerical)
|
|
|
|
#
|
|
|
|
|
|
|
|
# "cf. Author; NextAuthor, p. xx"
|
2017-01-09 16:54:56 +00:00
|
|
|
citeauthor %!textbefore%%!startlink%%!makeauthor%%!endlink%%!nextauthor%%!textafter%
|
2017-01-08 08:39:46 +00:00
|
|
|
# "cf. Year; NextYear, S. xx" [Authoryear] / "cf. Year, NextYear, S. xx" [Numerical]
|
2019-11-12 12:52:05 +00:00
|
|
|
citeyear %!textbefore%%!startlink%%!shmyear%%!endlink%%!nextshmyear%%!textafter%
|
2017-01-08 08:39:46 +00:00
|
|
|
# "cf. Year; Nextyear, p. xx" (without any extra label)
|
|
|
|
citebyear %!textbefore%%!startlink%%!byear%%!endlink%%!nextbyear%%!textafter%
|
|
|
|
# "(cf. Year; NextYear, p. xx)" [Authoryear] / "(cf. Year, NextYear, p. xx)" [Numerical]
|
|
|
|
citeyearpar %!yearopen%%!textbefore%%!startlink%%!makeyear%%!endlink%%!nextyear%%!textafter%%!yearclose%
|
|
|
|
# "cf. Year; Nextyear, p. xx" (without any extra label)
|
|
|
|
citetitle %!textbefore%%!startlink%%!maketitle%%!endlink%%!makenexttitle%%!textafter%
|
|
|
|
# "Bibliography entry." (dialog) / "cf. Key; NextKey..., p. xx (bibliography entry)" (button)
|
|
|
|
fullcite {%dialog%[[%_bibentry%]][[%!textbefore%{%label%[[%!fullcite%]][[%key%%!nextkey% (%_fullcite%)]]}%!textafter%}]]}
|
|
|
|
# "Footnote: Full bibliography entry." (dialog) / "Foot: Key (bibliography entry)"
|
|
|
|
footfullcite {%dialog%[[%_footnote%]][[%_foot%]]}: {%dialog%[[%_bibentry%]][[{%label%[[%!fullcite%]][[%key%%!nextkey% (%_fullcite%)]]}]]}
|
|
|
|
# "Add to bibliography only." (dialog) / "[ID] (not cited)" (button)
|
|
|
|
nocite {%dialog%[[%_addtobib%]][[%key%%!nextkey% (%_notcited%)]]}
|
2017-01-13 10:53:22 +00:00
|
|
|
# Output only the key
|
|
|
|
keyonly {%dialog%[[%_keyonly%]][[%_key%: %key%%!nextkey%]]}
|
2017-01-08 08:39:46 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
CiteFormat authoryear
|
|
|
|
#
|
|
|
|
# MACROS
|
|
|
|
#
|
|
|
|
!open (
|
2024-07-11 11:38:22 +00:00
|
|
|
!tcopen {%ifstyle:mla,mla-strict,mla-new,mla7%[[]][[(]]}
|
2017-01-08 08:39:46 +00:00
|
|
|
!sep ;
|
|
|
|
!close )
|
2024-07-11 11:38:22 +00:00
|
|
|
!tcclose {%ifstyle:mla,mla-strict,mla-new,mla7%[[]][[)]]}
|
2024-07-11 07:20:19 +00:00
|
|
|
!aysep {%ifstyle:apa%[[,]]}
|
2017-01-08 08:39:46 +00:00
|
|
|
|
2024-07-11 11:38:22 +00:00
|
|
|
# Title (with MLA), else year
|
|
|
|
!mkyear {%ifstyle:mla,mla-strict,mla-new,mla7%[[, %!makeshorttitle%]][[%!makeyear%]]}
|
Support for "qualified citation lists"
These are biblatex-specific multicite commands that allow for multiple
pre- and postnotes, as in:
\cites(pre)(post)[pre1][post1]{key1}[pre2][post2]{key2}...
with an optional general pre- and postnote, which applies to the whole
list (like [][] in normal cite commands) and an optional pre- and
postnotes for each item, so that pagination can actually be specified in
multi-cite references, as in:
(cf. Miller 2015, 2; furthermore Smith 2013, 23-23; Jenkins 2012, 103,
also refer to chapter 6 in this book)
See the biblatex manual, sec. 3.8.3., for details.
File format change.
2017-01-21 13:25:17 +00:00
|
|
|
# "cf. Author et. al Year..."
|
2024-07-11 11:38:22 +00:00
|
|
|
!makecite %!ctextbefore%%!startlink%%!abbrvciteauthor%%!aysep% %!mkyear%%!endlink%%!ctextafter%%!nextcite%
|
2024-07-11 07:20:19 +00:00
|
|
|
# "cf. Author et. al Year..."
|
2024-07-11 11:38:22 +00:00
|
|
|
!makepcite %!ctextbefore%%!startlink%%!abbrvpciteauthor%%!aysep% %!mkyear%%!endlink%%!ctextafter%%!nextpcite%
|
2017-01-08 08:39:46 +00:00
|
|
|
# "Author et al. (cf. Year..."
|
2024-07-11 11:38:22 +00:00
|
|
|
!makecitet %!startlink%%!makeauthor%%!endlink% %!tcopen%%!textbefore%%!mkyear%%!nextcitet%
|
2017-01-08 08:39:46 +00:00
|
|
|
# "cf. Author et al. Year..."
|
2018-02-11 15:43:14 +00:00
|
|
|
!makecitealt %!textbefore%%!startlink%%!makeauthor% %!makeyear%%!endlink%%!nextcitealt%
|
2017-01-08 08:39:46 +00:00
|
|
|
# "Author et al., Year..."
|
2017-01-09 16:54:56 +00:00
|
|
|
!makecitealp %!startlink%%!makeauthor%, %!makeyear%%!endlink%%!nextcitealp%
|
2017-01-08 08:39:46 +00:00
|
|
|
|
Support for "qualified citation lists"
These are biblatex-specific multicite commands that allow for multiple
pre- and postnotes, as in:
\cites(pre)(post)[pre1][post1]{key1}[pre2][post2]{key2}...
with an optional general pre- and postnote, which applies to the whole
list (like [][] in normal cite commands) and an optional pre- and
postnotes for each item, so that pagination can actually be specified in
multi-cite references, as in:
(cf. Miller 2015, 2; furthermore Smith 2013, 23-23; Jenkins 2012, 103,
also refer to chapter 6 in this book)
See the biblatex manual, sec. 3.8.3., for details.
File format change.
2017-01-21 13:25:17 +00:00
|
|
|
# "...; Nextauthor Year..."
|
|
|
|
!nextcite {%next%[[%!sep% %!makecite%]]}
|
2024-07-11 07:20:19 +00:00
|
|
|
# "...; Nextauthor Year..."
|
|
|
|
!nextpcite {%next%[[%!sep% %!makepcite%]]}
|
2017-01-08 08:39:46 +00:00
|
|
|
# "...), [and] Nextauthor (Year..."
|
2024-07-11 11:38:22 +00:00
|
|
|
!nextcitet {%next%[[%!tcclose%%!smartsep%%!startlink%%!makeauthor%%!endlink% %!tcopen%%!mkyear%%!nextcitet%]]}
|
2017-01-08 08:39:46 +00:00
|
|
|
# "...; NextAuthor et al. Year..."
|
2017-01-09 16:54:56 +00:00
|
|
|
!nextcitealt {%next%[[%!sep% %!startlink%%!makeauthor% %!makeyear%%!endlink%%!nextcitealt%]]}
|
2017-01-08 08:39:46 +00:00
|
|
|
# "...; NextAuthor et al., Year..."
|
|
|
|
!nextcitealp {%next%[[%!sep% %!makecitealp%]]}
|
|
|
|
|
|
|
|
#
|
|
|
|
# ACTUAL STYLE DEFINITIONS
|
|
|
|
#
|
|
|
|
# (additions and modifications to default)
|
|
|
|
#
|
|
|
|
|
|
|
|
# "Author (cf. Year),[ and] NextAuthor (Year, p. xx)"
|
2024-07-11 11:38:22 +00:00
|
|
|
citet %!makecitet%%!textafter%%!tcclose%
|
2017-01-08 08:39:46 +00:00
|
|
|
# "(cf. Author et al., Year; NextAuthor et al., Year, p. xx)"
|
2024-07-11 07:20:19 +00:00
|
|
|
citep %!open%%!textbefore%%!makepcite%%!textafter%%!close%
|
2017-01-08 08:39:46 +00:00
|
|
|
# "cf. Author et al., Year; NextAuthor et al., Year, p. xx"
|
|
|
|
citealp %!textbefore%%!makecitealp%%!textafter%
|
|
|
|
# "cf. Author Year; NextAuthor Year, p. xx" [NB: textbefore position differs from real natbib!]
|
|
|
|
citealt %!makecitealt%%!textafter%
|
|
|
|
# "Footnote: cf. Author A Year; Author B Year, p. xx."
|
Support for "qualified citation lists"
These are biblatex-specific multicite commands that allow for multiple
pre- and postnotes, as in:
\cites(pre)(post)[pre1][post1]{key1}[pre2][post2]{key2}...
with an optional general pre- and postnote, which applies to the whole
list (like [][] in normal cite commands) and an optional pre- and
postnotes for each item, so that pagination can actually be specified in
multi-cite references, as in:
(cf. Miller 2015, 2; furthermore Smith 2013, 23-23; Jenkins 2012, 103,
also refer to chapter 6 in this book)
See the biblatex manual, sec. 3.8.3., for details.
File format change.
2017-01-21 13:25:17 +00:00
|
|
|
footcite {%dialog%[[%_footnote%]][[%_foot%]]}: %!textbefore%%!makecite%%!textafter%.
|
2017-01-08 08:39:46 +00:00
|
|
|
# "Auto: (cf. Author A Year; Author B Year, p. xx)"
|
2024-07-11 07:20:19 +00:00
|
|
|
autocite {%dialog%[[%_autocite%]][[%_auto%]]}: %!open%%!textbefore%%!makepcite%%!textafter%%!close%
|
2017-01-08 08:39:46 +00:00
|
|
|
|
|
|
|
# Fallback style: "Author A (cf. Year),[ and] Author B (Year, p. xx)"
|
|
|
|
cite %!makecitet%%!textafter%%!close%
|
2024-07-11 08:28:38 +00:00
|
|
|
|
|
|
|
# Style-specifics
|
|
|
|
# 1. APA
|
|
|
|
# "cf. Author A Year; Author B Year, p. xx"
|
|
|
|
nptextcite %!textbefore%%!makepcite%%!textafter%
|
2024-07-13 15:32:54 +00:00
|
|
|
# 2. MLA
|
|
|
|
# "Auto: (cf. Author A Year; Author B Year, p. xx)"
|
|
|
|
mlaautocite {%dialog%[[%_autocite%]][[%_auto%]]}: %!open%%!textbefore%%!makepcite%%!textafter%%!close%
|
2017-01-08 08:39:46 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
CiteFormat numerical
|
|
|
|
#
|
|
|
|
# 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-08 08:39:46 +00:00
|
|
|
#
|
|
|
|
_super Super
|
|
|
|
_superscript Superscript
|
|
|
|
|
|
|
|
#
|
|
|
|
# 2. Macros re-used in the style definitions
|
|
|
|
#
|
|
|
|
!open [
|
|
|
|
!sep ,
|
|
|
|
!close ]
|
|
|
|
|
|
|
|
# "Author [cf. ID..."
|
2017-01-09 16:54:56 +00:00
|
|
|
!makecitet %!makeauthor% %!open%%!textbefore%{%dialog%[[#ID]][[%!startlink%{%numericallabel%[[%numericallabel%]][[#%key%]]}%!endlink%]]}%!nextcitet%
|
2017-01-08 08:39:46 +00:00
|
|
|
# "ID..."
|
|
|
|
!makecitealt {%dialog%[[#ID]][[%!startlink%{%numericallabel%[[%numericallabel%]][[#%key%]]}%!endlink%]]}%!nextcitealt%
|
|
|
|
# "ID..."
|
|
|
|
!hashkey {%dialog%[[#ID]][[%!startlink%{%numericallabel%[[%numericallabel%]][[#%key%]]}%!endlink%%!nexthashkey%]]}
|
Support for "qualified citation lists"
These are biblatex-specific multicite commands that allow for multiple
pre- and postnotes, as in:
\cites(pre)(post)[pre1][post1]{key1}[pre2][post2]{key2}...
with an optional general pre- and postnote, which applies to the whole
list (like [][] in normal cite commands) and an optional pre- and
postnotes for each item, so that pagination can actually be specified in
multi-cite references, as in:
(cf. Miller 2015, 2; furthermore Smith 2013, 23-23; Jenkins 2012, 103,
also refer to chapter 6 in this book)
See the biblatex manual, sec. 3.8.3., for details.
File format change.
2017-01-21 13:25:17 +00:00
|
|
|
# "ID"
|
|
|
|
!makekey %!ctextbefore%{%dialog%[[#ID]][[%!startlink%{%numericallabel%[[%numericallabel%]][[#%key%]]}%!endlink%]]}%!ctextafter%%!nextkey%
|
2017-01-08 08:39:46 +00:00
|
|
|
|
|
|
|
# "...], [and] NextAuthor [ID..."
|
2017-01-09 16:54:56 +00:00
|
|
|
!nextcitet {%next%[[%!close%%!smartsep%%!makeauthor% %!open%%!textbefore%{%dialog%[[#ID]][[%!startlink%{%numericallabel%[[%numericallabel%]][[#%key%]]}%!endlink%]]}%!nextcitet%]]}
|
2017-01-08 08:39:46 +00:00
|
|
|
# "..., ID..."
|
|
|
|
!nextcitealt {%next%[[%!sep% %!makecitealt%]]}
|
|
|
|
# FIXME: What is this?
|
|
|
|
!nexthashid {%next%[[%!sep% #ID%!nexthashid%]]}
|
|
|
|
# "..., NextID..."
|
|
|
|
!nexthashkey {%next%[[%!sep% %!startlink%{%numericallabel%[[%numericallabel%]][[#%key%]]}%!endlink%%!nexthashkey%]]}
|
|
|
|
# "...); Nextauthor [ID..."
|
2017-01-09 16:54:56 +00:00
|
|
|
!nextcitet {%next%[[%!close%%!smartsep%%!makeauthor% %!open%{%dialog%[[#ID]][[%!startlink%{%numericallabel%[[%numericallabel%]][[#%key%]]}%!endlink%]]}%!nextcitet%]]}
|
Support for "qualified citation lists"
These are biblatex-specific multicite commands that allow for multiple
pre- and postnotes, as in:
\cites(pre)(post)[pre1][post1]{key1}[pre2][post2]{key2}...
with an optional general pre- and postnote, which applies to the whole
list (like [][] in normal cite commands) and an optional pre- and
postnotes for each item, so that pagination can actually be specified in
multi-cite references, as in:
(cf. Miller 2015, 2; furthermore Smith 2013, 23-23; Jenkins 2012, 103,
also refer to chapter 6 in this book)
See the biblatex manual, sec. 3.8.3., for details.
File format change.
2017-01-21 13:25:17 +00:00
|
|
|
# "..., NextID..."
|
|
|
|
!nextkey {%next%[[%!sep% %!ctextbefore%{%dialog%[[#ID]][[%!startlink%{%numericallabel%[[%numericallabel%]][[#%key%]]}%!endlink%]]}%!ctextafter%%!nextkey%]]}
|
2017-01-08 08:39:46 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# ACTUAL STYLE DEFINITIONS
|
|
|
|
#
|
|
|
|
# (additions and modifications to default)
|
|
|
|
#
|
|
|
|
|
|
|
|
# "[cf. ID, NextID, p. xx]"
|
|
|
|
citep %!open%%!textbefore%%!hashkey%%!textafter%%!close%
|
|
|
|
# "Author [cf. ID],[ and] Nextauthor [NextID, p. xx]"
|
|
|
|
citet %!makecitet%%!textafter%%!close%
|
|
|
|
# "Footnote: cf. ID, NextID, p. xx."
|
|
|
|
footcite {%dialog%[[%_footnote%]][[%_foot%]]}: %!textbefore%%!makekey%%!textafter%.
|
|
|
|
# "Auto: (cf. Author A Year; Author B Year, p. xx)"
|
|
|
|
autocite {%dialog%[[%_autocite%]][[%_auto%]]}: %!open%%!textbefore%%!makekey%%!textafter%%!close%
|
|
|
|
# "Superscript: ID" (dialog) / "Super: ID" (button)
|
|
|
|
supercite {%dialog%[[%_superscript%]][[%_super%]]}: %!makekey%
|
|
|
|
|
|
|
|
# Fallback style: "[cf. ID, NextID..., p. xx]"
|
|
|
|
cite %!open%%!textbefore%%!hashkey%%!textafter%%!close%
|
|
|
|
End
|