htlatex 与 tikz

htlatex 与 tikz

我有一个带有片段的乳胶文件


\documentclass[12pt, a4paper]{article}

\@ifpackageloaded{tex4ht}{%
%\usepackage[dvipdfmx]{xcolor}
%\usepackage[dvipdfmx]{graphicx}
\usepackage[tex4ht]{hyperref}
}{%
%\usepackage{xcolor}  % [pdftex] explicit specification works for pdflatex only 
%\usepackage{graphicx}% [pdftex] explicit specification works for pdflatex only 
\usepackage{hyperref}% driver [hpdftex] is autodetected 
}

...

\usepackage{tikz}
%\usepackage{tikz-qtree}
%\usetikzlibrary{positioning}
\usetikzlibrary{graphs}


\begin{figure}[htb]
\begin{center}
\begin{tabular}{ccc}
\begin{tikzpicture}%[>=latex, scale=0.5]
\matrix[row sep=10mm, column sep=18mm] {
                     & \node(L)[op]{$\Lt$};   &                     \\
                     &                        &                     \\
                     & \node(S)[op]{$\It[]$}; &                     \\
\node(I)[op]{$\It$}; &                        & \node(R)[op]{($\Rt$)}; \\
}; % matrix 
%\path[->] (L) edge[loop above]  node [sloped, above] { $\eql,\neql$ } (L);
%\path[->] (R) edge[dashed] node [sloped, above] {($\le,] (I) edge         node [sloped, above] { $\le,] (R) edge[dashed] node [sloped, below] {($\round$)} (I);
\path[->] (I) edge[bend left]         node [sloped, above] { $\str$  } (S);
\path[->] (S) edge[bend left]         node [sloped, below] { $\ind$  } (I);
\path[->] (S) edge[]                  node [sloped, below] { $\type$ } (I);
\path[->] (R) edge[bend left, dashed] node [sloped, above] {($\str$) } (S);
\path[->] (S) edge[bend left, dashed] node [sloped, above] {($\real$)} (R);
\path[->] (L) edge[bend left]         node [sloped, above] { $\str$  } (S);
\path[->] (S) edge[bend left]         node [sloped, above] { $\logic$} (L);
\end{tikzpicture}

应用 htlatex 我在日志文件中收到:


[20] [21] [22

]
l.832 --- TeX4ht warning --- \halign translated into linear text ---
)
Runaway preamble?
\pgf@matrix@padding \cr  & \node (L)[op]{$\Lt $}; & \\ & & \\ & \node \ETC.
! File ended while scanning preamble of \TeXhalign.
 
                \cr }
 ...tml,uni-html4,2,svg.a.b.c.\input  langS.tex

我非常确定该警告与错误有关。

谁能解释一下发生了什么以及该怎么办?

更新:与此同时,我发现,即使没有表格环境,一切也都正常。但仍然不清楚发生了什么以及如何恢复。

相关内容