I want to create a table for a publication.
This is what I have:
\begin{table}[!h]
\small
\renewcommand{\arraystretch}{1.7}
\begin{center}
\begin{tabular}{|p{0.5cm} | p{2.5cm} | p{3.2cm} | p{3.2cm} | p{1cm} | p{1cm} |}
\hline
\textbf{nº} & \textbf{CID Ligando} & \textbf{Nombre Ligando} & \textbf{Afinidad (Kcal/mol)²} & \textbf{RMSD l.b.} & \textbf{RMSD u.b.} \\ \hline
1 & 234523 & LoreIpsum & 234 & 0 & 0 \\
2 & 2345 & LoreIpsum & 2365 & 0 & 0 \\
3 & 3453 & LoreIpsum & 45634 & 0 & 0 \\
4 & 83452 & LoreIpsum & 2456 & 0 & 0 \\
5 & 210 & LoreIpsum & 245 & 0 & 0 \\
6 & 3417 & LoreIpsum & 45634 & 0 & 0 \\
7 & 4345 & LoreIpsum & 3456 & 0 & 0 \\
8 & 4334 & LoreIpsum & 3456 & 0 & 0 \\
\hline
\end{tabular}
\newline\newline
\caption{Valores de afinidad obtenidos para los ocho fármacos en \textit{Autodock Vina}}
\label{tab:PECs}
\end{center}
\end{table}
But I would like something like:
Is there a way of getting this? The color and the lines specially...
Btw, I use TexStudio and MikTex.
\documentclass[12pt]{article}
\usepackage[lmargin=2cm, rmargin=2cm, top=1.5cm, bottom=2cm]{geometry}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[british,UKenglish,USenglish,english,american]{babel}




booktabs-package)? The colored background? The caption? – Οὖτις Jul 10 '21 at 14:44|. See https://tex.stackexchange.com/questions/112343/beautiful-table-samples – hpekristiansen Jul 10 '21 at 14:44booktabsdocumentation for general tips about table design, and particularly for the horizontal rules created with\toprule,\midruleand\bottomrule. Also take a look atsiunitx'sStype column for numerical columns. Take a look at thearraypackage to inject code for formatting of a column (e.g., to make the column print bold), last take a look at thecollcellpackage to assign the effects of a macro to a complete column (e.g., for your molecular formulae). – Skillmon Jul 10 '21 at 14:44centerenvironment inside oftableresults in extra vertical white space. You may want to replace thecenterenvironment with the\centeringcommand. – leandriis Jul 10 '21 at 15:01ptype columns in this particular table? If all entries are short enough to fit without needing a linebreak, why not use regularltype columns instead of adding unnecessary extra white space? – leandriis Jul 10 '21 at 15:03