Graphics, Figures & TablesDifficult table.

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
kubas
Posts: 1
Joined: Tue Jul 27, 2010 7:14 pm

Difficult table.

Post by kubas »

Hello,
can anybody help me to create table as in photo ?
clipboard01us.jpg
clipboard01us.jpg (23.95 KiB) Viewed 2351 times
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).

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10330
Joined: Mon Mar 10, 2008 9:44 pm

Re: Difficult table.

Post by Stefan Kottwitz »

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
LaTeX.org admin
yago
Posts: 29
Joined: Sat Dec 13, 2008 6:40 pm

Re: Difficult table.

Post by yago »

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}
Post Reply