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