[Tex/LaTex] How to generate customized table in latex with beautiful style

sharelatextables

I have a table with function parameter list and its short description. However, I intend to create this table in latex with beautiful style. I looked into this community, but couldn't locate the desired template that I can use for my latex project. How can I achieve my desired table in latex ? Is there any way to make this happen? Any idea please?

I created this table in MS office; I want this table in latex:

enter image description here

How can I generate above table in latex? Thanks in advance 🙂

Edit :

Thanks for diabox package, I used its example latex code like this, but don't know how to add style on output table. Any idea ?

\begin{tabular}{|c|c|c|} \hline
\backslashbox[2cm]{num}{alpha}
& A & B \\\hline
1 & A1 & B1 \\\hline
2 & A2 & B2 \\\hline
\end{tabular}

Best Answer

Here's an improvement to your code. It still requires the X column type for the last column and makecell. I replaced slashbox with diagbox:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{ragged2e}
\usepackage[table, svgnames]{xcolor}
\usepackage{array, tabularx, multirow, booktabs, diagbox}
\usepackage{makecell}
\setcellgapes{2pt}

\begin{document}

\noindent\setlength\extrarowheight{2pt}\begin{tabularx}{\linewidth}{|c|c| >{\arraybackslash}X|} \hline
\diagbox[width = 3.5cm, height =1.2cm]{Param. list}{\raisebox{-2ex}{Name}}
& Parameter & \multicolumn{1}{c|}{Description} \\\hline
\hline
\multirow{3}*{Replicate Type} & Biological & Rain most of the day\\
\cline{2-3}
& Technical & Sunny with some clouds xxxx\\
\cline{2-3}
\hline
\multirow{5}*{Thresholds} & $T^{s}$ (Stringent) & Rain most of the day\\
\cline{2-3}
& $T^{w}$ (Weak)& Sunny with some clouds xxxx\\
\cline{2-3}
& $\gamma$ & A clear day with a lot of sunshine\\
\hline
\multirowcell{2}{Multiple Testing \\correction} & FDR & Some long text. Some long text. \\\hline
\multirowcell{3}{Multiple Overlap\\ ERs treatment} & Use most stringent peak & Rain most of the day\\
\cline{2-3}
& Use least stringent peak & Sunny with some clouds. some long text\\
\cline{2-3}
\hline
\end{tabularx}
\end{document} 

enter image description here