0

The table I want to recreate

I'd like to recreate this table in LaTeX. However, I can not get the text along the y-axis. Is it possible?

2
5

enter image description here

this "table" is drawn by tikz:

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{positioning, shadows}

\begin{document}
    \begin{tikzpicture}[
node distance = 0pt,
   box/.style = {draw=brown, fill=white, 
                 minimum size=42mm,
                 text width =\pgfkeysvalueof{/pgf/minimum width} - 2*\pgfkeysvalueof{/pgf/inner xsep},
                 inner sep=7mm, align=left,
                 drop shadow={fill=black, shadow xshift=2mm, shadow yshift=-2mm}
                 },
   lbl/.style = {font=\large\bfseries}
                        ]
\node (n11) [box]               {\bfseries      xxxxx\\ xxxx\\
                                 \normalfont    (svak + sterk)};
\node (n12) [box,right=of n11]  {\bfseries      xxxxx\\ xxxx\\
                                 \normalfont    (svak+sterk)};
\node (n21) [box,below=of n11]  {\bfseries      xxxxx\\ xxxx\\
                                 \normalfont    (svak+sterk)};
\node (n22) [box,right=of n21]  {\bfseries      xxxxx\\ xxxx\\
                                 \normalfont    (svak + sterk)};
  %
\node[lbl,left=3mm of n11.south west,anchor=south,rotate=90] {Selvhevdelse};
\node[lbl, below=3mm of n22.south west] {Samarbeidsorientering};  
\end{tikzpicture}
\end{document}
0
4

Here is a simple code with fancybox and rotating. I defined a \mycell command which makes (approximately) square cells in p{...} type columns:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{newtxtext, newtxmath}
\usepackage{makecell}
\usepackage{fancybox, rotating}
\newlength{\cellwd}
\setlength\cellwd{30mm}
\newcommand{\mycell}[1]{\raisebox{0pt}[0.53\cellwd][0.47\cellwd]{\makecell[l]{#1}}}

\begin{document}

\begin{table}[!ht]
    \centering\bfseries\fboxsep = 0pt
    \begin{tabular}{c@{\hskip 0.75em}>{\centering\arraybackslash}m{7cm}}
    \rotatebox[origin =bc]{90}{Selhelvdelse}%
     & \shadowbox{\begin{tabular}{>{\centering\arraybackslash}m{\cellwd}|>{\centering\arraybackslash}m{\cellwd}}
        \mycell{Fientlig\\holdning\\\mdseries(svak + sterk)} & \mycell{Samarbeidende\\stil\\\mdseries(sverk + sterk)} \tabularnewline
        \hline
         \mycell{Unnvikendeg\\\mdseries(svak + svak)} & \mycell{Forsvarsholdning\\\mdseries(sterk + svak)}
    \end{tabular}} \\
    & Samarbeidsorientering
    \end{tabular}
\end{table}

\end{document}

enter image description here

0

Not the answer you're looking for? Browse other questions tagged or ask your own question.