0
\begin{center}
\captionof{table}{Risk Analysis} \label{tab:title} 
 \begin{tabulary}{0.7\textwidth}{LCL}
  Risk      & \ Probability (1-5)  & \ Impact (1-5)  \\
\hline
Software cannot be completed on time. & 2 & 5  \\
System requirements not adequately identified. & 3 & 5 \\
\end{tabulary}  
\end{center}

Have a table above, I am trying to create another column called 'Priority (1-5) - ideas on how to do that?


When I add an extra column, LaTeX throws up and says

Extra alignment tab has been changed to \cr. (\end{tabulary} ...)

  • Welcome to TeX.SX!. Do some research on how tables work in LaTeX. – Sean Allred Apr 1 '13 at 12:30
  • I have done so but I get an 'Extra alignment tab has been changed to \cr. (\end{tabulary} ...) – user1249957 Apr 1 '13 at 12:31
  • 1
    Well, then I'd edit that into your question. See also the edit to my answer (coming soon to a store near you!) – Sean Allred Apr 1 '13 at 12:37
0

Since I couldn't find an existing question that dealt with this directly, I'll put this here. I would first suggest taking a look at the LaTeX WikiBook; it is extremely helpful while learning.

Take a look at how things are organized in a LaTeX table:

\begin{center}
\captionof{table}{Risk Analysis} \label{tab:title} 
 \begin{tabulary}{0.7\textwidth}{LCL}
  Risk                   & Probability (1-5) & Impact (1-5)  \\ \hline
  Software cannot be ... & 2                 & 5             \\
  System requirements... & 3                 & 5             \\
\end{tabulary}  
\end{center}

Can you extrapolate? Note: the LCL bit is the alignment (in this case left,center,left) of the columns; adding another column will necessitate another alignment character. The cause of your error arose from the lack of this extra alignment character; LaTeX ran into another column and had no idea what to do with it.

  • I can extrapolate the rows but not the columns ;x – user1249957 Apr 1 '13 at 12:36
  • @user1249957 see the edit. – Sean Allred Apr 1 '13 at 12:47
  • You're very welcome. If it works (and if it's clear why it works), consider accepting it as the answer. – Sean Allred Apr 1 '13 at 12:51
  • Trying to extrapolate the columns and it is still struggling ;x – user1249957 Apr 1 '13 at 12:55
  • 1
    Worked it out, need to change {LCL} brilliant :) – user1249957 Apr 1 '13 at 12:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.