| 1 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2 |
%% |
| 3 |
%% This file is part of BibTool. |
| 4 |
%% It is distributed under the GNU General Public License. |
| 5 |
%% See the file COPYING for details. |
| 6 |
%% |
| 7 |
%% (c) 2017-2019 Gerd Neugebauer |
| 8 |
%% |
| 9 |
%% Net: [email protected] |
| 10 |
%% |
| 11 |
%% This program is free software; you can redistribute it and/or modify |
| 12 |
%% it under the terms of the GNU General Public License as published by |
| 13 |
%% the Free Software Foundation; either version 2, or (at your option) |
| 14 |
%% any later version. |
| 15 |
%% |
| 16 |
%% This program is distributed in the hope that it will be useful, |
| 17 |
%% but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18 |
%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 19 |
%% GNU General Public License for more details. |
| 20 |
%% |
| 21 |
%% You should have received a copy of the GNU General Public License |
| 22 |
%% along with this program; if not, write to the Free Software |
| 23 |
%% Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 24 |
%% |
| 25 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 26 |
% |
| 27 |
% Keep only fields in the standard BibTeX styles |
| 28 |
% |
| 29 |
keep.field {{key |
| 30 |
note}} |
| 31 |
keep.field {{author |
| 32 |
title |
| 33 |
journal |
| 34 |
year |
| 35 |
volume |
| 36 |
number |
| 37 |
pages |
| 38 |
month} |
| 39 |
if $type = article} |
| 40 |
|
| 41 |
keep.field {{author |
| 42 |
editor |
| 43 |
title |
| 44 |
publisher |
| 45 |
year |
| 46 |
volume |
| 47 |
number |
| 48 |
series |
| 49 |
address |
| 50 |
edition |
| 51 |
month} |
| 52 |
if $type = book} |
| 53 |
|
| 54 |
keep.field {{title |
| 55 |
author |
| 56 |
howpublished |
| 57 |
address |
| 58 |
month |
| 59 |
year} |
| 60 |
if $type = booklet} |
| 61 |
|
| 62 |
keep.field {{author |
| 63 |
title |
| 64 |
booktitle |
| 65 |
year |
| 66 |
editor |
| 67 |
volume |
| 68 |
number |
| 69 |
series |
| 70 |
pages |
| 71 |
address |
| 72 |
month |
| 73 |
organization |
| 74 |
publisher} |
| 75 |
if $type = conference } |
| 76 |
|
| 77 |
keep.field {{author |
| 78 |
editor |
| 79 |
title |
| 80 |
chapter |
| 81 |
pages |
| 82 |
publisher |
| 83 |
year |
| 84 |
volume |
| 85 |
number |
| 86 |
series |
| 87 |
type |
| 88 |
address |
| 89 |
edition |
| 90 |
month} |
| 91 |
if $type = inbook} |
| 92 |
|
| 93 |
keep.field {{author |
| 94 |
title |
| 95 |
booktitle |
| 96 |
publisher |
| 97 |
year |
| 98 |
editor |
| 99 |
volume |
| 100 |
number |
| 101 |
series |
| 102 |
type |
| 103 |
chapter |
| 104 |
pages |
| 105 |
address |
| 106 |
edition |
| 107 |
month} |
| 108 |
if $type = incollection} |
| 109 |
|
| 110 |
keep.field {{author |
| 111 |
title |
| 112 |
booktitle |
| 113 |
year |
| 114 |
editor |
| 115 |
volume |
| 116 |
number |
| 117 |
series |
| 118 |
pages |
| 119 |
address |
| 120 |
month |
| 121 |
organization |
| 122 |
publisher} |
| 123 |
if $type = inproceedings} |
| 124 |
|
| 125 |
keep.field {{title |
| 126 |
author |
| 127 |
organization |
| 128 |
address |
| 129 |
edition |
| 130 |
month |
| 131 |
year} |
| 132 |
if $type = manual} |
| 133 |
|
| 134 |
keep.field {{author |
| 135 |
title |
| 136 |
school |
| 137 |
year |
| 138 |
type |
| 139 |
address |
| 140 |
month} |
| 141 |
if $type = mastersthesis} |
| 142 |
|
| 143 |
keep.field {{author |
| 144 |
title |
| 145 |
howpublished |
| 146 |
month |
| 147 |
year} |
| 148 |
if $type = misc} |
| 149 |
|
| 150 |
keep.field {{author |
| 151 |
title |
| 152 |
school |
| 153 |
year |
| 154 |
type |
| 155 |
address |
| 156 |
month} |
| 157 |
if $type = phdthesis} |
| 158 |
|
| 159 |
keep.field {{title |
| 160 |
year |
| 161 |
editor |
| 162 |
volume |
| 163 |
number |
| 164 |
series |
| 165 |
address |
| 166 |
month |
| 167 |
organization |
| 168 |
publisher} |
| 169 |
if $type = proceedings} |
| 170 |
|
| 171 |
keep.field {{author |
| 172 |
title |
| 173 |
institution |
| 174 |
year |
| 175 |
type |
| 176 |
number |
| 177 |
address |
| 178 |
month} |
| 179 |
if $type = techreport} |
| 180 |
|
| 181 |
keep.field {{author |
| 182 |
title |
| 183 |
month |
| 184 |
year} |
| 185 |
if $type = unpublished} |