summaryrefslogtreecommitdiff
path: root/macros/generic/markdown/tests/testfiles/lunamark-markdown/citations-no-nbsps.test
blob: bc5b70c0d0d76ba0b646596cd090e94711721d99 (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
77
78
79
80
81
82
83
84
85
\def\markdownOptionCitations{true}
\def\markdownOptionCitationNbsps{false}
<<<
This test ensures that the Lua `citations` and `citationNbsps` options correctly
propagate through the plain TeX interface.

Here is a simple parenthetical citation [@doe99] and here
is a string of several [see @doe99, pp. 33-35; also
@smit:.#$%&-+?<>_/h04, chap. 1].

A parenthetical citation can have a [prenote @doe99] and
a [@smith04 postnote]. The name of the author can be
suppressed by inserting a dash before the name of an
author as follows [-@smith04].

Here is a simple text citation @doe99 and here is a
string of several @doe99 [pp. 33-35; also
@smit:.#$%&-+?<>_/h04, chap. 1]. Here is one with the
name of the author suppressed -@doe99.
>>>
codeSpan: citations
codeSpan: citationNbsps
interblockSeparator
BEGIN cite
- suppressAuthor: false
- prenote: 
- postnote: 
- name: doe99
END cite
BEGIN cite
- suppressAuthor: false
- prenote: see
- postnote: pp. 33-35
- name: doe99
END cite
BEGIN cite
- suppressAuthor: false
- prenote: also
- postnote: chap. 1
- name: smit:.(hash)$(percentSign)&-+?<>_/h04
END cite
interblockSeparator
BEGIN cite
- suppressAuthor: false
- prenote: prenote
- postnote: 
- name: doe99
END cite
BEGIN cite
- suppressAuthor: false
- prenote: 
- postnote: postnote
- name: smith04
END cite
BEGIN cite
- suppressAuthor: true
- prenote: 
- postnote: 
- name: smith04
END cite
interblockSeparator
BEGIN textCite
- suppressAuthor: false
- prenote: 
- postnote: 
- name: doe99
END textCite
BEGIN textCite
- suppressAuthor: false
- prenote: 
- postnote: pp. 33-35
- name: doe99
END textCite
BEGIN textCite
- suppressAuthor: false
- prenote: also
- postnote: chap. 1
- name: smit:.(hash)$(percentSign)&-+?<>_/h04
END textCite
BEGIN textCite
- suppressAuthor: true
- prenote: 
- postnote: 
- name: doe99
END textCite