summaryrefslogtreecommitdiff
path: root/macros/texinfo/texinfo/tp/tests/tex_html/res_parser/tex_in_copying
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/texinfo/texinfo/tp/tests/tex_html/res_parser/tex_in_copying
Initial commit
Diffstat (limited to 'macros/texinfo/texinfo/tp/tests/tex_html/res_parser/tex_in_copying')
-rw-r--r--macros/texinfo/texinfo/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying-l2h_cache.pm45
-rw-r--r--macros/texinfo/texinfo/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying.21
-rw-r--r--macros/texinfo/texinfo/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying.html299
-rw-r--r--macros/texinfo/texinfo/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying_l2h.html70
-rw-r--r--macros/texinfo/texinfo/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying_l2h.tex29
-rw-r--r--macros/texinfo/texinfo/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying_l2h_images.tex155
-rw-r--r--macros/texinfo/texinfo/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying_l2h_labels.pl13
7 files changed, 612 insertions, 0 deletions
diff --git a/macros/texinfo/texinfo/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying-l2h_cache.pm b/macros/texinfo/texinfo/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying-l2h_cache.pm
new file mode 100644
index 0000000000..177ff0431b
--- /dev/null
+++ b/macros/texinfo/texinfo/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying-l2h_cache.pm
@@ -0,0 +1,45 @@
+
+$l2h_cache_key = q/$$
+2 a = \dot{\phi}
+$$/;
+$l2h_cache{$l2h_cache_key} = q|<BR><P></P>
+<DIV ALIGN="CENTER" CLASS="mathdisplay">
+<!-- MATH
+ \begin{displaymath}
+2 a = \dot{\phi}
+\end{displaymath}
+ -->
+
+<IMG
+ WIDTH="100" HEIGHT="20" BORDER="0"
+ SRC="tex_in_copying_2.png"
+ ALT="\begin{displaymath}
+2 a = \dot{\phi}
+\end{displaymath}">
+</DIV>
+<BR CLEAR="ALL">
+<P></P>|;
+
+$l2h_cache_key = q/From @ someone <> !
+$$
+a = \phi
+$$/;
+$l2h_cache{$l2h_cache_key} = q|From @ someone &lt;&gt; !
+<BR><P></P>
+<DIV ALIGN="CENTER" CLASS="mathdisplay">
+<!-- MATH
+ \begin{displaymath}
+a = \phi
+\end{displaymath}
+ -->
+
+<IMG
+ WIDTH="100" HEIGHT="20" BORDER="0"
+ SRC="tex_in_copying_1.png"
+ ALT="\begin{displaymath}
+a = \phi
+\end{displaymath}">
+</DIV>
+<BR CLEAR="ALL">
+<P></P>|;
+1; \ No newline at end of file
diff --git a/macros/texinfo/texinfo/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying.2 b/macros/texinfo/texinfo/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying.2
new file mode 100644
index 0000000000..2d13c0f6d6
--- /dev/null
+++ b/macros/texinfo/texinfo/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying.2
@@ -0,0 +1 @@
+texexpand
diff --git a/macros/texinfo/texinfo/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying.html b/macros/texinfo/texinfo/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying.html
new file mode 100644
index 0000000000..c819cc1655
--- /dev/null
+++ b/macros/texinfo/texinfo/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying.html
@@ -0,0 +1,299 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<!-- Some equation is indeed needed to understand the copyright of
+that file
+From someone <> !
+$$
+a = \phi
+$$
+ -->
+<!-- Created by texinfo, http://www.gnu.org/software/texinfo/ -->
+<head>
+<title>Top node</title>
+
+<meta name="description" content="Top node">
+<meta name="keywords" content="Top node">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+<meta name="Generator" content="texi2any">
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<style type="text/css">
+<!--
+a.summary-letter {text-decoration: none}
+blockquote.smallquotation {font-size: smaller}
+div.display {margin-left: 3.2em}
+div.example {margin-left: 3.2em}
+div.indentedblock {margin-left: 3.2em}
+div.lisp {margin-left: 3.2em}
+div.smalldisplay {margin-left: 3.2em}
+div.smallexample {margin-left: 3.2em}
+div.smallindentedblock {margin-left: 3.2em; font-size: smaller}
+div.smalllisp {margin-left: 3.2em}
+kbd {font-style:oblique}
+pre.display {font-family: inherit}
+pre.format {font-family: inherit}
+pre.menu-comment {font-family: serif}
+pre.menu-preformatted {font-family: serif}
+pre.smalldisplay {font-family: inherit; font-size: smaller}
+pre.smallexample {font-size: smaller}
+pre.smallformat {font-family: inherit; font-size: smaller}
+pre.smalllisp {font-size: smaller}
+span.nocodebreak {white-space:nowrap}
+span.nolinebreak {white-space:nowrap}
+span.roman {font-family:serif; font-weight:normal}
+span.sansserif {font-family:sans-serif; font-weight:normal}
+ul.no-bullet {list-style: none}
+-->
+</style>
+
+
+</head>
+
+<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
+
+
+
+<a name="Top"></a>
+<table class="header" cellpadding="1" cellspacing="1" border="0">
+<tr><td valign="middle" align="left">[ &lt; ]</td>
+<td valign="middle" align="left">[<a href="#chapter" title="Next section in reading order"> &gt; </a>]</td>
+<td valign="middle" align="left"> &nbsp; </td>
+<td valign="middle" align="left">[Contents]</td>
+<td valign="middle" align="left">[Index]</td>
+<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
+</tr></table>
+<a name="Top-node"></a>
+<h1 class="top">Top node</h1>
+
+<p>Some equation is indeed needed to understand the copyright of
+that file
+From @ someone &lt;&gt; !
+<BR><P></P>
+<DIV ALIGN="CENTER" CLASS="mathdisplay">
+<!-- MATH
+ \begin{displaymath}
+a = \phi
+\end{displaymath}
+ -->
+
+<IMG
+ WIDTH="100" HEIGHT="20" BORDER="0"
+ SRC="tex_in_copying_1.png"
+ ALT="\begin{displaymath}
+a = \phi
+\end{displaymath}">
+</DIV>
+<BR CLEAR="ALL">
+<P></P>
+</p>
+
+
+<table class="menu" border="0" cellspacing="0">
+<tr><td align="left" valign="top"><a href="#chapter">1 chapter</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top">
+</td></tr>
+</table>
+
+<p>Some equation is indeed needed to understand the copyright of
+that file
+From @ someone &lt;&gt; !
+<BR><P></P>
+<DIV ALIGN="CENTER" CLASS="mathdisplay">
+<!-- MATH
+ \begin{displaymath}
+a = \phi
+\end{displaymath}
+ -->
+
+<IMG
+ WIDTH="100" HEIGHT="20" BORDER="0"
+ SRC="tex_in_copying_1.png"
+ ALT="\begin{displaymath}
+a = \phi
+\end{displaymath}">
+</DIV>
+<BR CLEAR="ALL">
+<P></P>
+</p>
+
+
+<hr size="6">
+<a name="chapter"></a>
+<table class="header" cellpadding="1" cellspacing="1" border="0">
+<tr><td valign="middle" align="left">[<a href="#Top" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
+<td valign="middle" align="left">[<a href="#Top" title="Previous section in reading order"> &lt; </a>]</td>
+<td valign="middle" align="left">[<a href="#Top" title="Up section"> Up </a>]</td>
+<td valign="middle" align="left">[ &gt; ]</td>
+<td valign="middle" align="left">[ &gt;&gt; ]</td>
+<td valign="middle" align="left"> &nbsp; </td>
+<td valign="middle" align="left"> &nbsp; </td>
+<td valign="middle" align="left"> &nbsp; </td>
+<td valign="middle" align="left"> &nbsp; </td>
+<td valign="middle" align="left">[<a href="#Top" title="Cover (top) of document">Top</a>]</td>
+<td valign="middle" align="left">[Contents]</td>
+<td valign="middle" align="left">[Index]</td>
+<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
+</tr></table>
+<a name="chapter-1"></a>
+<h1 class="chapter">1 chapter</h1>
+
+<p>The fundamental equation is
+<BR><P></P>
+<DIV ALIGN="CENTER" CLASS="mathdisplay">
+<!-- MATH
+ \begin{displaymath}
+2 a = \dot{\phi}
+\end{displaymath}
+ -->
+
+<IMG
+ WIDTH="100" HEIGHT="20" BORDER="0"
+ SRC="tex_in_copying_2.png"
+ ALT="\begin{displaymath}
+2 a = \dot{\phi}
+\end{displaymath}">
+</DIV>
+<BR CLEAR="ALL">
+<P></P>
+</p>
+<p>Some equation is indeed needed to understand the copyright of
+that file
+From @ someone &lt;&gt; !
+<BR><P></P>
+<DIV ALIGN="CENTER" CLASS="mathdisplay">
+<!-- MATH
+ \begin{displaymath}
+a = \phi
+\end{displaymath}
+ -->
+
+<IMG
+ WIDTH="100" HEIGHT="20" BORDER="0"
+ SRC="tex_in_copying_1.png"
+ ALT="\begin{displaymath}
+a = \phi
+\end{displaymath}">
+</DIV>
+<BR CLEAR="ALL">
+<P></P>
+</p>
+
+
+
+<hr size="6">
+<a name="SEC_About"></a>
+<table class="header" cellpadding="1" cellspacing="1" border="0">
+<tr><td valign="middle" align="left">[<a href="#Top" title="Cover (top) of document">Top</a>]</td>
+<td valign="middle" align="left">[Contents]</td>
+<td valign="middle" align="left">[Index]</td>
+<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
+</tr></table>
+<h1 class="about-heading">About This Document</h1>
+
+<p>
+ This document was generated on <em>a sunny day</em> using <a href="http://www.gnu.org/software/texinfo/"><em>texi2any</em></a>.
+</p>
+<p>
+ The buttons in the navigation panels have the following meaning:
+</p>
+<table border="1">
+ <tr>
+ <th> Button </th>
+ <th> Name </th>
+ <th> Go to </th>
+ <th> From 1.2.3 go to</th>
+ </tr>
+ <tr>
+ <td align="center"> [ &lt;&lt; ] </td>
+ <td align="center">FastBack</td>
+ <td>Beginning of this chapter or previous chapter</td>
+ <td>1</td>
+ </tr>
+ <tr>
+ <td align="center"> [ &lt; ] </td>
+ <td align="center">Back</td>
+ <td>Previous section in reading order</td>
+ <td>1.2.2</td>
+ </tr>
+ <tr>
+ <td align="center"> [ Up ] </td>
+ <td align="center">Up</td>
+ <td>Up section</td>
+ <td>1.2</td>
+ </tr>
+ <tr>
+ <td align="center"> [ &gt; ] </td>
+ <td align="center">Forward</td>
+ <td>Next section in reading order</td>
+ <td>1.2.4</td>
+ </tr>
+ <tr>
+ <td align="center"> [ &gt;&gt; ] </td>
+ <td align="center">FastForward</td>
+ <td>Next chapter</td>
+ <td>2</td>
+ </tr>
+ <tr>
+ <td align="center"> [Top] </td>
+ <td align="center">Top</td>
+ <td>Cover (top) of document</td>
+ <td> &nbsp; </td>
+ </tr>
+ <tr>
+ <td align="center"> [Contents] </td>
+ <td align="center">Contents</td>
+ <td>Table of contents</td>
+ <td> &nbsp; </td>
+ </tr>
+ <tr>
+ <td align="center"> [Index] </td>
+ <td align="center">Index</td>
+ <td>Index</td>
+ <td> &nbsp; </td>
+ </tr>
+ <tr>
+ <td align="center"> [ ? ] </td>
+ <td align="center">About</td>
+ <td>About (help)</td>
+ <td> &nbsp; </td>
+ </tr>
+</table>
+
+<p>
+ where the <strong> Example </strong> assumes that the current position is at <strong> Subsubsection One-Two-Three </strong> of a document of the following structure:
+</p>
+
+<ul>
+ <li> 1. Section One
+ <ul>
+ <li>1.1 Subsection One-One
+ <ul>
+ <li>...</li>
+ </ul>
+ </li>
+ <li>1.2 Subsection One-Two
+ <ul>
+ <li>1.2.1 Subsubsection One-Two-One</li>
+ <li>1.2.2 Subsubsection One-Two-Two</li>
+ <li>1.2.3 Subsubsection One-Two-Three &nbsp; &nbsp;
+ <strong>&lt;== Current Position </strong></li>
+ <li>1.2.4 Subsubsection One-Two-Four</li>
+ </ul>
+ </li>
+ <li>1.3 Subsection One-Three
+ <ul>
+ <li>...</li>
+ </ul>
+ </li>
+ <li>1.4 Subsection One-Four</li>
+ </ul>
+ </li>
+</ul>
+
+<hr>
+<p><font size="-1">
+ This document was generated on <em>a sunny day</em> using <a href="http://www.gnu.org/software/texinfo/"><em>texi2any</em></a>.
+</font></p>
+
+
+</body>
+</html>
diff --git a/macros/texinfo/texinfo/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying_l2h.html b/macros/texinfo/texinfo/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying_l2h.html
new file mode 100644
index 0000000000..7c73bf49fd
--- /dev/null
+++ b/macros/texinfo/texinfo/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying_l2h.html
@@ -0,0 +1,70 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+
+<!--Converted with LaTeX2HTML
+original version by: Nikos Drakos, CBLU, University of Leeds
+* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
+* with significant contributions from:
+ Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
+<HTML>
+<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 NAME="Generator" CONTENT="LaTeX2HTML">
+<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
+
+<LINK REL="STYLESHEET" HREF="tex_in_copying_l2h.css">
+
+</HEAD>
+
+<BODY >
+
+<!-- l2h_begin tex_in_copying_l2h 1 -->
+From @ someone &lt;&gt; !
+<BR><P></P>
+<DIV ALIGN="CENTER" CLASS="mathdisplay">
+<!-- MATH
+ \begin{displaymath}
+a = \phi
+\end{displaymath}
+ -->
+
+<IMG
+ WIDTH="100" HEIGHT="20" BORDER="0"
+ SRC="tex_in_copying_l2h_img1.png"
+ ALT="\begin{displaymath}
+a = \phi
+\end{displaymath}">
+</DIV>
+<BR CLEAR="ALL">
+<P></P>
+
+<!-- l2h_end tex_in_copying_l2h 1 -->
+
+<!-- l2h_begin tex_in_copying_l2h 2 -->
+<BR><P></P>
+<DIV ALIGN="CENTER" CLASS="mathdisplay">
+<!-- MATH
+ \begin{displaymath}
+2 a = \dot{\phi}
+\end{displaymath}
+ -->
+
+<IMG
+ WIDTH="100" HEIGHT="20" BORDER="0"
+ SRC="tex_in_copying_l2h_img2.png"
+ ALT="\begin{displaymath}
+2 a = \dot{\phi}
+\end{displaymath}">
+</DIV>
+<BR CLEAR="ALL">
+<P></P>
+
+<!-- l2h_end tex_in_copying_l2h 2 -->
+<BR>
+<HR>
+</BODY>
+</HTML>
diff --git a/macros/texinfo/texinfo/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying_l2h.tex b/macros/texinfo/texinfo/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying_l2h.tex
new file mode 100644
index 0000000000..673333b6fe
--- /dev/null
+++ b/macros/texinfo/texinfo/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying_l2h.tex
@@ -0,0 +1,29 @@
+% This document was automatically generated by the l2h extenstion of texi2html
+% DO NOT EDIT !!!
+\documentclass{article}
+\usepackage{html}
+\begin{document}
+\begin{rawhtml}
+
+<!-- l2h_begin tex_in_copying_l2h 1 -->
+\end{rawhtml}
+From @ someone <> !
+$$
+a = \phi
+$$
+\begin{rawhtml}
+<!-- l2h_end tex_in_copying_l2h 1 -->
+
+\end{rawhtml}
+\begin{rawhtml}
+
+<!-- l2h_begin tex_in_copying_l2h 2 -->
+\end{rawhtml}
+$$
+2 a = \dot{\phi}
+$$
+\begin{rawhtml}
+<!-- l2h_end tex_in_copying_l2h 2 -->
+
+\end{rawhtml}
+\end{document}
diff --git a/macros/texinfo/texinfo/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying_l2h_images.tex b/macros/texinfo/texinfo/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying_l2h_images.tex
new file mode 100644
index 0000000000..9df60ec613
--- /dev/null
+++ b/macros/texinfo/texinfo/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying_l2h_images.tex
@@ -0,0 +1,155 @@
+\batchmode
+
+\documentclass{article}
+\RequirePackage{ifthen}
+
+
+\usepackage{html}
+
+
+\usepackage[dvips]{color}
+
+
+\pagecolor[gray]{.7}
+
+\usepackage[]{inputenc}
+
+
+
+\makeatletter
+
+\makeatletter
+\count@=\the\catcode`\_ \catcode`\_=8
+\newenvironment{tex2html_wrap}{}{}%
+\catcode`\<=12\catcode`\_=\count@
+\newcommand{\providedcommand}[1]{\expandafter\providecommand\csname #1\endcsname}%
+\newcommand{\renewedcommand}[1]{\expandafter\providecommand\csname #1\endcsname{}%
+ \expandafter\renewcommand\csname #1\endcsname}%
+\newcommand{\newedenvironment}[1]{\newenvironment{#1}{}{}\renewenvironment{#1}}%
+\let\newedcommand\renewedcommand
+\let\renewedenvironment\newedenvironment
+\makeatother
+\let\mathon=$
+\let\mathoff=$
+\ifx\AtBeginDocument\undefined \newcommand{\AtBeginDocument}[1]{}\fi
+\newbox\sizebox
+\setlength{\hoffset}{0pt}\setlength{\voffset}{0pt}
+\addtolength{\textheight}{\footskip}\setlength{\footskip}{0pt}
+\addtolength{\textheight}{\topmargin}\setlength{\topmargin}{0pt}
+\addtolength{\textheight}{\headheight}\setlength{\headheight}{0pt}
+\addtolength{\textheight}{\headsep}\setlength{\headsep}{0pt}
+\setlength{\textwidth}{451pt}
+\setlength{\textheight}{554pt}
+\newwrite\lthtmlwrite
+\makeatletter
+\let\realnormalsize=\normalsize
+\global\topskip=2sp
+\def\preveqno{}\let\real@float=\@float \let\realend@float=\end@float
+\def\@float{\let\@savefreelist\@freelist\real@float}
+\def\liih@math{\ifmmode$\else\bad@math\fi}
+\def\end@float{\realend@float\global\let\@freelist\@savefreelist}
+\let\real@dbflt=\@dbflt \let\end@dblfloat=\end@float
+\let\@largefloatcheck=\relax
+\let\if@boxedmulticols=\iftrue
+\def\@dbflt{\let\@savefreelist\@freelist\real@dbflt}
+\def\adjustnormalsize{\def\normalsize{\mathsurround=0pt \realnormalsize
+ \parindent=0pt\abovedisplayskip=0pt\belowdisplayskip=0pt}%
+ \def\phantompar{\csname par\endcsname}\normalsize}%
+\def\lthtmltypeout#1{{\let\protect\string \immediate\write\lthtmlwrite{#1}}}%
+\newcommand\lthtmlhboxmathA{\adjustnormalsize\setbox\sizebox=\hbox\bgroup\kern.05em }%
+\newcommand\lthtmlhboxmathB{\adjustnormalsize\setbox\sizebox=\hbox to\hsize\bgroup\hfill }%
+\newcommand\lthtmlvboxmathA{\adjustnormalsize\setbox\sizebox=\vbox\bgroup %
+ \let\ifinner=\iffalse \let\)\liih@math }%
+\newcommand\lthtmlboxmathZ{\@next\next\@currlist{}{\def\next{\voidb@x}}%
+ \expandafter\box\next\egroup}%
+\newcommand\lthtmlmathtype[1]{\gdef\lthtmlmathenv{#1}}%
+\newcommand\lthtmllogmath{\dimen0\ht\sizebox \advance\dimen0\dp\sizebox
+ \ifdim\dimen0>.95\vsize
+ \lthtmltypeout{%
+*** image for \lthtmlmathenv\space is too tall at \the\dimen0, reducing to .95 vsize ***}%
+ \ht\sizebox.95\vsize \dp\sizebox\z@ \fi
+ \lthtmltypeout{l2hSize %
+:\lthtmlmathenv:\the\ht\sizebox::\the\dp\sizebox::\the\wd\sizebox.\preveqno}}%
+\newcommand\lthtmlfigureA[1]{\let\@savefreelist\@freelist
+ \lthtmlmathtype{#1}\lthtmlvboxmathA}%
+\newcommand\lthtmlpictureA{\bgroup\catcode`\_=8 \lthtmlpictureB}%
+\newcommand\lthtmlpictureB[1]{\lthtmlmathtype{#1}\egroup
+ \let\@savefreelist\@freelist \lthtmlhboxmathB}%
+\newcommand\lthtmlpictureZ[1]{\hfill\lthtmlfigureZ}%
+\newcommand\lthtmlfigureZ{\lthtmlboxmathZ\lthtmllogmath\copy\sizebox
+ \global\let\@freelist\@savefreelist}%
+\newcommand\lthtmldisplayA{\bgroup\catcode`\_=8 \lthtmldisplayAi}%
+\newcommand\lthtmldisplayAi[1]{\lthtmlmathtype{#1}\egroup\lthtmlvboxmathA}%
+\newcommand\lthtmldisplayB[1]{\edef\preveqno{(\theequation)}%
+ \lthtmldisplayA{#1}\let\@eqnnum\relax}%
+\newcommand\lthtmldisplayZ{\lthtmlboxmathZ\lthtmllogmath\lthtmlsetmath}%
+\newcommand\lthtmlinlinemathA{\bgroup\catcode`\_=8 \lthtmlinlinemathB}
+\newcommand\lthtmlinlinemathB[1]{\lthtmlmathtype{#1}\egroup\lthtmlhboxmathA
+ \vrule height1.5ex width0pt }%
+\newcommand\lthtmlinlineA{\bgroup\catcode`\_=8 \lthtmlinlineB}%
+\newcommand\lthtmlinlineB[1]{\lthtmlmathtype{#1}\egroup\lthtmlhboxmathA}%
+\newcommand\lthtmlinlineZ{\egroup\expandafter\ifdim\dp\sizebox>0pt %
+ \expandafter\centerinlinemath\fi\lthtmllogmath\lthtmlsetinline}
+\newcommand\lthtmlinlinemathZ{\egroup\expandafter\ifdim\dp\sizebox>0pt %
+ \expandafter\centerinlinemath\fi\lthtmllogmath\lthtmlsetmath}
+\newcommand\lthtmlindisplaymathZ{\egroup %
+ \centerinlinemath\lthtmllogmath\lthtmlsetmath}
+\def\lthtmlsetinline{\hbox{\vrule width.1em \vtop{\vbox{%
+ \kern.1em\copy\sizebox}\ifdim\dp\sizebox>0pt\kern.1em\else\kern.3pt\fi
+ \ifdim\hsize>\wd\sizebox \hrule depth1pt\fi}}}
+\def\lthtmlsetmath{\hbox{\vrule width.1em\kern-.05em\vtop{\vbox{%
+ \kern.1em\kern0.75 pt\hbox{\hglue.17em\copy\sizebox\hglue0.75 pt}}\kern.3pt%
+ \ifdim\dp\sizebox>0pt\kern.1em\fi \kern0.75 pt%
+ \ifdim\hsize>\wd\sizebox \hrule depth1pt\fi}}}
+\def\centerinlinemath{%
+ \dimen1=\ifdim\ht\sizebox<\dp\sizebox \dp\sizebox\else\ht\sizebox\fi
+ \advance\dimen1by.5pt \vrule width0pt height\dimen1 depth\dimen1
+ \dp\sizebox=\dimen1\ht\sizebox=\dimen1\relax}
+
+\def\lthtmlcheckvsize{\ifdim\ht\sizebox<\vsize
+ \ifdim\wd\sizebox<\hsize\expandafter\hfill\fi \expandafter\vfill
+ \else\expandafter\vss\fi}%
+\providecommand{\selectlanguage}[1]{}%
+\makeatletter \tracingstats = 1
+
+
+\begin{document}
+\pagestyle{empty}\thispagestyle{empty}\lthtmltypeout{}%
+\lthtmltypeout{latex2htmlLength hsize=\the\hsize}\lthtmltypeout{}%
+\lthtmltypeout{latex2htmlLength vsize=\the\vsize}\lthtmltypeout{}%
+\lthtmltypeout{latex2htmlLength hoffset=\the\hoffset}\lthtmltypeout{}%
+\lthtmltypeout{latex2htmlLength voffset=\the\voffset}\lthtmltypeout{}%
+\lthtmltypeout{latex2htmlLength topmargin=\the\topmargin}\lthtmltypeout{}%
+\lthtmltypeout{latex2htmlLength topskip=\the\topskip}\lthtmltypeout{}%
+\lthtmltypeout{latex2htmlLength headheight=\the\headheight}\lthtmltypeout{}%
+\lthtmltypeout{latex2htmlLength headsep=\the\headsep}\lthtmltypeout{}%
+\lthtmltypeout{latex2htmlLength parskip=\the\parskip}\lthtmltypeout{}%
+\lthtmltypeout{latex2htmlLength oddsidemargin=\the\oddsidemargin}\lthtmltypeout{}%
+\makeatletter
+\if@twoside\lthtmltypeout{latex2htmlLength evensidemargin=\the\evensidemargin}%
+\else\lthtmltypeout{latex2htmlLength evensidemargin=\the\oddsidemargin}\fi%
+\lthtmltypeout{}%
+\makeatother
+\setcounter{page}{1}
+\onecolumn
+
+% !!! IMAGES START HERE !!!
+
+{\newpage\clearpage
+\lthtmldisplayA{displaymath6}%
+\begin{displaymath}
+a = \phi
+\end{displaymath}%
+\lthtmldisplayZ
+\lthtmlcheckvsize\clearpage}
+
+{\newpage\clearpage
+\lthtmldisplayA{displaymath8}%
+\begin{displaymath}
+2 a = \dot{\phi}
+\end{displaymath}%
+\lthtmldisplayZ
+\lthtmlcheckvsize\clearpage}
+
+
+\end{document}
diff --git a/macros/texinfo/texinfo/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying_l2h_labels.pl b/macros/texinfo/texinfo/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying_l2h_labels.pl
new file mode 100644
index 0000000000..ecc7b241c4
--- /dev/null
+++ b/macros/texinfo/texinfo/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying_l2h_labels.pl
@@ -0,0 +1,13 @@
+# LaTeX2HTML
+# Associate labels original text with physical files.
+
+
+1;
+
+
+# LaTeX2HTML
+# labels from external_latex_labels array.
+
+
+1;
+