aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/coq_tex.ml
diff options
context:
space:
mode:
Diffstat (limited to 'tools/coq_tex.ml')
-rw-r--r--tools/coq_tex.ml3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/coq_tex.ml b/tools/coq_tex.ml
index 26a9715ef..8218f84f1 100644
--- a/tools/coq_tex.ml
+++ b/tools/coq_tex.ml
@@ -64,8 +64,7 @@ let extract texfile inputv =
* TeX file [texfile]. The result goes in file [result]. *)
let tex_escaped s =
- let dollar = "\\$" and backslash = "\\\\" and expon = "\\^" in
- let delims = Str.regexp ("[_{}&%#" ^ dollar ^ backslash ^ expon ^"~ <>'`]") in
+ let delims = Str.regexp "[_{}&%#$\\^~ <>'`]" in
let adapt_delim = function
| "_" | "{" | "}" | "&" | "%" | "#" | "$" as c -> "\\"^c
| "\\" -> "{\\char'134}"