texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: Update tests for newer latex2html


From: Patrice Dumas
Subject: branch master updated: Update tests for newer latex2html
Date: Sat, 19 Mar 2022 19:41:14 -0400

This is an automated email from the git hooks/post-receive script.

pertusus pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new cd0de30b76 Update tests for newer latex2html
cd0de30b76 is described below

commit cd0de30b76eb65b78e7863190daed0b79ae27d3b
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sun Mar 20 00:40:43 2022 +0100

    Update tests for newer latex2html
---
 .../encod\303\251/tex_complex-l2h_cache.pm"        | 12 ++---
 .../encod\303\251/tex_complex.html"                | 16 +++----
 .../encod\303\251/tex_complex_l2h.html"            | 16 +++----
 .../encod\303\251/tex_complex_l2h_images.tex"      |  6 +--
 .../tex_encod\303\251_utf8-l2h_cache.pm"           |  6 +--
 .../encod\303\251/tex_encod\303\251_utf8.html"     |  6 +--
 .../encod\303\251/tex_encod\303\251_utf8_l2h.html" | 10 ++--
 .../tex_encod\303\251_utf8_l2h_images.tex"         |  6 +--
 .../many_input_files/tex_l2h_res/tex-l2h_cache.pm  | 14 +++---
 tp/tests/many_input_files/tex_l2h_res/tex.html     | 14 +++---
 .../tex_l2h_res/tex_complex-l2h_cache.pm           | 12 ++---
 .../many_input_files/tex_l2h_res/tex_complex.html  | 16 +++----
 .../tex_l2h_res/tex_complex_l2h.html               | 16 +++----
 .../tex_l2h_res/tex_complex_l2h_images.tex         |  6 +--
 tp/tests/many_input_files/tex_l2h_res/tex_l2h.html | 18 +++-----
 .../tex_l2h_res/tex_l2h_images.tex                 |  6 +--
 .../res_parser/block_EOL_tex/block_EOL_l2h.html    |  4 --
 .../res_parser/formatting_singular/chapter.html    | 54 +++++++++++-----------
 .../formatting_singular/sing-l2h_cache.pm          | 18 ++++----
 .../res_parser/formatting_singular/sing_l2h.html   | 22 ++++-----
 .../formatting_singular/sing_l2h_images.tex        |  6 +--
 .../math_not_closed/math_not_closed-l2h_cache.pm   |  4 +-
 .../math_not_closed/math_not_closed.html           |  4 +-
 .../math_not_closed/math_not_closed_l2h.html       |  8 +---
 .../math_not_closed/math_not_closed_l2h_images.tex |  6 +--
 tp/tests/tex_html/res_parser/tex/tex-l2h_cache.pm  | 14 +++---
 tp/tests/tex_html/res_parser/tex/tex.html          | 14 +++---
 tp/tests/tex_html/res_parser/tex/tex_l2h.html      | 18 +++-----
 .../tex_html/res_parser/tex/tex_l2h_images.tex     |  6 +--
 .../tex_accents_l2h/tex_accents_l2h.html           |  4 --
 .../tex_complex_l2h/tex_complex-l2h_cache.pm       | 12 ++---
 .../res_parser/tex_complex_l2h/tex_complex.html    | 16 +++----
 .../tex_complex_l2h/tex_complex_l2h.html           | 16 +++----
 .../tex_complex_l2h/tex_complex_l2h_images.tex     |  6 +--
 .../tex_encode_latin1-l2h_cache.pm                 |  6 +--
 .../tex_encoded_latin1_l2h/tex_encode_latin1.html  |  6 +--
 .../tex_encode_latin1_l2h.html                     | 10 ++--
 .../tex_encode_latin1_l2h_images.tex               |  6 +--
 .../tex_encod\303\251_utf8-l2h_cache.pm"           |  6 +--
 .../tex_encod\303\251_utf8.html"                   |  6 +--
 .../tex_encod\303\251_utf8_l2h.html"               | 10 ++--
 .../tex_encod\303\251_utf8_l2h_images.tex"         |  6 +--
 .../tex_eqalign_l2h/tex_eqalign-l2h_cache.pm       |  4 +-
 .../res_parser/tex_eqalign_l2h/tex_eqalign.html    |  4 +-
 .../tex_eqalign_l2h/tex_eqalign_l2h.html           |  8 +---
 .../tex_eqalign_l2h/tex_eqalign_l2h_images.tex     |  6 +--
 .../res_parser/tex_gdef_l2h/tex_gdef-l2h_cache.pm  |  4 +-
 .../tex_html/res_parser/tex_gdef_l2h/tex_gdef.html |  4 +-
 .../res_parser/tex_gdef_l2h/tex_gdef_l2h.html      |  8 +---
 .../tex_gdef_l2h/tex_gdef_l2h_images.tex           |  6 +--
 .../tex_in_copying/tex_in_copying-l2h_cache.pm     |  4 +-
 .../res_parser/tex_in_copying/tex_in_copying.html  |  8 ++--
 .../tex_in_copying/tex_in_copying_l2h.html         |  8 +---
 .../tex_in_copying/tex_in_copying_l2h_images.tex   |  6 +--
 .../tex_not_closed/tex_not_closed_l2h.html         |  4 --
 55 files changed, 239 insertions(+), 303 deletions(-)

diff --git 
"a/tp/tests/many_input_files/tex_l2h_output_dir_non_ascii_res/encod\303\251/tex_complex-l2h_cache.pm"
 
"b/tp/tests/many_input_files/tex_l2h_output_dir_non_ascii_res/encod\303\251/tex_complex-l2h_cache.pm"
index 14e12dac1d..e030aff657 100644
--- 
"a/tp/tests/many_input_files/tex_l2h_output_dir_non_ascii_res/encod\303\251/tex_complex-l2h_cache.pm"
+++ 
"b/tp/tests/many_input_files/tex_l2h_output_dir_non_ascii_res/encod\303\251/tex_complex-l2h_cache.pm"
@@ -12,7 +12,7 @@ U w V^\dagger
  -->
 
 <IMG
- STYLE="height: 2.54ex; vertical-align: -0.12ex; " SRC="tex_complex_3.svg"
+ STYLE="height: 2.31ex; vertical-align: -0.12ex; " SRC="tex_complex_3.svg"
  ALT="$\displaystyle U w V^\dagger
 $">
 </DIV>
@@ -29,7 +29,7 @@ $l2h_cache{$l2h_cache_key} = q|<DIV CLASS="displaymath">
  -->
 
 <IMG
- STYLE="height: 2.78ex; vertical-align: -0.70ex; " SRC="tex_complex_5.svg"
+ STYLE="height: 2.55ex; vertical-align: -0.70ex; " SRC="tex_complex_5.svg"
  ALT="$\displaystyle \omega = h ( \eta , \varphi)
 $">
 </DIV>
@@ -45,7 +45,7 @@ $l2h_cache{$l2h_cache_key} = q|<DIV CLASS="displaymath">
  -->
 
 <IMG
- STYLE="height: 2.86ex; vertical-align: -0.78ex; " SRC="tex_complex_1.svg"
+ STYLE="height: 2.63ex; vertical-align: -0.78ex; " SRC="tex_complex_1.svg"
  ALT="$\displaystyle \partial_{\eta} g(\eta(t),\varphi(t));
 $">
 </DIV>
@@ -56,12 +56,12 @@ $l2h_cache{$l2h_cache_key} = q|<!-- MATH
  $(I-D) \varphi(t)$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.78ex; vertical-align: -0.70ex; " SRC="tex_complex_2.svg"
+ STYLE="height: 2.55ex; vertical-align: -0.70ex; " SRC="tex_complex_2.svg"
  ALT="$(I-D) \varphi(t)$"></SPAN>|;
 
 $l2h_cache_key = q/$\phi w V^t$/;
 $l2h_cache{$l2h_cache_key} = q|<SPAN CLASS="MATH"><IMG
- STYLE="height: 2.75ex; vertical-align: -0.57ex; " SRC="tex_complex_4.svg"
+ STYLE="height: 2.52ex; vertical-align: -0.57ex; " SRC="tex_complex_4.svg"
  ALT="$\phi w V^t$"></SPAN>|;
 
 $l2h_cache_key = q/$h \dot \psi^\phi$/;
@@ -69,7 +69,7 @@ $l2h_cache{$l2h_cache_key} = q|<!-- MATH
  $h \dot \psi^\phi$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 3.07ex; vertical-align: -0.57ex; " SRC="tex_complex_6.svg"
+ STYLE="height: 2.84ex; vertical-align: -0.57ex; " SRC="tex_complex_6.svg"
  ALT="$h \dot \psi^\phi$"></SPAN>|;
 
 1;
diff --git 
"a/tp/tests/many_input_files/tex_l2h_output_dir_non_ascii_res/encod\303\251/tex_complex.html"
 
"b/tp/tests/many_input_files/tex_l2h_output_dir_non_ascii_res/encod\303\251/tex_complex.html"
index aed5247b16..fc17222083 100644
--- 
"a/tp/tests/many_input_files/tex_l2h_output_dir_non_ascii_res/encod\303\251/tex_complex.html"
+++ 
"b/tp/tests/many_input_files/tex_l2h_output_dir_non_ascii_res/encod\303\251/tex_complex.html"
@@ -36,7 +36,7 @@ span.program-in-footer {font-size: smaller}
  -->
 
 <IMG
- STYLE="height: 2.86ex; vertical-align: -0.78ex; " SRC="tex_complex_1.svg"
+ STYLE="height: 2.63ex; vertical-align: -0.78ex; " SRC="tex_complex_1.svg"
  ALT="$\displaystyle \partial_{\eta} g(\eta(t),\varphi(t));
 $">
 </DIV>
@@ -46,7 +46,7 @@ $">
  $(I-D) \varphi(t)$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.78ex; vertical-align: -0.70ex; " SRC="tex_complex_2.svg"
+ STYLE="height: 2.55ex; vertical-align: -0.70ex; " SRC="tex_complex_2.svg"
  ALT="$(I-D) \varphi(t)$"></SPAN> math.
 </p><hr>
 
@@ -62,7 +62,7 @@ $">
  -->
 
 <IMG
- STYLE="height: 2.86ex; vertical-align: -0.78ex; " SRC="tex_complex_1.svg"
+ STYLE="height: 2.63ex; vertical-align: -0.78ex; " SRC="tex_complex_1.svg"
  ALT="$\displaystyle \partial_{\eta} g(\eta(t),\varphi(t));
 $">
 </DIV>
@@ -72,7 +72,7 @@ $">
  $(I-D) \varphi(t)$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.78ex; vertical-align: -0.70ex; " SRC="tex_complex_2.svg"
+ STYLE="height: 2.55ex; vertical-align: -0.70ex; " SRC="tex_complex_2.svg"
  ALT="$(I-D) \varphi(t)$"></SPAN> math.
 </p>
 <p>Tex:
@@ -84,14 +84,14 @@ U w V^\dagger
  -->
 
 <IMG
- STYLE="height: 2.54ex; vertical-align: -0.12ex; " SRC="tex_complex_3.svg"
+ STYLE="height: 2.31ex; vertical-align: -0.12ex; " SRC="tex_complex_3.svg"
  ALT="$\displaystyle U w V^\dagger
 $">
 </DIV>
 
 </p>
 <p>and math <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.75ex; vertical-align: -0.57ex; " SRC="tex_complex_4.svg"
+ STYLE="height: 2.52ex; vertical-align: -0.57ex; " SRC="tex_complex_4.svg"
  ALT="$\phi w V^t$"></SPAN>.
 </p>
 <p>Now there is a footnote<a class="footnote" id="DOCF1" 
href="#FOOT1"><sup>1</sup></a>
@@ -109,7 +109,7 @@ $">
  -->
 
 <IMG
- STYLE="height: 2.78ex; vertical-align: -0.70ex; " SRC="tex_complex_5.svg"
+ STYLE="height: 2.55ex; vertical-align: -0.70ex; " SRC="tex_complex_5.svg"
  ALT="$\displaystyle \omega = h ( \eta , \varphi)
 $">
 </DIV>
@@ -119,7 +119,7 @@ $">
  $h \dot \psi^\phi$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 3.07ex; vertical-align: -0.57ex; " SRC="tex_complex_6.svg"
+ STYLE="height: 2.84ex; vertical-align: -0.57ex; " SRC="tex_complex_6.svg"
  ALT="$h \dot \psi^\phi$"></SPAN>.
 </p>
 </div>
diff --git 
"a/tp/tests/many_input_files/tex_l2h_output_dir_non_ascii_res/encod\303\251/tex_complex_l2h.html"
 
"b/tp/tests/many_input_files/tex_l2h_output_dir_non_ascii_res/encod\303\251/tex_complex_l2h.html"
index d8b53cfe37..48b8aa6430 100644
--- 
"a/tp/tests/many_input_files/tex_l2h_output_dir_non_ascii_res/encod\303\251/tex_complex_l2h.html"
+++ 
"b/tp/tests/many_input_files/tex_l2h_output_dir_non_ascii_res/encod\303\251/tex_complex_l2h.html"
@@ -4,10 +4,6 @@
 <HTML lang="en">
 <HEAD>
 <TITLE>tex_complex_l2h</TITLE>
-<META NAME="description" CONTENT="tex_complex_l2h">
-<META NAME="keywords" CONTENT="tex_complex_l2h">
-<META NAME="resource-type" CONTENT="document">
-<META NAME="distribution" CONTENT="global">
 
 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
 <META NAME="viewport" CONTENT="width=device-width, initial-scale=1.0">
@@ -28,7 +24,7 @@
  -->
 
 <IMG
- STYLE="height: 2.86ex; vertical-align: -0.78ex; " 
SRC="tex_complex_l2h_img1.svg"
+ STYLE="height: 2.63ex; vertical-align: -0.78ex; " 
SRC="tex_complex_l2h_img1.svg"
  ALT="$\displaystyle \partial_{\eta} g(\eta(t),\varphi(t));
 $">
 </DIV>
@@ -41,7 +37,7 @@ $">
  $(I-D) \varphi(t)$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.78ex; vertical-align: -0.70ex; " 
SRC="tex_complex_l2h_img2.svg"
+ STYLE="height: 2.55ex; vertical-align: -0.70ex; " 
SRC="tex_complex_l2h_img2.svg"
  ALT="$(I-D) \varphi(t)$"></SPAN>
 
 <!-- l2h_end tex_complex_l2h 2 -->
@@ -55,7 +51,7 @@ U w V^\dagger
  -->
 
 <IMG
- STYLE="height: 2.54ex; vertical-align: -0.12ex; " 
SRC="tex_complex_l2h_img3.svg"
+ STYLE="height: 2.31ex; vertical-align: -0.12ex; " 
SRC="tex_complex_l2h_img3.svg"
  ALT="$\displaystyle U w V^\dagger
 $">
 </DIV>
@@ -65,7 +61,7 @@ $">
 
 <!-- l2h_begin tex_complex_l2h 4 -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.75ex; vertical-align: -0.57ex; " 
SRC="tex_complex_l2h_img4.svg"
+ STYLE="height: 2.52ex; vertical-align: -0.57ex; " 
SRC="tex_complex_l2h_img4.svg"
  ALT="$\phi w V^t$"></SPAN>
 
 <!-- l2h_end tex_complex_l2h 4 -->
@@ -79,7 +75,7 @@ $">
  -->
 
 <IMG
- STYLE="height: 2.78ex; vertical-align: -0.70ex; " 
SRC="tex_complex_l2h_img5.svg"
+ STYLE="height: 2.55ex; vertical-align: -0.70ex; " 
SRC="tex_complex_l2h_img5.svg"
  ALT="$\displaystyle \omega = h ( \eta , \varphi)
 $">
 </DIV>
@@ -92,7 +88,7 @@ $">
  $h \dot \psi^\phi$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 3.07ex; vertical-align: -0.57ex; " 
SRC="tex_complex_l2h_img6.svg"
+ STYLE="height: 2.84ex; vertical-align: -0.57ex; " 
SRC="tex_complex_l2h_img6.svg"
  ALT="$h \dot \psi^\phi$"></SPAN>
 
 <!-- l2h_end tex_complex_l2h 6 -->
diff --git 
"a/tp/tests/many_input_files/tex_l2h_output_dir_non_ascii_res/encod\303\251/tex_complex_l2h_images.tex"
 
"b/tp/tests/many_input_files/tex_l2h_output_dir_non_ascii_res/encod\303\251/tex_complex_l2h_images.tex"
index 890c3f7c8f..c92e0de003 100644
--- 
"a/tp/tests/many_input_files/tex_l2h_output_dir_non_ascii_res/encod\303\251/tex_complex_l2h_images.tex"
+++ 
"b/tp/tests/many_input_files/tex_l2h_output_dir_non_ascii_res/encod\303\251/tex_complex_l2h_images.tex"
@@ -51,13 +51,13 @@
  \def\phantompar{\csname par\endcsname}\normalsize}%
 \def\lthtmltypeout#1{{\let\protect\string \immediate\write\lthtmlwrite{#1}}}%
 \usepackage[tightpage,active]{preview}
-\PreviewBorder=1bp
+\PreviewBorder=0.5bp
 \newbox\lthtmlPageBox
 \newdimen\lthtmlCropMarkHeight
 \newdimen\lthtmlCropMarkDepth
 \long\def\lthtmlTightVBoxA#1{\def\lthtmllabel{#1}
