From 940b603548a4e22d106237cbbb3fd936836376a0 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 3 Mar 2012 06:33:24 -0800 Subject: Use \textasciitilde for ~ in LaTeX writer. --- src/Text/Pandoc/Writers/LaTeX.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3