]> git.lyx.org Git - lyx.git/blob - lib/citeengines/basic.citeengine
Merge branch 'master' into biblatex2
[lyx.git] / lib / citeengines / basic.citeengine
1 # \DeclareLyXCiteEngine{Basic (BibTeX)}
2 # DescriptionBegin
3 #   The basic citation capabilities provided by BibTeX.
4 #   Mainly simple numeric styles primarily suitable for science and maths.
5 # DescriptionEnd
6
7 # Author: Julien Rioux <jrioux@lyx.org>
8
9 Format 63
10
11 # The framework (biblatex|bibtex)
12 CiteFramework bibtex
13
14 # Cite style variants (default|authoryear|natbib)
15 # We provide only default citations
16 CiteEngineType default
17
18 # Default style file
19 DefaultBiblio  plain
20
21 #
22 # CITE COMMAND DEFINITIONS for either engine type
23 #
24 # (cf. natbib.citeengine for a decription of the syntax)
25
26 CiteEngine default
27         cite[]
28         nocite
29 End
30
31
32 #
33 # CITE FORMAT
34 #
35
36 # The following defines how the commands are represented in the GUI
37 # (inset button and citation dialog) as well as in XHTML, docbook and
38 # plain text output.
39 #
40 CiteFormat default
41         #
42         # MACROS
43         #
44         # 1. Translatable bits (need to be marked by _ prefix)
45         #    Note that preceding and trailing spaces matter.
46         #
47         _notcited not cited
48         _addtobib Add to bibliography only.
49
50         #
51         # 2. Macros re-used in the style definitions
52         #
53         !open [
54         !sep ,
55         !close ]
56
57         # A link that lets us jump to the bibliography entry in LyXHTML
58         # %clean:key% will be substituted by the cite key to give a unique id
59         !startlink {!<a href='#LyXCite-%clean:key%'>!}
60         !endlink {!</a>!}
61
62         # "ID..."
63         !makecite %!startlink%{%label%[[%label%]][[{%numericallabel%[[%numericallabel%]][[#%key%]]}]]}%!endlink%%!nextcite%
64
65         # "..., NextID..."
66         !nextcite {%next%[[%!sep% %!makecite%]]}
67         # FIXME: what is this?
68         !nexthashkey {%next%[[%!sep% #%key%%!nexthashkey%]]}
69         # "..., NextKey..."
70         !nextkey {%next%[[%!sep% %key%%!nextkey%]]}
71
72         # ", postnote"
73         !textafter {%textafter%[[, %textafter%]]}
74
75         #
76         # ACTUAL STYLE DEFINITIONS
77         #
78
79         # "[ID, NextID, ..., p. xx]"
80         cite %!open%{%dialog%[[#ID]][[%!makecite%]]}%!textafter%%!close%
81         # "Add to bibliography only." (dialog) / "[ID] (not cited)" (button)
82         nocite {%dialog%[[%_addtobib%]][[%key%%!nextkey% (%_notcited%)]]}
83 End