-    \setbox\lthtmlPageBox\vbox\bgroup\catcode`\_=8 }%
-\long\def\lthtmlTightVBoxZ{\egroup
+    \setbox\lthtmlPageBox\vbox\bgroup\hbox\bgroup\catcode`\_=8 }%
+\long\def\lthtmlTightVBoxZ{\egroup\egroup
     \lthtmlCropMarkHeight=\ht\lthtmlPageBox \advance \lthtmlCropMarkHeight 6pt
     \lthtmlCropMarkDepth=\dp\lthtmlPageBox
     
\lthtmltypeout{^^J:\lthtmllabel:lthtmlCropMarkHeight:=\the\lthtmlCropMarkHeight}%
diff --git 
"a/tp/tests/many_input_files/tex_l2h_output_dir_non_ascii_res/encod\303\251/tex_encod\303\251_utf8-l2h_cache.pm"
 
"b/tp/tests/many_input_files/tex_l2h_output_dir_non_ascii_res/encod\303\251/tex_encod\303\251_utf8-l2h_cache.pm"
index 13ddb57acd..5b1e91b34a 100644
--- 
"a/tp/tests/many_input_files/tex_l2h_output_dir_non_ascii_res/encod\303\251/tex_encod\303\251_utf8-l2h_cache.pm"
+++ 
"b/tp/tests/many_input_files/tex_l2h_output_dir_non_ascii_res/encod\303\251/tex_encod\303\251_utf8-l2h_cache.pm"
@@ -12,7 +12,7 @@ $l2h_cache{$l2h_cache_key} = q|<DIV CLASS="displaymath">
  -->
 
 <IMG
- STYLE="height: 2.86ex; vertical-align: -0.78ex; " SRC="tex_encodé_utf8_1.svg"
+ STYLE="height: 2.63ex; vertical-align: -0.78ex; " SRC="tex_encodé_utf8_1.svg"
  ALT="$\displaystyle é \partial_{\eta} g(\eta(t),\varphi(t));
 $">
 </DIV>
@@ -28,7 +28,7 @@ $l2h_cache{$l2h_cache_key} = q|<DIV CLASS="displaymath">
  -->
 
 <IMG
- STYLE="height: 5.61ex; vertical-align: -2.12ex; " SRC="tex_encodé_utf8_3.svg"
+ STYLE="height: 5.37ex; vertical-align: -2.12ex; " SRC="tex_encodé_utf8_3.svg"
  ALT="$\displaystyle é ï î \int v(t)\, dt = u(t) + C
 $">
 </DIV>
@@ -39,7 +39,7 @@ $l2h_cache{$l2h_cache_key} = q|<!-- MATH
  $(I-D) é \varphi(t)$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.78ex; vertical-align: -0.70ex; " SRC="tex_encodé_utf8_2.svg"
+ STYLE="height: 2.55ex; vertical-align: -0.70ex; " SRC="tex_encodé_utf8_2.svg"
  ALT="$(I-D) é \varphi(t)$"></SPAN>|;
 
 1;
diff --git 
"a/tp/tests/many_input_files/tex_l2h_output_dir_non_ascii_res/encod\303\251/tex_encod\303\251_utf8.html"
 
"b/tp/tests/many_input_files/tex_l2h_output_dir_non_ascii_res/encod\303\251/tex_encod\303\251_utf8.html"
index 0a09baac1e..826cc1859a 100644
--- 
"a/tp/tests/many_input_files/tex_l2h_output_dir_non_ascii_res/encod\303\251/tex_encod\303\251_utf8.html"
+++ 
"b/tp/tests/many_input_files/tex_l2h_output_dir_non_ascii_res/encod\303\251/tex_encod\303\251_utf8.html"
@@ -60,7 +60,7 @@ span.program-in-footer {font-size: smaller}
  -->
 
 <IMG
- STYLE="height: 2.86ex; vertical-align: -0.78ex; " SRC="tex_encodé_utf8_1.svg"
+ STYLE="height: 2.63ex; vertical-align: -0.78ex; " SRC="tex_encodé_utf8_1.svg"
  ALT="$\displaystyle é \partial_{\eta} g(\eta(t),\varphi(t));
 $">
 </DIV>
@@ -70,7 +70,7 @@ $">
  $(I-D) é \varphi(t)$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.78ex; vertical-align: -0.70ex; " SRC="tex_encodé_utf8_2.svg"
+ STYLE="height: 2.55ex; vertical-align: -0.70ex; " SRC="tex_encodé_utf8_2.svg"
  ALT="$(I-D) é \varphi(t)$"></SPAN> math.
 </p>
 <DIV CLASS="displaymath">
@@ -81,7 +81,7 @@ $">
  -->
 
 <IMG
- STYLE="height: 5.61ex; vertical-align: -2.12ex; " SRC="tex_encodé_utf8_3.svg"
+ STYLE="height: 5.37ex; vertical-align: -2.12ex; " SRC="tex_encodé_utf8_3.svg"
  ALT="$\displaystyle é ï î \int v(t)\, dt = u(t) + C
 $">
 </DIV>
diff --git 
"a/tp/tests/many_input_files/tex_l2h_output_dir_non_ascii_res/encod\303\251/tex_encod\303\251_utf8_l2h.html"
 
"b/tp/tests/many_input_files/tex_l2h_output_dir_non_ascii_res/encod\303\251/tex_encod\303\251_utf8_l2h.html"
index a9ecc49af6..1d1f682b8a 100644
--- 
"a/tp/tests/many_input_files/tex_l2h_output_dir_non_ascii_res/encod\303\251/tex_encod\303\251_utf8_l2h.html"
+++ 
"b/tp/tests/many_input_files/tex_l2h_output_dir_non_ascii_res/encod\303\251/tex_encod\303\251_utf8_l2h.html"
@@ -4,10 +4,6 @@
 <HTML lang="en">
 <HEAD>
 <TITLE>tex_encodé_utf8_l2h</TITLE>
-<META NAME="description" CONTENT="tex_encodé_utf8_l2h">
-<META NAME="keywords" CONTENT="tex_encodé_utf8_l2h">
-<META NAME="resource-type" CONTENT="document">
-<META NAME="distribution" CONTENT="global">
 
 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
 <META NAME="viewport" CONTENT="width=device-width, initial-scale=1.0">
@@ -28,7 +24,7 @@
  -->
 
 <IMG
- STYLE="height: 2.86ex; vertical-align: -0.78ex; " 
SRC="tex_encodé_utf8_l2h_img1.svg"
+ STYLE="height: 2.63ex; vertical-align: -0.78ex; " 
SRC="tex_encodé_utf8_l2h_img1.svg"
  ALT="$\displaystyle é \partial_{\eta} g(\eta(t),\varphi(t));
 $">
 </DIV>
@@ -41,7 +37,7 @@ $">
  $(I-D) é \varphi(t)$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.78ex; vertical-align: -0.70ex; " 
SRC="tex_encodé_utf8_l2h_img2.svg"
+ STYLE="height: 2.55ex; vertical-align: -0.70ex; " 
SRC="tex_encodé_utf8_l2h_img2.svg"
  ALT="$(I-D) é \varphi(t)$"></SPAN>
 
 <!-- l2h_end tex_encodé_utf8_l2h 2 -->
@@ -55,7 +51,7 @@ $">
  -->
 
 <IMG
- STYLE="height: 5.61ex; vertical-align: -2.12ex; " 
SRC="tex_encodé_utf8_l2h_img3.svg"
+ STYLE="height: 5.37ex; vertical-align: -2.12ex; " 
SRC="tex_encodé_utf8_l2h_img3.svg"
  ALT="$\displaystyle é ï î \int v(t)\, dt = u(t) + C
 $">
 </DIV>
diff --git 
"a/tp/tests/many_input_files/tex_l2h_output_dir_non_ascii_res/encod\303\251/tex_encod\303\251_utf8_l2h_images.tex"
 
"b/tp/tests/many_input_files/tex_l2h_output_dir_non_ascii_res/encod\303\251/tex_encod\303\251_utf8_l2h_images.tex"
index 6e5c06860a..55f6cc8577 100644
--- 
"a/tp/tests/many_input_files/tex_l2h_output_dir_non_ascii_res/encod\303\251/tex_encod\303\251_utf8_l2h_images.tex"
+++ 
"b/tp/tests/many_input_files/tex_l2h_output_dir_non_ascii_res/encod\303\251/tex_encod\303\251_utf8_l2h_images.tex"
@@ -51,13 +51,13 @@
  \def\phantompar{\csname par\endcsname}\normalsize}%
 \def\lthtmltypeout#1{{\let\protect\string \immediate\write\lthtmlwrite{#1}}}%
 \usepackage[tightpage,active]{preview}
-\PreviewBorder=1bp
+\PreviewBorder=0.5bp
 \newbox\lthtmlPageBox
 \newdimen\lthtmlCropMarkHeight
 \newdimen\lthtmlCropMarkDepth
 \long\def\lthtmlTightVBoxA#1{\def\lthtmllabel{#1}
-    \setbox\lthtmlPageBox\vbox\bgroup\catcode`\_=8 }%
-\long\def\lthtmlTightVBoxZ{\egroup
+    \setbox\lthtmlPageBox\vbox\bgroup\hbox\bgroup\catcode`\_=8 }%
+\long\def\lthtmlTightVBoxZ{\egroup\egroup
     \lthtmlCropMarkHeight=\ht\lthtmlPageBox \advance \lthtmlCropMarkHeight 6pt
     \lthtmlCropMarkDepth=\dp\lthtmlPageBox
     
\lthtmltypeout{^^J:\lthtmllabel:lthtmlCropMarkHeight:=\the\lthtmlCropMarkHeight}%
diff --git a/tp/tests/many_input_files/tex_l2h_res/tex-l2h_cache.pm 
b/tp/tests/many_input_files/tex_l2h_res/tex-l2h_cache.pm
index 55a0ea3069..08f5302dec 100644
--- a/tp/tests/many_input_files/tex_l2h_res/tex-l2h_cache.pm
+++ b/tp/tests/many_input_files/tex_l2h_res/tex-l2h_cache.pm
@@ -17,7 +17,7 @@ $l2h_cache{$l2h_cache_key} = q|
  -->
 
 <IMG
- STYLE="height: 7.66ex; vertical-align: -3.09ex; " SRC="tex_1.svg"
+ STYLE="height: 7.42ex; vertical-align: -3.09ex; " SRC="tex_1.svg"
  ALT="$\displaystyle \chi^2 = \sum_{i=1}^N
 \left(y_i - (a + b x_i)
 \over \sigma_i\right)^2 $">
@@ -40,7 +40,7 @@ $l2h_cache{$l2h_cache_key} = q|<DIV CLASS="displaymath">
  -->
 
 <IMG
- STYLE="height: 6.49ex; vertical-align: -2.32ex; " SRC="tex_7.svg"
+ STYLE="height: 6.26ex; vertical-align: -2.32ex; " SRC="tex_7.svg"
  ALT="$\displaystyle -- f(x) = {1 \over \sigma \sqrt{2\pi}}e@sup{-{1 \over 
2}\left({x-\mu \over \sigma}\right)^2}
 $">
 </DIV>
@@ -51,7 +51,7 @@ $l2h_cache{$l2h_cache_key} = q|<!-- MATH
  $@code{math code} a < b$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.16ex; vertical-align: -0.21ex; " SRC="tex_4.svg"
+ STYLE="height: 1.93ex; vertical-align: -0.21ex; " SRC="tex_4.svg"
  ALT="$@code{math code} a &lt; b$"></SPAN>|;
 
 $l2h_cache_key = q/$\sum_{i} f(x)@sup{2}$/;
@@ -59,7 +59,7 @@ $l2h_cache{$l2h_cache_key} = q|<!-- MATH
  $\sum_{i} f(x)@sup{2}$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.89ex; vertical-align: -0.81ex; " SRC="tex_6.svg"
+ STYLE="height: 2.66ex; vertical-align: -0.81ex; " SRC="tex_6.svg"
  ALT="$\sum_{i} f(x)@sup{2}$"></SPAN>|;
 
 $l2h_cache_key = q/$\underline{@code{math \hbox{ code }}} 
\sum_{i}{\underline{f}}$/;
@@ -67,12 +67,12 @@ $l2h_cache{$l2h_cache_key} = q|<!-- MATH
  $\underline{@code{math \hbox{ code }}} \sum_{i}{\underline{f}}$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 3.11ex; vertical-align: -1.03ex; " SRC="tex_5.svg"
+ STYLE="height: 2.88ex; vertical-align: -1.03ex; " SRC="tex_5.svg"
  ALT="$\underline{@code{math \hbox{ code }}} 
\sum_{i}{\underline{f}}$"></SPAN>|;
 
 $l2h_cache_key = q/$a @\ b$/;
 $l2h_cache{$l2h_cache_key} = q|<SPAN CLASS="MATH"><IMG
- STYLE="height: 2.07ex; vertical-align: -0.12ex; " SRC="tex_3.svg"
+ STYLE="height: 1.84ex; vertical-align: -0.12ex; " SRC="tex_3.svg"
  ALT="$a @\ b$"></SPAN>|;
 
 $l2h_cache_key = q/${x^i}\over{\tan y}$/;
@@ -80,7 +80,7 @@ $l2h_cache{$l2h_cache_key} = q|<!-- MATH
  ${x^i}\over{\tan y}$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 3.96ex; vertical-align: -1.23ex; " SRC="tex_2.svg"
+ STYLE="height: 3.73ex; vertical-align: -1.23ex; " SRC="tex_2.svg"
  ALT="${x^i}\over{\tan y}$"></SPAN>|;
 
 1;
diff --git a/tp/tests/many_input_files/tex_l2h_res/tex.html 
b/tp/tests/many_input_files/tex_l2h_res/tex.html
index c9d247ed8f..fa83fb8b7a 100644
--- a/tp/tests/many_input_files/tex_l2h_res/tex.html
+++ b/tp/tests/many_input_files/tex_l2h_res/tex.html
@@ -37,7 +37,7 @@ span.program-in-footer {font-size: smaller}
  -->
 
 <IMG
- STYLE="height: 7.66ex; vertical-align: -3.09ex; " SRC="tex_1.svg"
+ STYLE="height: 7.42ex; vertical-align: -3.09ex; " SRC="tex_1.svg"
  ALT="$\displaystyle \chi^2 = \sum_{i=1}^N
 \left(y_i - (a + b x_i)
 \over \sigma_i\right)^2 $">
@@ -57,12 +57,12 @@ Here some <!-- MATH
  ${x^i}\over{\tan y}$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 3.96ex; vertical-align: -1.23ex; " SRC="tex_2.svg"
+ STYLE="height: 3.73ex; vertical-align: -1.23ex; " SRC="tex_2.svg"
  ALT="${x^i}\over{\tan y}$"></SPAN>.
 </p>
 <p>Maths with protected \:
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.07ex; vertical-align: -0.12ex; " SRC="tex_3.svg"
+ STYLE="height: 1.84ex; vertical-align: -0.12ex; " SRC="tex_3.svg"
  ALT="$a @\ b$"></SPAN>.
 </p>
 <p>Maths with code @-command:
@@ -71,7 +71,7 @@ Here some <!-- MATH
  $@code{math code} a < b$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.16ex; vertical-align: -0.21ex; " SRC="tex_4.svg"
+ STYLE="height: 1.93ex; vertical-align: -0.21ex; " SRC="tex_4.svg"
  ALT="$@code{math code} a &lt; b$"></SPAN>
 </p>
 <p>Maths with code @-command and braces:
@@ -80,7 +80,7 @@ Here some <!-- MATH
  $\underline{@code{math \hbox{ code }}} \sum_{i}{\underline{f}}$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 3.11ex; vertical-align: -1.03ex; " SRC="tex_5.svg"
+ STYLE="height: 2.88ex; vertical-align: -1.03ex; " SRC="tex_5.svg"
  ALT="$\underline{@code{math \hbox{ code }}} \sum_{i}{\underline{f}}$"></SPAN>
 </p>
 <p>Maths with @-sup
@@ -89,7 +89,7 @@ Here some <!-- MATH
  $\sum_{i} f(x)@sup{2}$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.89ex; vertical-align: -0.81ex; " SRC="tex_6.svg"
+ STYLE="height: 2.66ex; vertical-align: -0.81ex; " SRC="tex_6.svg"
  ALT="$\sum_{i} f(x)@sup{2}$"></SPAN>
 </p>
 <p>@\ outside of math
@@ -105,7 +105,7 @@ Here some <!-- MATH
  -->
 
 <IMG
- STYLE="height: 6.49ex; vertical-align: -2.32ex; " SRC="tex_7.svg"
+ STYLE="height: 6.26ex; vertical-align: -2.32ex; " SRC="tex_7.svg"
  ALT="$\displaystyle -- f(x) = {1 \over \sigma \sqrt{2\pi}}e@sup{-{1 \over 
2}\left({x-\mu \over \sigma}\right)^2}
 $">
 </DIV>
diff --git a/tp/tests/many_input_files/tex_l2h_res/tex_complex-l2h_cache.pm 
b/tp/tests/many_input_files/tex_l2h_res/tex_complex-l2h_cache.pm
index 14e12dac1d..e030aff657 100644
--- a/tp/tests/many_input_files/tex_l2h_res/tex_complex-l2h_cache.pm
+++ b/tp/tests/many_input_files/tex_l2h_res/tex_complex-l2h_cache.pm
@@ -12,7 +12,7 @@ U w V^\dagger
  -->
 
 <IMG
- STYLE="height: 2.54ex; vertical-align: -0.12ex; " SRC="tex_complex_3.svg"
+ STYLE="height: 2.31ex; vertical-align: -0.12ex; " SRC="tex_complex_3.svg"
  ALT="$\displaystyle U w V^\dagger
 $">
 </DIV>
@@ -29,7 +29,7 @@ $l2h_cache{$l2h_cache_key} = q|<DIV CLASS="displaymath">
  -->
 
 <IMG
- STYLE="height: 2.78ex; vertical-align: -0.70ex; " SRC="tex_complex_5.svg"
+ STYLE="height: 2.55ex; vertical-align: -0.70ex; " SRC="tex_complex_5.svg"
  ALT="$\displaystyle \omega = h ( \eta , \varphi)
 $">
 </DIV>
@@ -45,7 +45,7 @@ $l2h_cache{$l2h_cache_key} = q|<DIV CLASS="displaymath">
  -->
 
 <IMG
- STYLE="height: 2.86ex; vertical-align: -0.78ex; " SRC="tex_complex_1.svg"
+ STYLE="height: 2.63ex; vertical-align: -0.78ex; " SRC="tex_complex_1.svg"
  ALT="$\displaystyle \partial_{\eta} g(\eta(t),\varphi(t));
 $">
 </DIV>
@@ -56,12 +56,12 @@ $l2h_cache{$l2h_cache_key} = q|<!-- MATH
  $(I-D) \varphi(t)$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.78ex; vertical-align: -0.70ex; " SRC="tex_complex_2.svg"
+ STYLE="height: 2.55ex; vertical-align: -0.70ex; " SRC="tex_complex_2.svg"
  ALT="$(I-D) \varphi(t)$"></SPAN>|;
 
 $l2h_cache_key = q/$\phi w V^t$/;
 $l2h_cache{$l2h_cache_key} = q|<SPAN CLASS="MATH"><IMG
- STYLE="height: 2.75ex; vertical-align: -0.57ex; " SRC="tex_complex_4.svg"
+ STYLE="height: 2.52ex; vertical-align: -0.57ex; " SRC="tex_complex_4.svg"
  ALT="$\phi w V^t$"></SPAN>|;
 
 $l2h_cache_key = q/$h \dot \psi^\phi$/;
@@ -69,7 +69,7 @@ $l2h_cache{$l2h_cache_key} = q|<!-- MATH
  $h \dot \psi^\phi$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 3.07ex; vertical-align: -0.57ex; " SRC="tex_complex_6.svg"
+ STYLE="height: 2.84ex; vertical-align: -0.57ex; " SRC="tex_complex_6.svg"
  ALT="$h \dot \psi^\phi$"></SPAN>|;
 
 1;
