Tabellentext geht über den rechten Rand hinaus

Tabellentext geht über den rechten Rand hinaus
\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}

Der Text, den ich geschrieben habe, kommt nicht vollständig in die Tabelle. Welchen Fehler habe ich gemacht oder was sollte korrigiert werden?

Bildbeschreibung hier eingeben

Antwort1

Verwenden Sie den richtigen Spaltentyp für Ihre zweite Spalte. Sie benötigen Textumbruch, daher können Sie p{<width>}den Typ „Spalte“ oder vorzugsweise Xden Typ verwenden, der den verbleibenden Platz automatisch berechnet tabularx. Verwenden Sie für Letzteres. Anstatt manuellen vspace wie hinzuzufügen \\ [3ex], erhöhen Sie einfach die Array-Streckung \renewcommand{\arraystretch}{1.5}beispielsweise um .

\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}

Bildbeschreibung hier eingeben

verwandte Informationen