diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-06-23 12:51:10 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-06-23 12:51:10 -0700 |
commit | 87ab01637e1dc0f583277828bc458567a72e38ce (patch) | |
tree | baf707a86bd75d1d118c56a4fa9298d4a60ad204 /src | |
parent | e03ed7377cfd3d64d65f186aa76b17417a4e4fde (diff) | |
download | pandoc-87ab01637e1dc0f583277828bc458567a72e38ce.tar.gz |
LaTeX writer: Use `\textquotesingle` for `'` in inline code.
Otherwise we get curly quotes in the PDF output.
Closes #1364.
Diffstat (limited to 'src')
-rw-r--r-- | src/Text/Pandoc/Writers/LaTeX.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs index f2f7438c4..100bf900d 100644 --- a/src/Text/Pandoc/Writers/LaTeX.hs +++ b/src/Text/Pandoc/Writers/LaTeX.hs @@ -220,6 +220,7 @@ stringToLaTeX ctx (x:xs) = do '>' -> "\\textgreater{}" ++ rest '[' -> "{[}" ++ rest -- to avoid interpretation as ']' -> "{]}" ++ rest -- optional arguments + '\'' | ctx == CodeString -> "\\textquotesingle{}" ++ rest '\160' -> "~" ++ rest '\x2026' -> "\\ldots{}" ++ rest '\x2018' | ligatures -> "`" ++ rest |