Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm trying to create a table like this:

image

For it, I wrote the following code:

\begin{table}[h!]
    \begin{tabular}{|c|c|c|}
        \hline
        \multicolumn{2}{|c|}{one} 
        & \multirow{2}{*}{\rotatebox{90}{one and a half~}} \\ \cline{1-2}
        two & three & \\
        \hline
    \end{tabular}
\end{table}

However, the output is not quite as expected:

screenshot

The best workaround for this I found so far was this answer: http://tex.stackexchange.com/a/74550/22718. But it seems a bit excessive, especially considering I need this layout in multiple places and for every column I would have to write something like \setbox0\hbox{\tabular{@{}l}Metszéspontok\\ Száma\endtabular}, if I understand correctly. Also, to my mind, it's pretty simple formatting, I achieved this in LO Calc with a few mouse clicks, so it should be not that difficult in LaTeX, right?

I would really appreciate any suggestions!

share|improve this question

1 Answer 1

up vote 2 down vote accepted

enter image description here

\documentclass{article}

\usepackage{graphicx}
\begin{document}

\begin{table}[htp!]
    \begin{tabular}{|c|c|c|}
        \hline
        \multicolumn{2}{|c|}{one} 
        & \\ \cline{1-2}
        two & three & 
  \rotatebox{90}{one and a half~\hspace{-\normalbaselineskip}}\\
        \hline
    \end{tabular}
\end{table}

\end{document}
share|improve this answer
    
Thank you very much! It did the thing just right! –  Kona-chan Dec 5 '12 at 19:46

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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