
첨부된 그림과 같이 셀 경계 밖으로 텍스트가 흘러나옵니다. 누군가가 문제를 해결하는 데 도움을 주시면 감사하겠습니다.
\begin{table}[!htbp]
\centering
\caption{Experiment outline}
\label{tab:exp_process}
\begin{tabular}{|l|l|l|m{6cm}|}
\hline
Sessions & Objectives & Groups & Activities
\\
\hline\hline
\multirow{2}{*}{$1$st session} &
\multirow{2}{4cm}{Learning the basics of thermal conduction} &
Control &
\multirow{1}{6cm}{Solve a thermal system design problem using a real-time high-fidelity simulation with the CPU heat sink system}
\\
& & Experimental &
\\
\hline
\end{tabular}
\end{table}
답변1
셀 외부의 길이를 보상하려면 두 개의 선을 더 추가하기만 하면 됩니다. 그리고 multirow{x}{width}{content}
위쪽에 정렬되도록 개수를 조정합니다 .
\documentclass[]{article}%
\usepackage[margin=1cm]{geometry}
\usepackage{multirow,array}
\begin{document}
\begin{table}[!htbp]
\centering
\caption{Experiment outline}
\label{tab:exp_process}
\begin{tabular}{|l|l|l|m{6cm}|}
\hline
Sessions & Objectives & Groups & Activities \\ \hline\hline
\multirow{1}{*}{$1$st session} & \multirow{2}{4cm}{Learning the basics of thermal conduction} & Control &
\multirow{1}{6cm}{Solve a thermal system design problem using a real-time high-fidelity simulation with the CPU heat sink system}
\\
& & Experimental & \\
& & & \\
& & & \\ \hline
\end{tabular}
\end{table}
\end{document}
답변2
multirow
전혀 사용하지 않는 것은 어떻습니까 ?
\documentclass{article}
\usepackage{array}
\begin{document}
\noindent
\begin{tabular}{|m{2cm}|m{3.5cm}|m{2.5cm}|m{5cm}|}
\hline
Sessions & Objectives & Groups & Activities \\
\hline\hline
First session &
Learning the basics of thermal conduction &
Control\newline Experimental &
Solve a thermal system design problem using a real-time
high-fidelity simulation with the CPU heat sink system \\
\hline
\end{tabular}
\end{document}
반면에 저는 "상단 정렬" 구성표를 사용하겠습니다.
\documentclass{article}
\usepackage{array}
\begin{document}
\noindent
\begin{tabular}{|l|p{3.5cm}|p{2.5cm}|p{5cm}|}
\hline
Sessions & Objectives & Groups & Activities \\
\hline\hline
First session &
Learning the basics of thermal conduction &
Control\newline Experimental &
Solve a thermal system design problem using a real-time
high-fidelity simulation with the CPU heat sink system \\
\hline
\end{tabular}
\end{document}
더 나은 방법은 다음을 사용하는 것입니다 booktabs
.
\documentclass{article}
\usepackage{array,booktabs}
\begin{document}
\noindent
\begin{tabular}{l p{3.5cm} p{2.5cm} p{5cm}}
\toprule
Sessions & Objectives & Groups & Activities \\
\midrule
First session &
Learning the basics of thermal conduction &
Control\newline Experimental &
Solve a thermal system design problem using a real-time
high-fidelity simulation with the CPU heat sink system \\
\bottomrule
\end{tabular}
\end{document}
답변3
제안해 주셔서 감사합니다. 행 수를 조정하여 그림과 같이 멋진 형식의 표를 생성할 수 있었습니다.
\begin{table}[!htbp]
\centering
\caption{Experiment outline}
\label{tab:exp_process}
\begin{tabular}{|m{2cm}|m{4cm}|m{2.5cm}|m{6cm}|}
\hline
Sessions & Objectives & Groups & Activities \\ \hline\hline
\multirow{3}{*}{$1$st session} & \multirow{3}{4cm}{Learning the basics of thermal conduction} &
\multirow{2}{*}{Control} &
\multirow{3}{6cm}{Solve a thermal system design problem using a real-time high-fidelity simulation with the CPU heat sink system}
\\
& & \multirow{2}{*}{Experimental} & \\
& & & \\ \hline
\end{tabular}
\end{table}