diff options
Diffstat (limited to 'macros/texinfo/texinfo/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying_l2h_images.tex')
-rw-r--r-- | macros/texinfo/texinfo/tp/tests/tex_html/res_parser/tex_in_copying/tex_in_copying_l2h_images.tex | 63 |
1 files changed, 31 insertions, 32 deletions
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 index e7b5750208..91ae6e7100 100644 --- 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 @@ -9,8 +9,6 @@ \usepackage{xcolor} -\usepackage[]{inputenc} - \makeatletter @@ -57,36 +55,39 @@ \newbox\lthtmlPageBox \newdimen\lthtmlCropMarkHeight \newdimen\lthtmlCropMarkDepth -\long\def\lthtmlTightVBox#1#2{% - \setbox\lthtmlPageBox\vbox{\hbox{\catcode`\_=8 #2}}% +\long\def\lthtmlTightVBoxA#1{\def\lthtmllabel{#1} + \setbox\lthtmlPageBox\vbox\bgroup\catcode`\_=8 }% +\long\def\lthtmlTightVBoxZ{\egroup \lthtmlCropMarkHeight=\ht\lthtmlPageBox \advance \lthtmlCropMarkHeight 6pt \lthtmlCropMarkDepth=\dp\lthtmlPageBox - \lthtmltypeout{^^J:#1:lthtmlCropMarkHeight:=\the\lthtmlCropMarkHeight}% - \lthtmltypeout{^^J:#1:lthtmlCropMarkDepth:=\the\lthtmlCropMarkDepth:1ex:=\the \dimexpr 1ex}% - \begin{preview}\copy\lthtmlPageBox\end{preview}}}% -\long\def\lthtmlTightFBox#1#2{% + \lthtmltypeout{^^J:\lthtmllabel:lthtmlCropMarkHeight:=\the\lthtmlCropMarkHeight}% + \lthtmltypeout{^^J:\lthtmllabel:lthtmlCropMarkDepth:=\the\lthtmlCropMarkDepth:1ex:=\the \dimexpr 1ex}% + \begin{preview}\copy\lthtmlPageBox\end{preview}}% +\long\def\lthtmlTightFBoxA#1{\def\lthtmllabel{#1}% \adjustnormalsize\setbox\lthtmlPageBox=\vbox\bgroup % \let\ifinner=\iffalse \let\)\liih@math % - {\catcode`\_=8 #2}% + \bgroup\catcode`\_=8 }% +\long\def\lthtmlTightFBoxZ{\egroup \@next\next\@currlist{}{\def\next{\voidb@x}}% \expandafter\box\next\egroup % \lthtmlCropMarkHeight=\ht\lthtmlPageBox \advance \lthtmlCropMarkHeight 6pt \lthtmlCropMarkDepth=\dp\lthtmlPageBox - \lthtmltypeout{^^J:#1:lthtmlCropMarkHeight:=\the\lthtmlCropMarkHeight}% - \lthtmltypeout{^^J:#1:lthtmlCropMarkDepth:=\the\lthtmlCropMarkDepth:1ex:=\the \dimexpr 1ex}% + \lthtmltypeout{^^J:\lthtmllabel:lthtmlCropMarkHeight:=\the\lthtmlCropMarkHeight}% + \lthtmltypeout{^^J:\lthtmllabel:lthtmlCropMarkDepth:=\the\lthtmlCropMarkDepth:1ex:=\the \dimexpr 1ex}% \begin{preview}\copy\lthtmlPageBox\end{preview}}% - \long\def\lthtmlinlinemathA#1#2\lthtmlindisplaymathZ{\lthtmlTightVBox{#1}{#2}} - \def\lthtmlinlineA#1#2\lthtmlinlineZ{\lthtmlTightVBox{#1}{#2}} - \long\def\lthtmldisplayA#1#2\lthtmldisplayZ{\lthtmlTightVBox{#1}{#2}} - \long\def\lthtmlinlinemathA#1#2\lthtmlindisplaymathZ{\lthtmlTightVBox{#1}{#2}} - \def\lthtmlinlineA#1#2\lthtmlinlineZ{\lthtmlTightVBox{#1}{#2}} - \long\def\lthtmldisplayA#1#2\lthtmldisplayZ{\lthtmlTightVBox{#1}{#2}} + \long\def\lthtmlinlinemathA#1#2\lthtmlindisplaymathZ{\lthtmlTightVBoxA{#1}{\hbox\bgroup#2\egroup}\lthtmlTightVBoxZ} + \def\lthtmlinlineA#1#2\lthtmlinlineZ{\lthtmlTightVBoxA{#1}{\hbox\bgroup#2\egroup}\lthtmlTightVBoxZ} + \long\def\lthtmldisplayA#1#2\lthtmldisplayZ{\lthtmlTightVBoxA{#1}{#2}\lthtmlTightVBoxZ} \long\def\lthtmldisplayB#1#2\lthtmldisplayZ{\\edef\preveqno{(\theequation)}% - \lthtmlTightVBox{#1}{\let\@eqnnum\relax#2}} - \long\def\lthtmlfigureA#1#2\lthtmlfigureZ{\let\@savefreelist\@freelist - \lthtmlTightFBox{#1}{#2}\global\let\@freelist\@savefreelist} - \long\def\lthtmlpictureA#1#2\lthtmlpictureZ{\let\@savefreelist\@freelist - \lthtmlTightVBox{#1}{#2}\global\let\@freelist\@savefreelist} + \lthtmlTightVBoxA{#1}{\let\@eqnnum\relax#2}\lthtmlTightVBoxZ} + \long\def\lthtmlfigureA#1{\let\@savefreelist\@freelist + \lthtmlTightFBoxA{#1}} + \long\def\lthtmlfigureZ{ + \lthtmlTightFBoxZ\global\let\@freelist\@savefreelist} + \long\def\lthtmlpictureA#1{\let\@savefreelist\@freelist + \lthtmlTightVBoxA{#1}} + \long\def\lthtmlpictureZ{ + \lthtmlTightVBoxZ\global\let\@freelist\@savefreelist} \def\lthtmlcheckvsize{\ifdim\ht\sizebox<\vsize \ifdim\wd\sizebox<\hsize\expandafter\hfill\fi \expandafter\vfill \else\expandafter\vss\fi}% @@ -117,19 +118,17 @@ % !!! IMAGES START HERE !!! {\newpage\clearpage -\lthtmldisplayA{displaymath6}% -\begin{displaymath} -a = \phi -\end{displaymath}% -\lthtmldisplayZ +\lthtmlinlinemathA{tex2html_wrap_indisplay11}% +$\displaystyle a = \phi +$% +\lthtmlindisplaymathZ \lthtmlcheckvsize\clearpage} {\newpage\clearpage -\lthtmldisplayA{displaymath8}% -\begin{displaymath} -2 a = \dot{\phi} -\end{displaymath}% -\lthtmldisplayZ +\lthtmlinlinemathA{tex2html_wrap_indisplay13}% +$\displaystyle 2 a = \dot{\phi} +$% +\lthtmlindisplaymathZ \lthtmlcheckvsize\clearpage} |