]> git.lyx.org Git - lyx.git/blob - lib/layouts/jurabib.module
4748c60613d4de27eb333d4dd5b57a54ffbea29e
[lyx.git] / lib / layouts / jurabib.module
1 # \DeclareLyXModule[jurabib.sty]{Jurabib}
2 # DescriptionBegin
3 #   Loads the LaTeX package jurabib, a citation engine. Jurabib supports annotations,
4 #   author-year style citations and hyphenation patterns for bibliography entries in
5 #   English, German, French, Dutch, Spanish and Italian.
6 # DescriptionEnd
7 # Excludes: basic | natbib
8 # Category: Citation engine
9
10 # Author: Julien Rioux <jrioux@lyx.org>
11
12 Format 43
13
14 Requires jurabib
15
16 CiteEngineType authoryear
17 DefaultBiblio  jurabib
18
19 # FIXME: support for these jurabib styles (fileformat)
20 # citefield []{}
21 # footcite [][]
22 # footcitetitle [][]
23 # footcitet [][]
24 # footcitep [][]
25 # footcitealt [][]
26 # footcitealp [][]
27 # footciteauthor [][]
28 # footciteyear [][]
29 # footciteyearpar [][]
30 # footfullcite [][]
31
32 CiteEngine authoryear
33         # \cite* is not implemented: use \cite instead, it's the same
34         cite [][]
35         citetitle [][]
36         citet [][]
37         citep [][]
38         citealt [][]
39         citealp [][]
40         citeauthor [][]
41         citeyear [][]
42         citeyearpar [][]
43         fullcite [][]
44         nocite
45 End
46
47 CiteFormat authoryear
48         # translatable bits
49         _notcited not cited
50         _addtobib Add to bibliography only.
51         _fullcite bibliography entry
52         _bibentry Bibliography entry.
53         _before before
54         _shorttitle short title
55
56         # macros
57         !open (
58         !sep ;
59         !close )
60
61         !cite %!shortauthor%%!textbefore2%%!textafter2%%!nextcite%
62         !citetitle %!shortauthor%%!textbefore2%%!shorttitle%%!textafter2%%!nextcitetitle%
63         !citet %!textbefore%%!shortauthor% %!open%%!year%%!textafter%%!close%%!nextcitet%
64         !citep %!open%%!citealp%%!close%
65         !citealt %!textbefore%%!shortauthor% %!year%%!textafter%%!nextcitealt%
66         !citealp %!textbefore%%!shortauthor%, %!year%%!textafter%%!nextcitealp%
67         !citeauthor %!textbefore%%!shortauthor%%!textafter%%!nextauthor%
68         !citeyear %!textbefore%%!year%%!textafter%%!nextyear%
69         !citeyearpar %!textbefore%%!open%%!year%%!close%%!textafter%%!nextyearpar%
70
71         !nextcite {%next%[[%!sep% %!shortauthor%%!textafter2%%!nextcite%]]}
72         !nextcitetitle {%next%[[%!sep% %!shortauthor%%!shorttitle%%!textafter2%%!nextcitetitle%]]}
73         !nextcitet {%next%[[%!sep% %!citet%]]}
74         !nextcitealt {%next%[[%!sep% %!citealt%]]}
75         !nextcitealp {%next%[[%!sep% %!citealp%]]}
76         !nextauthor {%next%[[%!sep% %!citeauthor%]]}
77         !nextyear {%next%[[%!sep% %!citeyear%]]}
78         !nextyearpar {%next%[[%!sep% %!citeyearpar%]]}
79         !nextkey {%next%[[%!sep% %key%%!nextkey%]]}
80
81         !shortauthor {%shortauthor%[[%shortauthor%]][[??]]}
82         !shorttitle {%shorttitle%[[ %shorttitle%]][[{%dialog%[[ <%_shorttitle%>]]}]]}
83         !textbefore {%textbefore%[[%textbefore% ]]}
84         !textbefore2 {%textbefore%[[/%textbefore%]][[{%dialog%[[/<%_before%>]]}]]}
85         !textafter {%textafter%[[, %textafter%]]}
86         !textafter2 {%textafter%[[ %textafter%]]}
87         !year {%year%[[%year%]][[??]]}
88
89         # cite styles
90         cite %!cite%
91         citetitle %!citetitle%
92         citet %!citet%
93         citep %!citep%
94         citealt %!citealt%
95         citealp %!citealp%
96         citeauthor %!citeauthor%
97         citeyear %!citeyear%
98         citeyearpar %!citeyearpar%
99         fullcite {%dialog%[[%_bibentry%]][[%key%%!nextkey% (%_fullcite%)]]}
100         nocite {%dialog%[[%_addtobib%]][[%key%%!nextkey% (%_notcited%)]]}
101 End