diff --git a/tp/tests/many_input_files/tex_l2h_res/tex_complex.html 
b/tp/tests/many_input_files/tex_l2h_res/tex_complex.html
index aed5247b16..fc17222083 100644
--- a/tp/tests/many_input_files/tex_l2h_res/tex_complex.html
+++ b/tp/tests/many_input_files/tex_l2h_res/tex_complex.html
@@ -36,7 +36,7 @@ span.program-in-footer {font-size: smaller}
  -->
 
 <IMG
- STYLE="height: 2.86ex; vertical-align: -0.78ex; " SRC="tex_complex_1.svg"
+ STYLE="height: 2.63ex; vertical-align: -0.78ex; " SRC="tex_complex_1.svg"
  ALT="$\displaystyle \partial_{\eta} g(\eta(t),\varphi(t));
 $">
 </DIV>
@@ -46,7 +46,7 @@ $">
  $(I-D) \varphi(t)$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.78ex; vertical-align: -0.70ex; " SRC="tex_complex_2.svg"
+ STYLE="height: 2.55ex; vertical-align: -0.70ex; " SRC="tex_complex_2.svg"
  ALT="$(I-D) \varphi(t)$"></SPAN> math.
 </p><hr>
 
@@ -62,7 +62,7 @@ $">
  -->
 
 <IMG
- STYLE="height: 2.86ex; vertical-align: -0.78ex; " SRC="tex_complex_1.svg"
+ STYLE="height: 2.63ex; vertical-align: -0.78ex; " SRC="tex_complex_1.svg"
  ALT="$\displaystyle \partial_{\eta} g(\eta(t),\varphi(t));
 $">
 </DIV>
@@ -72,7 +72,7 @@ $">
  $(I-D) \varphi(t)$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.78ex; vertical-align: -0.70ex; " SRC="tex_complex_2.svg"
+ STYLE="height: 2.55ex; vertical-align: -0.70ex; " SRC="tex_complex_2.svg"
  ALT="$(I-D) \varphi(t)$"></SPAN> math.
 </p>
 <p>Tex:
@@ -84,14 +84,14 @@ U w V^\dagger
  -->
 
 <IMG
- STYLE="height: 2.54ex; vertical-align: -0.12ex; " SRC="tex_complex_3.svg"
+ STYLE="height: 2.31ex; vertical-align: -0.12ex; " SRC="tex_complex_3.svg"
  ALT="$\displaystyle U w V^\dagger
 $">
 </DIV>
 
 </p>
 <p>and math <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.75ex; vertical-align: -0.57ex; " SRC="tex_complex_4.svg"
+ STYLE="height: 2.52ex; vertical-align: -0.57ex; " SRC="tex_complex_4.svg"
  ALT="$\phi w V^t$"></SPAN>.
 </p>
 <p>Now there is a footnote<a class="footnote" id="DOCF1" 
href="#FOOT1"><sup>1</sup></a>
@@ -109,7 +109,7 @@ $">
  -->
 
 <IMG
- STYLE="height: 2.78ex; vertical-align: -0.70ex; " SRC="tex_complex_5.svg"
+ STYLE="height: 2.55ex; vertical-align: -0.70ex; " SRC="tex_complex_5.svg"
  ALT="$\displaystyle \omega = h ( \eta , \varphi)
 $">
 </DIV>
@@ -119,7 +119,7 @@ $">
  $h \dot \psi^\phi$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 3.07ex; vertical-align: -0.57ex; " SRC="tex_complex_6.svg"
+ STYLE="height: 2.84ex; vertical-align: -0.57ex; " SRC="tex_complex_6.svg"
  ALT="$h \dot \psi^\phi$"></SPAN>.
 </p>
 </div>
diff --git a/tp/tests/many_input_files/tex_l2h_res/tex_complex_l2h.html 
b/tp/tests/many_input_files/tex_l2h_res/tex_complex_l2h.html
index d8b53cfe37..48b8aa6430 100644
--- a/tp/tests/many_input_files/tex_l2h_res/tex_complex_l2h.html
+++ b/tp/tests/many_input_files/tex_l2h_res/tex_complex_l2h.html
@@ -4,10 +4,6 @@
 <HTML lang="en">
 <HEAD>
 <TITLE>tex_complex_l2h</TITLE>
-<META NAME="description" CONTENT="tex_complex_l2h">
-<META NAME="keywords" CONTENT="tex_complex_l2h">
-<META NAME="resource-type" CONTENT="document">
-<META NAME="distribution" CONTENT="global">
 
 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
 <META NAME="viewport" CONTENT="width=device-width, initial-scale=1.0">
@@ -28,7 +24,7 @@
  -->
 
 <IMG
- STYLE="height: 2.86ex; vertical-align: -0.78ex; " 
SRC="tex_complex_l2h_img1.svg"
+ STYLE="height: 2.63ex; vertical-align: -0.78ex; " 
SRC="tex_complex_l2h_img1.svg"
  ALT="$\displaystyle \partial_{\eta} g(\eta(t),\varphi(t));
 $">
 </DIV>
@@ -41,7 +37,7 @@ $">
  $(I-D) \varphi(t)$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.78ex; vertical-align: -0.70ex; " 
SRC="tex_complex_l2h_img2.svg"
+ STYLE="height: 2.55ex; vertical-align: -0.70ex; " 
SRC="tex_complex_l2h_img2.svg"
  ALT="$(I-D) \varphi(t)$"></SPAN>
 
 <!-- l2h_end tex_complex_l2h 2 -->
@@ -55,7 +51,7 @@ U w V^\dagger
  -->
 
 <IMG
- STYLE="height: 2.54ex; vertical-align: -0.12ex; " 
SRC="tex_complex_l2h_img3.svg"
+ STYLE="height: 2.31ex; vertical-align: -0.12ex; " 
SRC="tex_complex_l2h_img3.svg"
  ALT="$\displaystyle U w V^\dagger
 $">
 </DIV>
@@ -65,7 +61,7 @@ $">
 
 <!-- l2h_begin tex_complex_l2h 4 -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.75ex; vertical-align: -0.57ex; " 
SRC="tex_complex_l2h_img4.svg"
+ STYLE="height: 2.52ex; vertical-align: -0.57ex; " 
SRC="tex_complex_l2h_img4.svg"
  ALT="$\phi w V^t$"></SPAN>
 
 <!-- l2h_end tex_complex_l2h 4 -->
@@ -79,7 +75,7 @@ $">
  -->
 
 <IMG
- STYLE="height: 2.78ex; vertical-align: -0.70ex; " 
SRC="tex_complex_l2h_img5.svg"
+ STYLE="height: 2.55ex; vertical-align: -0.70ex; " 
SRC="tex_complex_l2h_img5.svg"
  ALT="$\displaystyle \omega = h ( \eta , \varphi)
 $">
 </DIV>
@@ -92,7 +88,7 @@ $">
  $h \dot \psi^\phi$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 3.07ex; vertical-align: -0.57ex; " 
SRC="tex_complex_l2h_img6.svg"
+ STYLE="height: 2.84ex; vertical-align: -0.57ex; " 
SRC="tex_complex_l2h_img6.svg"
  ALT="$h \dot \psi^\phi$"></SPAN>
 
 <!-- l2h_end tex_complex_l2h 6 -->
diff --git a/tp/tests/many_input_files/tex_l2h_res/tex_complex_l2h_images.tex 
b/tp/tests/many_input_files/tex_l2h_res/tex_complex_l2h_images.tex
index 890c3f7c8f..c92e0de003 100644
--- a/tp/tests/many_input_files/tex_l2h_res/tex_complex_l2h_images.tex
+++ b/tp/tests/many_input_files/tex_l2h_res/tex_complex_l2h_images.tex
@@ -51,13 +51,13 @@
  \def\phantompar{\csname par\endcsname}\normalsize}%
 \def\lthtmltypeout#1{{\let\protect\string \immediate\write\lthtmlwrite{#1}}}%
 \usepackage[tightpage,active]{preview}
-\PreviewBorder=1bp
+\PreviewBorder=0.5bp
 \newbox\lthtmlPageBox
 \newdimen\lthtmlCropMarkHeight
 \newdimen\lthtmlCropMarkDepth
 \long\def\lthtmlTightVBoxA#1{\def\lthtmllabel{#1}
-    \setbox\lthtmlPageBox\vbox\bgroup\catcode`\_=8 }%
-\long\def\lthtmlTightVBoxZ{\egroup
+    \setbox\lthtmlPageBox\vbox\bgroup\hbox\bgroup\catcode`\_=8 }%
+\long\def\lthtmlTightVBoxZ{\egroup\egroup
     \lthtmlCropMarkHeight=\ht\lthtmlPageBox \advance \lthtmlCropMarkHeight 6pt
     \lthtmlCropMarkDepth=\dp\lthtmlPageBox
     
\lthtmltypeout{^^J:\lthtmllabel:lthtmlCropMarkHeight:=\the\lthtmlCropMarkHeight}%
diff --git a/tp/tests/many_input_files/tex_l2h_res/tex_l2h.html 
b/tp/tests/many_input_files/tex_l2h_res/tex_l2h.html
index 288f842d1d..5a2e2de8e2 100644
--- a/tp/tests/many_input_files/tex_l2h_res/tex_l2h.html
+++ b/tp/tests/many_input_files/tex_l2h_res/tex_l2h.html
@@ -4,10 +4,6 @@
 <HTML lang="en">
 <HEAD>
 <TITLE>tex_l2h</TITLE>
-<META NAME="description" CONTENT="tex_l2h">
-<META NAME="keywords" CONTENT="tex_l2h">
-<META NAME="resource-type" CONTENT="document">
-<META NAME="distribution" CONTENT="global">
 
 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
 <META NAME="viewport" CONTENT="width=device-width, initial-scale=1.0">
@@ -32,7 +28,7 @@
  -->
 
 <IMG
- STYLE="height: 7.66ex; vertical-align: -3.09ex; " SRC="tex_l2h_img1.svg"
+ STYLE="height: 7.42ex; vertical-align: -3.09ex; " SRC="tex_l2h_img1.svg"
  ALT="$\displaystyle \chi^2 = \sum_{i=1}^N
 \left(y_i - (a + b x_i)
 \over \sigma_i\right)^2 $">
@@ -52,14 +48,14 @@ tex <SPAN CLASS="logo-TeX">T<SMALL>E</SMALL>X</SPAN>
  ${x^i}\over{\tan y}$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 3.96ex; vertical-align: -1.23ex; " SRC="tex_l2h_img2.svg"
+ STYLE="height: 3.73ex; vertical-align: -1.23ex; " SRC="tex_l2h_img2.svg"
  ALT="${x^i}\over{\tan y}$"></SPAN>
 
 <!-- l2h_end tex_l2h 3 -->
 
 <!-- l2h_begin tex_l2h 4 -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.07ex; vertical-align: -0.12ex; " SRC="tex_l2h_img3.svg"
+ STYLE="height: 1.84ex; vertical-align: -0.12ex; " SRC="tex_l2h_img3.svg"
  ALT="$a @\ b$"></SPAN>
 
 <!-- l2h_end tex_l2h 4 -->
@@ -69,7 +65,7 @@ tex <SPAN CLASS="logo-TeX">T<SMALL>E</SMALL>X</SPAN>
  $@code{math code} a < b$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.16ex; vertical-align: -0.21ex; " SRC="tex_l2h_img4.svg"
+ STYLE="height: 1.93ex; vertical-align: -0.21ex; " SRC="tex_l2h_img4.svg"
  ALT="$@code{math code} a &lt; b$"></SPAN>
 
 <!-- l2h_end tex_l2h 5 -->
@@ -79,7 +75,7 @@ tex <SPAN CLASS="logo-TeX">T<SMALL>E</SMALL>X</SPAN>
  $\underline{@code{math \hbox{ code }}} \sum_{i}{\underline{f}}$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 3.11ex; vertical-align: -1.03ex; " SRC="tex_l2h_img5.svg"
+ STYLE="height: 2.88ex; vertical-align: -1.03ex; " SRC="tex_l2h_img5.svg"
  ALT="$\underline{@code{math \hbox{ code }}} \sum_{i}{\underline{f}}$"></SPAN>
 
 <!-- l2h_end tex_l2h 6 -->
@@ -89,7 +85,7 @@ tex <SPAN CLASS="logo-TeX">T<SMALL>E</SMALL>X</SPAN>
  $\sum_{i} f(x)@sup{2}$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.89ex; vertical-align: -0.81ex; " SRC="tex_l2h_img6.svg"
+ STYLE="height: 2.66ex; vertical-align: -0.81ex; " SRC="tex_l2h_img6.svg"
  ALT="$\sum_{i} f(x)@sup{2}$"></SPAN>
 
 <!-- l2h_end tex_l2h 7 -->
@@ -103,7 +99,7 @@ tex <SPAN CLASS="logo-TeX">T<SMALL>E</SMALL>X</SPAN>
  -->
 
 <IMG
- STYLE="height: 6.49ex; vertical-align: -2.32ex; " SRC="tex_l2h_img7.svg"
+ STYLE="height: 6.26ex; vertical-align: -2.32ex; " SRC="tex_l2h_img7.svg"
  ALT="$\displaystyle -- f(x) = {1 \over \sigma \sqrt{2\pi}}e@sup{-{1 \over 
2}\left({x-\mu \over \sigma}\right)^2}
 $">
 </DIV>
diff --git a/tp/tests/many_input_files/tex_l2h_res/tex_l2h_images.tex 
b/tp/tests/many_input_files/tex_l2h_res/tex_l2h_images.tex
index 1f740cbf1a..9a73d0d44e 100644
--- a/tp/tests/many_input_files/tex_l2h_res/tex_l2h_images.tex
+++ b/tp/tests/many_input_files/tex_l2h_res/tex_l2h_images.tex
@@ -51,13 +51,13 @@
  \def\phantompar{\csname par\endcsname}\normalsize}%
 \def\lthtmltypeout#1{{\let\protect\string \immediate\write\lthtmlwrite{#1}}}%
 \usepackage[tightpage,active]{preview}
-\PreviewBorder=1bp
+\PreviewBorder=0.5bp
 \newbox\lthtmlPageBox
 \newdimen\lthtmlCropMarkHeight
 \newdimen\lthtmlCropMarkDepth
 \long\def\lthtmlTightVBoxA#1{\def\lthtmllabel{#1}
