すべての \halign 行から画像を取得するにはどうすればよいでしょうか?

すべての \halign 行から画像を取得するにはどうすればよいでしょうか?

私は別々の画像を取得しようとしています等価配列\specials問題は、開始/終了画像を適切に挿入できないことですテキスト最小限の例(プレーン tex)を考えてみましょう。

\def\startpic{\special{t4ht++math.png}}
\def\stoppic{\special{t4ht+}}

\newif\ifnotfirstcr
\everycr{\ifnotfirstcr\noalign{\stoppic}\fi}

$$\halign{%
  \startpic
  a#&b#&c#\cr
  \global\notfirstcrtrue 
  1&2\cr 1\cr
}$$
\bye

最後に画像を追加しますテキストタグ(\stoppic)を\everycr(最初の でない場合\cr)に付けます。そして開始画像テキスト\startpic先頭のタグ( )\halign ラインテンプレート

TeX をコンパイルし、作成された .dvi ファイルで tex4ht を実行すると、警告が表示されます。

--- warning --- Improper groups in \special{t4ht+}... idv[1]
--- warning --- Improper groups in \special{t4ht+}... idv[1]
--- warning --- Improper groups in \special{t4ht+}... idv[1]
--- warning --- Improper groups in \special{t4ht+}... idv[2]
--- warning --- Improper groups in \special{t4ht+}... idv[2]

問題は、special1 14 't4ht++math.png'と がspecial1 15 't4ht+'同じ DVI ファイル グループ レベルにないことです。

[
d4 -41497562
d3 1572864
                <------------------ should be here: special1 14 't4ht++math.png'
[
[
special1 14 't4ht++math.png'                    <------- instead of here
fd1 0 11374260171 655360 655360 0 5 '' 'cmr10'
fn0
(a1)
]
[
r3 655362
(b2)
]
]
special1 5 't4ht+'
d3 786432
                <------------------ should be here: special1 14 't4ht++math.png'
[
[
special1 14 't4ht++math.png'                    <------- instead of here
(a1)
]
]
special1 5 't4ht+'
]

\stoppic を間違った場所に追加しているかもしれませんが、\halign次のように記述する行テンプレートを試しましたが、同じ警告が表示されます。内の DVI にとspecials\startpic a#&b#&c# \stoppic\crを適切に追加する方法についてアドバイスをいただける方はいらっしゃいますか ?t4ht++t4ht++\halign

関連情報