aboutsummaryrefslogtreecommitdiff
path: root/test/command/biblatex-title-and-shorttitle.md
blob: e268cc24408375c0f15e96526069f3243debe20b (plain)
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
```
% pandoc -f biblatex -t markdown -s
@comment{

TODO:
Slight inconsistency:
When a biblatex “title” field contains a colon, the part before the colon is mapped to CSL “title-short”.
When there’s a biblatex “title” and a “subtitle” field, CSL “title-short” is not set, though it would make at least as much sense to map “title” (without “subtitle”) to CSL “title-short” in this case.

CSL “container-title-short” could also be set
- from biblatex “shortjournal”
- for inbook, incollection etc. from the “shorttitle” field of the crossreferenced book, collection etc. entry (see item5, item6)
... but it might not really be worth it, “container-title-short” not being used once in my sample of 70+ CSL styles.

}

@book{item4,
	Shorttitle = {The Shorttitle},
	Subtitle = {And a Subtitle, in Two Separate Fields; plus a Separate “Shorttitle” Field},
	Title = {The Title: With a Colon in the “Title” Field}}

@book{item3,
	Subtitle = {And a Subtitle, in two separate fields},
	Title = {The Title: With a Colon in the “title” field}}

@book{item2,
	Subtitle = {The Subtitle, In Two Separate fields},
	Title = {The Title}}

@book{item1,
	Title = {The Title: And the Subtitle, all in the “title” Field}}

@inbook{item5,
	Title = {The inbook Title: And the Subtitle, all in the “title” Field},
	Crossref = {item6}}

@book{item6,
	Title = {The Title: And the Subtitle, all in the “title” Field},
	Shorttitle = {The Shorttitle},
}
^D
---
nocite: "[@*]"
references:
- id: item4
  title: "The title: With a colon in the \"title\" field: And a subtitle,
    in two separate fields; plus a separate \"shorttitle\" field"
  title-short: The shorttitle
  type: book
- id: item3
  title: "The title: With a colon in the \"title\" field: And a subtitle,
    in two separate fields"
  title-short: The title
  type: book
- id: item2
  title: "The title: The subtitle, in two separate fields"
  title-short: The title
  type: book
- id: item1
  title: "The title: And the subtitle, all in the \"title\" field"
  title-short: The title
  type: book
- container-title: "The title: And the subtitle, all in the \"title\"
    field"
  id: item5
  title: "The inbook title: And the subtitle, all in the \"title\" field"
  title-short: The inbook title
  type: chapter
- id: item6
  title: "The title: And the subtitle, all in the \"title\" field"
  title-short: The shorttitle
  type: book
---


```