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
|
2016-12-31 18:44:32 +00:00
|
|
|
# Excludes: jurabib | natbib | biblatex
|
2012-03-01 00:41:30 +00:00
|
|
|
|
|
|
|
# Author: Julien Rioux <jrioux@lyx.org>
|
|
|
|
|
2016-10-22 07:25:01 +00:00
|
|
|
Format 62
|
2012-03-01 00:41:30 +00:00
|
|
|
|
2016-12-31 18:44:32 +00:00
|
|
|
CiteFramework bibtex
|
2013-05-16 14:00:54 +00:00
|
|
|
CiteEngineType default
|
2012-03-01 00:41:30 +00:00
|
|
|
DefaultBiblio plain
|
|
|
|
|
|
|
|
CiteEngine default
|
|
|
|
cite[]
|
|
|
|
nocite
|
|
|
|
End
|
|
|
|
|
|
|
|
CiteFormat default
|
2017-01-03 14:35:57 +00:00
|
|
|
# Translatable bits
|
2012-03-01 00:41:30 +00:00
|
|
|
_notcited not cited
|
|
|
|
_addtobib Add to bibliography only.
|
|
|
|
|
2017-01-03 14:35:57 +00:00
|
|
|
# Macros
|
2012-03-01 00:41:30 +00:00
|
|
|
!open [
|
|
|
|
!sep ,
|
|
|
|
!close ]
|
|
|
|
|
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-03 14:35:57 +00:00
|
|
|
# Start citation: ID...
|
|
|
|
!makecite %!startlink%{%label%[[%label%]][[{%numericallabel%[[%numericallabel%]][[#%key%]]}]]}%!endlink%%!nextcite%
|
2012-03-01 00:41:30 +00:00
|
|
|
|
2017-01-03 14:35:57 +00:00
|
|
|
# Follow-up citations: ..., NextID...
|
|
|
|
!nextcite {%next%[[%!sep% %!makecite%]]}
|
|
|
|
# FIXME: what is this?
|
2012-03-01 00:41:30 +00:00
|
|
|
!nexthashkey {%next%[[%!sep% #%key%%!nexthashkey%]]}
|
2017-01-03 14:35:57 +00:00
|
|
|
# Simply the cite key(s): Key, NextKey, ...
|
2012-03-01 00:41:30 +00:00
|
|
|
!nextkey {%next%[[%!sep% %key%%!nextkey%]]}
|
|
|
|
|
2017-01-03 14:35:57 +00:00
|
|
|
# Postnote: ", p. xx"
|
2012-03-01 00:41:30 +00:00
|
|
|
!textafter {%textafter%[[, %textafter%]]}
|
|
|
|
|
2017-01-03 14:35:57 +00:00
|
|
|
## The actual cite styles ##
|
|
|
|
# \cite: [ID, NextID, ..., p. xx]
|
|
|
|
cite %!open%{%dialog%[[#ID]][[%!makecite%]]}%!textafter%%!close%
|
|
|
|
# \nocite: "Add to bibliography only." (dialog) / "Key, Nextkey (not cited)" (inset)
|
2012-03-01 00:41:30 +00:00
|
|
|
nocite {%dialog%[[%_addtobib%]][[%key%%!nextkey% (%_notcited%)]]}
|
|
|
|
End
|