[l2h] Workarounds for two bugs (equations with white margins,
and more)
Daniel Clemente
n142857 at gmail.com
Mon Mar 7 23:43:57 CET 2005
Hi, I have put a web page with two patches I used to solve some bugs:
http://www.danielclemente.com/linux/l2h.html
The patches follow: (for version 1.70, but the bugs still affect the CVS one)
Uncomplete tables (only the header is present)
------------------------------------------------
Some tables fail to render correctly if they are coming from a LyX
document. The fix was proposed to this list but hasn't been applied to
the trunk yet.
--- /usr/bin/latex2html 2004-08-27 15:30:15.000000000 +0200
+++ latex2html 2005-03-06 03:01:56.000000000 +0100
@@ -5276,6 +5276,12 @@ sub substitute_meta_cmds {
elsif ($this_cmd) { push(@pieces, $this_cmd) }
}
push(@pieces, $after);
+
+ # added by DCL (patch from Ross Moore).
+ # See
http://www.tug.org/pipermail/latex2html/2004-February/002640.html
+ #
+ # after the first segment we should no longer be in the preamble.
+ $within_preamble = 0;
}
print " $replacements new-command replacements\n"
if (($VERBOSITY>1) && $replacements);
Large margin on the bottom of some equations
--------------------------------------------
I have seen several documents all with this problem.
This "fix" is probably a hack.
--- /usr/bin/latex2html 2004-08-27 15:30:15.000000000 +0200
+++ latex2html 2005-03-06 03:01:56.000000000 +0100
@@ -6939,8 +6945,12 @@ sub make_latex{
"\\newcommand\\lthtmlinlineB[1]{\\lthtmlmathtype{#1}\\egroup\\lthtmlhboxmathA}%\n"
.
"\\newcommand\\lthtmlinlineZ{\\egroup\\expandafter\\ifdim\\dp\\sizebox>0pt
%\n" .
" \\expandafter\\centerinlinemath\\fi\\lthtmllogmath\\lthtmlsetinline}\n"
.
- "\\newcommand\\lthtmlinlinemathZ{\\egroup\\expandafter\\ifdim\\dp\\sizebox>0pt
%\n" .
- " \\expandafter\\centerinlinemath\\fi\\lthtmllogmath\\lthtmlsetmath}\n"
.
+
+ "\\newcommand\\lthtmlinlinemathZ{\\egroup\\expandafter\n" .
+ "% DCL: If active, some equations have white borders at the bottom\n" .
+ "% \\ifdim\\dp\\sizebox>0pt \\expandafter\\centerinlinemath\\fi \n" .
+ "\\lthtmllogmath\\lthtmlsetmath}\n" .
+
"\\newcommand\\lthtmlindisplaymathZ{\\egroup %\n" .
" \\centerinlinemath\\lthtmllogmath\\lthtmlsetmath}\n" .
"\\def\\lthtmlsetinline{\\hbox{\\vrule width.1em \\vtop{\\vbox{%\n" .
Hoping to see them solved some day,
Daniel Clemente Laboreo
More information about the latex2html
mailing list