diff options
author | Vaclav Zeman <vhaisman@gmail.com> | 2014-02-08 13:40:04 +0100 |
---|---|---|
committer | Vaclav Zeman <vhaisman@gmail.com> | 2014-02-08 13:40:04 +0100 |
commit | 3f0fe345f9aa69d1faf36e6a6f913013f21b3749 (patch) | |
tree | a4e2c0c86535f6051d850fc858e28b0f0420376a /src/Text/Pandoc | |
parent | f8b4a9e669f4ff8ad0969b56fe2eaa37790bcdf0 (diff) | |
download | pandoc-3f0fe345f9aa69d1faf36e6a6f913013f21b3749.tar.gz |
Use \/ to avoid en-dash ligature instead of -{}-.
This is to fix LuaLaTeX output. The -{}- sequence does not avoid the
ligature with LuaLaTeX but \/ does.
Diffstat (limited to 'src/Text/Pandoc')
-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 72b0bde6d..dbb9b477a 100644 --- a/src/Text/Pandoc/Writers/LaTeX.hs +++ b/src/Text/Pandoc/Writers/LaTeX.hs @@ -201,7 +201,7 @@ stringToLaTeX ctx (x:xs) = do '_' | not isUrl -> "\\_" ++ rest '#' -> "\\#" ++ rest '-' -> case xs of -- prevent adjacent hyphens from forming ligatures - ('-':_) -> "-{}" ++ rest + ('-':_) -> "-\\/" ++ rest _ -> '-' : rest '~' | not isUrl -> "\\textasciitilde{}" ++ rest '^' -> "\\^{}" ++ rest |