
\begin{table}[h!]
\centering
\begin{tabular}{| c | |c |}
\hline
Feature & Elaboration \\ [3ex]
\hline\hline
\\Budget Friendly & The system inputs financial budget of user in it's system, and provides a list of hotels that can be accessed with that budget. \\ [10ex]
\\Interactivity & While using the system, the barrier between machine and user is eradicated to the maximum capability. A user should feel as he/she is talking to a representative of a hotel. \\ [10ex]
\\Data Handling & The data of a user is recorded by the system. It can be easily accessed in the system. \\ [10ex]
\hline
\end{tabular}
我寫的文字沒有完全出現在表格中。我犯了什麼錯誤,或我該改正什麼?
答案1
為第二列使用正確的列類型。您需要文字換行,因此您可以使用p{<width>}
type column 或最好使用X
自動計算剩餘空間的 type,tabularx
用於後者。此外,例如,\\ [3ex]
只需將陣列拉伸增加,而不是像 那樣新增手動 vspace 。\renewcommand{\arraystretch}{1.5}
\documentclass{article}
\usepackage{tabularx}
\begin{document}
\renewcommand{\arraystretch}{1.5}
\begin{table}[!htbp]
\centering
\begin{tabularx}{\linewidth}{|c||X|}
\hline
Feature & Elaboration \\ \hline\hline
Budget Friendly & The system inputs financial budget of user in it's system, and provides a list of hotels that can be accessed with that budget. \\
Interactivity & While using the system, the barrier between machine and user is eradicated to the maximum capability. A user should feel as he/she is talking to a representative of a hotel. \\
Data Handling & The data of a user is recorded by the system. It can be easily accessed in the system.\\ \hline
\end{tabularx}
\end{table}
\end{document}