aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/coq_tex.ml
diff options
context:
space:
mode:
authorGravatar Guillaume Melquiond <guillaume.melquiond@inria.fr>2015-07-30 08:30:00 +0200
committerGravatar Guillaume Melquiond <guillaume.melquiond@inria.fr>2015-07-30 08:30:00 +0200
commita9f3607ae72517156301570a4ffa05908609b7e0 (patch)
tree9d9d67a529332e5875fb2227d56b77310c2db5a7 /tools/coq_tex.ml
parent070139d3a82ea23e4d050dd5ccebe3f17047cc62 (diff)
Fix width of underscore in coq_tex output.
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 8218f84f1..dbdc2e9db 100644
--- a/tools/coq_tex.ml
+++ b/tools/coq_tex.ml
@@ -66,7 +66,8 @@ let extract texfile inputv =
let tex_escaped s =
let delims = Str.regexp "[_{}&%#$\\^~ <>'`]" in
let adapt_delim = function
- | "_" | "{" | "}" | "&" | "%" | "#" | "$" as c -> "\\"^c
+ | "{" | "}" | "&" | "%" | "#" | "$" as c -> "\\"^c
+ | "_" -> "{\\char`\\_}"
| "\\" -> "{\\char'134}"
| "^" -> "{\\char'136}"
| "~" -> "{\\char'176}"