summaryrefslogtreecommitdiff
path: root/macros/generic/markdown/tests/testfiles/lunamark-markdown/citations-escapes.test
blob: 646c0b9610c102bfb419137bf3e934e7c5d9bac6 (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
\def\markdownOptionCitations{true}
<<<
This test ensures that the Lua `citations` option correctly propagates through
the plain TeX interface and that the `citationNbsps` option is enabled by
default.

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: see
- postnote: pp;(nbsp)33-35
- name: doe99
END cite
BEGIN cite
- suppressAuthor: false
- prenote: also
- postnote: chap.(nbsp)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: false
- prenote: -
- postnote: 
- name: smith04
END cite
interblockSeparator
BEGIN textCite
- suppressAuthor: false
- prenote: 
- postnote: pp;(nbsp)33-35
- name: doe99
END textCite
BEGIN textCite
- suppressAuthor: false
- prenote: also
- postnote: chap.(nbsp)1
- name: smit:.(hash)$(percentSign)&-+?<>_/h04
END textCite
BEGIN textCite
- suppressAuthor: false
- prenote: 
- postnote: 
- name: doe99
END textCite