How to position this text below the table?

Asked

Viewed 396 times

1

Using this Latex code:

\begin{table}[!htb]
\centering
\caption{My caption}
\label{my-label}
\begin{tabular}{|l|l|}
\hline
\multicolumn{2}{|c|}{\textbf{UC-Responder Atividade}}                                                                                                                                                                              \\ \hline
\textbf{Objetivo}        & \textbf{Permitir que o usuário responda as atividades criadas.}                                                                                                                                         \\ \hline
\textbf{Requisitos}      & \textbf{Estar participando de grupo .}                                                                                                                                                                  \\ \hline
\textbf{Atores}          & \textbf{Aluno.}                                                                                                                                                                                         \\ \hline
\textbf{Pré-Condições}   & \textbf{Estar presente em um grupo.}                                                                                                                                                                    \\ \hline
\textbf{Fluxo Principal} & \textbf{\begin{tabular}[c]{@{}l@{}}A) O usuário clica sobre o nome da atividade.\\ B) O usuário responde a atividade.\\ C) O usuário clica no botão (enviar).\\ D) Caso de Uso encerrado.\end{tabular}} \\ \hline
\textbf{Pós-Condições}   & \textbf{Atividade respondida e cadastrada}                                                                                                                                                              \\ \hline
\end{tabular}
\end{table}

But there is always a part of the text below the table, where this text should be below all tables.

inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

How can I solve this problem?

  • 3

    Please read How we should format questions and answers? and edit the question with the code in the correct formatting and not as image. This helps the question to be answered.

  • 1

    Add Latex to the question to make the answer easier.

  • 1

    @Tony code entered .

  • What text? Would be the legend?

  • 1

    @Tony I have the theoretical reference that should be below all tables.The tables are staying between the text of the reference I already used the newpage command and it didn’t work. There has to be a command that 'push' the text below the table to the next page.

  • 1

    When there are 3 tables on a page the text is pushed to the next page . But when I have only 2 is like this in the image.

  • I added another image

  • 1

    @Tony solved the problem with the clearpage command

  • Very well! If you want, you can put the answer as you did, to help those who have the same problem.

Show 4 more comments

1 answer

0

If what comes after the table are the references, maybe it works to put \newpage. This type of error is very common and in all my previous experiences I changed the terms to localization, example:

\begin{table}[!h]
\end{table}

\begin{table}[!ht]
\end{table}

\newpage
\begin{table}[h]
\end{table}

and etc.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.