-    \setbox\lthtmlPageBox\vbox\bgroup\catcode`\_=8 }%
-\long\def\lthtmlTightVBoxZ{\egroup
+    \setbox\lthtmlPageBox\vbox\bgroup\hbox\bgroup\catcode`\_=8 }%
+\long\def\lthtmlTightVBoxZ{\egroup\egroup
     \lthtmlCropMarkHeight=\ht\lthtmlPageBox \advance \lthtmlCropMarkHeight 6pt
     \lthtmlCropMarkDepth=\dp\lthtmlPageBox
     
\lthtmltypeout{^^J:\lthtmllabel:lthtmlCropMarkHeight:=\the\lthtmlCropMarkHeight}%
diff --git a/tp/tests/tex_html/res_parser/block_EOL_tex/block_EOL_l2h.html 
b/tp/tests/tex_html/res_parser/block_EOL_tex/block_EOL_l2h.html
index 00f242b4ed..d2413e90f1 100644
--- a/tp/tests/tex_html/res_parser/block_EOL_tex/block_EOL_l2h.html
+++ b/tp/tests/tex_html/res_parser/block_EOL_tex/block_EOL_l2h.html
@@ -4,10 +4,6 @@
 <HTML lang="en">
 <HEAD>
 <TITLE>block_EOL_l2h</TITLE>
-<META NAME="description" CONTENT="block_EOL_l2h">
-<META NAME="keywords" CONTENT="block_EOL_l2h">
-<META NAME="resource-type" CONTENT="document">
-<META NAME="distribution" CONTENT="global">
 
 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
 <META NAME="viewport" CONTENT="width=device-width, initial-scale=1.0">
diff --git a/tp/tests/tex_html/res_parser/formatting_singular/chapter.html 
b/tp/tests/tex_html/res_parser/formatting_singular/chapter.html
index a6548bbfdb..79436e05d1 100644
--- a/tp/tests/tex_html/res_parser/formatting_singular/chapter.html
+++ b/tp/tests/tex_html/res_parser/formatting_singular/chapter.html
@@ -1058,7 +1058,7 @@ but , ,
  $- -a {\frac{1}{2}} @minus{}$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 3.22ex; vertical-align: -0.92ex; " SRC="sing_1.svg"
+ STYLE="height: 2.98ex; vertical-align: -0.92ex; " SRC="sing_1.svg"
  ALT="$--a {\frac{1}{2}} @minus{}$"></SPAN>
 <code class="code">@option{--a}</code> <samp class="option">--a</samp>
 <code class="code">@r{--a}</code> <span class="r">&ndash;a</span>
@@ -1137,7 +1137,7 @@ After clickstyle &rArr;
  -->
 
 <IMG
- STYLE="height: 2.77ex; vertical-align: -0.57ex; " SRC="sing_2.svg"
+ STYLE="height: 2.54ex; vertical-align: -0.57ex; " SRC="sing_2.svg"
  ALT="$\displaystyle @strong{\lq\lq simple-double--three---four----''} @w{aa}
 \lq @w{}\lq simple-double-@w{}-three---four----'@w{}'@*
 $">
@@ -1156,7 +1156,7 @@ $">
  -->
 
 <IMG
- STYLE="height: 2.90ex; vertical-align: -0.70ex; " SRC="sing_3.svg"
+ STYLE="height: 2.67ex; vertical-align: -0.70ex; " SRC="sing_3.svg"
  ALT="$\displaystyle @''u @''{U} @~n @^a @'e @=o @\lq i @'{e} @dotless{i} 
@dotless{j} @\lq {...
 ...@ogonek{a} a@sup{h}@sub{l}
 @* @ @ @
@@ -1179,7 +1179,7 @@ $">
  -->
 
 <IMG
- STYLE="height: 2.52ex; vertical-align: -0.57ex; " SRC="sing_4.svg"
+ STYLE="height: 2.29ex; vertical-align: -0.57ex; " SRC="sing_4.svg"
  ALT="$\displaystyle @click{}
 @U{0075}
 @TeX{} @LaTeX{} @bullet{} @copyright{} @dots{} ...
@@ -1199,7 +1199,7 @@ $">
  -->
 
 <IMG
- STYLE="height: 2.52ex; vertical-align: -0.57ex; " SRC="sing_5.svg"
+ STYLE="height: 2.29ex; vertical-align: -0.57ex; " SRC="sing_5.svg"
  ALT="$\displaystyle @quotedblleft{} @quotedblright{}
 @quoteleft{} @quoteright{} @quo...
 ...guilsinglleft{}
@@ -1215,7 +1215,7 @@ $">
  -->
 
 <IMG
- STYLE="height: 2.52ex; vertical-align: -0.57ex; " SRC="sing_6.svg"
+ STYLE="height: 2.29ex; vertical-align: -0.57ex; " SRC="sing_6.svg"
  ALT="$\displaystyle @b{b} @i{i} @r{r} @sc{sc} @t{t} @sansserif{sansserif} 
@slanted{slanted}
 $">
 </DIV>
@@ -1543,7 +1543,7 @@ f(x) = {1 \over \sigma \sqrt{2\pi}}e@sup{-{1 \over 
2}\left({x-\mu \over \sigma}\
  -->
 
 <IMG
- STYLE="height: 6.49ex; vertical-align: -2.32ex; " SRC="sing_7.svg"
+ STYLE="height: 6.26ex; vertical-align: -2.32ex; " SRC="sing_7.svg"
  ALT="$\displaystyle disp--laymath
 f(x) = {1 \over \sigma \sqrt{2\pi}}e@sup{-{1 \over 2}\left({x-\mu \over 
\sigma}\right)^2}
 $">
@@ -1920,7 +1920,7 @@ html ''
  -->
 
 <IMG
- STYLE="height: 2.78ex; vertical-align: -0.70ex; " SRC="sing_8.svg"
+ STYLE="height: 2.55ex; vertical-align: -0.70ex; " SRC="sing_8.svg"
  ALT="$\displaystyle \partial_t \eta (t) = g(\eta(t),\varphi(t))$">
 </DIV>
  &rdquo;
@@ -1946,7 +1946,7 @@ html ''
  $- -a@minus{} {\frac{1}{2}}$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 3.22ex; vertical-align: -0.92ex; " SRC="sing_9.svg"
+ STYLE="height: 2.98ex; vertical-align: -0.92ex; " SRC="sing_9.svg"
  ALT="$--a@minus{} {\frac{1}{2}}$"></SPAN>
 </p>
 <p><code class="code">@image{f-ile,,,alt@verb{:jk _&quot; %}}</code> <img 
class="image" src="f-ile.jpg" alt="altjk _&quot; %@">
@@ -2216,7 +2216,7 @@ but , ,
  $- -a {\frac{1}{2}} @minus{}$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 3.22ex; vertical-align: -0.92ex; " SRC="sing_1.svg"
+ STYLE="height: 2.98ex; vertical-align: -0.92ex; " SRC="sing_1.svg"
  ALT="$--a {\frac{1}{2}} @minus{}$"></SPAN>
 <code class="code">@option{--a}</code> <samp class="option">--a</samp>
 <code class="code">@r{--a}</code> <span class="r">&ndash;a</span>
@@ -2295,7 +2295,7 @@ After clickstyle &rArr;
  -->
 
 <IMG
- STYLE="height: 2.77ex; vertical-align: -0.57ex; " SRC="sing_2.svg"
+ STYLE="height: 2.54ex; vertical-align: -0.57ex; " SRC="sing_2.svg"
  ALT="$\displaystyle @strong{\lq\lq simple-double--three---four----''} @w{aa}
 \lq @w{}\lq simple-double-@w{}-three---four----'@w{}'@*
 $">
@@ -2314,7 +2314,7 @@ $">
  -->
 
 <IMG
- STYLE="height: 2.90ex; vertical-align: -0.70ex; " SRC="sing_3.svg"
+ STYLE="height: 2.67ex; vertical-align: -0.70ex; " SRC="sing_3.svg"
  ALT="$\displaystyle @''u @''{U} @~n @^a @'e @=o @\lq i @'{e} @dotless{i} 
@dotless{j} @\lq {...
 ...@ogonek{a} a@sup{h}@sub{l}
 @* @ @ @
@@ -2337,7 +2337,7 @@ $">
  -->
 
 <IMG
- STYLE="height: 2.52ex; vertical-align: -0.57ex; " SRC="sing_4.svg"
+ STYLE="height: 2.29ex; vertical-align: -0.57ex; " SRC="sing_4.svg"
  ALT="$\displaystyle @click{}
 @U{0075}
 @TeX{} @LaTeX{} @bullet{} @copyright{} @dots{} ...
@@ -2357,7 +2357,7 @@ $">
  -->
 
 <IMG
- STYLE="height: 2.52ex; vertical-align: -0.57ex; " SRC="sing_5.svg"
+ STYLE="height: 2.29ex; vertical-align: -0.57ex; " SRC="sing_5.svg"
  ALT="$\displaystyle @quotedblleft{} @quotedblright{}
 @quoteleft{} @quoteright{} @quo...
 ...guilsinglleft{}
@@ -2373,7 +2373,7 @@ $">
  -->
 
 <IMG
- STYLE="height: 2.52ex; vertical-align: -0.57ex; " SRC="sing_6.svg"
+ STYLE="height: 2.29ex; vertical-align: -0.57ex; " SRC="sing_6.svg"
  ALT="$\displaystyle @b{b} @i{i} @r{r} @sc{sc} @t{t} @sansserif{sansserif} 
@slanted{slanted}
 $">
 </DIV>
@@ -2701,7 +2701,7 @@ f(x) = {1 \over \sigma \sqrt{2\pi}}e@sup{-{1 \over 
2}\left({x-\mu \over \sigma}\
  -->
 
 <IMG
- STYLE="height: 6.49ex; vertical-align: -2.32ex; " SRC="sing_7.svg"
+ STYLE="height: 6.26ex; vertical-align: -2.32ex; " SRC="sing_7.svg"
  ALT="$\displaystyle disp--laymath
 f(x) = {1 \over \sigma \sqrt{2\pi}}e@sup{-{1 \over 2}\left({x-\mu \over 
\sigma}\right)^2}
 $">
@@ -3078,7 +3078,7 @@ html ''
  -->
 
 <IMG
- STYLE="height: 2.78ex; vertical-align: -0.70ex; " SRC="sing_8.svg"
+ STYLE="height: 2.55ex; vertical-align: -0.70ex; " SRC="sing_8.svg"
  ALT="$\displaystyle \partial_t \eta (t) = g(\eta(t),\varphi(t))$">
 </DIV>
  &rdquo;
@@ -3104,7 +3104,7 @@ html ''
  $- -a@minus{} {\frac{1}{2}}$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 3.22ex; vertical-align: -0.92ex; " SRC="sing_9.svg"
+ STYLE="height: 2.98ex; vertical-align: -0.92ex; " SRC="sing_9.svg"
  ALT="$--a@minus{} {\frac{1}{2}}$"></SPAN>
 </p>
 <p><code class="code">@image{f-ile,,,alt@verb{:jk _&quot; %}}</code> <img 
class="image" src="f-ile.jpg" alt="altjk _&quot; %@">
@@ -3380,7 +3380,7 @@ but , ,
  $- -a {\frac{1}{2}} @minus{}$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 3.22ex; vertical-align: -0.92ex; " SRC="sing_1.svg"
+ STYLE="height: 2.98ex; vertical-align: -0.92ex; " SRC="sing_1.svg"
  ALT="$--a {\frac{1}{2}} @minus{}$"></SPAN>
 <code class="code">@option{--a}</code> <samp class="option">--a</samp>
 <code class="code">@r{--a}</code> <span class="r">&ndash;a</span>
@@ -3464,7 +3464,7 @@ After clickstyle &rArr;
  -->
 
 <IMG
- STYLE="height: 2.77ex; vertical-align: -0.57ex; " SRC="sing_2.svg"
+ STYLE="height: 2.54ex; vertical-align: -0.57ex; " SRC="sing_2.svg"
  ALT="$\displaystyle @strong{\lq\lq simple-double--three---four----''} @w{aa}
 \lq @w{}\lq simple-double-@w{}-three---four----'@w{}'@*
 $">
@@ -3484,7 +3484,7 @@ $">
  -->
 
 <IMG
- STYLE="height: 2.90ex; vertical-align: -0.70ex; " SRC="sing_3.svg"
+ STYLE="height: 2.67ex; vertical-align: -0.70ex; " SRC="sing_3.svg"
  ALT="$\displaystyle @''u @''{U} @~n @^a @'e @=o @\lq i @'{e} @dotless{i} 
@dotless{j} @\lq {...
 ...@ogonek{a} a@sup{h}@sub{l}
 @* @ @ @
@@ -3508,7 +3508,7 @@ $">
  -->
 
 <IMG
- STYLE="height: 2.52ex; vertical-align: -0.57ex; " SRC="sing_4.svg"
+ STYLE="height: 2.29ex; vertical-align: -0.57ex; " SRC="sing_4.svg"
  ALT="$\displaystyle @click{}
 @U{0075}
 @TeX{} @LaTeX{} @bullet{} @copyright{} @dots{} ...
@@ -3529,7 +3529,7 @@ $">
  -->
 
 <IMG
- STYLE="height: 2.52ex; vertical-align: -0.57ex; " SRC="sing_5.svg"
+ STYLE="height: 2.29ex; vertical-align: -0.57ex; " SRC="sing_5.svg"
  ALT="$\displaystyle @quotedblleft{} @quotedblright{}
 @quoteleft{} @quoteright{} @quo...
 ...guilsinglleft{}
@@ -3546,7 +3546,7 @@ $">
  -->
 
 <IMG
- STYLE="height: 2.52ex; vertical-align: -0.57ex; " SRC="sing_6.svg"
+ STYLE="height: 2.29ex; vertical-align: -0.57ex; " SRC="sing_6.svg"
  ALT="$\displaystyle @b{b} @i{i} @r{r} @sc{sc} @t{t} @sansserif{sansserif} 
@slanted{slanted}
 $">
 </DIV>
@@ -3938,7 +3938,7 @@ f(x) = {1 \over \sigma \sqrt{2\pi}}e@sup{-{1 \over 
2}\left({x-\mu \over \sigma}\
  -->
 
 <IMG
- STYLE="height: 6.49ex; vertical-align: -2.32ex; " SRC="sing_7.svg"
+ STYLE="height: 6.26ex; vertical-align: -2.32ex; " SRC="sing_7.svg"
  ALT="$\displaystyle disp--laymath
 f(x) = {1 \over \sigma \sqrt{2\pi}}e@sup{-{1 \over 2}\left({x-\mu \over 
\sigma}\right)^2}
 $">
@@ -4379,7 +4379,7 @@ html ''
  -->
 
 <IMG
- STYLE="height: 2.78ex; vertical-align: -0.70ex; " SRC="sing_8.svg"
+ STYLE="height: 2.55ex; vertical-align: -0.70ex; " SRC="sing_8.svg"
  ALT="$\displaystyle \partial_t \eta (t) = g(\eta(t),\varphi(t))$">
 </DIV>
  &rdquo;
@@ -4410,7 +4410,7 @@ html ''
  $- -a@minus{} {\frac{1}{2}}$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 3.22ex; vertical-align: -0.92ex; " SRC="sing_9.svg"
+ STYLE="height: 2.98ex; vertical-align: -0.92ex; " SRC="sing_9.svg"
  ALT="$--a@minus{} {\frac{1}{2}}$"></SPAN>
 
 <code class="code">@image{f-ile,,,alt@verb{:jk _&quot; %}}</code> <img 
class="image" src="f-ile.jpg" alt="altjk _&quot; %@">
diff --git a/tp/tests/tex_html/res_parser/formatting_singular/sing-l2h_cache.pm 
b/tp/tests/tex_html/res_parser/formatting_singular/sing-l2h_cache.pm
index 1997cf83aa..3f0f4dab61 100644
--- a/tp/tests/tex_html/res_parser/formatting_singular/sing-l2h_cache.pm
+++ b/tp/tests/tex_html/res_parser/formatting_singular/sing-l2h_cache.pm
@@ -21,7 +21,7 @@ $l2h_cache{$l2h_cache_key} = q|<DIV CLASS="displaymath">
  -->
 
 <IMG
- STYLE="height: 2.90ex; vertical-align: -0.70ex; " SRC="sing_3.svg"
+ STYLE="height: 2.67ex; vertical-align: -0.70ex; " SRC="sing_3.svg"
  ALT="$\displaystyle @''u @''{U} @~n @^a @'e @=o @\lq i @'{e} @dotless{i} 
@dotless{j} @\lq {...
 ...@ogonek{a} a@sup{h}@sub{l}
 @* @ @ @
@@ -41,7 +41,7 @@ $l2h_cache{$l2h_cache_key} = q|<DIV CLASS="displaymath">
  -->
 
 <IMG
- STYLE="height: 2.52ex; vertical-align: -0.57ex; " SRC="sing_6.svg"
+ STYLE="height: 2.29ex; vertical-align: -0.57ex; " SRC="sing_6.svg"
  ALT="$\displaystyle @b{b} @i{i} @r{r} @sc{sc} @t{t} @sansserif{sansserif} 
@slanted{slanted}
 $">
 </DIV>
@@ -69,7 +69,7 @@ $l2h_cache{$l2h_cache_key} = q|<DIV CLASS="displaymath">
  -->
 
 <IMG
- STYLE="height: 2.52ex; vertical-align: -0.57ex; " SRC="sing_4.svg"
+ STYLE="height: 2.29ex; vertical-align: -0.57ex; " SRC="sing_4.svg"
  ALT="$\displaystyle @click{}
 @U{0075}
 @TeX{} @LaTeX{} @bullet{} @copyright{} @dots{} ...
@@ -95,7 +95,7 @@ $l2h_cache{$l2h_cache_key} = q|<DIV CLASS="displaymath">
  -->
 
 <IMG
- STYLE="height: 2.52ex; vertical-align: -0.57ex; " SRC="sing_5.svg"
+ STYLE="height: 2.29ex; vertical-align: -0.57ex; " SRC="sing_5.svg"
  ALT="$\displaystyle @quotedblleft{} @quotedblright{}
 @quoteleft{} @quoteright{} @quo...
 ...guilsinglleft{}
@@ -116,7 +116,7 @@ $l2h_cache{$l2h_cache_key} = q|<DIV CLASS="displaymath">
  -->
 
 <IMG
- STYLE="height: 2.77ex; vertical-align: -0.57ex; " SRC="sing_2.svg"
+ STYLE="height: 2.54ex; vertical-align: -0.57ex; " SRC="sing_2.svg"
  ALT="$\displaystyle @strong{\lq\lq simple-double--three---four----''} @w{aa}
 \lq @w{}\lq simple-double-@w{}-three---four----'@w{}'@*
 $">
@@ -132,7 +132,7 @@ $l2h_cache{$l2h_cache_key} = q|<DIV CLASS="displaymath">
  -->
 
 <IMG
- STYLE="height: 2.78ex; vertical-align: -0.70ex; " SRC="sing_8.svg"
+ STYLE="height: 2.55ex; vertical-align: -0.70ex; " SRC="sing_8.svg"
  ALT="$\displaystyle \partial_t \eta (t) = g(\eta(t),\varphi(t))$">
 </DIV>
  &rdquo;|;
@@ -149,7 +149,7 @@ f(x) = {1 \over \sigma \sqrt{2\pi}}e@sup{-{1 \over 
2}\left({x-\mu \over \sigma}\
  -->
 
 <IMG
- STYLE="height: 6.49ex; vertical-align: -2.32ex; " SRC="sing_7.svg"
+ STYLE="height: 6.26ex; vertical-align: -2.32ex; " SRC="sing_7.svg"
  ALT="$\displaystyle disp--laymath
 f(x) = {1 \over \sigma \sqrt{2\pi}}e@sup{-{1 \over 2}\left({x-\mu \over 
\sigma}\right)^2}
 $">
@@ -161,7 +161,7 @@ $l2h_cache{$l2h_cache_key} = q|<!-- MATH
  $- -a {\frac{1}{2}} @minus{}$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 3.22ex; vertical-align: -0.92ex; " SRC="sing_1.svg"
+ STYLE="height: 2.98ex; vertical-align: -0.92ex; " SRC="sing_1.svg"
  ALT="$--a {\frac{1}{2}} @minus{}$"></SPAN>|;
 
 $l2h_cache_key = q/$--a@minus{} {\frac{1}{2}}$/;
@@ -169,7 +169,7 @@ $l2h_cache{$l2h_cache_key} = q|<!-- MATH
  $- -a@minus{} {\frac{1}{2}}$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 3.22ex; vertical-align: -0.92ex; " SRC="sing_9.svg"
+ STYLE="height: 2.98ex; vertical-align: -0.92ex; " SRC="sing_9.svg"
  ALT="$--a@minus{} {\frac{1}{2}}$"></SPAN>|;
 
 1;
diff --git a/tp/tests/tex_html/res_parser/formatting_singular/sing_l2h.html 
b/tp/tests/tex_html/res_parser/formatting_singular/sing_l2h.html
index 8683fa4eff..a4299536f1 100644
--- a/tp/tests/tex_html/res_parser/formatting_singular/sing_l2h.html
+++ b/tp/tests/tex_html/res_parser/formatting_singular/sing_l2h.html
@@ -4,10 +4,6 @@
 <HTML lang="en">
 <HEAD>
 <TITLE>sing_l2h</TITLE>
-<META NAME="description" CONTENT="sing_l2h">
-<META NAME="keywords" CONTENT="sing_l2h">
-<META NAME="resource-type" CONTENT="document">
-<META NAME="distribution" CONTENT="global">
 
 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
 <META NAME="viewport" CONTENT="width=device-width, initial-scale=1.0">
@@ -24,7 +20,7 @@
  $- -a {\frac{1}{2}} @minus{}$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 3.22ex; vertical-align: -0.92ex; " SRC="sing_l2h_img1.svg"
+ STYLE="height: 2.98ex; vertical-align: -0.92ex; " SRC="sing_l2h_img1.svg"
  ALT="$--a {\frac{1}{2}} @minus{}$"></SPAN>
 
 <!-- l2h_end sing_l2h 1 -->
@@ -39,7 +35,7 @@
  -->
 
 <IMG
- STYLE="height: 2.77ex; vertical-align: -0.57ex; " SRC="sing_l2h_img2.svg"
+ STYLE="height: 2.54ex; vertical-align: -0.57ex; " SRC="sing_l2h_img2.svg"
  ALT="$\displaystyle @strong{\lq\lq simple-double--three---four----''} @w{aa}
 \lq @w{}\lq simple-double-@w{}-three---four----'@w{}'@*
 $">
@@ -62,7 +58,7 @@ $">
  -->
 
 <IMG
- STYLE="height: 2.90ex; vertical-align: -0.70ex; " SRC="sing_l2h_img3.svg"
+ STYLE="height: 2.67ex; vertical-align: -0.70ex; " SRC="sing_l2h_img3.svg"
  ALT="$\displaystyle @''u @''{U} @~n @^a @'e @=o @\lq i @'{e} @dotless{i} 
@dotless{j} @\lq {...
 ...@ogonek{a} a@sup{h}@sub{l}
 @* @ @ @
@@ -89,7 +85,7 @@ $">
  -->
 
 <IMG
- STYLE="height: 2.52ex; vertical-align: -0.57ex; " SRC="sing_l2h_img4.svg"
+ STYLE="height: 2.29ex; vertical-align: -0.57ex; " SRC="sing_l2h_img4.svg"
  ALT="$\displaystyle @click{}
 @U{0075}
 @TeX{} @LaTeX{} @bullet{} @copyright{} @dots{} ...
@@ -113,7 +109,7 @@ $">
  -->
 
 <IMG
- STYLE="height: 2.52ex; vertical-align: -0.57ex; " SRC="sing_l2h_img5.svg"
+ STYLE="height: 2.29ex; vertical-align: -0.57ex; " SRC="sing_l2h_img5.svg"
  ALT="$\displaystyle @quotedblleft{} @quotedblright{}
 @quoteleft{} @quoteright{} @quo...
 ...guilsinglleft{}
@@ -133,7 +129,7 @@ $">
  -->
 
 <IMG
- STYLE="height: 2.52ex; vertical-align: -0.57ex; " SRC="sing_l2h_img6.svg"
+ STYLE="height: 2.29ex; vertical-align: -0.57ex; " SRC="sing_l2h_img6.svg"
  ALT="$\displaystyle @b{b} @i{i} @r{r} @sc{sc} @t{t} @sansserif{sansserif} 
@slanted{slanted}
 $">
 </DIV>
@@ -151,7 +147,7 @@ f(x) = {1 \over \sigma \sqrt{2\pi}}e@sup{-{1 \over 
2}\left({x-\mu \over \sigma}\
  -->
 
 <IMG
- STYLE="height: 6.49ex; vertical-align: -2.32ex; " SRC="sing_l2h_img7.svg"
+ STYLE="height: 6.26ex; vertical-align: -2.32ex; " SRC="sing_l2h_img7.svg"
  ALT="$\displaystyle disp--laymath
 f(x) = {1 \over \sigma \sqrt{2\pi}}e@sup{-{1 \over 2}\left({x-\mu \over 
\sigma}\right)^2}
 $">
@@ -169,7 +165,7 @@ $">
  -->
 
 <IMG
- STYLE="height: 2.78ex; vertical-align: -0.70ex; " SRC="sing_l2h_img8.svg"
+ STYLE="height: 2.55ex; vertical-align: -0.70ex; " SRC="sing_l2h_img8.svg"
  ALT="$\displaystyle \partial_t \eta (t) = g(\eta(t),\varphi(t))$">
 </DIV>
  &rdquo;
@@ -181,7 +177,7 @@ $">
  $- -a@minus{} {\frac{1}{2}}$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 3.22ex; vertical-align: -0.92ex; " SRC="sing_l2h_img9.svg"
+ STYLE="height: 2.98ex; vertical-align: -0.92ex; " SRC="sing_l2h_img9.svg"
  ALT="$--a@minus{} {\frac{1}{2}}$"></SPAN>
 
 <!-- l2h_end sing_l2h 9 -->
diff --git 
a/tp/tests/tex_html/res_parser/formatting_singular/sing_l2h_images.tex 
b/tp/tests/tex_html/res_parser/formatting_singular/sing_l2h_images.tex
index 8dd240c622..aa1a0f76ac 100644
--- a/tp/tests/tex_html/res_parser/formatting_singular/sing_l2h_images.tex
+++ b/tp/tests/tex_html/res_parser/formatting_singular/sing_l2h_images.tex
@@ -51,13 +51,13 @@
  \def\phantompar{\csname par\endcsname}\normalsize}%
 \def\lthtmltypeout#1{{\let\protect\string \immediate\write\lthtmlwrite{#1}}}%
 \usepackage[tightpage,active]{preview}
-\PreviewBorder=1bp
+\PreviewBorder=0.5bp
 \newbox\lthtmlPageBox
 \newdimen\lthtmlCropMarkHeight
 \newdimen\lthtmlCropMarkDepth
 \long\def\lthtmlTightVBoxA#1{\def\lthtmllabel{#1}
-    \setbox\lthtmlPageBox\vbox\bgroup\catcode`\_=8 }%
-\long\def\lthtmlTightVBoxZ{\egroup
+    \setbox\lthtmlPageBox\vbox\bgroup\hbox\bgroup\catcode`\_=8 }%
+\long\def\lthtmlTightVBoxZ{\egroup\egroup
     \lthtmlCropMarkHeight=\ht\lthtmlPageBox \advance \lthtmlCropMarkHeight 6pt
     \lthtmlCropMarkDepth=\dp\lthtmlPageBox
     
\lthtmltypeout{^^J:\lthtmllabel:lthtmlCropMarkHeight:=\the\lthtmlCropMarkHeight}%
diff --git 
a/tp/tests/tex_html/res_parser/math_not_closed/math_not_closed-l2h_cache.pm 
b/tp/tests/tex_html/res_parser/math_not_closed/math_not_closed-l2h_cache.pm
index 6404cfbf87..371b5968ea 100644
--- a/tp/tests/tex_html/res_parser/math_not_closed/math_not_closed-l2h_cache.pm
+++ b/tp/tests/tex_html/res_parser/math_not_closed/math_not_closed-l2h_cache.pm
@@ -4,14 +4,14 @@ use utf8;
 $l2h_cache_key = q/$3\delta + 2
 $/;
 $l2h_cache{$l2h_cache_key} = q|<SPAN CLASS="MATH"><IMG
- STYLE="height: 2.26ex; vertical-align: -0.31ex; " SRC="math_not_closed_2.svg"
+ STYLE="height: 2.03ex; vertical-align: -0.31ex; " SRC="math_not_closed_2.svg"
  ALT="$3\delta + 2
 $"></SPAN>|;
 
 $l2h_cache_key = q/$\delta + 2
 $/;
 $l2h_cache{$l2h_cache_key} = q|<SPAN CLASS="MATH"><IMG
- STYLE="height: 2.26ex; vertical-align: -0.31ex; " SRC="math_not_closed_1.svg"
+ STYLE="height: 2.03ex; vertical-align: -0.31ex; " SRC="math_not_closed_1.svg"
  ALT="$\delta + 2
 $"></SPAN>|;
 
diff --git a/tp/tests/tex_html/res_parser/math_not_closed/math_not_closed.html 
b/tp/tests/tex_html/res_parser/math_not_closed/math_not_closed.html
index 3181ceba2e..481b550ec2 100644
--- a/tp/tests/tex_html/res_parser/math_not_closed/math_not_closed.html
+++ b/tp/tests/tex_html/res_parser/math_not_closed/math_not_closed.html
@@ -26,12 +26,12 @@ span.program-in-footer {font-size: smaller}
 <div class="chapter-level-extent" id="Top">
 
 <p><SPAN CLASS="MATH"><IMG
- STYLE="height: 2.26ex; vertical-align: -0.31ex; " SRC="math_not_closed_1.svg"
+ STYLE="height: 2.03ex; vertical-align: -0.31ex; " SRC="math_not_closed_1.svg"
  ALT="$\delta + 2
 $"></SPAN></p><h1 class="chapter" id="Chapter">1 Chapter</h1>
 
 <p><SPAN CLASS="MATH"><IMG
- STYLE="height: 2.26ex; vertical-align: -0.31ex; " SRC="math_not_closed_2.svg"
+ STYLE="height: 2.03ex; vertical-align: -0.31ex; " SRC="math_not_closed_2.svg"
  ALT="$3\delta + 2
 $"></SPAN></p><hr>
 </div>
diff --git 
a/tp/tests/tex_html/res_parser/math_not_closed/math_not_closed_l2h.html 
b/tp/tests/tex_html/res_parser/math_not_closed/math_not_closed_l2h.html
index eb62bee7d9..14a14724e8 100644
--- a/tp/tests/tex_html/res_parser/math_not_closed/math_not_closed_l2h.html
+++ b/tp/tests/tex_html/res_parser/math_not_closed/math_not_closed_l2h.html
@@ -4,10 +4,6 @@
 <HTML lang="en">
 <HEAD>
 <TITLE>math_not_closed_l2h</TITLE>
-<META NAME="description" CONTENT="math_not_closed_l2h">
-<META NAME="keywords" CONTENT="math_not_closed_l2h">
-<META NAME="resource-type" CONTENT="document">
-<META NAME="distribution" CONTENT="global">
 
 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
 <META NAME="viewport" CONTENT="width=device-width, initial-scale=1.0">
@@ -21,7 +17,7 @@
 
 <!-- l2h_begin math_not_closed_l2h 1 -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.26ex; vertical-align: -0.31ex; " 
SRC="math_not_closed_l2h_img1.svg"
+ STYLE="height: 2.03ex; vertical-align: -0.31ex; " 
SRC="math_not_closed_l2h_img1.svg"
  ALT="$\delta + 2
 $"></SPAN>
 
@@ -29,7 +25,7 @@ $"></SPAN>
 
 <!-- l2h_begin math_not_closed_l2h 2 -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.26ex; vertical-align: -0.31ex; " 
SRC="math_not_closed_l2h_img2.svg"
+ STYLE="height: 2.03ex; vertical-align: -0.31ex; " 
SRC="math_not_closed_l2h_img2.svg"
  ALT="$3\delta + 2
 $"></SPAN>
 
diff --git 
a/tp/tests/tex_html/res_parser/math_not_closed/math_not_closed_l2h_images.tex 
b/tp/tests/tex_html/res_parser/math_not_closed/math_not_closed_l2h_images.tex
index 8549877571..64e5d487f7 100644
--- 
a/tp/tests/tex_html/res_parser/math_not_closed/math_not_closed_l2h_images.tex
+++ 
b/tp/tests/tex_html/res_parser/math_not_closed/math_not_closed_l2h_images.tex
@@ -51,13 +51,13 @@
  \def\phantompar{\csname par\endcsname}\normalsize}%
 \def\lthtmltypeout#1{{\let\protect\string \immediate\write\lthtmlwrite{#1}}}%
 \usepackage[tightpage,active]{preview}
-\PreviewBorder=1bp
+\PreviewBorder=0.5bp
 \newbox\lthtmlPageBox
 \newdimen\lthtmlCropMarkHeight
 \newdimen\lthtmlCropMarkDepth
 \long\def\lthtmlTightVBoxA#1{\def\lthtmllabel{#1}
-    \setbox\lthtmlPageBox\vbox\bgroup\catcode`\_=8 }%
-\long\def\lthtmlTightVBoxZ{\egroup
+    \setbox\lthtmlPageBox\vbox\bgroup\hbox\bgroup\catcode`\_=8 }%
+\long\def\lthtmlTightVBoxZ{\egroup\egroup
     \lthtmlCropMarkHeight=\ht\lthtmlPageBox \advance \lthtmlCropMarkHeight 6pt
     \lthtmlCropMarkDepth=\dp\lthtmlPageBox
     
\lthtmltypeout{^^J:\lthtmllabel:lthtmlCropMarkHeight:=\the\lthtmlCropMarkHeight}%
diff --git a/tp/tests/tex_html/res_parser/tex/tex-l2h_cache.pm 
b/tp/tests/tex_html/res_parser/tex/tex-l2h_cache.pm
index 55a0ea3069..08f5302dec 100644
--- a/tp/tests/tex_html/res_parser/tex/tex-l2h_cache.pm
+++ b/tp/tests/tex_html/res_parser/tex/tex-l2h_cache.pm
@@ -17,7 +17,7 @@ $l2h_cache{$l2h_cache_key} = q|
  -->
 
 <IMG
- STYLE="height: 7.66ex; vertical-align: -3.09ex; " SRC="tex_1.svg"
+ STYLE="height: 7.42ex; vertical-align: -3.09ex; " SRC="tex_1.svg"
  ALT="$\displaystyle \chi^2 = \sum_{i=1}^N
 \left(y_i - (a + b x_i)
 \over \sigma_i\right)^2 $">
@@ -40,7 +40,7 @@ $l2h_cache{$l2h_cache_key} = q|<DIV CLASS="displaymath">
  -->
 
 <IMG
- STYLE="height: 6.49ex; vertical-align: -2.32ex; " SRC="tex_7.svg"
+ STYLE="height: 6.26ex; vertical-align: -2.32ex; " SRC="tex_7.svg"
  ALT="$\displaystyle -- f(x) = {1 \over \sigma \sqrt{2\pi}}e@sup{-{1 \over 
2}\left({x-\mu \over \sigma}\right)^2}
 $">
 </DIV>
@@ -51,7 +51,7 @@ $l2h_cache{$l2h_cache_key} = q|<!-- MATH
  $@code{math code} a < b$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.16ex; vertical-align: -0.21ex; " SRC="tex_4.svg"
+ STYLE="height: 1.93ex; vertical-align: -0.21ex; " SRC="tex_4.svg"
  ALT="$@code{math code} a &lt; b$"></SPAN>|;
 
 $l2h_cache_key = q/$\sum_{i} f(x)@sup{2}$/;
@@ -59,7 +59,7 @@ $l2h_cache{$l2h_cache_key} = q|<!-- MATH
  $\sum_{i} f(x)@sup{2}$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.89ex; vertical-align: -0.81ex; " SRC="tex_6.svg"
+ STYLE="height: 2.66ex; vertical-align: -0.81ex; " SRC="tex_6.svg"
  ALT="$\sum_{i} f(x)@sup{2}$"></SPAN>|;
 
 $l2h_cache_key = q/$\underline{@code{math \hbox{ code }}} 
\sum_{i}{\underline{f}}$/;
@@ -67,12 +67,12 @@ $l2h_cache{$l2h_cache_key} = q|<!-- MATH
  $\underline{@code{math \hbox{ code }}} \sum_{i}{\underline{f}}$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 3.11ex; vertical-align: -1.03ex; " SRC="tex_5.svg"
+ STYLE="height: 2.88ex; vertical-align: -1.03ex; " SRC="tex_5.svg"
  ALT="$\underline{@code{math \hbox{ code }}} 
\sum_{i}{\underline{f}}$"></SPAN>|;
 
 $l2h_cache_key = q/$a @\ b$/;
 $l2h_cache{$l2h_cache_key} = q|<SPAN CLASS="MATH"><IMG
- STYLE="height: 2.07ex; vertical-align: -0.12ex; " SRC="tex_3.svg"
+ STYLE="height: 1.84ex; vertical-align: -0.12ex; " SRC="tex_3.svg"
  ALT="$a @\ b$"></SPAN>|;
 
 $l2h_cache_key = q/${x^i}\over{\tan y}$/;
@@ -80,7 +80,7 @@ $l2h_cache{$l2h_cache_key} = q|<!-- MATH
  ${x^i}\over{\tan y}$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 3.96ex; vertical-align: -1.23ex; " SRC="tex_2.svg"
+ STYLE="height: 3.73ex; vertical-align: -1.23ex; " SRC="tex_2.svg"
  ALT="${x^i}\over{\tan y}$"></SPAN>|;
 
 1;
diff --git a/tp/tests/tex_html/res_parser/tex/tex.html 
b/tp/tests/tex_html/res_parser/tex/tex.html
index c9d247ed8f..fa83fb8b7a 100644
--- a/tp/tests/tex_html/res_parser/tex/tex.html
+++ b/tp/tests/tex_html/res_parser/tex/tex.html
@@ -37,7 +37,7 @@ span.program-in-footer {font-size: smaller}
  -->
 
 <IMG
- STYLE="height: 7.66ex; vertical-align: -3.09ex; " SRC="tex_1.svg"
+ STYLE="height: 7.42ex; vertical-align: -3.09ex; " SRC="tex_1.svg"
  ALT="$\displaystyle \chi^2 = \sum_{i=1}^N
 \left(y_i - (a + b x_i)
 \over \sigma_i\right)^2 $">
@@ -57,12 +57,12 @@ Here some <!-- MATH
  ${x^i}\over{\tan y}$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 3.96ex; vertical-align: -1.23ex; " SRC="tex_2.svg"
+ STYLE="height: 3.73ex; vertical-align: -1.23ex; " SRC="tex_2.svg"
  ALT="${x^i}\over{\tan y}$"></SPAN>.
 </p>
 <p>Maths with protected \:
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.07ex; vertical-align: -0.12ex; " SRC="tex_3.svg"
+ STYLE="height: 1.84ex; vertical-align: -0.12ex; " SRC="tex_3.svg"
  ALT="$a @\ b$"></SPAN>.
 </p>
 <p>Maths with code @-command:
@@ -71,7 +71,7 @@ Here some <!-- MATH
  $@code{math code} a < b$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.16ex; vertical-align: -0.21ex; " SRC="tex_4.svg"
+ STYLE="height: 1.93ex; vertical-align: -0.21ex; " SRC="tex_4.svg"
  ALT="$@code{math code} a &lt; b$"></SPAN>
 </p>
 <p>Maths with code @-command and braces:
@@ -80,7 +80,7 @@ Here some <!-- MATH
  $\underline{@code{math \hbox{ code }}} \sum_{i}{\underline{f}}$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 3.11ex; vertical-align: -1.03ex; " SRC="tex_5.svg"
+ STYLE="height: 2.88ex; vertical-align: -1.03ex; " SRC="tex_5.svg"
  ALT="$\underline{@code{math \hbox{ code }}} \sum_{i}{\underline{f}}$"></SPAN>
 </p>
 <p>Maths with @-sup
@@ -89,7 +89,7 @@ Here some <!-- MATH
  $\sum_{i} f(x)@sup{2}$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.89ex; vertical-align: -0.81ex; " SRC="tex_6.svg"
+ STYLE="height: 2.66ex; vertical-align: -0.81ex; " SRC="tex_6.svg"
  ALT="$\sum_{i} f(x)@sup{2}$"></SPAN>
 </p>
 <p>@\ outside of math
@@ -105,7 +105,7 @@ Here some <!-- MATH
  -->
 
 <IMG
- STYLE="height: 6.49ex; vertical-align: -2.32ex; " SRC="tex_7.svg"
+ STYLE="height: 6.26ex; vertical-align: -2.32ex; " SRC="tex_7.svg"
  ALT="$\displaystyle -- f(x) = {1 \over \sigma \sqrt{2\pi}}e@sup{-{1 \over 
2}\left({x-\mu \over \sigma}\right)^2}
 $">
 </DIV>
diff --git a/tp/tests/tex_html/res_parser/tex/tex_l2h.html 
b/tp/tests/tex_html/res_parser/tex/tex_l2h.html
index 288f842d1d..5a2e2de8e2 100644
--- a/tp/tests/tex_html/res_parser/tex/tex_l2h.html
+++ b/tp/tests/tex_html/res_parser/tex/tex_l2h.html
@@ -4,10 +4,6 @@
 <HTML lang="en">
 <HEAD>
 <TITLE>tex_l2h</TITLE>
-<META NAME="description" CONTENT="tex_l2h">
-<META NAME="keywords" CONTENT="tex_l2h">
-<META NAME="resource-type" CONTENT="document">
-<META NAME="distribution" CONTENT="global">
 
 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
 <META NAME="viewport" CONTENT="width=device-width, initial-scale=1.0">
@@ -32,7 +28,7 @@
  -->
 
 <IMG
- STYLE="height: 7.66ex; vertical-align: -3.09ex; " SRC="tex_l2h_img1.svg"
+ STYLE="height: 7.42ex; vertical-align: -3.09ex; " SRC="tex_l2h_img1.svg"
  ALT="$\displaystyle \chi^2 = \sum_{i=1}^N
 \left(y_i - (a + b x_i)
 \over \sigma_i\right)^2 $">
@@ -52,14 +48,14 @@ tex <SPAN CLASS="logo-TeX">T<SMALL>E</SMALL>X</SPAN>
  ${x^i}\over{\tan y}$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 3.96ex; vertical-align: -1.23ex; " SRC="tex_l2h_img2.svg"
+ STYLE="height: 3.73ex; vertical-align: -1.23ex; " SRC="tex_l2h_img2.svg"
  ALT="${x^i}\over{\tan y}$"></SPAN>
 
 <!-- l2h_end tex_l2h 3 -->
 
 <!-- l2h_begin tex_l2h 4 -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.07ex; vertical-align: -0.12ex; " SRC="tex_l2h_img3.svg"
+ STYLE="height: 1.84ex; vertical-align: -0.12ex; " SRC="tex_l2h_img3.svg"
  ALT="$a @\ b$"></SPAN>
 
 <!-- l2h_end tex_l2h 4 -->
@@ -69,7 +65,7 @@ tex <SPAN CLASS="logo-TeX">T<SMALL>E</SMALL>X</SPAN>
  $@code{math code} a < b$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.16ex; vertical-align: -0.21ex; " SRC="tex_l2h_img4.svg"
+ STYLE="height: 1.93ex; vertical-align: -0.21ex; " SRC="tex_l2h_img4.svg"
  ALT="$@code{math code} a &lt; b$"></SPAN>
 
 <!-- l2h_end tex_l2h 5 -->
@@ -79,7 +75,7 @@ tex <SPAN CLASS="logo-TeX">T<SMALL>E</SMALL>X</SPAN>
  $\underline{@code{math \hbox{ code }}} \sum_{i}{\underline{f}}$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 3.11ex; vertical-align: -1.03ex; " SRC="tex_l2h_img5.svg"
+ STYLE="height: 2.88ex; vertical-align: -1.03ex; " SRC="tex_l2h_img5.svg"
  ALT="$\underline{@code{math \hbox{ code }}} \sum_{i}{\underline{f}}$"></SPAN>
 
 <!-- l2h_end tex_l2h 6 -->
@@ -89,7 +85,7 @@ tex <SPAN CLASS="logo-TeX">T<SMALL>E</SMALL>X</SPAN>
  $\sum_{i} f(x)@sup{2}$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.89ex; vertical-align: -0.81ex; " SRC="tex_l2h_img6.svg"
+ STYLE="height: 2.66ex; vertical-align: -0.81ex; " SRC="tex_l2h_img6.svg"
  ALT="$\sum_{i} f(x)@sup{2}$"></SPAN>
 
 <!-- l2h_end tex_l2h 7 -->
@@ -103,7 +99,7 @@ tex <SPAN CLASS="logo-TeX">T<SMALL>E</SMALL>X</SPAN>
  -->
 
 <IMG
- STYLE="height: 6.49ex; vertical-align: -2.32ex; " SRC="tex_l2h_img7.svg"
+ STYLE="height: 6.26ex; vertical-align: -2.32ex; " SRC="tex_l2h_img7.svg"
  ALT="$\displaystyle -- f(x) = {1 \over \sigma \sqrt{2\pi}}e@sup{-{1 \over 
2}\left({x-\mu \over \sigma}\right)^2}
 $">
 </DIV>
diff --git a/tp/tests/tex_html/res_parser/tex/tex_l2h_images.tex 
b/tp/tests/tex_html/res_parser/tex/tex_l2h_images.tex
index 1f740cbf1a..9a73d0d44e 100644
--- a/tp/tests/tex_html/res_parser/tex/tex_l2h_images.tex
+++ b/tp/tests/tex_html/res_parser/tex/tex_l2h_images.tex
@@ -51,13 +51,13 @@
  \def\phantompar{\csname par\endcsname}\normalsize}%
 \def\lthtmltypeout#1{{\let\protect\string \immediate\write\lthtmlwrite{#1}}}%
 \usepackage[tightpage,active]{preview}
-\PreviewBorder=1bp
+\PreviewBorder=0.5bp
 \newbox\lthtmlPageBox
 \newdimen\lthtmlCropMarkHeight
 \newdimen\lthtmlCropMarkDepth
 \long\def\lthtmlTightVBoxA#1{\def\lthtmllabel{#1}
-    \setbox\lthtmlPageBox\vbox\bgroup\catcode`\_=8 }%
-\long\def\lthtmlTightVBoxZ{\egroup
+    \setbox\lthtmlPageBox\vbox\bgroup\hbox\bgroup\catcode`\_=8 }%
+\long\def\lthtmlTightVBoxZ{\egroup\egroup
     \lthtmlCropMarkHeight=\ht\lthtmlPageBox \advance \lthtmlCropMarkHeight 6pt
     \lthtmlCropMarkDepth=\dp\lthtmlPageBox
     
\lthtmltypeout{^^J:\lthtmllabel:lthtmlCropMarkHeight:=\the\lthtmlCropMarkHeight}%
diff --git a/tp/tests/tex_html/res_parser/tex_accents_l2h/tex_accents_l2h.html 
b/tp/tests/tex_html/res_parser/tex_accents_l2h/tex_accents_l2h.html
index 8fc345d73b..152574a5d4 100644
--- a/tp/tests/tex_html/res_parser/tex_accents_l2h/tex_accents_l2h.html
+++ b/tp/tests/tex_html/res_parser/tex_accents_l2h/tex_accents_l2h.html
@@ -4,10 +4,6 @@
 <HTML lang="en">
 <HEAD>
 <TITLE>tex_accents_l2h</TITLE>
-<META NAME="description" CONTENT="tex_accents_l2h">
-<META NAME="keywords" CONTENT="tex_accents_l2h">
-<META NAME="resource-type" CONTENT="document">
-<META NAME="distribution" CONTENT="global">
 
 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
 <META NAME="viewport" CONTENT="width=device-width, initial-scale=1.0">
diff --git 
a/tp/tests/tex_html/res_parser/tex_complex_l2h/tex_complex-l2h_cache.pm 
b/tp/tests/tex_html/res_parser/tex_complex_l2h/tex_complex-l2h_cache.pm
index 14e12dac1d..e030aff657 100644
--- a/tp/tests/tex_html/res_parser/tex_complex_l2h/tex_complex-l2h_cache.pm
+++ b/tp/tests/tex_html/res_parser/tex_complex_l2h/tex_complex-l2h_cache.pm
@@ -12,7 +12,7 @@ U w V^\dagger
  -->
 
 <IMG
- STYLE="height: 2.54ex; vertical-align: -0.12ex; " SRC="tex_complex_3.svg"
+ STYLE="height: 2.31ex; vertical-align: -0.12ex; " SRC="tex_complex_3.svg"
  ALT="$\displaystyle U w V^\dagger
 $">
 </DIV>
@@ -29,7 +29,7 @@ $l2h_cache{$l2h_cache_key} = q|<DIV CLASS="displaymath">
  -->
 
 <IMG
- STYLE="height: 2.78ex; vertical-align: -0.70ex; " SRC="tex_complex_5.svg"
+ STYLE="height: 2.55ex; vertical-align: -0.70ex; " SRC="tex_complex_5.svg"
  ALT="$\displaystyle \omega = h ( \eta , \varphi)
 $">
 </DIV>
@@ -45,7 +45,7 @@ $l2h_cache{$l2h_cache_key} = q|<DIV CLASS="displaymath">
  -->
 
 <IMG
- STYLE="height: 2.86ex; vertical-align: -0.78ex; " SRC="tex_complex_1.svg"
+ STYLE="height: 2.63ex; vertical-align: -0.78ex; " SRC="tex_complex_1.svg"
  ALT="$\displaystyle \partial_{\eta} g(\eta(t),\varphi(t));
 $">
 </DIV>
@@ -56,12 +56,12 @@ $l2h_cache{$l2h_cache_key} = q|<!-- MATH
  $(I-D) \varphi(t)$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.78ex; vertical-align: -0.70ex; " SRC="tex_complex_2.svg"
+ STYLE="height: 2.55ex; vertical-align: -0.70ex; " SRC="tex_complex_2.svg"
  ALT="$(I-D) \varphi(t)$"></SPAN>|;
 
 $l2h_cache_key = q/$\phi w V^t$/;
 $l2h_cache{$l2h_cache_key} = q|<SPAN CLASS="MATH"><IMG
- STYLE="height: 2.75ex; vertical-align: -0.57ex; " SRC="tex_complex_4.svg"
+ STYLE="height: 2.52ex; vertical-align: -0.57ex; " SRC="tex_complex_4.svg"
  ALT="$\phi w V^t$"></SPAN>|;
 
 $l2h_cache_key = q/$h \dot \psi^\phi$/;
@@ -69,7 +69,7 @@ $l2h_cache{$l2h_cache_key} = q|<!-- MATH
  $h \dot \psi^\phi$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 3.07ex; vertical-align: -0.57ex; " SRC="tex_complex_6.svg"
+ STYLE="height: 2.84ex; vertical-align: -0.57ex; " SRC="tex_complex_6.svg"
  ALT="$h \dot \psi^\phi$"></SPAN>|;
 
 1;
diff --git a/tp/tests/tex_html/res_parser/tex_complex_l2h/tex_complex.html 
b/tp/tests/tex_html/res_parser/tex_complex_l2h/tex_complex.html
index aed5247b16..fc17222083 100644
--- a/tp/tests/tex_html/res_parser/tex_complex_l2h/tex_complex.html
+++ b/tp/tests/tex_html/res_parser/tex_complex_l2h/tex_complex.html
@@ -36,7 +36,7 @@ span.program-in-footer {font-size: smaller}
  -->
 
 <IMG
- STYLE="height: 2.86ex; vertical-align: -0.78ex; " SRC="tex_complex_1.svg"
+ STYLE="height: 2.63ex; vertical-align: -0.78ex; " SRC="tex_complex_1.svg"
  ALT="$\displaystyle \partial_{\eta} g(\eta(t),\varphi(t));
 $">
 </DIV>
@@ -46,7 +46,7 @@ $">
  $(I-D) \varphi(t)$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.78ex; vertical-align: -0.70ex; " SRC="tex_complex_2.svg"
+ STYLE="height: 2.55ex; vertical-align: -0.70ex; " SRC="tex_complex_2.svg"
  ALT="$(I-D) \varphi(t)$"></SPAN> math.
 </p><hr>
 
@@ -62,7 +62,7 @@ $">
  -->
 
 <IMG
- STYLE="height: 2.86ex; vertical-align: -0.78ex; " SRC="tex_complex_1.svg"
+ STYLE="height: 2.63ex; vertical-align: -0.78ex; " SRC="tex_complex_1.svg"
  ALT="$\displaystyle \partial_{\eta} g(\eta(t),\varphi(t));
 $">
 </DIV>
@@ -72,7 +72,7 @@ $">
  $(I-D) \varphi(t)$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.78ex; vertical-align: -0.70ex; " SRC="tex_complex_2.svg"
+ STYLE="height: 2.55ex; vertical-align: -0.70ex; " SRC="tex_complex_2.svg"
  ALT="$(I-D) \varphi(t)$"></SPAN> math.
 </p>
 <p>Tex:
@@ -84,14 +84,14 @@ U w V^\dagger
  -->
 
 <IMG
- STYLE="height: 2.54ex; vertical-align: -0.12ex; " SRC="tex_complex_3.svg"
+ STYLE="height: 2.31ex; vertical-align: -0.12ex; " SRC="tex_complex_3.svg"
  ALT="$\displaystyle U w V^\dagger
 $">
 </DIV>
 
 </p>
 <p>and math <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.75ex; vertical-align: -0.57ex; " SRC="tex_complex_4.svg"
+ STYLE="height: 2.52ex; vertical-align: -0.57ex; " SRC="tex_complex_4.svg"
  ALT="$\phi w V^t$"></SPAN>.
 </p>
 <p>Now there is a footnote<a class="footnote" id="DOCF1" 
href="#FOOT1"><sup>1</sup></a>
@@ -109,7 +109,7 @@ $">
  -->
 
 <IMG
- STYLE="height: 2.78ex; vertical-align: -0.70ex; " SRC="tex_complex_5.svg"
+ STYLE="height: 2.55ex; vertical-align: -0.70ex; " SRC="tex_complex_5.svg"
  ALT="$\displaystyle \omega = h ( \eta , \varphi)
 $">
 </DIV>
@@ -119,7 +119,7 @@ $">
  $h \dot \psi^\phi$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 3.07ex; vertical-align: -0.57ex; " SRC="tex_complex_6.svg"
+ STYLE="height: 2.84ex; vertical-align: -0.57ex; " SRC="tex_complex_6.svg"
  ALT="$h \dot \psi^\phi$"></SPAN>.
 </p>
 </div>
diff --git a/tp/tests/tex_html/res_parser/tex_complex_l2h/tex_complex_l2h.html 
b/tp/tests/tex_html/res_parser/tex_complex_l2h/tex_complex_l2h.html
index d8b53cfe37..48b8aa6430 100644
--- a/tp/tests/tex_html/res_parser/tex_complex_l2h/tex_complex_l2h.html
+++ b/tp/tests/tex_html/res_parser/tex_complex_l2h/tex_complex_l2h.html
@@ -4,10 +4,6 @@
 <HTML lang="en">
 <HEAD>
 <TITLE>tex_complex_l2h</TITLE>
-<META NAME="description" CONTENT="tex_complex_l2h">
-<META NAME="keywords" CONTENT="tex_complex_l2h">
-<META NAME="resource-type" CONTENT="document">
-<META NAME="distribution" CONTENT="global">
 
 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
 <META NAME="viewport" CONTENT="width=device-width, initial-scale=1.0">
@@ -28,7 +24,7 @@
  -->
 
 <IMG
- STYLE="height: 2.86ex; vertical-align: -0.78ex; " 
SRC="tex_complex_l2h_img1.svg"
+ STYLE="height: 2.63ex; vertical-align: -0.78ex; " 
SRC="tex_complex_l2h_img1.svg"
  ALT="$\displaystyle \partial_{\eta} g(\eta(t),\varphi(t));
 $">
 </DIV>
@@ -41,7 +37,7 @@ $">
  $(I-D) \varphi(t)$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.78ex; vertical-align: -0.70ex; " 
SRC="tex_complex_l2h_img2.svg"
+ STYLE="height: 2.55ex; vertical-align: -0.70ex; " 
SRC="tex_complex_l2h_img2.svg"
  ALT="$(I-D) \varphi(t)$"></SPAN>
 
 <!-- l2h_end tex_complex_l2h 2 -->
@@ -55,7 +51,7 @@ U w V^\dagger
  -->
 
 <IMG
- STYLE="height: 2.54ex; vertical-align: -0.12ex; " 
SRC="tex_complex_l2h_img3.svg"
+ STYLE="height: 2.31ex; vertical-align: -0.12ex; " 
SRC="tex_complex_l2h_img3.svg"
  ALT="$\displaystyle U w V^\dagger
 $">
 </DIV>
@@ -65,7 +61,7 @@ $">
 
 <!-- l2h_begin tex_complex_l2h 4 -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.75ex; vertical-align: -0.57ex; " 
SRC="tex_complex_l2h_img4.svg"
+ STYLE="height: 2.52ex; vertical-align: -0.57ex; " 
SRC="tex_complex_l2h_img4.svg"
  ALT="$\phi w V^t$"></SPAN>
 
 <!-- l2h_end tex_complex_l2h 4 -->
@@ -79,7 +75,7 @@ $">
  -->
 
 <IMG
- STYLE="height: 2.78ex; vertical-align: -0.70ex; " 
SRC="tex_complex_l2h_img5.svg"
+ STYLE="height: 2.55ex; vertical-align: -0.70ex; " 
SRC="tex_complex_l2h_img5.svg"
  ALT="$\displaystyle \omega = h ( \eta , \varphi)
 $">
 </DIV>
@@ -92,7 +88,7 @@ $">
  $h \dot \psi^\phi$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 3.07ex; vertical-align: -0.57ex; " 
SRC="tex_complex_l2h_img6.svg"
+ STYLE="height: 2.84ex; vertical-align: -0.57ex; " 
SRC="tex_complex_l2h_img6.svg"
  ALT="$h \dot \psi^\phi$"></SPAN>
 
 <!-- l2h_end tex_complex_l2h 6 -->
diff --git 
a/tp/tests/tex_html/res_parser/tex_complex_l2h/tex_complex_l2h_images.tex 
b/tp/tests/tex_html/res_parser/tex_complex_l2h/tex_complex_l2h_images.tex
index 890c3f7c8f..c92e0de003 100644
--- a/tp/tests/tex_html/res_parser/tex_complex_l2h/tex_complex_l2h_images.tex
+++ b/tp/tests/tex_html/res_parser/tex_complex_l2h/tex_complex_l2h_images.tex
@@ -51,13 +51,13 @@
  \def\phantompar{\csname par\endcsname}\normalsize}%
 \def\lthtmltypeout#1{{\let\protect\string \immediate\write\lthtmlwrite{#1}}}%
 \usepackage[tightpage,active]{preview}
-\PreviewBorder=1bp
+\PreviewBorder=0.5bp
 \newbox\lthtmlPageBox
 \newdimen\lthtmlCropMarkHeight
 \newdimen\lthtmlCropMarkDepth
 \long\def\lthtmlTightVBoxA#1{\def\lthtmllabel{#1}
-    \setbox\lthtmlPageBox\vbox\bgroup\catcode`\_=8 }%
-\long\def\lthtmlTightVBoxZ{\egroup
+    \setbox\lthtmlPageBox\vbox\bgroup\hbox\bgroup\catcode`\_=8 }%
+\long\def\lthtmlTightVBoxZ{\egroup\egroup
     \lthtmlCropMarkHeight=\ht\lthtmlPageBox \advance \lthtmlCropMarkHeight 6pt
     \lthtmlCropMarkDepth=\dp\lthtmlPageBox
     
\lthtmltypeout{^^J:\lthtmllabel:lthtmlCropMarkHeight:=\the\lthtmlCropMarkHeight}%
diff --git 
a/tp/tests/tex_html/res_parser/tex_encoded_latin1_l2h/tex_encode_latin1-l2h_cache.pm
 
b/tp/tests/tex_html/res_parser/tex_encoded_latin1_l2h/tex_encode_latin1-l2h_cache.pm
index 1d6b571e34..d1ca0078a9 100644
--- 
a/tp/tests/tex_html/res_parser/tex_encoded_latin1_l2h/tex_encode_latin1-l2h_cache.pm
+++ 
b/tp/tests/tex_html/res_parser/tex_encoded_latin1_l2h/tex_encode_latin1-l2h_cache.pm
@@ -12,7 +12,7 @@ $l2h_cache{$l2h_cache_key} = q|<DIV CLASS="displaymath">
  -->
 
 <IMG
- STYLE="height: 2.86ex; vertical-align: -0.78ex; " 
SRC="tex_encode_latin1_1.svg"
+ STYLE="height: 2.63ex; vertical-align: -0.78ex; " 
SRC="tex_encode_latin1_1.svg"
  ALT="$\displaystyle é \partial_{\eta} g(\eta(t),\varphi(t));
 $">
 </DIV>
@@ -28,7 +28,7 @@ $l2h_cache{$l2h_cache_key} = q|<DIV CLASS="displaymath">
  -->
 
 <IMG
- STYLE="height: 5.61ex; vertical-align: -2.12ex; " 
SRC="tex_encode_latin1_3.svg"
+ STYLE="height: 5.37ex; vertical-align: -2.12ex; " 
SRC="tex_encode_latin1_3.svg"
  ALT="$\displaystyle é ï î \int v(t)\, dt = u(t) + C
 $">
 </DIV>
@@ -39,7 +39,7 @@ $l2h_cache{$l2h_cache_key} = q|<!-- MATH
  $(I-D) é \varphi(t)$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.78ex; vertical-align: -0.70ex; " 
SRC="tex_encode_latin1_2.svg"
+ STYLE="height: 2.55ex; vertical-align: -0.70ex; " 
SRC="tex_encode_latin1_2.svg"
  ALT="$(I-D) é \varphi(t)$"></SPAN>|;
 
 1;
diff --git 
a/tp/tests/tex_html/res_parser/tex_encoded_latin1_l2h/tex_encode_latin1.html 
b/tp/tests/tex_html/res_parser/tex_encoded_latin1_l2h/tex_encode_latin1.html
index 9fd1041fd5..d22a8dd804 100644
--- a/tp/tests/tex_html/res_parser/tex_encoded_latin1_l2h/tex_encode_latin1.html
+++ b/tp/tests/tex_html/res_parser/tex_encoded_latin1_l2h/tex_encode_latin1.html
@@ -61,7 +61,7 @@ span.program-in-footer {font-size: smaller}
  -->
 
 <IMG
- STYLE="height: 2.86ex; vertical-align: -0.78ex; " 
SRC="tex_encode_latin1_1.svg"
+ STYLE="height: 2.63ex; vertical-align: -0.78ex; " 
SRC="tex_encode_latin1_1.svg"
  ALT="$\displaystyle � \partial_{\eta} g(\eta(t),\varphi(t));
 $">
 </DIV>
@@ -71,7 +71,7 @@ $">
  $(I-D) � \varphi(t)$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.78ex; vertical-align: -0.70ex; " 
SRC="tex_encode_latin1_2.svg"
+ STYLE="height: 2.55ex; vertical-align: -0.70ex; " 
SRC="tex_encode_latin1_2.svg"
  ALT="$(I-D) � \varphi(t)$"></SPAN> math.
 </p>
 <DIV CLASS="displaymath">
@@ -82,7 +82,7 @@ $">
  -->
 
 <IMG
- STYLE="height: 5.61ex; vertical-align: -2.12ex; " 
SRC="tex_encode_latin1_3.svg"
+ STYLE="height: 5.37ex; vertical-align: -2.12ex; " 
SRC="tex_encode_latin1_3.svg"
  ALT="$\displaystyle � � � \int v(t)\, dt = u(t) + C
 $">
 </DIV>
diff --git 
a/tp/tests/tex_html/res_parser/tex_encoded_latin1_l2h/tex_encode_latin1_l2h.html
 
b/tp/tests/tex_html/res_parser/tex_encoded_latin1_l2h/tex_encode_latin1_l2h.html
index 44d83ec792..4480b9db6a 100644
--- 
a/tp/tests/tex_html/res_parser/tex_encoded_latin1_l2h/tex_encode_latin1_l2h.html
+++ 
b/tp/tests/tex_html/res_parser/tex_encoded_latin1_l2h/tex_encode_latin1_l2h.html
@@ -4,10 +4,6 @@
 <HTML lang="en">
 <HEAD>
 <TITLE>tex_encode_latin1_l2h</TITLE>
-<META NAME="description" CONTENT="tex_encode_latin1_l2h">
-<META NAME="keywords" CONTENT="tex_encode_latin1_l2h">
-<META NAME="resource-type" CONTENT="document">
-<META NAME="distribution" CONTENT="global">
 
 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
 <META NAME="viewport" CONTENT="width=device-width, initial-scale=1.0">
@@ -28,7 +24,7 @@
  -->
 
 <IMG
- STYLE="height: 2.86ex; vertical-align: -0.78ex; " 
SRC="tex_encode_latin1_l2h_img1.svg"
+ STYLE="height: 2.63ex; vertical-align: -0.78ex; " 
SRC="tex_encode_latin1_l2h_img1.svg"
  ALT="$\displaystyle é \partial_{\eta} g(\eta(t),\varphi(t));
 $">
 </DIV>
@@ -41,7 +37,7 @@ $">
  $(I-D) é \varphi(t)$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.78ex; vertical-align: -0.70ex; " 
SRC="tex_encode_latin1_l2h_img2.svg"
+ STYLE="height: 2.55ex; vertical-align: -0.70ex; " 
SRC="tex_encode_latin1_l2h_img2.svg"
  ALT="$(I-D) é \varphi(t)$"></SPAN>
 
 <!-- l2h_end tex_encode_latin1_l2h 2 -->
@@ -55,7 +51,7 @@ $">
  -->
 
 <IMG
- STYLE="height: 5.61ex; vertical-align: -2.12ex; " 
SRC="tex_encode_latin1_l2h_img3.svg"
+ STYLE="height: 5.37ex; vertical-align: -2.12ex; " 
SRC="tex_encode_latin1_l2h_img3.svg"
  ALT="$\displaystyle é ï î \int v(t)\, dt = u(t) + C
 $">
 </DIV>
diff --git 
a/tp/tests/tex_html/res_parser/tex_encoded_latin1_l2h/tex_encode_latin1_l2h_images.tex
 
b/tp/tests/tex_html/res_parser/tex_encoded_latin1_l2h/tex_encode_latin1_l2h_images.tex
index 6e5c06860a..55f6cc8577 100644
--- 
a/tp/tests/tex_html/res_parser/tex_encoded_latin1_l2h/tex_encode_latin1_l2h_images.tex
+++ 
b/tp/tests/tex_html/res_parser/tex_encoded_latin1_l2h/tex_encode_latin1_l2h_images.tex
@@ -51,13 +51,13 @@
  \def\phantompar{\csname par\endcsname}\normalsize}%
 \def\lthtmltypeout#1{{\let\protect\string \immediate\write\lthtmlwrite{#1}}}%
 \usepackage[tightpage,active]{preview}
-\PreviewBorder=1bp
+\PreviewBorder=0.5bp
 \newbox\lthtmlPageBox
 \newdimen\lthtmlCropMarkHeight
 \newdimen\lthtmlCropMarkDepth
 \long\def\lthtmlTightVBoxA#1{\def\lthtmllabel{#1}
-    \setbox\lthtmlPageBox\vbox\bgroup\catcode`\_=8 }%
-\long\def\lthtmlTightVBoxZ{\egroup
+    \setbox\lthtmlPageBox\vbox\bgroup\hbox\bgroup\catcode`\_=8 }%
+\long\def\lthtmlTightVBoxZ{\egroup\egroup
     \lthtmlCropMarkHeight=\ht\lthtmlPageBox \advance \lthtmlCropMarkHeight 6pt
     \lthtmlCropMarkDepth=\dp\lthtmlPageBox
     
\lthtmltypeout{^^J:\lthtmllabel:lthtmlCropMarkHeight:=\the\lthtmlCropMarkHeight}%
diff --git 
"a/tp/tests/tex_html/res_parser/tex_encoded_utf8_l2h/tex_encod\303\251_utf8-l2h_cache.pm"
 
"b/tp/tests/tex_html/res_parser/tex_encoded_utf8_l2h/tex_encod\303\251_utf8-l2h_cache.pm"
index 13ddb57acd..5b1e91b34a 100644
--- 
"a/tp/tests/tex_html/res_parser/tex_encoded_utf8_l2h/tex_encod\303\251_utf8-l2h_cache.pm"
+++ 
"b/tp/tests/tex_html/res_parser/tex_encoded_utf8_l2h/tex_encod\303\251_utf8-l2h_cache.pm"
@@ -12,7 +12,7 @@ $l2h_cache{$l2h_cache_key} = q|<DIV CLASS="displaymath">
  -->
 
 <IMG
- STYLE="height: 2.86ex; vertical-align: -0.78ex; " SRC="tex_encodé_utf8_1.svg"
+ STYLE="height: 2.63ex; vertical-align: -0.78ex; " SRC="tex_encodé_utf8_1.svg"
  ALT="$\displaystyle é \partial_{\eta} g(\eta(t),\varphi(t));
 $">
 </DIV>
@@ -28,7 +28,7 @@ $l2h_cache{$l2h_cache_key} = q|<DIV CLASS="displaymath">
  -->
 
 <IMG
- STYLE="height: 5.61ex; vertical-align: -2.12ex; " SRC="tex_encodé_utf8_3.svg"
+ STYLE="height: 5.37ex; vertical-align: -2.12ex; " SRC="tex_encodé_utf8_3.svg"
  ALT="$\displaystyle é ï î \int v(t)\, dt = u(t) + C
 $">
 </DIV>
@@ -39,7 +39,7 @@ $l2h_cache{$l2h_cache_key} = q|<!-- MATH
  $(I-D) é \varphi(t)$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.78ex; vertical-align: -0.70ex; " SRC="tex_encodé_utf8_2.svg"
+ STYLE="height: 2.55ex; vertical-align: -0.70ex; " SRC="tex_encodé_utf8_2.svg"
  ALT="$(I-D) é \varphi(t)$"></SPAN>|;
 
 1;
diff --git 
"a/tp/tests/tex_html/res_parser/tex_encoded_utf8_l2h/tex_encod\303\251_utf8.html"
 
"b/tp/tests/tex_html/res_parser/tex_encoded_utf8_l2h/tex_encod\303\251_utf8.html"
index 0a09baac1e..826cc1859a 100644
--- 
"a/tp/tests/tex_html/res_parser/tex_encoded_utf8_l2h/tex_encod\303\251_utf8.html"
+++ 
"b/tp/tests/tex_html/res_parser/tex_encoded_utf8_l2h/tex_encod\303\251_utf8.html"
@@ -60,7 +60,7 @@ span.program-in-footer {font-size: smaller}
  -->
 
 <IMG
- STYLE="height: 2.86ex; vertical-align: -0.78ex; " SRC="tex_encodé_utf8_1.svg"
+ STYLE="height: 2.63ex; vertical-align: -0.78ex; " SRC="tex_encodé_utf8_1.svg"
  ALT="$\displaystyle é \partial_{\eta} g(\eta(t),\varphi(t));
 $">
 </DIV>
@@ -70,7 +70,7 @@ $">
  $(I-D) é \varphi(t)$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.78ex; vertical-align: -0.70ex; " SRC="tex_encodé_utf8_2.svg"
+ STYLE="height: 2.55ex; vertical-align: -0.70ex; " SRC="tex_encodé_utf8_2.svg"
  ALT="$(I-D) é \varphi(t)$"></SPAN> math.
 </p>
 <DIV CLASS="displaymath">
@@ -81,7 +81,7 @@ $">
  -->
 
 <IMG
- STYLE="height: 5.61ex; vertical-align: -2.12ex; " SRC="tex_encodé_utf8_3.svg"
+ STYLE="height: 5.37ex; vertical-align: -2.12ex; " SRC="tex_encodé_utf8_3.svg"
  ALT="$\displaystyle é ï î \int v(t)\, dt = u(t) + C
 $">
 </DIV>
diff --git 
"a/tp/tests/tex_html/res_parser/tex_encoded_utf8_l2h/tex_encod\303\251_utf8_l2h.html"
 
"b/tp/tests/tex_html/res_parser/tex_encoded_utf8_l2h/tex_encod\303\251_utf8_l2h.html"
index a9ecc49af6..1d1f682b8a 100644
--- 
"a/tp/tests/tex_html/res_parser/tex_encoded_utf8_l2h/tex_encod\303\251_utf8_l2h.html"
+++ 
"b/tp/tests/tex_html/res_parser/tex_encoded_utf8_l2h/tex_encod\303\251_utf8_l2h.html"
@@ -4,10 +4,6 @@
 <HTML lang="en">
 <HEAD>
 <TITLE>tex_encodé_utf8_l2h</TITLE>
-<META NAME="description" CONTENT="tex_encodé_utf8_l2h">
-<META NAME="keywords" CONTENT="tex_encodé_utf8_l2h">
-<META NAME="resource-type" CONTENT="document">
-<META NAME="distribution" CONTENT="global">
 
 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
 <META NAME="viewport" CONTENT="width=device-width, initial-scale=1.0">
@@ -28,7 +24,7 @@
  -->
 
 <IMG
- STYLE="height: 2.86ex; vertical-align: -0.78ex; " 
SRC="tex_encodé_utf8_l2h_img1.svg"
+ STYLE="height: 2.63ex; vertical-align: -0.78ex; " 
SRC="tex_encodé_utf8_l2h_img1.svg"
  ALT="$\displaystyle é \partial_{\eta} g(\eta(t),\varphi(t));
 $">
 </DIV>
@@ -41,7 +37,7 @@ $">
  $(I-D) é \varphi(t)$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 2.78ex; vertical-align: -0.70ex; " 
SRC="tex_encodé_utf8_l2h_img2.svg"
+ STYLE="height: 2.55ex; vertical-align: -0.70ex; " 
SRC="tex_encodé_utf8_l2h_img2.svg"
  ALT="$(I-D) é \varphi(t)$"></SPAN>
 
 <!-- l2h_end tex_encodé_utf8_l2h 2 -->
@@ -55,7 +51,7 @@ $">
  -->
 
 <IMG
- STYLE="height: 5.61ex; vertical-align: -2.12ex; " 
SRC="tex_encodé_utf8_l2h_img3.svg"
+ STYLE="height: 5.37ex; vertical-align: -2.12ex; " 
SRC="tex_encodé_utf8_l2h_img3.svg"
  ALT="$\displaystyle é ï î \int v(t)\, dt = u(t) + C
 $">
 </DIV>
diff --git 
"a/tp/tests/tex_html/res_parser/tex_encoded_utf8_l2h/tex_encod\303\251_utf8_l2h_images.tex"
 
"b/tp/tests/tex_html/res_parser/tex_encoded_utf8_l2h/tex_encod\303\251_utf8_l2h_images.tex"
index 6e5c06860a..55f6cc8577 100644
--- 
"a/tp/tests/tex_html/res_parser/tex_encoded_utf8_l2h/tex_encod\303\251_utf8_l2h_images.tex"
+++ 
"b/tp/tests/tex_html/res_parser/tex_encoded_utf8_l2h/tex_encod\303\251_utf8_l2h_images.tex"
@@ -51,13 +51,13 @@
  \def\phantompar{\csname par\endcsname}\normalsize}%
 \def\lthtmltypeout#1{{\let\protect\string \immediate\write\lthtmlwrite{#1}}}%
 \usepackage[tightpage,active]{preview}
-\PreviewBorder=1bp
+\PreviewBorder=0.5bp
 \newbox\lthtmlPageBox
 \newdimen\lthtmlCropMarkHeight
 \newdimen\lthtmlCropMarkDepth
 \long\def\lthtmlTightVBoxA#1{\def\lthtmllabel{#1}
-    \setbox\lthtmlPageBox\vbox\bgroup\catcode`\_=8 }%
-\long\def\lthtmlTightVBoxZ{\egroup
+    \setbox\lthtmlPageBox\vbox\bgroup\hbox\bgroup\catcode`\_=8 }%
+\long\def\lthtmlTightVBoxZ{\egroup\egroup
     \lthtmlCropMarkHeight=\ht\lthtmlPageBox \advance \lthtmlCropMarkHeight 6pt
     \lthtmlCropMarkDepth=\dp\lthtmlPageBox
     
\lthtmltypeout{^^J:\lthtmllabel:lthtmlCropMarkHeight:=\the\lthtmlCropMarkHeight}%
diff --git 
a/tp/tests/tex_html/res_parser/tex_eqalign_l2h/tex_eqalign-l2h_cache.pm 
b/tp/tests/tex_html/res_parser/tex_eqalign_l2h/tex_eqalign-l2h_cache.pm
index eeaeb99c4c..d2ff162094 100644
--- a/tp/tests/tex_html/res_parser/tex_eqalign_l2h/tex_eqalign-l2h_cache.pm
+++ b/tp/tests/tex_html/res_parser/tex_eqalign_l2h/tex_eqalign-l2h_cache.pm
@@ -17,7 +17,7 @@ $l2h_cache{$l2h_cache_key} = q|<DIV CLASS="displaymath">
  -->
 
 <IMG
- STYLE="height: 5.61ex; vertical-align: -2.12ex; " SRC="tex_eqalign_1.svg"
+ STYLE="height: 5.37ex; vertical-align: -2.12ex; " SRC="tex_eqalign_1.svg"
  ALT="$\displaystyle \leqalignno{
 \int v(t)\, dt &amp;= u(t) + C&amp;[3.1]\cr
 \int v(t)\, dt &amp;= u(t) + H&amp;[3.2]\cr
@@ -41,7 +41,7 @@ $l2h_cache{$l2h_cache_key} = q|<DIV CLASS="displaymath">
  -->
 
 <IMG
- STYLE="height: 5.61ex; vertical-align: -2.12ex; " SRC="tex_eqalign_1.svg"
+ STYLE="height: 5.37ex; vertical-align: -2.12ex; " SRC="tex_eqalign_1.svg"
  ALT="$\displaystyle \leqalignno{
 \int v(t)\, dt &amp;= u(t) + C&amp;[3.1]\cr
 \int v(t)\, dt &amp;= u(t) + H&amp;[3.2]\cr
diff --git a/tp/tests/tex_html/res_parser/tex_eqalign_l2h/tex_eqalign.html 
b/tp/tests/tex_html/res_parser/tex_eqalign_l2h/tex_eqalign.html
index d29d684803..310147d157 100644
--- a/tp/tests/tex_html/res_parser/tex_eqalign_l2h/tex_eqalign.html
+++ b/tp/tests/tex_html/res_parser/tex_eqalign_l2h/tex_eqalign.html
@@ -36,7 +36,7 @@ span.program-in-footer {font-size: smaller}
  -->
 
 <IMG
- STYLE="height: 5.61ex; vertical-align: -2.12ex; " SRC="tex_eqalign_1.svg"
+ STYLE="height: 5.37ex; vertical-align: -2.12ex; " SRC="tex_eqalign_1.svg"
  ALT="$\displaystyle \leqalignno{
 \int v(t)\, dt &amp;= u(t) + C&amp;[3.1]\cr
 \int v(t)\, dt &amp;= u(t) + H&amp;[3.2]\cr
@@ -55,7 +55,7 @@ $">
  -->
 
 <IMG
- STYLE="height: 5.61ex; vertical-align: -2.12ex; " SRC="tex_eqalign_1.svg"
+ STYLE="height: 5.37ex; vertical-align: -2.12ex; " SRC="tex_eqalign_1.svg"
  ALT="$\displaystyle \leqalignno{
 \int v(t)\, dt &amp;= u(t) + C&amp;[3.1]\cr
 \int v(t)\, dt &amp;= u(t) + H&amp;[3.2]\cr
diff --git a/tp/tests/tex_html/res_parser/tex_eqalign_l2h/tex_eqalign_l2h.html 
b/tp/tests/tex_html/res_parser/tex_eqalign_l2h/tex_eqalign_l2h.html
index f64761b52c..ee2ea67f83 100644
--- a/tp/tests/tex_html/res_parser/tex_eqalign_l2h/tex_eqalign_l2h.html
+++ b/tp/tests/tex_html/res_parser/tex_eqalign_l2h/tex_eqalign_l2h.html
@@ -4,10 +4,6 @@
 <HTML lang="en">
 <HEAD>
 <TITLE>tex_eqalign_l2h</TITLE>
-<META NAME="description" CONTENT="tex_eqalign_l2h">
-<META NAME="keywords" CONTENT="tex_eqalign_l2h">
-<META NAME="resource-type" CONTENT="document">
-<META NAME="distribution" CONTENT="global">
 
 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
 <META NAME="viewport" CONTENT="width=device-width, initial-scale=1.0">
@@ -31,7 +27,7 @@
  -->
 
 <IMG
- STYLE="height: 5.61ex; vertical-align: -2.12ex; " 
SRC="tex_eqalign_l2h_img1.svg"
+ STYLE="height: 5.37ex; vertical-align: -2.12ex; " 
SRC="tex_eqalign_l2h_img1.svg"
  ALT="$\displaystyle \leqalignno{
 \int v(t)\, dt &amp;= u(t) + C&amp;[3.1]\cr
 \int v(t)\, dt &amp;= u(t) + H&amp;[3.2]\cr
@@ -54,7 +50,7 @@ $">
  -->
 
 <IMG
- STYLE="height: 5.61ex; vertical-align: -2.12ex; " 
SRC="tex_eqalign_l2h_img1.svg"
+ STYLE="height: 5.37ex; vertical-align: -2.12ex; " 
SRC="tex_eqalign_l2h_img1.svg"
  ALT="$\displaystyle \leqalignno{
 \int v(t)\, dt &amp;= u(t) + C&amp;[3.1]\cr
 \int v(t)\, dt &amp;= u(t) + H&amp;[3.2]\cr
diff --git 
a/tp/tests/tex_html/res_parser/tex_eqalign_l2h/tex_eqalign_l2h_images.tex 
b/tp/tests/tex_html/res_parser/tex_eqalign_l2h/tex_eqalign_l2h_images.tex
index be1b18f73c..b20d98237d 100644
--- a/tp/tests/tex_html/res_parser/tex_eqalign_l2h/tex_eqalign_l2h_images.tex
+++ b/tp/tests/tex_html/res_parser/tex_eqalign_l2h/tex_eqalign_l2h_images.tex
@@ -51,13 +51,13 @@
  \def\phantompar{\csname par\endcsname}\normalsize}%
 \def\lthtmltypeout#1{{\let\protect\string \immediate\write\lthtmlwrite{#1}}}%
 \usepackage[tightpage,active]{preview}
-\PreviewBorder=1bp
+\PreviewBorder=0.5bp
 \newbox\lthtmlPageBox
 \newdimen\lthtmlCropMarkHeight
 \newdimen\lthtmlCropMarkDepth
 \long\def\lthtmlTightVBoxA#1{\def\lthtmllabel{#1}
-    \setbox\lthtmlPageBox\vbox\bgroup\catcode`\_=8 }%
-\long\def\lthtmlTightVBoxZ{\egroup
+    \setbox\lthtmlPageBox\vbox\bgroup\hbox\bgroup\catcode`\_=8 }%
+\long\def\lthtmlTightVBoxZ{\egroup\egroup
     \lthtmlCropMarkHeight=\ht\lthtmlPageBox \advance \lthtmlCropMarkHeight 6pt
     \lthtmlCropMarkDepth=\dp\lthtmlPageBox
     
\lthtmltypeout{^^J:\lthtmllabel:lthtmlCropMarkHeight:=\the\lthtmlCropMarkHeight}%
diff --git a/tp/tests/tex_html/res_parser/tex_gdef_l2h/tex_gdef-l2h_cache.pm 
b/tp/tests/tex_html/res_parser/tex_gdef_l2h/tex_gdef-l2h_cache.pm
index 7cea379010..5b4567691f 100644
--- a/tp/tests/tex_html/res_parser/tex_gdef_l2h/tex_gdef-l2h_cache.pm
+++ b/tp/tests/tex_html/res_parser/tex_gdef_l2h/tex_gdef-l2h_cache.pm
@@ -14,7 +14,7 @@ $l2h_cache{$l2h_cache_key} = q|<DIV CLASS="displaymath">
  -->
 
 <IMG
- STYLE="height: 3.55ex; vertical-align: -0.31ex; " SRC="tex_gdef_2.svg"
+ STYLE="height: 3.32ex; vertical-align: -0.31ex; " SRC="tex_gdef_2.svg"
  ALT="$\displaystyle \buildrel \rm def \over \equiv a \equiv b\sqrt{64}
 $">
 </DIV>
@@ -25,7 +25,7 @@ $l2h_cache{$l2h_cache_key} = q|<!-- MATH
  $\buildrel \rm def \over \equiv a \equiv b\sqrt{64}$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 3.66ex; vertical-align: -0.42ex; " SRC="tex_gdef_1.svg"
+ STYLE="height: 3.43ex; vertical-align: -0.42ex; " SRC="tex_gdef_1.svg"
  ALT="$\buildrel \rm def \over \equiv a \equiv b\sqrt{64}$"></SPAN>|;
 
 $l2h_cache_key = q/$\def\otest{\sqrt{64}} $/;
diff --git a/tp/tests/tex_html/res_parser/tex_gdef_l2h/tex_gdef.html 
b/tp/tests/tex_html/res_parser/tex_gdef_l2h/tex_gdef.html
index 6c7b181fc0..0ef7aed0ee 100644
--- a/tp/tests/tex_html/res_parser/tex_gdef_l2h/tex_gdef.html
+++ b/tp/tests/tex_html/res_parser/tex_gdef_l2h/tex_gdef.html
@@ -35,7 +35,7 @@ span.program-in-footer {font-size: smaller}
  $\buildrel \rm def \over \equiv a \equiv b\sqrt{64}$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 3.66ex; vertical-align: -0.42ex; " SRC="tex_gdef_1.svg"
+ STYLE="height: 3.43ex; vertical-align: -0.42ex; " SRC="tex_gdef_1.svg"
  ALT="$\buildrel \rm def \over \equiv a \equiv b\sqrt{64}$"></SPAN>
 </p>
 <DIV CLASS="displaymath">
@@ -46,7 +46,7 @@ span.program-in-footer {font-size: smaller}
  -->
 
 <IMG
- STYLE="height: 3.55ex; vertical-align: -0.31ex; " SRC="tex_gdef_2.svg"
+ STYLE="height: 3.32ex; vertical-align: -0.31ex; " SRC="tex_gdef_2.svg"
  ALT="$\displaystyle \buildrel \rm def \over \equiv a \equiv b\sqrt{64}
 $">
 </DIV>
diff --git a/tp/tests/tex_html/res_parser/tex_gdef_l2h/tex_gdef_l2h.html 
b/tp/tests/tex_html/res_parser/tex_gdef_l2h/tex_gdef_l2h.html
index 696f55a4c1..ec83ebec8f 100644
--- a/tp/tests/tex_html/res_parser/tex_gdef_l2h/tex_gdef_l2h.html
+++ b/tp/tests/tex_html/res_parser/tex_gdef_l2h/tex_gdef_l2h.html
@@ -4,10 +4,6 @@
 <HTML lang="en">
 <HEAD>
 <TITLE>tex_gdef_l2h</TITLE>
-<META NAME="description" CONTENT="tex_gdef_l2h">
-<META NAME="keywords" CONTENT="tex_gdef_l2h">
-<META NAME="resource-type" CONTENT="document">
-<META NAME="distribution" CONTENT="global">
 
 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
 <META NAME="viewport" CONTENT="width=device-width, initial-scale=1.0">
@@ -39,7 +35,7 @@
  $\buildrel \rm def \over \equiv a \equiv b\sqrt{64}$
  -->
 <SPAN CLASS="MATH"><IMG
- STYLE="height: 3.66ex; vertical-align: -0.42ex; " SRC="tex_gdef_l2h_img1.svg"
+ STYLE="height: 3.43ex; vertical-align: -0.42ex; " SRC="tex_gdef_l2h_img1.svg"
  ALT="$\buildrel \rm def \over \equiv a \equiv b\sqrt{64}$"></SPAN>
 
 <!-- l2h_end tex_gdef_l2h 4 -->
@@ -53,7 +49,7 @@
  -->
 
 <IMG
- STYLE="height: 3.55ex; vertical-align: -0.31ex; " SRC="tex_gdef_l2h_img2.svg"
+ STYLE="height: 3.32ex; vertical-align: -0.31ex; " SRC="tex_gdef_l2h_img2.svg"
  ALT="$\displaystyle \buildrel \rm def \over \equiv a \equiv b\sqrt{64}
 $">
 </DIV>
diff --git a/tp/tests/tex_html/res_parser/tex_gdef_l2h/tex_gdef_l2h_images.tex 
b/tp/tests/tex_html/res_parser/tex_gdef_l2h/tex_gdef_l2h_images.tex
index f2dc6147cf..a34ca71859 100644
--- a/tp/tests/tex_html/res_parser/tex_gdef_l2h/tex_gdef_l2h_images.tex
+++ b/tp/tests/tex_html/res_parser/tex_gdef_l2h/tex_gdef_l2h_images.tex
@@ -51,13 +51,13 @@
  \def\phantompar{\csname par\endcsname}\normalsize}%
 \def\lthtmltypeout#1{{\let\protect\string \immediate\write\lthtmlwrite{#1}}}%
 \usepackage[tightpage,active]{preview}
-\PreviewBorder=1bp
+\PreviewBorder=0.5bp
 \newbox\lthtmlPageBox
 \newdimen\lthtmlCropMarkHeight
 \newdimen\lthtmlCropMarkDepth
 \long\def\lthtmlTightVBoxA#1{\def\lthtmllabel{#1}
-    \setbox\lthtmlPageBox\vbox\bgroup\catcode`\_=8 }%
-\long\def\lthtmlTightVBoxZ{\egroup
+    \setbox\lthtmlPageBox\vbox\bgroup\hbox\bgroup\catcode`\_=8 }%
+\long\def\lthtmlTightVBoxZ{\egroup\egroup
     \lthtmlCropMarkHeight=\ht\lthtmlPageBox \advance \lthtmlCropMarkHeight 6pt
     \lthtmlCropMarkDepth=\dp\lthtmlPageBox
     
\lthtmltypeout{^^J:\lthtmllabel:lthtmlCropMarkHeight:=\the\lthtmlCropMarkHeight}%
diff --git 
a/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying-l2h_cache.pm 
b/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying-l2h_cache.pm
index 290dcae7bc..4c9c75dab6 100644
--- a/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying-l2h_cache.pm
+++ b/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying-l2h_cache.pm
@@ -12,7 +12,7 @@ $l2h_cache{$l2h_cache_key} = q|<DIV CLASS="displaymath">
  -->
 
 <IMG
- STYLE="height: 3.07ex; vertical-align: -0.57ex; " SRC="tex_in_copying_2.svg"
+ STYLE="height: 2.84ex; vertical-align: -0.57ex; " SRC="tex_in_copying_2.svg"
  ALT="$\displaystyle 2 a = \dot{\phi}
 $">
 </DIV>
@@ -31,7 +31,7 @@ a = \phi
  -->
 
 <IMG
- STYLE="height: 2.52ex; vertical-align: -0.57ex; " SRC="tex_in_copying_1.svg"
+ STYLE="height: 2.29ex; vertical-align: -0.57ex; " SRC="tex_in_copying_1.svg"
  ALT="$\displaystyle a = \phi
 $">
 </DIV>
diff --git a/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying.html 
b/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying.html
index 6219f60d8d..cc112909b4 100644
--- a/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying.html
+++ b/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying.html
@@ -54,7 +54,7 @@ a = \phi
  -->
 
 <IMG
- STYLE="height: 2.52ex; vertical-align: -0.57ex; " SRC="tex_in_copying_1.svg"
+ STYLE="height: 2.29ex; vertical-align: -0.57ex; " SRC="tex_in_copying_1.svg"
  ALT="$\displaystyle a = \phi
 $">
 </DIV>
@@ -77,7 +77,7 @@ a = \phi
  -->
 
 <IMG
- STYLE="height: 2.52ex; vertical-align: -0.57ex; " SRC="tex_in_copying_1.svg"
+ STYLE="height: 2.29ex; vertical-align: -0.57ex; " SRC="tex_in_copying_1.svg"
  ALT="$\displaystyle a = \phi
 $">
 </DIV>
@@ -112,7 +112,7 @@ $">
  -->
 
 <IMG
- STYLE="height: 3.07ex; vertical-align: -0.57ex; " SRC="tex_in_copying_2.svg"
+ STYLE="height: 2.84ex; vertical-align: -0.57ex; " SRC="tex_in_copying_2.svg"
  ALT="$\displaystyle 2 a = \dot{\phi}
 $">
 </DIV>
@@ -129,7 +129,7 @@ a = \phi
  -->
 
 <IMG
- STYLE="height: 2.52ex; vertical-align: -0.57ex; " SRC="tex_in_copying_1.svg"
+ STYLE="height: 2.29ex; vertical-align: -0.57ex; " SRC="tex_in_copying_1.svg"
  ALT="$\displaystyle a = \phi
 $">
 </DIV>
diff --git 
a/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying_l2h.html 
b/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying_l2h.html
index beff6b2abb..ce7b029b58 100644
--- a/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying_l2h.html
+++ b/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying_l2h.html
@@ -4,10 +4,6 @@
 <HTML lang="en">
 <HEAD>
 <TITLE>tex_in_copying_l2h</TITLE>
-<META NAME="description" CONTENT="tex_in_copying_l2h">
-<META NAME="keywords" CONTENT="tex_in_copying_l2h">
-<META NAME="resource-type" CONTENT="document">
-<META NAME="distribution" CONTENT="global">
 
 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
 <META NAME="viewport" CONTENT="width=device-width, initial-scale=1.0">
@@ -29,7 +25,7 @@ a = \phi
  -->
 
 <IMG
- STYLE="height: 2.52ex; vertical-align: -0.57ex; " 
SRC="tex_in_copying_l2h_img1.svg"
+ STYLE="height: 2.29ex; vertical-align: -0.57ex; " 
SRC="tex_in_copying_l2h_img1.svg"
  ALT="$\displaystyle a = \phi
 $">
 </DIV>
@@ -46,7 +42,7 @@ $">
  -->
 
 <IMG
- STYLE="height: 3.07ex; vertical-align: -0.57ex; " 
SRC="tex_in_copying_l2h_img2.svg"
+ STYLE="height: 2.84ex; vertical-align: -0.57ex; " 
SRC="tex_in_copying_l2h_img2.svg"
  ALT="$\displaystyle 2 a = \dot{\phi}
 $">
 </DIV>
diff --git 
a/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying_l2h_images.tex 
b/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying_l2h_images.tex
index cf3c0f4f0c..57530e04da 100644
--- a/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying_l2h_images.tex
+++ b/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying_l2h_images.tex
@@ -51,13 +51,13 @@
  \def\phantompar{\csname par\endcsname}\normalsize}%
 \def\lthtmltypeout#1{{\let\protect\string \immediate\write\lthtmlwrite{#1}}}%
 \usepackage[tightpage,active]{preview}
-\PreviewBorder=1bp
+\PreviewBorder=0.5bp
 \newbox\lthtmlPageBox
 \newdimen\lthtmlCropMarkHeight
 \newdimen\lthtmlCropMarkDepth
 \long\def\lthtmlTightVBoxA#1{\def\lthtmllabel{#1}
-    \setbox\lthtmlPageBox\vbox\bgroup\catcode`\_=8 }%
-\long\def\lthtmlTightVBoxZ{\egroup
+    \setbox\lthtmlPageBox\vbox\bgroup\hbox\bgroup\catcode`\_=8 }%
+\long\def\lthtmlTightVBoxZ{\egroup\egroup
     \lthtmlCropMarkHeight=\ht\lthtmlPageBox \advance \lthtmlCropMarkHeight 6pt
     \lthtmlCropMarkDepth=\dp\lthtmlPageBox
     
\lthtmltypeout{^^J:\lthtmllabel:lthtmlCropMarkHeight:=\the\lthtmlCropMarkHeight}%
diff --git 
a/tp/tests/tex_html/res_parser/tex_not_closed/tex_not_closed_l2h.html 
b/tp/tests/tex_html/res_parser/tex_not_closed/tex_not_closed_l2h.html
index c7fc926d50..33a2012ae2 100644
--- a/tp/tests/tex_html/res_parser/tex_not_closed/tex_not_closed_l2h.html
+++ b/tp/tests/tex_html/res_parser/tex_not_closed/tex_not_closed_l2h.html
@@ -4,10 +4,6 @@
 <HTML lang="en">
 <HEAD>
 <TITLE>tex_not_closed_l2h</TITLE>
-<META NAME="description" CONTENT="tex_not_closed_l2h">
-<META NAME="keywords" CONTENT="tex_not_closed_l2h">
-<META NAME="resource-type" CONTENT="document">
-<META NAME="distribution" CONTENT="global">
 
 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
 <META NAME="viewport" CONTENT="width=device-width, initial-scale=1.0">



reply via email to

[Prev in Thread] Current Thread [Next in Thread]