LaTeX reader: fixed \cite
so it is a NormalCitation not AuthorInText.
This commit is contained in:
parent
a349814665
commit
3429fa6438
3 changed files with 4 additions and 4 deletions
|
@ -559,8 +559,8 @@ inlineCommands = M.fromList $
|
|||
src <- unescapeURL <$> braced
|
||||
mkImage options src)
|
||||
, ("enquote", enquote)
|
||||
, ("cite", citation "cite" AuthorInText False)
|
||||
, ("Cite", citation "cite" AuthorInText False)
|
||||
, ("cite", citation "cite" NormalCitation False)
|
||||
, ("Cite", citation "Cite" NormalCitation False)
|
||||
, ("citep", citation "citep" NormalCitation False)
|
||||
, ("citep*", citation "citep*" NormalCitation False)
|
||||
, ("citeal", citation "citeal" NormalCitation False)
|
||||
|
|
|
@ -431,7 +431,7 @@ tests =
|
|||
{ citationId = "Coffee"
|
||||
, citationPrefix = []
|
||||
, citationSuffix = []
|
||||
, citationMode = AuthorInText
|
||||
, citationMode = NormalCitation
|
||||
, citationNoteNum = 0
|
||||
, citationHash = 0}
|
||||
in (para . cite [citation] $ rawInline "latex" "\\cite{Coffee}")
|
||||
|
|
|
@ -260,7 +260,7 @@ Pandoc (Meta {unMeta = fromList [("author",MetaList [MetaInlines [Str "John",Spa
|
|||
,HorizontalRule
|
||||
,Header 1 ("latex",[],[]) [Str "LaTeX"]
|
||||
,BulletList
|
||||
[[Para [Cite [Citation {citationId = "smith.1899", citationPrefix = [], citationSuffix = [Str "22-23"], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 0}] [RawInline (Format "latex") "\\cite[22-23]{smith.1899}"]]]
|
||||
[[Para [Cite [Citation {citationId = "smith.1899", citationPrefix = [], citationSuffix = [Str "22-23"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [RawInline (Format "latex") "\\cite[22-23]{smith.1899}"]]]
|
||||
,[Para [RawInline (Format "latex") "\\doublespacing"]]
|
||||
,[Para [Math InlineMath "2+2=4"]]
|
||||
,[Para [Math InlineMath "x \\in y"]]
|
||||
|
|
Loading…
Reference in a new issue