1 # \DeclareLyXCiteEngine{Basic (BibTeX)}
3 # The basic citation capabilities provided by BibTeX.
4 # Mainly simple numeric styles primarily suitable for science and maths.
6 # Excludes: jurabib | natbib | biblatex
8 # Author: Julien Rioux <jrioux@lyx.org>
13 CiteEngineType default
24 _addtobib Add to bibliography only.
31 # A link that lets us jump to the bibliography entry in LyXHTML
32 # %clean:key% will be substituted by the cite key to give a unique id
33 !startlink {!<a href='#LyXCite-%clean:key%'>!}
36 # Start citation: ID...
37 !makecite %!startlink%{%label%[[%label%]][[{%numericallabel%[[%numericallabel%]][[#%key%]]}]]}%!endlink%%!nextcite%
39 # Follow-up citations: ..., NextID...
40 !nextcite {%next%[[%!sep% %!makecite%]]}
41 # FIXME: what is this?
42 !nexthashkey {%next%[[%!sep% #%key%%!nexthashkey%]]}
43 # Simply the cite key(s): Key, NextKey, ...
44 !nextkey {%next%[[%!sep% %key%%!nextkey%]]}
47 !textafter {%textafter%[[, %textafter%]]}
49 ## The actual cite styles ##
50 # \cite: [ID, NextID, ..., p. xx]
51 cite %!open%{%dialog%[[#ID]][[%!makecite%]]}%!textafter%%!close%
52 # \nocite: "Add to bibliography only." (dialog) / "Key, Nextkey (not cited)" (inset)
53 nocite {%dialog%[[%_addtobib%]][[%key%%!nextkey% (%_notcited%)]]}