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.

Possible Duplicate:
Too long vertical lines in table

In the following table, the first vertical line is higher than the second. How do I correct this?

\documentclass[a4paper,12pt]{article}% 
\usepackage[brazil]{babel} % 
        \def\inputGnumericTable{}                                 %%
    \usepackage{ucs}                                              %%
    \usepackage[utf8x]{inputenc}                                  %%
    \usepackage{color}                                            %%
    \usepackage{array}                                            %%
    \usepackage{longtable}                                        %%
    \usepackage{calc}                                             %%
    \usepackage{multirow}                                         %%
    \usepackage{hhline}                                           %%
    \usepackage{ifthen}                                           %%

\begin{document} % no fim.

\begin{table}[h]\scriptsize
\centering
\caption{Table}
\begin{tabular}{>{\centering\arraybackslash}m{1,5cm} | >{\centering\arraybackslash}m{1,5cm} | >{\centering\arraybackslash}m{1,5cm}} \\
Column 1 & Column 2 & Column 3\\ \hline
\end{tabular}
\end{table}

\end{document}
share|improve this question

marked as duplicate by Roelof Spijker, lockstep, Marco Daniel, Werner, Joseph Wright Jan 25 '12 at 21:53

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Welcome to TeX.sx! A tip: If you indent lines by 4 spaces, they'll be marked as a code sample. You can also highlight the code and click the "code" button (with "{}" on it). –  Roelof Spijker Jan 25 '12 at 12:07

1 Answer 1

There is a spurious newline before the start of your table:

\documentclass{article}% 
\usepackage{array}                                            %%
\begin{document} % no fim.
\begin{tabular}{>{\centering\arraybackslash}m{1.5cm} | >{\centering\arraybackslash}m{1.5cm} | >{\centering\arraybackslash}m{1.5cm}} \\
Column 1 & Column 2 & Column 3\\ \hline
\end{tabular}
\end{document}

This reproduces the error. The following doesn't:

\documentclass{article}% 
\usepackage{array}                                            %%
\begin{document} % no fim.
\begin{tabular}{>{\centering\arraybackslash}m{1.5cm} | >{\centering\arraybackslash}m{1.5cm} | >{\centering\arraybackslash}m{1.5cm}} 
Column 1 & Column 2 & Column 3\\ \hline
\end{tabular}
\end{document}

Note the lack of \\ on line 4. (scroll right to see it.)

share|improve this answer

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