Use \textasciitilde for ~ in LaTeX writer.
commit940b603548a4e22d106237cbbb3fd936836376a0
authorJohn MacFarlane <fiddlosopher@gmail.com>
dateSat 3 Mar 2012, 06:33 (15 years ago)
parent53e6bf3
src/Text/Pandoc/Writers/LaTeX.hs+1−1
@@ -183,7 +183,7 @@ stringToLaTeX isUrl (x:xs) =
183183 '-' -> case xs of -- prevent adjacent hyphens from forming ligatures
184184 ('-':_) -> "-{}" ++ rest
185185 _ -> '-' : rest
186− '~' | not isUrl -> "\\ensuremath{\\sim}" ++ rest
186+ '~' | not isUrl -> "\\textasciitilde{}" ++ rest
187187 '^' -> "\\^{}" ++ rest
188188 '\\' -> "\\textbackslash{}" ++ rest
189189 '€' -> "\\euro{}" ++ rest