Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am using the tabular environment.

\begin{table*}[ht]
\renewcommand{\arraystretch}{1.3}
{\small
\begin{center}
\begin{tabular}{|l||>{\centering\arraybackslash}m{1.6cm}|
  >{\centering\arraybackslash}m{1.6cm}|
  >{\centering\arraybackslash}m{1.6cm}|}
.
.

I would like to reduce the width of the first column in table. To do so if I use the below:

\begin{tabular}{|l{1.8cm}||
  >{\centering\arraybackslash}m{1.6cm}|
  >{\centering\arraybackslash}m{1.6cm}|
  >{\centering\arraybackslash}m{1.6cm}|}

I get an error

Package array Error:  Illegal pream-token (1.8cm): `c' used.

Am I missing something here? Is there a way to reduce the first column width in the above example?

share|improve this question
add comment

migrated from stackoverflow.com Aug 20 '12 at 2:38

This question came from our site for professional and enthusiast programmers.

1 Answer

up vote 4 down vote accepted

The plain old left-aligned column l doesn't accept a width argument. If you want to specify its width, change it to m{1.8cm} as you did with your other columns. Of course, that will also word-wrap the text in that column if necessary.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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