problema com multirow: o texto fica sem limite de célula

problema com multirow: o texto fica sem limite de célula

Mesa

Conforme mostrado na imagem anexada, o texto ultrapassa o limite da célula. Eu apreciaria se alguém pudesse me ajudar a resolver o 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}

Responder1

Basta adicionar mais duas linhas para compensar o comprimento fora da célula. E ajuste o número multirow{x}{width}{content}para que fiquem alinhados no topo.

insira a descrição da imagem aqui

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

Responder2

Que tal não usar multirownada?

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

insira a descrição da imagem aqui

Por outro lado, eu usaria um esquema “alinhado ao topo”:

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

insira a descrição da imagem aqui

Melhor ainda, eu também usaria 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}

insira a descrição da imagem aqui

Responder3

Obrigado pela sugestão. Ajustando o número de linhas, consegui produzir uma tabela bem formatada, conforme mostrado na imagem.

insira a descrição da imagem aqui

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

informação relacionada