Graphics, Figures & Tablesmaking a table obtaining error messages HELP

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
mavelezq
Posts: 5
Joined: Thu Aug 23, 2012 10:11 pm

making a table obtaining error messages HELP

Post by mavelezq »

I am new to LaTeX and I am trying to make a table. These are the packages that I have included in my document

Code: Select all

\usepackage{graphics}
\usepackage[pdftex]{graphicx}
\usepackage{amsmath,amssymb}
\usepackage{rotating}
\usepackage{float}
\floatstyle{ruled}
\usepackage{multirow}
\usepackage{wrapfig}
\usepackage{tabularx}
\usepackage[english]{babel}
\renewcommand{\rmdefault}{ptm}
\newcommand{\degree}{\ensuremath{^\circ}}
In the document I have these commands:
example:

Code: Select all

\begin{table}
\caption{Gram-negative bacterial isolates identified from air samples collected in Bamako, Mali using BLASTN public database and API 20E}
\begin{tabular}{l l l l l l}
\hline
&Family &Isolate ID	&Length of Query (bp) 	&Similarity (\%) 	&Closest relative (BLASTN)	& API-20E (\% identity) \\
\multirow{3}{*}{\textit{Moraxellaceae}} &MV9041	&554	&98\% &\textit{Acinetobacter baumannii}& ND \\
&MV9011	&457	&98\%	&\textit{Acinetobacter calcoaceticus}	&Burkholderia cepacia (46.9) Non-fermenter spp (25.2) \\
&MV9037	&585	&97\%	&\textit{Acinetobacter} sp. &\textit{Klebsiella pneumoniae} ssp. (98.1) \textit{Serratia plymuthica} (0.9) \\
&\texit{Myroidaceae}&MV8022	&598	&99\%	&\texit{Myroides odoratimimus}	&\textit{Myroides} spp./ \texit{Chryseobacterium indologenes} (62.5)
\textit{Chryseobacterium indologenes} (34.5)\\
\hline
\end{tabular}
\label{table:8}
\end{table} 
but I am obtaining these errors:

Code: Select all

!Extra alignment tab has been changed to \cr.<recently read> \endtemplate
!Undefined control sequence...
What am I doing wrong??? Please help thanks

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

making a table obtaining error messages HELP

Post by josephwright »

Two separate issues here. First

Code: Select all

!Extra alignment tab has been changed to \cr.<recently read> \endtemplate

means you have too many &: LaTeX does actually point to the problem, in this case the first error I get is

Code: Select all

! Extra alignment tab has been changed to \cr.
<recently read> \endtemplate 
                             
l.8 ...%)        &Closest relative (BLASTN)      &
                                                   API-20E (\% identity) \\
You therefore either need more columns (more l in the template), or to split up the lines.

Code: Select all

!Undefined control sequence...
looks like a typo, as you have \texit rather than \textit.
Joseph Wright
mavelezq
Posts: 5
Joined: Thu Aug 23, 2012 10:11 pm

Re: making a table obtaining error messages HELP

Post by mavelezq »

Thank you so much. I guess :? I am tired of looking to this monitor. Appreciate your help
Post Reply