Q:

Rotate text next to right brace in multirow environment

The following LaTeX creates a simple table with some rows grouped with a right curly brace:
\usepackage{multirow}
\usepackage{bigdelim}
...
\begin{tabular}{l|l|l|r}
\hline
$a$ &  $b$ & x&\\
\hline
$cccccc$ & $dddddd$ & x& 
\multirow{3}{*}{}
\rdelim\}{3}{1cm}[long text here]\\
$eeeeee$ & $fffffffff$ &x&\\
$gggggg$ & $hhhhhhhhh$ &x&\\
\end{tabular}

How do I rotate long text here 90 degrees so that it renders vertically>

A:

Try \rotatebox from the graphicx package, as suggested in most of the related questions:
\documentclass{article}
\usepackage{multirow}
\usepackage{bigdelim}
\usepackage{graphicx}

\begin{document}
\begin{tabular}{l|l|l|r}
  \hline
  $a$ & $b$ & x&\\
  \hline
  $cccccc$ & $dddddd$ & x& \multirow{3}{*}{}
  \rdelim\}{3}{1cm}[{\rotatebox[origin=c]{90}{\ long text here\ }}]\\[4mm]
  $eeeeee$ & $fffffffff$ &x&\\[4mm]
  $gggggg$ & $hhhhhhhhh$ &x&\\[4mm]
\end{tabular}
\end{document}

