diff options
author | John MacFarlane <jgm@berkeley.edu> | 2016-05-31 12:44:29 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2016-05-31 12:44:29 -0700 |
commit | 061bc60f70eb2b2a9e7fcea96dda9ff172411650 (patch) | |
tree | 2d73596e2d46382f15144a1d04b3bbb5a8c7a6ae /tests/Tests | |
parent | 669ecbd4abc0061d83537511ebeae10713a50047 (diff) | |
parent | f226cb88b040dcd19e09ca7772ee0c6172eaecc2 (diff) |
Merge pull request #2950 from tarleb/org-ref-support
Org reader: support org-ref style citations
Diffstat (limited to 'tests/Tests')
-rw-r--r-- | tests/Tests/Readers/Org.hs | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/tests/Tests/Readers/Org.hs b/tests/Tests/Readers/Org.hs index 345ed462a..9bd999b01 100644 --- a/tests/Tests/Readers/Org.hs +++ b/tests/Tests/Readers/Org.hs @@ -300,6 +300,42 @@ tests = , citationHash = 0} in (para $ cite [citation] "[see @item1 p. 34-35]") + , "Org-ref simple citation" =: + "cite:pandoc" =?> + let citation = Citation + { citationId = "pandoc" + , citationPrefix = mempty + , citationSuffix = mempty + , citationMode = AuthorInText + , citationNoteNum = 0 + , citationHash = 0 + } + in (para $ cite [citation] "cite:pandoc") + + , "Org-ref simple citep citation" =: + "citep:pandoc" =?> + let citation = Citation + { citationId = "pandoc" + , citationPrefix = mempty + , citationSuffix = mempty + , citationMode = NormalCitation + , citationNoteNum = 0 + , citationHash = 0 + } + in (para $ cite [citation] "citep:pandoc") + + , "Org-ref extended citation" =: + "[[citep:Dominik201408][See page 20::, for example]]" =?> + let citation = Citation + { citationId = "Dominik201408" + , citationPrefix = toList "See page 20" + , citationSuffix = toList ", for example" + , citationMode = NormalCitation + , citationNoteNum = 0 + , citationHash = 0 + } + in (para $ cite [citation] "[[citep:Dominik201408][See page 20::, for example]]") + , "Inline LaTeX symbol" =: "\\dots" =?> para "…" |