GeneralTable issue, please advise?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
fxlatex
Posts: 6
Joined: Wed Feb 13, 2008 1:34 am

Table issue, please advise?

Post by fxlatex »

OK ... I have constructed a table for contact information. I get many errors when I run “latex zzz.tex” :

Code: Select all

l.112 ...n{tabular}{|b{2cm}|b{2cm}|b{5cm}|b{2cm}|}
                                                  
? 

! LaTeX Error: Illegal character in array arg.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.112 ...n{tabular}{|b{2cm}|b{2cm}|b{5cm}|b{2cm}|}
                                                  
? 

! LaTeX Error: Illegal character in array arg.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.112 ...n{tabular}{|b{2cm}|b{2cm}|b{5cm}|b{2cm}|}
                                                  
? 

! LaTeX Error: Illegal character in array arg.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              

Code: Select all

\begin{center}
\small\addtolength{\tabcolsep}{-5pt}
\begin{tabular}{|b{2cm}|b{2cm}|b{5cm}|b{2cm}|}
\hline
\multicolumn{4}{|c|}{\sl ****************} \\
\hline
{\bf Members Name} & {\bf Address} & {\bf E-Mail} & {\bf Phone } \\
\hline
Name & Address & e-mail & phone \\
\end{tabular}
\end{center}

\newpage
In total it is an 8 page document; and page six is blank! I can not figure what I have done wrong, I can not fix this.

I really have very little experience – w/latex - and am lucky the table looks good.

Any ideas on how I can stop it from printing the blank page?

Any feed back is much appreciated.

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

Re: Table issue, please advise?

Post by Juanjo »

LaTeX complains about the b descriptor you write in the argument of tabular. It is not a standard descriptor, but it is defined in the array package. Load it by adding \usepackage{array} to the preamble. Instead, you may simply replace b by p. Check if this suits your needs.
By the way, the comands \sl and \bf are obsolete. They should be replaced by \slshape and \bfseries.
fxlatex
Posts: 6
Joined: Wed Feb 13, 2008 1:34 am

Table issue, please advise?

Post by fxlatex »

Thanks for the feed back, I did the above mentioned fix replaced “b” with “p” and added \usepackage{array} ... this helped with the errors.

However, now I have two blank pages - in my document - and these errors!

Any thoughts?

Code: Select all

Underfull \hbox (badness 5711) in paragraph at lines 224--224
[]|\OT1/ppl/m/n/9 home 859-9921 cell

Overfull \hbox (52.39455pt too wide) in paragraph at lines 193--237
 [] 
[7]
Overfull \vbox (13.16982pt too high) has occurred while \output is active
[8]
Underfull \hbox (badness 10000) in paragraph at lines 252--252
[]|\OT1/ppl/m/n/10 cell (863)602-9639

Underfull \hbox (badness 10000) in paragraph at lines 252--252
\OT1/ppl/m/n/10 home: 407-650-

Underfull \hbox (badness 10000) in paragraph at lines 255--255
[]|\OT1/ppl/m/n/10 686-1445 & 687-

Underfull \hbox (badness 10000) in paragraph at lines 258--258
[]|\OT1/ppl/m/n/10 Wortham, James &

Overfull \hbox (92.39455pt too wide) in paragraph at lines 243--264
User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

Table issue, please advise?

Post by Juanjo »

An "underfull \hbox" warning express that LaTeX cannot properly fill a text line, so it has to supply too much blank space. Words in such a line appear excessively apart ones from others. Contrarily, an "overfull \hbox" means that LaTeX has not enough room in the line to put all the text it should. Hence, text extends on the right margin.

Analogously, "underfull/overfull \vbox" warnings refer to problems with vertical space: there are too few or too many things (paragraphs, boxes...) to vertically fill a given space (usuallly a page or a minipage).

These warnings strongly depend on cour code. To get more feedback, you should post a mimimal working example.
Post Reply