Files
pandoc/test/markdown-citations.native
T
John MacFarlane 02f1ce769c More fixes.
2021-10-02 12:41:36 -07:00

314 lines
10 KiB
Plaintext

[ Header
1
( "pandoc-with-citeproc-hs" , [] , [] )
[ Str "Pandoc with citeproc-hs" ]
, BulletList
[ [ Para
[ Cite
[ Citation
{ citationId = "nonexistent"
, citationPrefix = []
, citationSuffix = []
, citationMode = NormalCitation
, citationNoteNum = 1
, citationHash = 0
}
]
[ Str "[@nonexistent]" ]
]
]
, [ Para
[ Cite
[ Citation
{ citationId = "nonexistent"
, citationPrefix = []
, citationSuffix = []
, citationMode = AuthorInText
, citationNoteNum = 2
, citationHash = 0
}
]
[ Str "@nonexistent" ]
]
]
, [ Para
[ Cite
[ Citation
{ citationId = "item1"
, citationPrefix = []
, citationSuffix = []
, citationMode = AuthorInText
, citationNoteNum = 3
, citationHash = 0
}
]
[ Str "@item1" ]
, Str " says blah."
]
]
, [ Para
[ Cite
[ Citation
{ citationId = "item1"
, citationPrefix = []
, citationSuffix = [ Str "p.\160\&30" ]
, citationMode = AuthorInText
, citationNoteNum = 4
, citationHash = 0
}
]
[ Str "@item1 [p. 30]" ]
, Str " says blah."
]
]
, [ Para
[ Cite
[ Citation
{ citationId = "item1"
, citationPrefix = []
, citationSuffix = [ Str "p.\160\&30, with suffix" ]
, citationMode = AuthorInText
, citationNoteNum = 5
, citationHash = 0
}
]
[ Str "@item1 [p. 30, with suffix]" ]
, Str " says blah."
]
]
, [ Para
[ Cite
[ Citation
{ citationId = "item1"
, citationPrefix = []
, citationSuffix = []
, citationMode = AuthorInText
, citationNoteNum = 6
, citationHash = 0
}
, Citation
{ citationId = "item2"
, citationPrefix = []
, citationSuffix = [ Str " p.\160\&30" ]
, citationMode = SuppressAuthor
, citationNoteNum = 6
, citationHash = 0
}
, Citation
{ citationId = "\1087\1091\1085\1082\1090\&3"
, citationPrefix = [ Str "see also" ]
, citationSuffix = []
, citationMode = NormalCitation
, citationNoteNum = 6
, citationHash = 0
}
]
[ Str
"@item1 [-@item2 p. 30; see also @\1087\1091\1085\1082\1090\&3]"
]
, Str " says blah."
]
]
, [ Para
[ Str "In a note."
, Note
[ Para
[ Cite
[ Citation
{ citationId =
"\1087\1091\1085\1082\1090\&3"
, citationPrefix = []
, citationSuffix = [ Str "p.\160\&12" ]
, citationMode = AuthorInText
, citationNoteNum = 7
, citationHash = 0
}
]
[ Str "@\1087\1091\1085\1082\1090\&3 [p. 12]" ]
, Str " and a citation without locators "
, Cite
[ Citation
{ citationId =
"\1087\1091\1085\1082\1090\&3"
, citationPrefix = []
, citationSuffix = []
, citationMode = NormalCitation
, citationNoteNum = 7
, citationHash = 0
}
]
[ Str "[@\1087\1091\1085\1082\1090\&3]" ]
, Str "."
]
]
]
]
, [ Para
[ Str "A citation group "
, Cite
[ Citation
{ citationId = "item1"
, citationPrefix = [ Str "see" ]
, citationSuffix = [ Str " chap.\160\&3" ]
, citationMode = NormalCitation
, citationNoteNum = 8
, citationHash = 0
}
, Citation
{ citationId = "\1087\1091\1085\1082\1090\&3"
, citationPrefix = [ Str "also" ]
, citationSuffix = [ Str " p.\160\&34-35" ]
, citationMode = NormalCitation
, citationNoteNum = 8
, citationHash = 0
}
]
[ Str
"[see @item1 chap. 3; also @\1087\1091\1085\1082\1090\&3 p. 34-35]"
]
, Str "."
]
]
, [ Para
[ Str "Another one "
, Cite
[ Citation
{ citationId = "item1"
, citationPrefix = [ Str "see" ]
, citationSuffix = [ Str " p.\160\&34-35" ]
, citationMode = NormalCitation
, citationNoteNum = 9
, citationHash = 0
}
]
[ Str "[see @item1 p. 34-35]" ]
, Str "."
]
]
, [ Para
[ Str "And another one in a note."
, Note
[ Para
[ Str "Some citations "
, Cite
[ Citation
{ citationId = "item1"
, citationPrefix = [ Str "see" ]
, citationSuffix = [ Str " chap.\160\&3" ]
, citationMode = NormalCitation
, citationNoteNum = 10
, citationHash = 0
}
, Citation
{ citationId =
"\1087\1091\1085\1082\1090\&3"
, citationPrefix = []
, citationSuffix = []
, citationMode = NormalCitation
, citationNoteNum = 10
, citationHash = 0
}
, Citation
{ citationId = "item2"
, citationPrefix = []
, citationSuffix = []
, citationMode = NormalCitation
, citationNoteNum = 10
, citationHash = 0
}
]
[ Str
"[see @item1 chap. 3; @\1087\1091\1085\1082\1090\&3; @item2]"
]
, Str "."
]
]
]
]
, [ Para
[ Str "Citation with a suffix and locator "
, Cite
[ Citation
{ citationId = "item1"
, citationPrefix = []
, citationSuffix =
[ Str " pp.\160\&33, 35-37, and nowhere else" ]
, citationMode = NormalCitation
, citationNoteNum = 11
, citationHash = 0
}
]
[ Str "[@item1 pp. 33, 35-37, and nowhere else]" ]
, Str "."
]
]
, [ Para
[ Str "Citation with suffix only "
, Cite
[ Citation
{ citationId = "item1"
, citationPrefix = []
, citationSuffix = [ Str " and nowhere else" ]
, citationMode = NormalCitation
, citationNoteNum = 12
, citationHash = 0
}
]
[ Str "[@item1 and nowhere else]" ]
, Str "."
]
]
, [ Para
[ Str "Now some modifiers."
, Note
[ Para
[ Str "Like a citation without author: "
, Cite
[ Citation
{ citationId = "item1"
, citationPrefix = []
, citationSuffix = []
, citationMode = SuppressAuthor
, citationNoteNum = 13
, citationHash = 0
}
]
[ Str "[-@item1]" ]
, Str ", and now Doe with a locator "
, Cite
[ Citation
{ citationId = "item2"
, citationPrefix = []
, citationSuffix = [ Str " p.\160\&44" ]
, citationMode = SuppressAuthor
, citationNoteNum = 13
, citationHash = 0
}
]
[ Str "[-@item2 p. 44]" ]
, Str "."
]
]
]
]
, [ Para
[ Str "With some markup "
, Cite
[ Citation
{ citationId = "item1"
, citationPrefix = [ Emph [ Str "see" ] ]
, citationSuffix =
[ Str " p.\160" , Strong [ Str "32" ] ]
, citationMode = NormalCitation
, citationNoteNum = 14
, citationHash = 0
}
]
[ Str "[*see* @item1 p. **32**]" ]
, Str "."
]
]
]
, Header 1 ( "references" , [] , [] ) [ Str "References" ]
]