1 # \DeclareLyXCiteEngine{Basic (BibTeX)}
3 # The basic citation capabilities provided by BibTeX.
4 # Mainly simple numeric styles primarily suitable for science and maths.
7 # Author: Julien Rioux <jrioux@lyx.org>
11 # The framework (biblatex|bibtex)
14 # Cite style variants (default|authoryear|natbib)
15 # We provide only default citations
16 CiteEngineType default
22 # CITE COMMAND DEFINITIONS for either engine type
24 # (cf. natbib.citeengine for a decription of the syntax)
37 # Input standard format definitions for the bibliography
38 Input stdciteformats.inc
40 # The following defines how the commands are represented in the GUI
41 # (inset button and citation dialog) as well as in XHTML, docbook and
48 # 1. Translatable bits (need to be marked by _ prefix)
49 # Note that preceding and trailing spaces matter.
52 _addtobib Add to bibliography only.
57 # 2. Macros re-used in the style definitions
62 # Modify scheme of the first author in the bibliography
63 !firstnameform %prename% %surname%
64 # Modify scheme of other authors in the bibliography
65 !othernameform %prename% %surname%
67 # A link that lets us jump to the bibliography entry in LyXHTML
68 # %clean:key% will be substituted by the cite key to give a unique id
69 !startlink {!<a href='#LyXCite-%clean:key%'>!}
73 !makecite %!startlink%{%label%[[%label%]][[{%numericallabel%[[%numericallabel%]][[#%key%]]}]]}%!endlink%%!nextcite%
76 !nextcite {%next%[[%!sep% %!makecite%]]}
77 # FIXME: what is this?
78 !nexthashkey {%next%[[%!sep% #%key%%!nexthashkey%]]}
80 !nextkey {%next%[[%!sep% %key%%!nextkey%]]}
83 !textafter {%textafter%[[, %textafter%]]}
86 # ACTUAL STYLE DEFINITIONS
89 # "[ID, NextID, ..., p. xx]"
90 cite %!open%{%dialog%[[#ID]][[%!makecite%]]}%!textafter%%!close%
91 # "Add to bibliography only." (dialog) / "[ID] (not cited)" (button)
92 nocite {%dialog%[[%_addtobib%]][[%key%%!nextkey% (%_notcited%)]]}
94 keyonly {%dialog%[[%_keyonly%]][[%_key%: %key%%!nextkey%]]}