
\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>}
유형 열을 사용하거나 X
남은 공간을 자동으로 계산하는 유형을 사용할 수 있습니다 tabularx
. 후자에 사용하세요. 또한 와 같은 수동 vspace를 추가하는 대신 예를 \\ [3ex]
들어 배열 스트레치를 늘리십시오 \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}