register_JSSextra {rbibutils} | R Documentation |
Create and register bibstyle JSSextra
Description
Create and register bibstyle JSSextra.
Usage
register_JSSextra(make_default = FALSE, reset = FALSE, parent_style = "JSS")
Arguments
make_default |
if |
reset |
recreate bibstyle |
parent_style |
the style from which to derive |
Details
register_JSSextra
creates "JSSextra"
and registers it
for use in the current R session. This means that it can be specified
for functions which accept a bibstyle argument, most notably printing
objects from class "bibentry"
and "bibentryExtra"
.
In normal use register_JSSextra
is called once in a
session.
Functions accepting a bibstyle argument use a default style if such an
argument is not provided. In most cases it is "JSS"
.
The default style can be changed at any time to any of the styles
currently registered in the session using
tools::bibstyle()
. A list of these styles can be obtained
with tools::getBibstyle(TRUE)
. The currently default style can
be seen with tools::getBibstyle()
.
As a convenience register_JSSextra(TRUE)
makes and registers
"JSSextra"
as the default style.
The remaining arguments should rarely be needed in normal circumstances.
register_JSSextra
stores the bibstyle object it creates and
just uses it when called again. reset = TRUE
can be used to
force a fresh copy of "JSSextra"
to be created.
By default "JSSextra"
is derived from "JSS"
. To base it
on a different style, use argument parent_style
.
Value
register_JSSextra
is used mainly for the side effect of
registering and setting the style as default. It returns the created
style (an environment) but it can be discarded.
Author(s)
Georgi N. Boshnakov
Examples
## current default style
tools::getBibstyle()
tools::getBibstyle(TRUE) # all styles, currently "JSS" only
register_JSSextra() # register "JSSextra"
tools::getBibstyle(TRUE) # now it is available
tools::getBibstyle() # ... but not default
register_JSSextra(TRUE) # this makes it default
tools::getBibstyle()
## setting default style with bibstyle():
tools::bibstyle("JSS", .default = TRUE)
tools::getBibstyle()