由於時間限制,我正在考慮作一點小作弊,將我在 Excel 中建立的一些表格匯入到我的 Latex 文件中。我意識到我可以使用如下所示的“圖形”很好地做到這一點,
\begin{figure} [t]
\centering
\includegraphics[width=\textwidth,scale=1]{abc}
\caption{Plot of Testing Time Frame vs Gross Profit/.Total Commission.}
\label{fig:abc}
\end{figure}
然而,顯然這現在被識別為一個數字......並且出現在我的數字列表而不是表格列表中。
問題,除了將導入的 PDF 圖像識別並標記為表格之外,有沒有辦法做到這一點?
答案1
使用table
而不是figure
.
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\begin{table}[hbtp]
\centering
\includegraphics[width=0.5\linewidth]{exceltable}
\caption{This is an excel table.}
\label{tab:ExcelTable}
\end{table}
\end{document}
筆記:
- 調整
width
直到適合您的喜好。 - 表格範例取自這個網站。