-
Notifications
You must be signed in to change notification settings - Fork 6
/
natbib.sty.tags
616 lines (528 loc) · 19.5 KB
/
natbib.sty.tags
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
-- Copyright 1993-2010 Patrick W Daly
-- SPDX-License-Identifier: LPPL-1.3c+
--
-- Adapted from the natbib package documentation, which can be found at
-- https://ctan.org/pkg/natbib
ctan_package = "natbib"
-- 5 Package Options
options = {
round = {
summary = "for round parentheses (default)"
},
square = {
summary = "for square brackets"
},
angle = {
summary = "for angle brackets"
},
semicolon = {
summary = "separate multiple citations with semi-colons (default)"
},
colon = {
summary = "same as `semicolon`"
},
comma = {
summary = "use commas as separators"
},
authoryear = {
summary = "for author-year citations (default)"
},
numbers = {
summary = "for numerical citations"
},
super = {
summary = "for superscripted numerical citations"
},
sort = {
summary = "orders multiple citations into the sequence of the list of references"
},
["sort&compress"] = {
summary = "as `sort` but multiple numerical citations are compressed if possible"
},
compress = {
summary = "compress without sorting"
},
longnamesfirst = {
summary = "makes the first citation of any reference the equivalent of the starred variant"
},
sectionbib = {
"redefines `\\thebibliography` to issue `\\section*` instead of `\\chapter*`"
},
nonamebreak = {
summary = "keeps all the authors' names in a citation on one line"
},
merge = {
summary = "allow the * prefix to the citation key and for merging"
},
elide = {
summary = "elide common elements of merged references"
},
mcite = {
summary = "elide common elements of merged references"
}
}
commands = {
-- 2.3 Basic Citation Commands
cite = {
action = "cite",
arguments = {
{literal = "*", optional = true},
{delimiters = {"[", "]"}, meta = "prenote", optional = true},
{delimiters = {"[", "]"}, meta = "postnote", optional = true},
{list = true, meta = "keys"}
},
summary = "Refer to a bibliography item.",
details = [[
```latex
\cite[prenote][postnote]{key}
\cite*[prenote][postnote]{key}
```
`\cite` (without notes) is the same as `\citet` in author-year mode,
whereas in numerical mode, it is the same as `\citep`. The starred
version, as well as the one or two optional notes, may also be used.
This syntax has been retained for compatibility, but is no longer
encouraged.
* `\cite{jon90}` => Jones et al., (1990)
* `\cite[]{jon90}` => (Jones et al., 1990)
* `\cite[chap.~2]{jon90}` => (Jones et al., 1990, chap. 2)
* `\cite*{jon90}` => Jones, Baker, and Williams, (1990)
* `\cite*[]{jon90}` => (Jones, Baker, and Williams, 1990)]]
},
citep = {
action = "cite",
arguments = "$ref:natbib.sty#/commands/cite/arguments",
summary = "Refer to a bibliography item in parenthetical form.",
details = [[
```latex
\citep[prenote][postnote]{key}
\citep*[prenote][postnote]{key}
```
Basic command for a parenthetical citation. The starred version prints
the full author list, and not just the abbreviated one. These macros
may take one or two optional arguments to add some text before and
after the citation. Multiple citations may be made by including more
than one citation key in the \cite command argument.
* `\citep{jon90}` => (Jones et al., 1990)
* `\citep[chap.~2]{jon90}` => (Jones et al., 1990, chap. 2)
* `\citep[see][]{jon90}` => (see Jones et al., 1990)
* `\citep[see][chap.~2]{jon90}` => (see Jones et al., 1990, chap. 2)
* `\citep*{jon90}` => (Jones, Baker, and Williams, 1990)
* `\citep{jon90,jam91}` => (Jones et al., 1990; James et al. 1991)
* `\citep{jon90,jon91}` => (Jones et al., 1990, 1991)
* `\citep{jon90a,jon90b}` => (Jones et al., 1990a,b)
Note that a single optional text is a post-note, while two are the pre-
and post-notes. To have only a pre-note, it is necessary to provide
an empty post-note text, as shown above.]]
},
citet = {
action = "cite",
arguments = "$ref:natbib.sty#/commands/cite/arguments",
summary = "Refer to a bibliography item in textual form.",
details = [[
```latex
\citet[prenote][postnote]{key}
\citet*[prenote][postnote]{key}
```
Basic command for a textual citation. The starred version prints the
full author list, and not just the abbreviated one. These macros may
take one or two optional arguments to add some text before and after
the citation. Multiple citations may be made by including more than
one citation key in the \cite command argument.
* `\citet{jon90}` => Jones et al. (1990)
* `\citet[chap.~2]{jon90}` => Jones et al. (1990, chap. 2)
* `\citet[see][]{jon90}` => Jones et al. (see 1990)
* `\citet[see][chap.~2]{jon90}` => Jones et al. (see 1990, chap. 2)
* `\citet*{jon90}` => Jones, Baker, and Williams (1990)
* `\citet{jon90,jam91}` => Jones et al. (1990); James et al. (1991)
Note that a single optional text is a post-note, while two are the pre-
and post-notes. To have only a pre-note, it is necessary to provide
an empty post-note text, as shown above.]]
},
-- 2.4 Extended Citation Commands
citealp = {
action = "cite",
arguments = "$ref:natbib.sty#/commands/cite/arguments",
summary = "Refer to a bibliography item.",
details = [[
```latex
\citalp[prenote][postnote]{key}
\citalp*[prenote][postnote]{key}
```
Alternative from of `\citep` without parentheses. The starred version
prints the full author list, and not just the abbreviated one. These
macros may take one or two optional arguments to add some text before
and after the citation. Multiple citations may be made by including
more than one citation key in the \cite command argument.
* `\citealp{jon90}` => Jones et al., 1990
* `\citealp*{jon90}` => Jones, Baker, and Williams, 1990
* `\citealp{jon90,jam91}` => Jones et al., 1990; James et al. 1991
* `\citealp[pg.~32]{jon90}` => Jones et al., 1990, pg. 32
Note that a single optional text is a post-note, while two are the pre-
and post-notes. To have only a pre-note, it is necessary to provide
an empty post-note text.]]
},
citealt = {
action = "cite",
arguments = "$ref:natbib.sty#/commands/cite/arguments",
summary = "Refer to a bibliography item.",
details = [[
```latex
\citealt[prenote][postnote]{key}
\citealt*[prenote][postnote]{key}
```
Alternative from of `\citet` without parentheses. The starred version
prints the full author list, and not just the abbreviated one. These
macros may take one or two optional arguments to add some text before
and after the citation. Multiple citations may be made by including
more than one citation key in the \cite command argument.
* `\citealt{jon90}` => Jones et al. 1990
* `\citealt*{jon90}` => Jones et al. 1990
Note that a single optional text is a post-note, while two are the pre-
and post-notes. To have only a pre-note, it is necessary to provide
an empty post-note text.]]
},
citenum = {
action = "cite",
arguments = {{meta = "key"}},
summary = "Print the citation number.",
details = [[
```latex
\citenum{key}
```
This command prints the citation number, without parentheses, even in
author-year mode, and without raising it in superscript mode. This is
intended to be able to refer to citation numbers without
superscripting them.
`\citenum{jon90}` => 11]]
},
citetext = {
arguments = {{meta = "text"}},
summary = "Insert text in the current citation parentheses.",
details = [[
```latex
\citetext{text}
```
This command allows arbitrary text to be placed in the current
citation parentheses. This may be used in combination with
`\citealp`. For example,
* `\citetext{see \citealp{jon90}, or even better \citealp{jam91}}`
=> (see Jones et al., 1990, or even better James et al., 1991)]]
},
citeauthor = {
action = "cite",
arguments = "$ref:natbib.sty#/commands/cite/arguments",
summary = "Refer to a bibliography item.",
details = [[
```latex
\citeauthor[prenote][postnote]{key}
\citeauthor*[prenote][postnote]{key}
```
Refer to the authors without the year. Mostly useful in author-year
schemes. The starred version prints the full author list, and not
just the abbreviated one. These macros may take one or two optional
arguments to add some text before and after the citation. Multiple
citations may be made by including more than one citation key in the
\cite command argument.
* `\citeauthor{jon90}` => Jones et al.
* `\citeauthor*{jon90}` => Jones, Baker, and Williams
Note that a single optional text is a post-note, while two are the pre-
and post-notes. To have only a pre-note, it is necessary to provide
an empty post-note text.]]
},
citefullauthor = {
action = "cite",
arguments = "$ref:natbib.sty#/commands/citeyear/arguments",
summary = "Refer to a bibliography item.",
details = [[
```latex
\citefullauthor[prenote][postnote]{key}
```
Refer to the full list of authors without the year. Mostly useful in
author-year schemes. This macro is equivalent to `\citeauthor*`:
`\citefullauthor{jon90}` => Jones, Baker, and Williams
Note that a single optional text is a post-note, while two are the pre-
and post-notes. To have only a pre-note, it is necessary to provide
an empty post-note text.]]
},
citeyear = {
action = "cite",
arguments = {
{delimiters = {"[", "]"}, meta = "prenote", optional = true},
{delimiters = {"[", "]"}, meta = "postnote", optional = true},
{list = true, meta = "key"}
},
summary = "Refer to a bibliography item.",
details = [[
```latex
\citeyear[prenote][postnote]{key}
```
Refer to the year of a citation. Mostly useful in author-year
schemes.:
`\citeyear{jon90}` => 1990
Note that a single optional text is a post-note, while two are the pre-
and post-notes. To have only a pre-note, it is necessary to provide
an empty post-note text.]]
},
citeyearpar = {
action = "cite",
arguments = "$ref:natbib.sty#/commands/citeyear/arguments",
summary = "Refer to a bibliography item.",
details = [[
```latex
\citeyearpar[prenote][postnote]{key}
```
Refer to the year of a citation printed in parentheses. Mostly useful
in author-year schemes.:
`\citeyearpar{jon90}` => (1990)
Note that a single optional text is a post-note, while two are the pre-
and post-notes. To have only a pre-note, it is necessary to provide
an empty post-note text.]]
},
-- 2.5 Forcing Upper Cased Name
Citep = {
action = "cite",
arguments = "$ref:natbib.sty#/commands/cite/arguments",
summary = "Refer to a bibliography item in parenthetical form.",
details = [[
```latex
\Citep[prenote][postnote]{key}
\Citep*[prenote][postnote]{key}
```
Like `\citep` with the first letter uppercased. The starred version
prints the full author list, and not just the abbreviated one. These
macros may take one or two optional arguments to add some text before
and after the citation. Multiple citations may be made by including
more than one citation key in the \cite command argument.
* `\citep{dRob98}` => (della Robbia, 1990)
* `\Citep{dRob98}` => (Della Robbia, 1990)
Note that a single optional text is a post-note, while two are the pre-
and post-notes. To have only a pre-note, it is necessary to provide
an empty post-note text.]]
},
Citet = {
action = "cite",
arguments = "$ref:natbib.sty#/commands/cite/arguments",
summary = "Refer to a bibliography item in textual form.",
details = [[
```latex
\Citet[prenote][postnote]{key}
\Citet*[prenote][postnote]{key}
```
Like `\citet` with the first letter uppercased. The starred version
prints the full author list, and not just the abbreviated one. These
macros may take one or two optional arguments to add some text before
and after the citation. Multiple citations may be made by including
more than one citation key in the \cite command argument.
* `\citet{dRob98}` => della Robbia (1998)
* `\Citet{dRob98}` => Della Robbia (1998)
Note that a single optional text is a post-note, while two are the pre-
and post-notes. To have only a pre-note, it is necessary to provide
an empty post-note text.]]
},
Citealp = {
action = "cite",
arguments = "$ref:natbib.sty#/commands/cite/arguments",
summary = "Refer to a bibliography item.",
details = [[
```latex
\Citealp[prenote][postnote]{key}
\Citealp*[prenote][postnote]{key}
```
Like `\citealp` with the first letter uppercased. The starred version
prints the full author list, and not just the abbreviated one. These
macros may take one or two optional arguments to add some text before
and after the citation. Multiple citations may be made by including
more than one citation key in the \cite command argument.
* `\citealp{dRob98}` => della Robbia, 1998
* `\Citealp{dRob98}` => Della Robbia, 1998
Note that a single optional text is a post-note, while two are the pre-
and post-notes. To have only a pre-note, it is necessary to provide
an empty post-note text.]]
},
Citealt = {
action = "cite",
arguments = "$ref:natbib.sty#/commands/cite/arguments",
summary = "Refer to a bibliography item.",
details = [[
```latex
\Citealt[prenote][postnote]{key}
\Citealt*[prenote][postnote]{key}
```
Like `\citealt` with the first letter uppercased. The starred version
prints the full author list, and not just the abbreviated one. These
macros may take one or two optional arguments to add some text before
and after the citation. Multiple citations may be made by including
more than one citation key in the \cite command argument.
* `\citealt{dRob98}` => della Robbia 1998
* `\Citealt{dRob98}` => Della Robbia 1998
Note that a single optional text is a post-note, while two are the pre-
and post-notes. To have only a pre-note, it is necessary to provide
an empty post-note text.]]
},
Citeauthor = {
action = "cite",
arguments = "$ref:natbib.sty#/commands/cite/arguments",
summary = "Refer to a bibliography item.",
details = [[
```latex
\Citeauthor[prenote][postnote]{key}
\Citeauthor*[prenote][postnote]{key}
```
Like `\citeauthor` with the first letter uppercased. Mostly useful in
author-year schemes. The starred version prints the full author list,
and not just the abbreviated one. These macros may take one or two
optional arguments to add some text before and after the citation.
Multiple citations may be made by including more than one citation key
in the \cite command argument.
* `\citeauthor{dRob98}` => della Robbia
* `\Citeauthor{dRob98}` => Della Robbia
Note that a single optional text is a post-note, while two are the pre-
and post-notes. To have only a pre-note, it is necessary to provide
an empty post-note text.]]
},
-- 2.6 Citation Aliasing
defcitealias = {
action = "bibitem",
arguments = {
{meta = "key"},
{meta = "replacement"}
},
summary = "Create an alias to a bibliography item.",
details = [[
```latex
\defcitealias{key}{replacement}
```
This command creates a special designation for a reference, i.e. Paper I.
Such aliases can be defined like this:
`\defcitealias{jon90}{Paper~I}`]]
},
citetalias = {
action = "cite",
arguments = "$ref:natbib.sty#/commands/citeyear/arguments",
summary = "Refer to a bibliography alias in textual form.",
details = [[
```latex
\citetalias[prenote][postnote]{key}
```
Like `\citet` but for aliases. This macro may take one or two
optional arguments to add some text before and after the citation.
Multiple citations may be made by including more than one citation key
in the \cite command argument.
* `\defcitealias{jon90}{Paper~I}`
* `\citetalias{jon90}` => Paper I
Note that a single optional text is a post-note, while two are the pre-
and post-notes. To have only a pre-note, it is necessary to provide
an empty post-note text.]]
},
citepalias = {
action = "cite",
arguments = "$ref:natbib.sty#/commands/cite/arguments",
summary = "Refer to a bibliography alias in parenthetical form.",
details = [[
```latex
\citepalias[prenote][postnote]{key}
```
Like `\citep` but for aliases. This macro may take one or two
optional arguments to add some text before and after the citation.
Multiple citations may be made by including more than one citation key
in the \cite command argument.
* `\defcitealias{jon90}{Paper~I}`
* `\citepalias{jon90}` => (Paper I)
Note that a single optional text is a post-note, while two are the pre-
and post-notes. To have only a pre-note, it is necessary to provide
an empty post-note text, as shown above.]]
},
-- 2.9 Selecting Citation Punctuation
setcitestyle = {
arguments = {
{meta = "citestyle",
keys = {
authoryear = {
summary = "citation mode, corresponds to fourth argument of `\\bibpunct`."
},
numbers = {
summary = "citation mode, corresponds to fourth argument of `\\bibpunct`."
},
super = {
summary = "citation mode, corresponds to fourth argument of `\\bibpunct`."
},
round = {
summary = "braces, corresponds to first and second arguments of `\\bibpunct`"
},
square = {
summary = "braces, corresponds to first and second arguments of `\\bibpunct`"
},
open = {
summary = "braces, corresponds to first and second arguments of `\\bibpunct`"
},
close = {
summary = "braces, corresponds to first and second arguments of `\\bibpunct`"
},
semicolon = {
summary = "between citations, corresponds to third argument of `\\bibpunct`"
},
comma = {
summary = "between citations, corresponds to third argument of `\\bibpunct`"
},
citesep = {
summary = "between citations, corresponds to third argument of `\\bibpunct`"
},
aysep = {
summary = "between years with common author, corresponds to fifth argument of `\\bibpunct`"
},
yysep = {
summary = "between years with common author, corresponds to sixth argument of `\\bibpunct`"
},
notesep = {
summary = "Text before post-note, corresponds to optional argument of `\\bibpunct`"
}
}
}
},
summary = "Command for setting the citation style.",
details = [[
```latex
\setcitestyle{key=val}
```
Command for setting the citation style with key=val pairs.]]
},
bibpunct = {
arguments = {
{meta = "before postnote",
optional = true, delimiters = {"[", "]"}},
{meta = "opening bracket"},
{meta = "closing bracket"},
{meta = "between citations"},
{meta = "style"},
{meta = "between names&year"},
{meta = "between years for suppressed author lists"}
},
summary = "Older command for setting the citation style.",
details = [[
```latex
\bibpunct[before-postnote]{open}{close]{between}{style}{author-year}{between-years}
```
Command for setting the citation style. This command is superseded by
`\setcitestyle`.]]
},
-- 2.10 Predefining a citation style
citestyle = {arguments = {{meta = "style"}}},
-- 2.18 Long Author List on First Citation
shortcites = {
action = "cite",
arguments = {{meta = "key", list = true,}},
summary = "Print short list of authors on first citation.",
details = [[
```latex
\shortcites{key}
```
When the package option `longnamesfirst` is given, the full author
list is printed with the first citation of any reference, and
afterwards only the abbreviated list. Some references have so many
authors that you want to suppress the automatic long list only for
them. In this case, issue
`\shortcites{key}`
before the first citations, and those included in key-list will have a
short list on their first citation.]]
}
}