oxedyne/fe2o3/fe2o3_text/tests/data/csl/corpus/aaai.csl
9.9 KiB, 1 run
created by r1870400018:72738, which is this file's identity for as long as the history lasts, whatever it is later renamed to
download · who wrote it · its history
| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="never" default-locale="en-US"> |
| 3 | <info> |
| 4 | <title>Association for the Advancement of Artificial Intelligence</title> |
| 5 | <title-short>AAAI</title-short> |
| 6 | <id>https://github.com/daskol/typst-templates/blob/main/aaai/aaai.csl</id> |
| 7 | <link href="https://github.com/daskol/typst-templates/blob/main/aaai/aaai.csl" rel="self"/> |
| 8 | <link href="http://www.zotero.org/styles/association-for-computational-linguistics" rel="template"/> |
| 9 | <!-- Adapted from the ACL style to the AAAI 2026 author kit and aaai2026.bst. --> |
| 10 | <author> |
| 11 | <name>Hajime Senuma</name> |
| 12 | <email>hajime.senuma@gmail.com</email> |
| 13 | <uri>https://github.com/hajimes</uri> |
| 14 | </author> |
| 15 | <category citation-format="author-date"/> |
| 16 | <category field="engineering"/> |
| 17 | <summary>AAAI author-year citations and bibliography, adapted for Typst.</summary> |
| 18 | <published>2013-11-20T21:00:00Z</published> |
| 19 | <updated>2026-09-25T00:00:00+00:00</updated> |
| 20 | <rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights> |
| 21 | </info> |
| 22 | <macro name="author"> |
| 23 | <names variable="author"> |
| 24 | <name name-as-sort-order="all" initialize-with=". " and="text" delimiter="; " delimiter-precedes-last="always"/> |
| 25 | <substitute> |
| 26 | <text value=""/> |
| 27 | </substitute> |
| 28 | </names> |
| 29 | </macro> |
| 30 | <macro name="author-short"> |
| 31 | <names variable="author"> |
| 32 | <name form="short" and="text" delimiter=", "/> |
| 33 | <substitute> |
| 34 | <names variable="editor"> |
| 35 | <name form="short" and="text" delimiter=", "/> |
| 36 | </names> |
| 37 | <text variable="title" form="short"/> |
| 38 | </substitute> |
| 39 | </names> |
| 40 | </macro> |
| 41 | <macro name="editor"> |
| 42 | <names variable="editor"> |
| 43 | <name name-as-sort-order="all" initialize-with=". " and="text" delimiter="; " delimiter-precedes-last="always"/> |
| 44 | <label prefix=", " form="short"/> |
| 45 | </names> |
| 46 | </macro> |
| 47 | <macro name="author-or-editor"> |
| 48 | <names variable="author"> |
| 49 | <name name-as-sort-order="all" initialize-with=". " and="text" delimiter="; " delimiter-precedes-last="always"/> |
| 50 | <substitute> |
| 51 | <text macro="editor"/> |
| 52 | <text value=""/> |
| 53 | </substitute> |
| 54 | </names> |
| 55 | </macro> |
| 56 | <macro name="year-date"> |
| 57 | <choose> |
| 58 | <if variable="issued"> |
| 59 | <date variable="issued"> |
| 60 | <date-part name="year"/> |
| 61 | </date> |
| 62 | </if> |
| 63 | <else> |
| 64 | <text value=" "/> |
| 65 | </else> |
| 66 | </choose> |
| 67 | </macro> |
| 68 | <macro name="edition"> |
| 69 | <choose> |
| 70 | <if is-numeric="edition"> |
| 71 | <group delimiter=" "> |
| 72 | <number variable="edition" form="ordinal"/> |
| 73 | <text term="edition" form="short"/> |
| 74 | </group> |
| 75 | </if> |
| 76 | <else> |
| 77 | <text variable="edition"/> |
| 78 | </else> |
| 79 | </choose> |
| 80 | </macro> |
| 81 | <macro name="volume-or-number"> |
| 82 | <choose> |
| 83 | <if variable="volume"> |
| 84 | <group delimiter=" "> |
| 85 | <label variable="volume"/> |
| 86 | <number variable="volume"/> |
| 87 | </group> |
| 88 | </if> |
| 89 | <else-if variable="number"> |
| 90 | <group delimiter=" "> |
| 91 | <text value="number"/> |
| 92 | <number variable="number"/> |
| 93 | </group> |
| 94 | </else-if> |
| 95 | <else-if variable="issue"> |
| 96 | <group delimiter=" "> |
| 97 | <text value="number"/> |
| 98 | <number variable="issue"/> |
| 99 | </group> |
| 100 | </else-if> |
| 101 | </choose> |
| 102 | </macro> |
| 103 | <macro name="event-or-publisher-place"> |
| 104 | <choose> |
| 105 | <if variable="event-place"> |
| 106 | <text variable="event-place"/> |
| 107 | </if> |
| 108 | <else> |
| 109 | <text variable="publisher-place"/> |
| 110 | </else> |
| 111 | </choose> |
| 112 | </macro> |
| 113 | <macro name="thesis-type"> |
| 114 | <choose> |
| 115 | <if variable="genre"> |
| 116 | <text variable="genre"/> |
| 117 | </if> |
| 118 | <else> |
| 119 | <text value="Ph.D. thesis"/> |
| 120 | </else> |
| 121 | </choose> |
| 122 | </macro> |
| 123 | <macro name="volume-and-collection-title"> |
| 124 | <choose> |
| 125 | <if variable="volume collection-title" match="all"> |
| 126 | <group delimiter=" "> |
| 127 | <text term="volume"/> |
| 128 | <number variable="volume"/> |
| 129 | <text value="of"/> |
| 130 | <text variable="collection-title" font-style="italic"/> |
| 131 | </group> |
| 132 | </if> |
| 133 | <else-if variable="volume"> |
| 134 | <group delimiter=" "> |
| 135 | <text term="volume"/> |
| 136 | <number variable="volume"/> |
| 137 | </group> |
| 138 | </else-if> |
| 139 | <!-- TODO: else-if for issue or number--> |
| 140 | <else> |
| 141 | <text variable="collection-title"/> |
| 142 | </else> |
| 143 | </choose> |
| 144 | </macro> |
| 145 | <macro name="technical-report"> |
| 146 | <choose> |
| 147 | <if variable="number issue" match="any"> |
| 148 | <group delimiter=" "> |
| 149 | <!-- uppercased "report" --> |
| 150 | <text value="Technical Report"/> |
| 151 | <choose> |
| 152 | <if variable="number"> |
| 153 | <text variable="number"/> |
| 154 | </if> |
| 155 | <else> |
| 156 | <text variable="issue"/> |
| 157 | </else> |
| 158 | </choose> |
| 159 | </group> |
| 160 | </if> |
| 161 | <else> |
| 162 | <!-- lowercased "report" --> |
| 163 | <text value="Technical report"/> |
| 164 | </else> |
| 165 | </choose> |
| 166 | </macro> |
| 167 | <citation et-al-min="4" et-al-use-first="1" disambiguate-add-year-suffix="true"> |
| 168 | <!-- no sorting for citation --> |
| 169 | <layout prefix="(" suffix=")" delimiter="; "> |
| 170 | <group delimiter=" "> |
| 171 | <text macro="author-short"/> |
| 172 | <text macro="year-date"/> |
| 173 | </group> |
| 174 | </layout> |
| 175 | </citation> |
| 176 | <bibliography> |
| 177 | <sort> |
| 178 | <key macro="author-or-editor"/> |
| 179 | <key macro="year-date"/> |
| 180 | <key variable="title"/> |
| 181 | </sort> |
| 182 | <layout> |
| 183 | <!-- author --> |
| 184 | <choose> |
| 185 | <if type="book"> |
| 186 | <text macro="author-or-editor" suffix="."/> |
| 187 | </if> |
| 188 | <else> |
| 189 | <text macro="author" suffix="."/> |
| 190 | </else> |
| 191 | </choose> |
| 192 | <!-- year --> |
| 193 | <date variable="issued" prefix=" " suffix="."> |
| 194 | <date-part name="year"/> |
| 195 | </date> |
| 196 | <!-- title and other information --> |
| 197 | <choose> |
| 198 | <!-- corresponds to "article" in bibtex --> |
| 199 | <if type="article-journal"> |
| 200 | <text variable="title" prefix=" " suffix="."/> |
| 201 | <group prefix=" " suffix="."> |
| 202 | <text variable="container-title" font-style="italic"/> |
| 203 | <text variable="volume" prefix=", "/> |
| 204 | <text variable="issue" prefix="(" suffix=")"/> |
| 205 | <text variable="page" prefix=": "/> |
| 206 | </group> |
| 207 | </if> |
| 208 | <!-- corresponds to "proceedings", "manual", "book", and "periodical" in bibtex --> |
| 209 | <else-if type="book"> |
| 210 | <text variable="title" prefix=" " suffix="." font-style="italic"/> |
| 211 | <group delimiter=", " suffix="."> |
| 212 | <text macro="volume-and-collection-title"/> |
| 213 | </group> |
| 214 | <group delimiter=", " prefix=" " suffix="."> |
| 215 | <group delimiter=": "> |
| 216 | <text variable="publisher-place"/> |
| 217 | <text variable="publisher"/> |
| 218 | </group> |
| 219 | <text macro="edition"/> |
| 220 | </group> |
| 221 | </else-if> |
| 222 | <!-- corresponds to "inbook" and "incollection" in bibtex --> |
| 223 | <else-if type="chapter"> |
| 224 | <text variable="title" prefix=" " suffix="."/> |
| 225 | <text term="in" text-case="capitalize-first" prefix=" " suffix=" "/> |
| 226 | <group delimiter=", " suffix="."> |
| 227 | <text macro="editor"/> |
| 228 | <text variable="container-title" font-style="italic"/> |
| 229 | <text macro="volume-and-collection-title"/> |
| 230 | <group delimiter=" "> |
| 231 | <text term="chapter"/> |
| 232 | <number variable="chapter-number"/> |
| 233 | </group> |
| 234 | <text variable="page"/> |
| 235 | </group> |
| 236 | <group delimiter=", " prefix=" " suffix="."> |
| 237 | <group delimiter=": "> |
| 238 | <text variable="publisher-place"/> |
| 239 | <text variable="publisher"/> |
| 240 | </group> |
| 241 | <text macro="edition"/> |
| 242 | </group> |
| 243 | </else-if> |
| 244 | <!-- corresponds to "booklet" in bibtex --> |
| 245 | <else-if type="pamphlet"> |
| 246 | <text variable="title" prefix=" " suffix="."/> |
| 247 | <group delimiter=", " prefix=" " suffix="."> |
| 248 | <text variable="publisher-place"/> |
| 249 | </group> |
| 250 | </else-if> |
| 251 | <!-- corresponds to "inproceedings" and "conference" in bibtex --> |
| 252 | <else-if type="paper-conference"> |
| 253 | <text variable="title" prefix=" " suffix=". "/> |
| 254 | <text term="in" text-case="capitalize-first" suffix=" "/> |
| 255 | <group suffix="." delimiter=", "> |
| 256 | <text macro="editor"/> |
| 257 | <text variable="container-title" font-style="italic"/> |
| 258 | <text macro="volume-or-number"/> |
| 259 | <text variable="page"/> |
| 260 | </group> |
| 261 | <group delimiter=": " prefix=" " suffix="."> |
| 262 | <text macro="event-or-publisher-place"/> |
| 263 | <text variable="publisher"/> |
| 264 | </group> |
| 265 | </else-if> |
| 266 | <!-- corresponds to "techreport" in bibtex --> |
| 267 | <else-if type="report"> |
| 268 | <text variable="title" prefix=" " suffix="."/> |
| 269 | <group delimiter=", " prefix=" " suffix="."> |
| 270 | <text macro="technical-report"/> |
| 271 | <text variable="publisher"/> |
| 272 | <text variable="publisher-place"/> |
| 273 | </group> |
| 274 | </else-if> |
| 275 | <!-- corresponds to "phdthesis" and "masterthesis" in bibtex --> |
| 276 | <else-if type="thesis"> |
| 277 | <text variable="title" prefix=" " suffix="." font-style="italic"/> |
| 278 | <group delimiter=", " prefix=" " suffix="."> |
| 279 | <!-- If you want to output text other than "Ph.D thesis", specify the "genre" field to an appropriate value like "Master's thesis".--> |
| 280 | <text macro="thesis-type"/> |
| 281 | <text variable="publisher"/> |
| 282 | <text variable="publisher-place"/> |
| 283 | </group> |
| 284 | </else-if> |
| 285 | <!-- misc. --> |
| 286 | <else> |
| 287 | <text variable="title" prefix=" " suffix="."/> |
| 288 | <text variable="URL" prefix=" " suffix="."/> |
| 289 | </else> |
| 290 | </choose> |
| 291 | <!-- note --> |
| 292 | <text variable="note" prefix=" " suffix="."/> |
| 293 | </layout> |
| 294 | </bibliography> |
| 295 | </style> |