2016-12-31 08:28:51 +00:00
|
|
|
# \DeclareLyXCiteEngine{Basic (BibTeX)}
|
2012-03-01 00:41:30 +00:00
|
|
|
# DescriptionBegin
|
2016-12-31 08:28:51 +00:00
|
|
|
# The basic citation capabilities provided by BibTeX.
|
|
|
|
# Mainly simple numeric styles primarily suitable for science and maths.
|
2012-03-01 00:41:30 +00:00
|
|
|
# DescriptionEnd
|
|
|
|
|
|
|
|
# Author: Julien Rioux <jrioux@lyx.org>
|
|
|
|
|
2024-07-24 14:14:34 +00:00
|
|
|
Format 106
|
2012-03-01 00:41:30 +00:00
|
|
|
|
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 default citations
|
2013-05-16 14:00:54 +00:00
|
|
|
CiteEngineType default
|
2017-01-04 12:30:50 +00:00
|
|
|
|
|
|
|
# Default style file
|
2012-03-01 00:41:30 +00:00
|
|
|
DefaultBiblio plain
|
|
|
|
|
2017-01-04 12:30:50 +00:00
|
|
|
#
|
|
|
|
# CITE COMMAND DEFINITIONS for either engine type
|
|
|
|
#
|
|
|
|
# (cf. natbib.citeengine for a decription of the syntax)
|
|
|
|
|
2012-03-01 00:41:30 +00:00
|
|
|
CiteEngine default
|
|
|
|
cite[]
|
|
|
|
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
|
|
|
|
#
|
|
|
|
|
2017-03-18 10:26:23 +00:00
|
|
|
# Input standard format definitions for the bibliography
|
|
|
|
Input stdciteformats.inc
|
|
|
|
|
2017-01-04 12:30:50 +00:00
|
|
|
# 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.
|
|
|
|
#
|
2012-03-01 00:41:30 +00:00
|
|
|
CiteFormat default
|
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
|
|
|
|
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-03-18 14:35:45 +00:00
|
|
|
# Modify scheme of the first author in the bibliography
|
2017-03-19 13:03:48 +00:00
|
|
|
!firstnameform %prename% {%prefix%[[%prefix% ]]}%surname%{%suffix%[[, %suffix%]]}
|
2017-03-18 14:35:45 +00:00
|
|
|
# Modify scheme of other authors in the bibliography
|
2017-03-19 13:03:48 +00:00
|
|
|
!othernameform %prename% {%prefix%[[%prefix% ]]}%surname%{%suffix%[[, %suffix%]]}
|
2012-03-01 00:41:30 +00:00
|
|
|
|
2017-01-03 14:35:57 +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-04 12:30:50 +00:00
|
|
|
# "ID..."
|
2017-01-03 14:35:57 +00:00
|
|
|
!makecite %!startlink%{%label%[[%label%]][[{%numericallabel%[[%numericallabel%]][[#%key%]]}]]}%!endlink%%!nextcite%
|
2012-03-01 00:41:30 +00:00
|
|
|
|
2017-01-04 12:30:50 +00:00
|
|
|
# "..., NextID..."
|
2017-01-03 14:35:57 +00:00
|
|
|
!nextcite {%next%[[%!sep% %!makecite%]]}
|
|
|
|
# FIXME: what is this?
|
2012-03-01 00:41:30 +00:00
|
|
|
!nexthashkey {%next%[[%!sep% #%key%%!nexthashkey%]]}
|
2017-01-04 12:30:50 +00:00
|
|
|
# "..., NextKey..."
|
2012-03-01 00:41:30 +00:00
|
|
|
!nextkey {%next%[[%!sep% %key%%!nextkey%]]}
|
|
|
|
|
2017-01-04 12:30:50 +00:00
|
|
|
# ", postnote"
|
2012-03-01 00:41:30 +00:00
|
|
|
!textafter {%textafter%[[, %textafter%]]}
|
|
|
|
|
2017-01-04 12:30:50 +00:00
|
|
|
#
|
|
|
|
# ACTUAL STYLE DEFINITIONS
|
|
|
|
#
|
|
|
|
|
|
|
|
# "[ID, NextID, ..., p. xx]"
|
2017-01-03 14:35:57 +00:00
|
|
|
cite %!open%{%dialog%[[#ID]][[%!makecite%]]}%!textafter%%!close%
|
2017-01-04 12:30:50 +00:00
|
|
|
# "Add to bibliography only." (dialog) / "[ID] (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
|