테이블의 셀 크기를 자동으로 조정하시겠습니까?

테이블의 셀 크기를 자동으로 조정하시겠습니까?

나는 본질적으로 내 텍스트가 내 테이블의 세 번째 열에 표시되기를 원합니다. 지금 내가 가지고 있는 텍스트는 내 테이블과 문서 오른쪽을 통해 계속 전달됩니다. 여기 내 코드가 있습니다.

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

현재 무슨 일이 일어나고 있는지에 대한 이미지:https://i.stack.imgur.com/oPwzO.jpg

답변1

항상 컴파일 가능한 최소한의 작업 예제를 제공해 주세요!

중첩된 테이블은 필요하지 않습니다. 열 Xtabularx이미 텍스트를 줄바꿈했습니다. 열의 셀 내에 줄 바꿈을 넣으려면 대신에 (새 테이블 행을 시작하게 됨) 을 X넣으십시오 .\newline\\

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

생산물:

여기에 이미지 설명을 입력하세요


편집하다:

여러 의견에서 제안한 또 다른 버전은 다음 booktabs과 같습니다.\RaggedRight

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

여기에 이미지 설명을 입력하세요

관련 정보