
Como se muestra en la imagen adjunta, el texto sale del límite de la celda. Agradecería que alguien pudiera ayudarme a solucionar el problema.
\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}
Respuesta1
Simplemente agregue dos líneas más para compensar la longitud que sale de la celda. Y ajuste el número de multirow{x}{width}{content}
para que se alineen en la parte superior.
\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}
Respuesta2
¿Qué tal no usarlo multirow
en absoluto?
\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}
Por otro lado, usaría un esquema "arriba alineado":
\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}
Mejor aún, también usaría 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}
Respuesta3
Gracias por la sugerencia. Al ajustar el número de líneas, pude producir una tabla con un formato agradable, como se muestra en la imagen.
\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}