Merge pull request #1145 from wilx/en-dash-ligature-avoidance

Use \/ to avoid en-dash ligature instead of -{}-.
This commit is contained in:
John MacFarlane 2014-02-17 16:03:27 -08:00
commit c5dc801498

View file

@ -206,7 +206,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