[l2h] mathend000#
Moreno Baricevic
baro at democritos.it
Thu Feb 26 12:07:05 CET 2004
Hi,
I used latex2html (latex2html-2002-2-1.tar.gz) to convert a manual with
some math symbols. The output has a "mathend000#" visible after each
math symbol.
The full (un)visible string is "<tex2html_verbatim_mark>mathend000#".
$mathend_verbatim_rx didn't match the string reported above.
This simple patch (see attachment) solves my problem (2 minutes hack).
Later, by grepping around in the source tree, I found that
versions/math.pl has the line:
$mathend_mark = "\n${verbatim_mark}mathend000#";
Probably is math.pl to be patched by adding a '#'.
I've added the '?' to $math_verbatim_rx too, but seems to work even
without it.
Hope this helps.
Best Regards
Moreno
PS: I didn't google for it and I didn't read manual/faq/docs/..., I'm
sorry if m/(this is a known issue|a solution already exists|is my
fault|I waste your time)/.
PPS: sorry for my awful english.
-------------- next part --------------
--- latex2html.old Wed Feb 25 18:22:00 2004
+++ latex2html Wed Feb 25 18:22:54 2004
@@ -16451,8 +16451,8 @@
# $enspair = "\\\\ensuremath\\s*$O(\\d+)$C([\\s\\S]*[\\\\\$&]+[\\s\\S]*)$O\\1$C";
# Matches math comments, from math.pl
- $math_verbatim_rx = "$verbatim_mark#math(\\d+)#";
- $mathend_verbatim_rx = "$verbatim_mark#mathend([^#]*)#";
+ $math_verbatim_rx = "$verbatim_mark#?math(\\d+)#";
+ $mathend_verbatim_rx = "$verbatim_mark#?mathend([^#]*)#";
# Matches math array environments
$array_env_rx = "array|cases|\\w*matrix";
-------------- next part --------------
--- latex2html.pin.old 2004-02-26 11:43:57.000000000 +0100
+++ latex2html.pin 2004-02-26 11:44:34.000000000 +0100
@@ -16484,8 +16484,8 @@
# $enspair = "\\\\ensuremath\\s*$O(\\d+)$C([\\s\\S]*[\\\\\$&]+[\\s\\S]*)$O\\1$C";
# Matches math comments, from math.pl
- $math_verbatim_rx = "$verbatim_mark#math(\\d+)#";
- $mathend_verbatim_rx = "$verbatim_mark#mathend([^#]*)#";
+ $math_verbatim_rx = "$verbatim_mark#?math(\\d+)#";
+ $mathend_verbatim_rx = "$verbatim_mark#?mathend([^#]*)#";
# Matches math array environments
$array_env_rx = "array|cases|\\w*matrix";
More information about the latex2html
mailing list