
Ich möchte im Wesentlichen, dass mein Text in der 3. Spalte meiner Tabelle umbrochen wird. Mit dem, was ich jetzt habe, laufen die Texte weiter, durch meine Tabelle und über die rechte Seite des Dokuments hinaus. Hier ist mein Code.
\begin{table}[h]
\centering
\begin{tabularx}{\linewidth}{|l|l|X|}
\hline
\textbf{Item} & \textbf{Due} & \textbf{Specifics and Owner}
\\ \hline
Progress Report 1 & 2/15 & \begin{tabular}[c]{@{}l@{}}Preprocess data. Create simple neural network as proof of concept.\\ Owners: Group Effort\end{tabular} \\ \hline
Progress Report 2 & 3/15 & \begin{tabular}[c]{@{}l@{}}First implementation of working neural network x-ray classifier. Includes any improvement over randomly classifying data.\\ Owners: Group Effort\end{tabular} \\ \hline
Preliminary Writeup & 4/12 & \begin{tabular}[c]{@{}l@{}}Strong improvement in classification by supervising neural network weight selection. \\ Owners: Group Effort\end{tabular} \\ \hline
Final Oral Presentation \& Report & 4/24 - 4/26 & \begin{tabular}[c]{@{}l@{}}Finished product that is demonstrable. Possibly a final push to see improvements over Preliminary Writeup results. Make sure there is a group understanding of all applied concepts.\\ Owners: Group Effort\end{tabular} \\ \hline
\end{tabularx}
\end{table}
Ein Bild von dem, was derzeit passiert:https://i.stack.imgur.com/oPwzO.jpg
Antwort1
Bitte stellen Sie immer ein kompilierbares, minimales, funktionierendes Beispiel zur Verfügung!
Sie benötigen die verschachtelten Tabellen nicht. Die X
Spalte „von“ tabularx
umbricht bereits den Text. Um einen Zeilenumbruch innerhalb der Zellen in der X
Spalte einzufügen, verwenden Sie \newline
anstelle von \\
(wodurch eine neue Tabellenzeile initiiert würde).
\documentclass{article}
\usepackage{tabularx}
\begin{document}
\begin{table}[h]
%\centering % see Mico's comment
\begin{tabularx}{\linewidth}{|l|l|X|}
\hline
\textbf{Item} & \textbf{Due} & \textbf{Specifics and Owner} \\ \hline
Progress Report 1 & 2/15 & Preprocess data. Create simple neural network as proof of concept.\newline Owners: Group Effort \\ \hline
Progress Report 2 & 3/15 & First implementation of working neural network x-ray classifier. Includes any improvement over randomly classifying data.\newline Owners: Group Effort \\ \hline
Preliminary Writeup & 4/12 & Strong improvement in classification by supervising neural network weight selection. \newline Owners: Group Effort \\ \hline
Final Oral Presentation \& Report & 4/24--4/26 & Finished product that is demonstrable. Possibly a final push to see improvements over Preliminary Writeup results. Make sure there is a group understanding of all applied concepts.\newline Owners: Group Effort \\ \hline
\end{tabularx}
\end{table}
\end{document}
Produziert:
Bearbeiten:
Eine andere Version verwendet booktabs
und \RaggedRight
wie in mehreren Kommentaren vorgeschlagen:
\documentclass{article}
\usepackage{tabularx,booktabs,ragged2e}
\begin{document}
\begin{table}[h]
%\centering % see Mico's comment
\begin{tabularx}{\linewidth}{l l >{\RaggedRight}X}
\toprule
\textbf{Item} & \textbf{Due} & \textbf{Specifics and Owner} \\ \midrule
Progress Report 1 & 2/15 & Preprocess data. Create simple neural network as proof of concept.\newline Owners: Group Effort \\ \midrule
Progress Report 2 & 3/15 & First implementation of working neural network x-ray classifier. Includes any improvement over randomly classifying data.\newline Owners: Group Effort \\ \midrule
Preliminary Writeup & 4/12 & Strong improvement in classification by supervising neural network weight selection. \newline Owners: Group Effort \\ \midrule
Final Oral Presentation \& Report & 4/24--4/26 & Finished product that is demonstrable. Possibly a final push to see improvements over Preliminary Writeup results. Make sure there is a group understanding of all applied concepts.\newline Owners: Group Effort \\ \bottomrule
\end{tabularx}
\end{table}
\end{document}