git.iko.soy/typeable/pandoc
on master help sign in
LaTeX reader: Initialize citationSuppressParens field.
commit6f2347635ca86f4152e71ad766fea486692dd63d authorJohn MacFarlane <fiddlosopher@gmail.com> dateMon 22 Oct 2012, 19:11 (14 years ago) parenta23a8e8
3 files changed+4−2
src/Text/Pandoc/Readers/LaTeX.hs+1 tests/Tests/Readers/LaTeX.hs+2−1 tests/latex-reader.native+1−1
src/Text/Pandoc/Readers/LaTeX.hs+1
@@ -909,6 +909,7 @@ simpleCiteArgs = try $ do
909909 , citationMode = NormalCitation
910910 , citationHash = 0
911911 , citationNoteNum = 0
912+ , citationSuppressParens = False
912913 }
913914 return $ addPrefix pre $ addSuffix suf $ map conv keys
914915
tests/Tests/Readers/LaTeX.hs+2−1
@@ -67,7 +67,8 @@ baseCitation = Citation{ citationId = "item1"
6767 , citationSuffix = []
6868 , citationMode = AuthorInText
6969 , citationNoteNum = 0
70− , citationHash = 0 }
70+ , citationHash = 0
71+ , citationSuppressParens = False }
7172
7273rt :: String -> Inlines
7374rt = rawInline "latex"
tests/latex-reader.native+1−1
@@ -260,7 +260,7 @@ Pandoc (Meta {docTitle = [Str "Pandoc",Space,Str "Test",Space,Str "Suite"], docA
260260,HorizontalRule
261261,Header 1 [Str "LaTeX"]
262262,BulletList
263− [[Para [Cite [Citation {citationId = "smith.1899", citationPrefix = [], citationSuffix = [Str ",",Space,Str "22-23"], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 0}] [RawInline "latex" "\\cite[22-23]{smith.1899}"]]]
263+ [[Para [Cite [Citation {citationId = "smith.1899", citationPrefix = [], citationSuffix = [Str ",",Space,Str "22-23"], citationMode = AuthorInText, citationNoteNum = 0, citationSuppressParens = False, citationHash = 0}] [RawInline "latex" "\\cite[22-23]{smith.1899}"]]]
264264 ,[Para [RawInline "latex" "\\doublespacing"]]
265265 ,[Para [Math InlineMath "2+2=4"]]
266266 ,[Para [Math InlineMath "x \\in y"]]