I am building a LaTeX table for a report. I defined a fix width to the second (and last) column, so that it doesn't exceed the size of the page. For some reason, the text is overflowing the size of the cell. Here is my code:
\begin{table}[ht]
\centering
\begin{tabular}{| l | p{12cm} |}
\hline
\textbf{Código} & \textbf{CU03} \\ \hline \hline
\textbf{Nome} & Pesquisa \\ \hline
\textbf{Custo} & 3 \\ \hline
\textbf{Prioridade} & Alta \\ \hline
\textbf{Descrição} & O utilizador faz uma pesquisa simples por um paciente \\ \hline
\textbf{Pré-Condições} & O utilizador está autenticado na aplicação \\ \hline
\textbf{Pós-Condições} & São apresentados os resultados para a pesquisa feita \\ \hline
\textbf{Fluxo de acções} &
\begin{tabular} {l l}
1. É pressionado o menu “Documentos” \\
2. É preenchido um ou vários dos campos disponíveis (campo1, campo2, campo3 ou campo3) \\
3. É pressionado o botão “Procurar” \\
4. São apresentados os resultados \\
\end{tabular}
\\ \hline
\textbf{Dependências} & ~\ref{tab: CU01} (CU01)\\ \hline
\textbf{Mokup} & Mokup03 \\ \hline
\textbf{Testes} & TODO \\ \hline
\end{tabular}
\caption{CU03}
\label{tab: CU03}
\end{table}
and my output is this:
One last thing, I am using scribtex to compile my code.
enumerate
environment instead of the innertabular
.