Place final line in a Latex Table

Asked

Viewed 97 times

1

I’m building a Latex Table and it’s giving me an error in the final horizontal line I put.

\begin{table}[t]

\begin{center}

\begin{tabular}{|c|r||l|}

    \hline

    \emph{Fases} & \emph{Descrição} & \emph{Função}\\

    \hline

    1º & \Construção de um Tabuleiro de Lava & \textbf{buildLava} \\

    \hline

    2 & Posição das Peças & \textbf{passosToPosition}

    \hline

\end{tabular}

\end{center}

\caption{Fases de Resolução.}

\label{tbl:tabela}

\end{table}

Do you know of an alternative command that does the final row of the table.

  • Which error does it make? You tried to put the at the end of the line you have 2 & Posição das Peças & \textbf{passosToPosition}?

  • That was exactly the mistake. Thank you ;)

  • For nothing. I put as an answer then. If the answer was useful to you, please consider mark her as accepted.

1 answer

4

As I commented, missing a \\ in the last row of the table (that is, the line with the contents: 2 & Posição das Peças & \textbf{passosToPosition}).

In general Latex errors are not the most intuitive, but it is worth striving to understand them because sometimes (like probably this one) they can be useful.

Browser other questions tagged

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