]> git.lyx.org Git - lyx.git/blob - lib/layouts/stdciteformats.inc
Allow for simple conditions in name scheme.
[lyx.git] / lib / layouts / stdciteformats.inc
1 # Standard formats for bibliography entries.
2 #
3 # This defines how LyX displays bibliographic information in the GUI
4 # as well as in text/xhtml output. The format of citation references
5 # is defined in the *.citeengines files, which might override the
6 # default formatting defined here.
7 #
8 # This file is included by the citation engines, so there is no need
9 # to include it in individual classes.
10 #
11 # Author: Richard Heck <rgheck@comcast.net>
12 #         Jürgen Spitzmüller <spitz@lyx.org>
13
14 Format 63
15
16 CiteFormat default
17         #
18         # Translatable bits
19         #
20         _pptext pp.
21         _edtext ed.
22         _edstext eds.
23         _voltext vol.
24         _numtext no.
25         _in in
26         # The following are handled by BiblioInfo. Note that preceding and trailing spaces matter
27         _namesep , [[separate author names in citation, except for last name]]
28         _lastnamesep , and [[separate name of last author in citation]]
29         _pairnamesep  and [[separate two authors in citation]]
30
31         #
32         # Macros
33         #
34         # Scheme of the first author in the bibliography
35         !firstnameform %surname%{%prename%[[, %prename%]]}
36         # Scheme of other authors in the bibliography
37         !othernameform %surname%{%prename%[[, %prename%]]}
38         # Scheme of the first name in later parts (such as book editor)
39         !firstbynameform %prename% %surname%
40         # Scheme of other authors in later parts (such as book editor)
41         !otherbynameform %prename% %surname%
42         # pagination
43         !pages {%pages%[[, %_pptext% %pages%]]}
44         # ed. or eds.
45         !makeed {%ifmultiple:editor%[[%_edstext%]][[%_edtext%]]}
46         # author or editor, as fullnames, following the schemes above
47         !authoredit {%fullnames:author%[[%fullnames:author%, ]][[{%fullnames:editor%[[%fullnames:editor%, %!makeed%, ]]}]]}
48         # "vol. 1, no.
49         !volnum {%volume%[[ %_voltext% %volume%, {%number%[[%_numtext% %number%]]}]]}
50         !quotetitle "%title%"
51         !emphtitle {!<i>!}%title%{!</i>!}
52         !emphjournal {!<i>!}{%journal%[[%journal%]][[{%journaltitle%[[%journaltitle%]]}]]}{!</i>!}
53         !location {%address%[[%address%: ]][[{%location%[[%location%: ]]}]]}
54
55         #
56         # Entry types. Note that final punctuation will be added later, if needed.
57         #
58         !insomething %fullnames:author%, %!quotetitle%, %_in%{%fullbynames:editor%[[ %fullbynames:editor%, %!makeed%,]]} {!<i>!}%booktitle%{!</i>!}%!volnum%{%edition%[[ %edition%]]} (%!location%%publisher%, %year%)%!pages%{%note%[[. %note%]]}
59
60         article %fullnames:author%, %!quotetitle%, %!emphjournal% {%volume%[[ %volume%{%number%[[, %number%]]}]]} (%year%)%!pages%{%note%[[. %note%]]}
61
62         !booklike %!authoredit%%!emphtitle%%!volnum%{%edition%[[ %edition%]]} (%!location%%publisher%, %year%){%note%[[. %note%]]}
63         book %!booklike%
64         collection %!booklike%
65         proceedings %!booklike%
66
67         incollection %!insomething%
68         inproceedings %!insomething%
69
70         !theses %fullnames:author%, %title% (%!location%{%school%[[%school%]][[%institution%]]}, %year%){%note%[[. %note%]]}
71         thesis %!theses%
72         phdthesis %!theses%
73         mastersthesis %!theses%
74 End