如何從每條 \halign 行取得圖片?

如何從每條 \halign 行取得圖片?

我正在嘗試從中獲取單獨的圖像等式數組線。問題是我無法正確插入開始/結束\specials圖像tex4ht。讓我們考慮一個最小的例子(純文字):

\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

我添加結束圖像tex4ht標記 ( \stoppic) 到\everycr(如果不是第一個\cr)。和起始影像tex4ht標籤 ( \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行模板寫成:\startpic a#&b#&c# \stoppic\cr,但我得到了相同的警告。也許有人可以建議如何 在 DVI 中正確添加t4ht++和特殊功能?t4ht++\halign

相關內容