Graphics, Figures & TablesBuilding tables: allignment error

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
antonio
Posts: 1
Joined: Mon Aug 22, 2011 11:10 pm

Building tables: allignment error

Post by antonio »

Could someone please tell me what's my mistake here?

\begin{table}[htbp]\centering
\caption{\label{} Basic economic theory and business planning -- score by criterion and overall}\begin{tabular} {@{} l r r r @{}}
\hline
\textbf{Students} & \textbf{Knowledge} & \textbf{Consistency} & \textbf{Clarity}& \textbf{Spelling}& \textbf{Total} \\

\hline
\\
\emph{Deinis}& __ & __ & __ & __ & __ \\
\\
\emph{Ana Eneida}& __ & __ & __ & __ & __ \\
\\
\emph{Alba Juniet}& __ & __ & __ & __ & __\\
\\
\emph{Maria Ignacia}& __ & __ & __ & __ & __\
\\
\emph{Hayder Jose}& __ & __ & __ & __ & __\\
\\
\emph{Eduardo}& __ & __ & __ & __ & __\\
\\
\emph{Jean Carlos}& __ & __ & __ & __ & __\\
\\
\emph{Scarleth}& __ & __ & __ & __ & __\\
\\
\emph{Ervin Antonio}& __ & __ & __ & __ & __\\
\\
\emph{Primitivo}& __ & __ & __ & __ & __\\
\\
\emph{Felix}& 15 & 15 & 20 & 10 & 60\\
\\
\emph{Darwin}& 10 & 10 & 10 & 10 & 40\\
\\
\emph{Nahum}& 10 & 10 & 10 & 10 & 40\\
\\
\emph{Everth}& 0 & 0 & 0 & 0 & 0\\
\\
\emph{Freddy}& __ & __ & __ & __ & __\\
\\
\hline

Percentages& __ & __ & __ & __ & __\\
\\
\hline
\hline \multicolumn{6}{@{}l}{ \footnotesize {
\normalsize}}
\end{tabular}
\end{table}


THE ERROR I RECEIVE IS:
./Final_Report.tex:128: Extra alignment tab has been changed to \cr.
<template> \unskip }\endtemplate

l.128 ... \textbf{Consistency} & \textbf{Clarity}&
\textbf{Spelling}& \textb...

./Final_Report.tex:132: Missing $ inserted.
<inserted text>
$
l.132 \emph{Deinis}& _
_ & __ & __ & __ & __ \\

Thanks for your help!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Building tables: allignment error

Post by Stefan Kottwitz »

Hi Antonio,

this line

Code: Select all

\begin{tabular} {@{} l r r r @{}}
tells LaTeX that your table has 4 columns. However, here you are using 6 columns:

Code: Select all

\textbf{Students} & \textbf{Knowledge} & \textbf{Consistency} & \textbf{Clarity}& \textbf{Spelling}& \textbf{Total} \\
Stefan
LaTeX.org admin
Post Reply