diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2012-03-03 06:33:24 -0800 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2012-03-03 06:33:24 -0800 |
commit | 940b603548a4e22d106237cbbb3fd936836376a0 (patch) | |
tree | a58a925b2f341a7d5373b22d8ccd3c77221dd641 /src/Text/Pandoc/Writers | |
parent | 53e6bf36a976e191cf1835f7fd440fba529ae741 (diff) | |
download | pandoc-940b603548a4e22d106237cbbb3fd936836376a0.tar.gz |
Use \textasciitilde for ~ in LaTeX writer.
Diffstat (limited to 'src/Text/Pandoc/Writers')
-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 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 |