I need your help.
I want to get a heading text center aligned, but the rest of the table, left aligned only.
I tried with some advice in other post: \multicolumn {number of columns}{type of align}{heading} but I don't get it.
I want the same result of my solution:
\documentclass[10pt,a4paper]{article}
\title{\textbf{DOC TITLE}}
\usepackage[spanish]{babel}
\usepackage[utf8]{inputenc}
\usepackage{pdflscape}
\usepackage{color, colortbl}
\definecolor{Gray}{gray}{0.9}
\usepackage{enumitem}
\usepackage{anysize}
\marginsize{3cm}{3cm}{2.5cm}{2.5cm}
\usepackage{xcolor}
\usepackage{caption}
\captionsetup[table]{skip=10pt}
\usepackage{threeparttable}
\usepackage{array}
\usepackage{fancyhdr}
\pagestyle{fancy}
\lhead{}
\chead{}
\rhead{\footnotesize{TEXT}}}
\lfoot{}
\cfoot{}
\rfoot{\thepage}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
\begin{document}
\begin{table} [h]
\caption{Title}
\centering
\begin{tabular}{|>{\centering\arraybackslash}m{23}|>{\centering\arraybackslash}m{60}|}
\hline\rowcolor{Gray}
\textbf{text} & \textbf{text}\\ [1ex]
\hline
\begin{flushleft} Text \end{flushleft}\\
\hline
\begin{flushleft} Text \end{flushleft}\\
\hline
text & text
\hline
text & text
\hline
\end{tabular}
\end{table}
\end{document}
I want a table like this, it has errors:
Please help me!



mspecification, missing \ before some\hlines ...) You didn't provided a MWE, since the preamble is important (apparently packagescolorandcolortblare required). If your problem is that you don't know how to make your example compile, then you should at least provide a mockup of the desired result. – JLDiaz Dec 19 '12 at 09:15[h]as that makes it very likely that this table and all following ones to go to the end of the document. always include at leastpsomething like[htp]or not using the option at all would be better. – David Carlisle Dec 19 '12 at 09:29