| 1 |
% BibTeX bibliography style `subset' |
| 2 |
% by David Kotz [email protected] |
| 3 |
% August 1992, May 1993, February 1999 |
| 4 |
% This takes an aux file and produces an unusual .bbl file, |
| 5 |
% that is actually in .bib format -- but it has all of the references, |
| 6 |
% and strings expanded. Thus, it becomes a complete, portable .bib |
| 7 |
% file. Crossrefs are retained but redundant. |
| 8 |
% This one doesn't include 'comment' in output. |
| 9 |
% modified from |
| 10 |
% BibTeX bibliography style `abstract' |
| 11 |
% by David Kotz [email protected] |
| 12 |
% March 1989 |
| 13 |
% modified from |
| 14 |
% BibTeX standard bibliography style `alpha' |
| 15 |
% version 0.99a for BibTeX versions 0.99a or later, LaTeX version 2.09. |
| 16 |
% Copyright (C) 1985, all rights reserved. |
| 17 |
% Copying of this file is authorized only if either |
| 18 |
% (1) you make absolutely no changes to your copy, including name, or |
| 19 |
% (2) if you do make changes, you name it something other than |
| 20 |
% btxbst.doc, plain.bst, unsrt.bst, alpha.bst, and abbrv.bst. |
| 21 |
% This restriction helps ensure that all standard styles are identical. |
| 22 |
% The file btxbst.doc has the documentation for this style. |
| 23 |
|
| 24 |
% DFK added abstract, comment, keyword to standard set |
| 25 |
% 5/93 DFK added private, ignored when subsetting |
| 26 |
% 7/94 DFK added URL |
| 27 |
ENTRY |
| 28 |
{ abstract |
| 29 |
address |
| 30 |
author |
| 31 |
booktitle |
| 32 |
category |
| 33 |
chapter |
| 34 |
comment |
| 35 |
earlier |
| 36 |
edition |
| 37 |
editor |
| 38 |
howpublished |
| 39 |
institution |
| 40 |
journal |
| 41 |
key |
| 42 |
keyword |
| 43 |
later |
| 44 |
month |
| 45 |
note |
| 46 |
number |
| 47 |
organization |
| 48 |
pages |
| 49 |
private |
| 50 |
publisher |
| 51 |
school |
| 52 |
series |
| 53 |
title |
| 54 |
type |
| 55 |
URL |
| 56 |
volume |
| 57 |
year |
| 58 |
} |
| 59 |
{} |
| 60 |
{ label extra.label sort.label } |
| 61 |
|
| 62 |
STRINGS { s t } |
| 63 |
|
| 64 |
% output a field; the top is the text, the next to top is the name of |
| 65 |
% the field, and we know that the text is nonnull. |
| 66 |
% we start by finishing the previous line |
| 67 |
FUNCTION {output.field} |
| 68 |
{ |
| 69 |
", " write$ % write comma and newline |
| 70 |
newline$ |
| 71 |
" " write$ % and a respectable indentation |
| 72 |
|
| 73 |
swap$ % now field name is on top |
| 74 |
" = {" * % put = { |
| 75 |
swap$ * % now text is back on top; concatenate |
| 76 |
"}" * % put } |
| 77 |
write$ |
| 78 |
} |
| 79 |
|
| 80 |
% output if top not empty; below the top is the name of the field |
| 81 |
FUNCTION {output} |
| 82 |
{ duplicate$ empty$ |
| 83 |
{ pop$ pop$ } |
| 84 |
'output.field |
| 85 |
if$ |
| 86 |
} |
| 87 |
|
| 88 |
% prints each field |
| 89 |
FUNCTION {output.bibfields} |
| 90 |
{ |
| 91 |
% The fields, in what seems to be a good order |
| 92 |
"key" key output |
| 93 |
"author" author output |
| 94 |
"title" title output |
| 95 |
|
| 96 |
"journal" journal output |
| 97 |
"booktitle" booktitle output |
| 98 |
|
| 99 |
"chapter" chapter output |
| 100 |
"edition" edition output |
| 101 |
"editor" editor output |
| 102 |
|
| 103 |
crossref missing$ |
| 104 |
{ } |
| 105 |
{ "crossref" crossref output } |
| 106 |
if$ |
| 107 |
|
| 108 |
"year" year output |
| 109 |
"month" month output |
| 110 |
"series" series output |
| 111 |
"volume" volume output |
| 112 |
"number" number output |
| 113 |
"type" type output |
| 114 |
|
| 115 |
"pages" pages output |
| 116 |
|
| 117 |
"institution" institution output |
| 118 |
"school" school output |
| 119 |
"organization" organization output |
| 120 |
"publisher" publisher output |
| 121 |
"howpublished" howpublished output |
| 122 |
"address" address output |
| 123 |
|
| 124 |
"category" category output |
| 125 |
|
| 126 |
"note" note output |
| 127 |
|
| 128 |
"earlier" earlier output |
| 129 |
"later" later output |
| 130 |
|
| 131 |
"URL" URL output |
| 132 |
"keyword" keyword output |
| 133 |
"abstract" abstract output |
| 134 |
% "comment" comment output |
| 135 |
} |
| 136 |
|
| 137 |
% Takes name of type as argument, and prints @ line |
| 138 |
% then it prints each field |
| 139 |
FUNCTION {output.bibitem} |
| 140 |
{ |
| 141 |
% write the @ line |
| 142 |
"@" swap$ * write$ % @type |
| 143 |
"{" cite$ * write$ % {citekey |
| 144 |
|
| 145 |
output.bibfields |
| 146 |
|
| 147 |
% finish entry |
| 148 |
newline$ |
| 149 |
"}" write$ |
| 150 |
newline$ |
| 151 |
newline$ |
| 152 |
} |
| 153 |
|
| 154 |
FUNCTION {article}{ "Article" output.bibitem } |
| 155 |
|
| 156 |
FUNCTION {book}{ "Book" output.bibitem } |
| 157 |
|
| 158 |
FUNCTION {booklet}{ "Booklet" output.bibitem } |
| 159 |
|
| 160 |
FUNCTION {inbook}{ "InBook" output.bibitem } |
| 161 |
|
| 162 |
FUNCTION {incollection}{ "InCollection" output.bibitem } |
| 163 |
|
| 164 |
FUNCTION {inproceedings}{ "InProceedings" output.bibitem } |
| 165 |
|
| 166 |
FUNCTION {conference}{ "Conference" output.bibitem } |
| 167 |
|
| 168 |
FUNCTION {manual}{ "Manual" output.bibitem } |
| 169 |
|
| 170 |
FUNCTION {mastersthesis}{ "MastersThesis" output.bibitem } |
| 171 |
|
| 172 |
FUNCTION {misc}{ "Misc" output.bibitem } |
| 173 |
|
| 174 |
FUNCTION {phdthesis}{ "PhdThesis" output.bibitem } |
| 175 |
|
| 176 |
FUNCTION {proceedings}{ "Proceedings" output.bibitem } |
| 177 |
|
| 178 |
FUNCTION {techreport}{ "TechReport" output.bibitem } |
| 179 |
|
| 180 |
FUNCTION {unpublished}{ "Unpublished" output.bibitem } |
| 181 |
|
| 182 |
FUNCTION {default.type} { misc } |
| 183 |
|
| 184 |
MACRO {jan} {"January"} |
| 185 |
|
| 186 |
MACRO {feb} {"February"} |
| 187 |
|
| 188 |
MACRO {mar} {"March"} |
| 189 |
|
| 190 |
MACRO {apr} {"April"} |
| 191 |
|
| 192 |
MACRO {may} {"May"} |
| 193 |
|
| 194 |
MACRO {jun} {"June"} |
| 195 |
|
| 196 |
MACRO {jul} {"July"} |
| 197 |
|
| 198 |
MACRO {aug} {"August"} |
| 199 |
|
| 200 |
MACRO {sep} {"September"} |
| 201 |
|
| 202 |
MACRO {oct} {"October"} |
| 203 |
|
| 204 |
MACRO {nov} {"November"} |
| 205 |
|
| 206 |
MACRO {dec} {"December"} |
| 207 |
|
| 208 |
MACRO {acmcs} {"ACM Computing Surveys"} |
| 209 |
|
| 210 |
MACRO {acta} {"Acta Informatica"} |
| 211 |
|
| 212 |
MACRO {cacm} {"Communications of the ACM"} |
| 213 |
|
| 214 |
MACRO {ibmjrd} {"IBM Journal of Research and Development"} |
| 215 |
|
| 216 |
MACRO {ibmsj} {"IBM Systems Journal"} |
| 217 |
|
| 218 |
MACRO {ieeese} {"IEEE Transactions on Software Engineering"} |
| 219 |
|
| 220 |
MACRO {ieeetc} {"IEEE Transactions on Computers"} |
| 221 |
|
| 222 |
MACRO {ieeetcad} |
| 223 |
{"IEEE Transactions on Computer-Aided Design of Integrated Circuits"} |
| 224 |
|
| 225 |
MACRO {ipl} {"Information Processing Letters"} |
| 226 |
|
| 227 |
MACRO {jacm} {"Journal of the ACM"} |
| 228 |
|
| 229 |
MACRO {jcss} {"Journal of Computer and System Sciences"} |
| 230 |
|
| 231 |
MACRO {scp} {"Science of Computer Programming"} |
| 232 |
|
| 233 |
MACRO {sicomp} {"SIAM Journal on Computing"} |
| 234 |
|
| 235 |
MACRO {tocs} {"ACM Transactions on Computer Systems"} |
| 236 |
|
| 237 |
MACRO {tods} {"ACM Transactions on Database Systems"} |
| 238 |
|
| 239 |
MACRO {tog} {"ACM Transactions on Graphics"} |
| 240 |
|
| 241 |
MACRO {toms} {"ACM Transactions on Mathematical Software"} |
| 242 |
|
| 243 |
MACRO {toois} {"ACM Transactions on Office Information Systems"} |
| 244 |
|
| 245 |
MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"} |
| 246 |
|
| 247 |
MACRO {tcs} {"Theoretical Computer Science"} |
| 248 |
|
| 249 |
READ |
| 250 |
|
| 251 |
% DFK use cite$ for sort key |
| 252 |
FUNCTION {presort} |
| 253 |
{ |
| 254 |
cite$ |
| 255 |
#1 entry.max$ substring$ |
| 256 |
'sort.key$ := |
| 257 |
} |
| 258 |
|
| 259 |
ITERATE {presort} |
| 260 |
|
| 261 |
SORT |
| 262 |
|
| 263 |
FUNCTION {begin.bib} |
| 264 |
{ |
| 265 |
"% BibTeX bibliography file" write$ |
| 266 |
newline$ |
| 267 |
newline$ |
| 268 |
} |
| 269 |
|
| 270 |
EXECUTE {begin.bib} |
| 271 |
|
| 272 |
ITERATE {call.type$} |