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 want to vertically center "Apple iPad".

Does someone here knows how to do that?

enter image description here

My code looks like this:

\begin{table}[H]
  \noindent 
    \centering{}
      \begin{tabular}{cc}
      \hline
            \noalign{\vskip\doublerulesep}
      Modellname & Display-Auflösung \\ ~ & (in Pixel)
            \tabularnewline[\doublerulesep]
      \hline
      Samsung Galaxy SIII & 1280x720
            \tabularnewline[\doublerulesep]         

      Samsung Galaxy SII & 800x480
            \tabularnewline[\doublerulesep]

      Apple iPad & 1024x768 (Standard)
      \\ ~ & 2048x1536 (Retina)
            \tabularnewline[\doublerulesep]         

      Samsung Galaxy Tab 2 (7.0) & 1280x720
            \tabularnewline[\doublerulesep]         

      Samsung Galaxy Y & 320x240
            \tabularnewline[\doublerulesep]         

      Sony Ericsson Xperia Arc HD & 1280x720
            \tabularnewline[\doublerulesep]

      Amazon Kindle Fire & 1024x600
            \tabularnewline[\doublerulesep]

      Google Nexus 7 & 1280x800
            \tabularnewline[\doublerulesep]         

      SamsungGalaxy Tab 2 (10.1) & 1280x720
            \tabularnewline[\doublerulesep]

      Motorola Droid Razr 4G & 960x540
            \tabularnewline[\doublerulesep]                     
      \hline
      \end{tabular}
\end{table}
share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

One way would be to use the multirow package which allows you to create cells spanning multiple rows:

enter image description here

Notes:

  • I also applied \multirow to the header of the first column.
  • I also replaced the x with \times.

Code:

\documentclass{article}
\usepackage{multirow}

\begin{document}
\begin{table}[H]
  \noindent 
    \centering{}
      \begin{tabular}{cc}
      \hline
            \noalign{\vskip\doublerulesep}
      \multirow{2}{*}{Modellname} & Display-Auflösung \\ ~ & (in Pixel)
            \tabularnewline[\doublerulesep]
      \hline
      Samsung Galaxy SIII & $1280 \times 720$
            \tabularnewline[\doublerulesep]         

      Samsung Galaxy SII & $800 \times 480$
            \tabularnewline[\doublerulesep]

      \multirow{2}{*}{Apple iPad} & $1024 \times 768$ (Standard)
      \\ ~ & $2048 \times 1536$ (Retina)
            \tabularnewline[\doublerulesep]         

      Samsung Galaxy Tab 2 (7.0) & $1280 \times 720$
            \tabularnewline[\doublerulesep]         

      Samsung Galaxy Y & $320 \times 240$
            \tabularnewline[\doublerulesep]         

      Sony Ericsson Xperia Arc HD & $1280 \times 720$
            \tabularnewline[\doublerulesep]

      Amazon Kindle Fire & $1024 \times 600$
            \tabularnewline[\doublerulesep]

      Google Nexus 7 & $1280 \times 800$
            \tabularnewline[\doublerulesep]         

      SamsungGalaxy Tab 2 (10.1) & $1280 \times 720$
            \tabularnewline[\doublerulesep]

      Motorola Droid Razr 4G & $960 \times 540$
            \tabularnewline[\doublerulesep]                     
      \hline
      \end{tabular}
\end{table}
\end{document}
share|improve this answer
    
AWESOME! Thank you very much, I really like this community. :] –  Benny Neugebauer Feb 7 '13 at 21:19
    
Your welcome. I have updated the solution to replace the x with \times. –  Peter Grill Feb 7 '13 at 21:30
    
Thank you so much!! –  Benny Neugebauer Feb 8 '13 at 11:33
add comment

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.