Hello,
can anybody help me to create table as in photo ?
i cannot get how should i make it i latex and i really need it
to my master thesis. Thanks in advance for ANY help !
Greetings,
Kubas
Edit by localghost: No external links! Attachments go onto the forum server (see Board Rules).
Graphics, Figures & Tables ⇒ Difficult table.
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Stefan Kottwitz
- Site Admin
- Posts: 10348
- Joined: Mon Mar 10, 2008 9:44 pm
Re: Difficult table.
Hi Kubas,
welcome to the board!
At least to speak for me, I won't just produce documents without any previous work by the questioner. Did you try anything? What's your current code of the table? Or did you not read how to produce a table until now?
Of course we would help you to improve your table, if you start with one. Since you're creating a master thesis I guess you're a competent writer understanding the table basics.
Stefan
welcome to the board!
At least to speak for me, I won't just produce documents without any previous work by the questioner. Did you try anything? What's your current code of the table? Or did you not read how to produce a table until now?
Of course we would help you to improve your table, if you start with one. Since you're creating a master thesis I guess you're a competent writer understanding the table basics.
Stefan
LaTeX.org admin
Re: Difficult table.
You can use this code for that:
\documentclass[spanish]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\makeatletter
\providecommand{\tabularnewline}{\\}
\makeatother
\usepackage{babel}
\usepackage{multirow}
\usepackage{array}
\usepackage{colortbl}
\usepackage{color}
\addto\shorthandsspanish{\spanishdeactivate{~<>}}
\begin{document}
\begin{center}
\renewcommand{\arraystretch}{1.5}
\framebox[6.4cm]{
\hspace*{-7pt}
\begin{tabular}{|c|c|c|c|c|}
\hline
\multirow{2}{1.5cm}{grammar} & \multicolumn{2}{c|}{Nevals} & \multicolumn{2}{c|}{Minevals}\tabularnewline
\cline{2-5}
& \cellcolor[gray]{0.7}{Gcs} & \cellcolor[gray]{0.7}{Sgcs} & \cellcolor[gray]{0.7}{Gcs} & \cellcolor[gray]{0.7}{Sgcs}\tabularnewline
\hline
L1 & 1 & 2 & 1 & 2\tabularnewline
\hline
L2 & 1 & 2 & 1 & 2\tabularnewline
\hline
\end{tabular}}
\end{center}
\end{document}
\documentclass[spanish]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\makeatletter
\providecommand{\tabularnewline}{\\}
\makeatother
\usepackage{babel}
\usepackage{multirow}
\usepackage{array}
\usepackage{colortbl}
\usepackage{color}
\addto\shorthandsspanish{\spanishdeactivate{~<>}}
\begin{document}
\begin{center}
\renewcommand{\arraystretch}{1.5}
\framebox[6.4cm]{
\hspace*{-7pt}
\begin{tabular}{|c|c|c|c|c|}
\hline
\multirow{2}{1.5cm}{grammar} & \multicolumn{2}{c|}{Nevals} & \multicolumn{2}{c|}{Minevals}\tabularnewline
\cline{2-5}
& \cellcolor[gray]{0.7}{Gcs} & \cellcolor[gray]{0.7}{Sgcs} & \cellcolor[gray]{0.7}{Gcs} & \cellcolor[gray]{0.7}{Sgcs}\tabularnewline
\hline
L1 & 1 & 2 & 1 & 2\tabularnewline
\hline
L2 & 1 & 2 & 1 & 2\tabularnewline
\hline
\end{tabular}}
\end{center}
\end{document}