Graphics, Figures & TablesSideways Text in Table centered over multiple Rows

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
vikki
Posts: 2
Joined: Sun Dec 04, 2011 2:28 am

Sideways Text in Table centered over multiple Rows

Post by vikki »

I am having some problems with a table (syntax posted below). I would like to have the cells which contain "Me" and "My Partner" centered vertically in their cells, but I can't seem to find any code which works with the sideways setting.

Can anyone help?

Thanks in advance, Vikki

Code: Select all

\begin{center}
\begin{tabulary}{0.95\textwidth}{|c|L|c|c|c|c|}
\hline
\multicolumn{2}{|c|}{} & Option A & Option B & Option C & Don’t Know\\
\hline
\multirow{2}{*}{\begin{sideways}Me\end{sideways}} & Which of the meal options you would prefer most? &  &  &  & \\
\cline{2-6}
 & Which of the meal options you would prefer least? &  &  &  & \\
\hline
\multicolumn{6}{|>{\columncolor[gray]{.9}}c|}{} \\ 
\hline
\multirow{2}{*}{\begin{sideways}My Partner\end{sideways}} & Which of the meal options do you think your partner would prefer most? &  &  &  & \\
\cline{2-6}
 & Which of the meal options do you think your partner would prefer least? &  &  &  & \\
\hline
\end{tabulary}
\end{center}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Post Reply