\documentclass[11pt, a4paper, oneside]{book}
\usepackage{graphicx}
\begin{document}
\frontmatter
\tableofcontents
\listoffigures
\listoftables
\mainmatter
...
...
...
\begin{tabular}{c||c|c}
\title{Transition }
$\delta$ & authorized (1) & unauthorized (0) \\
\hline \hline
MainDoor & PasswordCheck & MainDoor \\
PasswordCheck & MainHall & MainDoor \\
\end{tabular} ........
...
...
...
\end{document}
使用上述代码,我无法获取表格列表中的表格,表格列表是空的。 缺什么?
答案1
不仅如此\begin{tabular}
,还应\begin{table}
像下面这样使用:
\begin{table}[h]
\begin{tabular}{c||c|c}
$\delta$ & authorized (1) & unauthorized (0) \\
\hline \hline
MainDoor & PasswordCheck & MainDoor \\
PasswordCheck & MainHall & MainDoor \\
\end{tabular}
\caption{Transition Table of Automated Door}
\end{table}
执行此操作 \listoftables 将显示表格的数量。