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've tried with some solutions but I can't get it. I'd like to start to number at third row in this table. Also, I have a problem with \rowcolor Please, help me.

\documentclass[10pt, a4paper]{article}

\newcounter{myrow}

\usepackage{multirow}

\usepackage{color, colortbl}
\definecolor{Gray}{gray}{0.9}

\begin{document}

\begin{table}[h!]
\tiny
\begin{tabular}{|>{\stepcounter{myrow}\raggedright\arraybackslash\themyrow.~}m{30mm}|> {\raggedright\arraybackslash}m{5mm}|>{\raggedright\arraybackslash}m{5mm}|>{\raggedright\arraybackslash}m{5mm}|>{\raggedright\arraybackslash}m{5mm}|>{\raggedright\arraybackslash}m{5mm}|>{\raggedright\arraybackslash}m{5mm}|>{\raggedright\arraybackslash}m{5mm}|>{\raggedright\arraybackslash}m{5mm}|>{\raggedright\arraybackslash}m{5mm}|>{\raggedright\arraybackslash}m{5mm}|>{\raggedright\arraybackslash}m{5mm}|>{\raggedright\arraybackslash}m{5mm}|}
\hline
\rowcolor{Gray} \multirow{2}{*}{\parbox[c]{30mm}{\centering\bfseries Texx}} & \multicolumn{12}{c|}{\textbf{Ttttt} }\\\cline{2-13}
\rowcolor{Gray} & \multicolumn{1}{>{\centering\arraybackslash}m{5mm}|}{\textbf{1}} & \multicolumn{1}{>{\centering\arraybackslash}m{5mm}|}{\textbf{Sem 2}} & \multicolumn{1}{>{\centering\arraybackslash}m{5mm}|}{\textbf{Sem 3}} & \multicolumn{1}{>{\centering\arraybackslash}m{5mm}|}{\textbf{4}} & \multicolumn{1}{>{\centering\arraybackslash}m{5mm}|}{\textbf{5}} & \multicolumn{1}{>{\centering\arraybackslash}m{5mm}|}{\textbf{6}} & \multicolumn{1}{>{\centering\arraybackslash}m{5mm}|}{\textbf{7}} & \multicolumn{1}{>{\centering\arraybackslash}m{5mm}|}{\textbf{8}} & \multicolumn{1}{>{\centering\arraybackslash}m{5mm}|}{\textbf{9}} & \multicolumn{1}{>{\centering\arraybackslash}m{5mm}|}{\textbf{10}} & \multicolumn{1}{>{\centering\arraybackslash}m{5mm}|}{\textbf{11}} & \multicolumn{1}{>{\centering\arraybackslash}m{5mm}|}{\textbf{12}}\\
\hline
Text text text text text text text text text text text text text &&&&&&&&&&&&\\\hline
Text text text text text text text text text text text text text &&&&&&&&&&&&\\\hline
Text text text text text text text text text text text text text  &&&&&&&&&&&&\\\hline
Text text text text text text text text text text text text text &&&&&&&&&&&&\\\hline
\end{tabular}
\end{table}


\end{document}
share|improve this question

1 Answer 1

up vote 2 down vote accepted

enter image description here

\documentclass[10pt, a4paper]{article}

\newcounter{myrow}

\usepackage{multirow}

\usepackage{color, colortbl,hhline}
\definecolor{Gray}{gray}{0.9}


\begin{document}

\begin{table}[htbp]
\setlength\extrarowheight{2pt}
\tiny
\begin{tabular}{|>{\stepcounter{myrow}\raggedright\themyrow.~}m{30mm}|*{12}{> {\raggedright\arraybackslash}m{5mm}|}}
\hline
\rowcolor{Gray}\multicolumn{1}{|c|}{}
 & \multicolumn{12}{c|}{\textbf{Ttttt}}\\
\hhline{|>{\arrayrulecolor{Gray}}->{\arrayrulecolor{black}}|*{12}{-}}
\rowcolor{Gray}\multicolumn{1}{|c|}{\raisebox{1em}[0pt]{\textbf{Texx}}} 
& \centering \textbf{1} & \centering\textbf{Sem 2} & \centering\textbf{Sem 3} & \centering\textbf{4} &\centering\textbf{5} & \multicolumn{1}{c}{\textbf{6}} & \centering\textbf{7} & \centering\textbf{8} & \centering\textbf{9} & \centering\textbf{10} & 
\centering\textbf{11} & \centering\arraybackslash\textbf{12}\\
\hline
Text text text text text text text text text text text text text &&&&&&&&&&&&\\\hline
Text text text text text text text text text text text text text &&&&&&&&&&&&\\\hline
Text text text text text text text text text text text text text  &&&&&&&&&&&&\\\hline
Text text text text text text text text text text text text text &&&&&&&&&&&&\\\hline
\end{tabular}
\end{table}

\end{document}
share|improve this answer

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.