aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2012-03-03 06:33:24 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2012-03-03 06:33:24 -0800
commit940b603548a4e22d106237cbbb3fd936836376a0 (patch)
treea58a925b2f341a7d5373b22d8ccd3c77221dd641 /src
parent53e6bf36a976e191cf1835f7fd440fba529ae741 (diff)
downloadpandoc-940b603548a4e22d106237cbbb3fd936836376a0.tar.gz
Use \textasciitilde for ~ in LaTeX writer.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Writers/LaTeX.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs
index 088cf7910..40334f0ad 100644
--- a/src/Text/Pandoc/Writers/LaTeX.hs
+++ b/src/Text/Pandoc/Writers/LaTeX.hs
@@ -183,7 +183,7 @@ stringToLaTeX isUrl (x:xs) =
'-' -> case xs of -- prevent adjacent hyphens from forming ligatures
('-':_) -> "-{}" ++ rest
_ -> '-' : rest
- '~' | not isUrl -> "\\ensuremath{\\sim}" ++ rest
+ '~' | not isUrl -> "\\textasciitilde{}" ++ rest
'^' -> "\\^{}" ++ rest
'\\' -> "\\textbackslash{}" ++ rest
'€' -> "\\euro{}" ++ rest