aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/coq_tex.ml
diff options
context:
space:
mode:
authorGravatar Guillaume Melquiond <guillaume.melquiond@inria.fr>2015-02-10 14:09:25 +0100
committerGravatar Guillaume Melquiond <guillaume.melquiond@inria.fr>2015-02-10 14:09:25 +0100
commit48f58750125706b78b00284a541012982af4a17d (patch)
treec8c31bfde89a1043258dbaf7bf696df55080610f /tools/coq_tex.ml
parent85458847345fdad2236da0171f6f0860992a9493 (diff)
Prevent Latex from messing with backticks. (Fix for bug #3871)
Diffstat (limited to 'tools/coq_tex.ml')
-rw-r--r--tools/coq_tex.ml3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/coq_tex.ml b/tools/coq_tex.ml
index 383a68df8..a2cc8384c 100644
--- a/tools/coq_tex.ml
+++ b/tools/coq_tex.ml
@@ -79,7 +79,7 @@ let expos = Str.regexp "^"
let tex_escaped s =
let dollar = "\\$" and backslash = "\\\\" and expon = "\\^" in
- let delims = Str.regexp ("[_{}&%#" ^ dollar ^ backslash ^ expon ^"~ <>']") in
+ let delims = Str.regexp ("[_{}&%#" ^ dollar ^ backslash ^ expon ^"~ <>'`]") in
let adapt_delim = function
| "_" | "{" | "}" | "&" | "%" | "#" | "$" as c -> "\\"^c
| "\\" -> "{\\char'134}"
@@ -89,6 +89,7 @@ let tex_escaped s =
| "<" -> "{<}"
| ">" -> "{>}"
| "'" -> "{\\textquotesingle}"
+ | "`" -> "\\`{}"
| _ -> assert false
in
let adapt = function