]> git.lyx.org Git - lyx.git/blob - lib/layouts/stdciteformats.inc
a589cf0260ffdcf8cfc478e17ccc73bf8a86fb84
[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 68
15
16 CiteFormat default
17         #
18         # Translatable bits (need to be marked by _ prefix, if translated to the GUI language,
19         # or B_, if translated to the buffer language)
20         # Note that preceding and trailing spaces matter.
21         #
22         B_pptext pp.
23         B_edtext ed.
24         B_edstext eds.
25         B_voltext vol.
26         B_numtext no.
27         B_in in
28         # The following are handled by BiblioInfo. Note that preceding and trailing spaces matter
29         B_namesep , [[separate author names in citation, except for last name]]
30         B_lastnamesep , and [[separate name of last author in citation]]
31         B_pairnamesep  and [[separate two authors in citation]]
32
33         #
34         # Macros
35         #
36         # Scheme of the first author in the bibliography
37         !firstnameform {%prefix%[[%prefix% ]]}%surname%{%suffix%[[, %suffix%]]}{%prename%[[, %prename%]]}
38         # Scheme of other authors in the bibliography
39         !othernameform {%prefix%[[%prefix% ]]}%surname%{%suffix%[[, %suffix%]]}{%prename%[[, %prename%]]}
40         # Scheme of the first name in later parts (such as book editor)
41         !firstbynameform %prename% {%prefix%[[%prefix% ]]}%surname%{%suffix%[[, %suffix%]]}
42         # Scheme of other authors in later parts (such as book editor)
43         !otherbynameform %prename% {%prefix%[[%prefix% ]]}%surname%{%suffix%[[, %suffix%]]}
44         # Scheme of authors in citation references
45         !citenameform {%prefix%[[%prefix% ]]}%surname%
46         # pagination
47         !pages {%pages%[[, %B_pptext% %pages%]]}
48         # ed. or eds.
49         !makeed {%ifmultiple:editor%[[%B_edstext%]][[%B_edtext%]]}
50         # author or editor, as fullnames, following the schemes above
51         !authoredit {%fullnames:author%[[%fullnames:author%, ]][[{%fullnames:editor%[[%fullnames:editor%, %!makeed%, ]]}]]}
52         # "vol. 1, no.
53         !volnum {%volume%[[ %B_voltext% %volume%, {%number%[[%B_numtext% %number%]]}]]}
54         !quotetitle "%title%"
55         !emphtitle {!<i>!}%title%{!</i>!}
56         !emphjournal {!<i>!}{%journal%[[%journal%]][[{%journaltitle%[[%journaltitle%]]}]]}{!</i>!}
57         !location {%address%[[%address%: ]][[{%location%[[%location%: ]]}]]}
58
59         #
60         # Entry types. Note that final punctuation will be added later, if needed.
61         #
62         !insomething %fullnames:author%, %!quotetitle%, %B_in%{%fullbynames:editor%[[ %fullbynames:editor%, %!makeed%,]]} {!<i>!}%booktitle%{!</i>!}%!volnum%{%edition%[[ %edition%]]} (%!location%%publisher%, %year%)%!pages%{%note%[[. %note%]]}
63
64         article %fullnames:author%, %!quotetitle%, %!emphjournal% {%volume%[[ %volume%{%number%[[, %number%]]}]]} (%year%)%!pages%{%note%[[. %note%]]}
65
66         !booklike %!authoredit%%!emphtitle%%!volnum%{%edition%[[ %edition%]]} (%!location%%publisher%, %year%){%note%[[. %note%]]}
67         book %!booklike%
68         collection %!booklike%
69         proceedings %!booklike%
70
71         incollection %!insomething%
72         inproceedings %!insomething%
73
74         !theses %fullnames:author%, %title% (%!location%{%school%[[%school%]][[%institution%]]}, %year%){%note%[[. %note%]]}
75         thesis %!theses%
76         phdthesis %!theses%
77         mastersthesis %!theses%
78 End