[Tex/LaTex] Two different height column — multirow table

multicolumnmultirow

I'm dealing with tables, I want to obtain a table like this:

Table Model

And I wrote this very basic code:

\documentclass[a4paper,12pt]{article}

\usepackage{array,multirow,graphicx}
\usepackage[table,xcdraw]{xcolor}

\begin{document}

\begin{table}[h]
\begin{tabular}{l|l|}
\hline
\multicolumn{1}{|l|}{\cellcolor[HTML]{C0C0C0}\rotatebox[origin=c]{90}{ Lorem Ipsum }} &                    \\ \cline{1-1}
                                                                                      & \multirow{-9}{*}{ Dolor Sit Amet} \\ \cline{2-2}

\end{tabular}
\end{table}

\end{document}

Which gives me an unsatisfactory result.

Any ideas?

Thank you very much for your patience,

Best Answer

\documentclass[a4paper,12pt]{article}

\usepackage{array,multirow,graphicx}
\usepackage[table,xcdraw]{xcolor}

\begin{document}

\begin{table}[h]
\setlength{\arrayrulewidth}{2pt}
\begin{tabular}{l!{\vrule width 2pt}l|}
\hline
\multicolumn{1}{|l!{\vrule width 0.4pt}}{\cellcolor[HTML]{C0C0C0}\rotatebox[origin=c]{90}{%
\parbox{2cm}{\centering Lorem Ipsum }}} & \\ \cline{1-1}
                                            & \\
                                            & \\
                                            & \\
                                            & \\
                                            &
\multirow{-6}{*}{Dolor Sit Amet} \\[-2pt]\cline{2-2}

\end{tabular}
\end{table}

\end{document}

enter image description here

For a change, with tcolorbox

\documentclass[a4paper,12pt]{article}
\usepackage{kantlipsum}
\usepackage[most]{tcolorbox}
\definecolor{mycolor}{HTML}{C0C0C0}

\newtcolorbox{mytab}[1][]{
    colback=white,
    left=6pt,
    top=6pt,
    arc=6pt,
    outer arc=0pt,
    enlarge left by=\dimexpr1cm+6pt\relax,
    width=\dimexpr\textwidth-1cm-6pt\relax,
    nobeforeafter,
    frame hidden,
    enhanced jigsaw,
    overlay={
      \node[draw,fill=mycolor,anchor=south east,inner sep=4pt,align=center,
        ,minimum height=1cm,text width=1in,rotate=90] (a)
         at (frame.north west) {#1};
        \draw[line width=2pt] (a.south west) -| (a.north east) -- (frame.north east) |- ([xshift=-0.5\pgflinewidth]frame.south west) -- ([xshift=-0.5\pgflinewidth]a.south west) -- cycle;
    },
    before=\noindent%
  }

\begin{document}
\begin{mytab}[Lorem\\Ipsum]
\kant[1]
\end{mytab}

\end{document}

enter image description here

Related Question