diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-07-29 20:45:49 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-07-29 20:45:49 -0700 |
commit | 8c2ed54e2e6819aee2bb4b948102fbab8f920d86 (patch) | |
tree | e0caedc3e308e465371f03cb64091b986180c9cc /src | |
parent | 8d4eebaff42cfe474042a7dafaa86950640b9e82 (diff) | |
download | pandoc-8c2ed54e2e6819aee2bb4b948102fbab8f920d86.tar.gz |
LaTeX writer: use \(..\) instead of $..$ for inline math.
Closes #1464.
Diffstat (limited to 'src')
-rw-r--r-- | src/Text/Pandoc/Writers/LaTeX.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs index 0197d5db6..ea704c91d 100644 --- a/src/Text/Pandoc/Writers/LaTeX.hs +++ b/src/Text/Pandoc/Writers/LaTeX.hs @@ -742,7 +742,7 @@ inlineToLaTeX (Quoted qt lst) = do else char '\x2018' <> inner <> char '\x2019' inlineToLaTeX (Str str) = liftM text $ stringToLaTeX TextString str inlineToLaTeX (Math InlineMath str) = - return $ char '$' <> text str <> char '$' + return $ "\\(" <> text str <> "\\)" inlineToLaTeX (Math DisplayMath str) = return $ "\\[" <> text str <> "\\]" inlineToLaTeX (RawInline f str) |