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.

So basically what I am trying to achieve is something like the following...

Mobile      :  +12 111 111 111      Email     :  something@something.com
Phone       :  +12 111 111          Website   :  http://www.something.com
Nationality :  Somenationality      Birthdate :  xx/xx/xxxx

keeping the blocks of text together for every line. I don't really know how to tackle that problem. The trick is to keep the : together in a row, keep the same spacing between Mobile Information and the Email title for example and keep that space for the three lines. What would be the right solution to get this nicely together...

so far I solved it like this but it doesn't really work that great

    {\LARGE \textbf{My Name}}\\
    \textnormal{xx, rue du XX \ \ X-XXXX XXXXXX} \\[3mm]
    \par\noindent\parbox{1.3cm}{Mobile}\parbox{0.2cm}{:} \parbox{3.5cm}{+122 111 111 111} \hspace{0.01cm} \parbox{1.3cm}{Email}   \parbox{0.2cm}{:} \parbox{3.5cm}{something@something.com}\\
    \par\noindent\parbox{1.3cm}{Phone} \parbox{0.2cm}{:} \parbox{3.5cm}{+122 111 111}     \hspace{0.01cm} \parbox{1.3cm}{Website} \parbox{0.2cm}{:} \parbox{3.5cm}{http://www.something.com}\\
    \par\noindent\parbox{1.3cm}{Nat.}  \parbox{0.2cm}{:} \parbox{3.5cm}{Somenationality}    \hspace{0.01cm} \parbox{1.3cm}{Birthdate}\parbox{0.2cm}{:} \parbox{3.5cm}{xx.xx.xxxx}\\
share|improve this question
Have you considered just using a table? –  Peter Grill Nov 12 '11 at 18:05
Yes kinda, I tried multicols but couldn't really get it to work like i wanted to do you have any examples maybe? Thanks –  latz Nov 12 '11 at 18:07
For formatting purposes, perhaps you might be interested in using the url package for typesetting websites or emails. –  Werner Nov 12 '11 at 19:33

2 Answers 2

up vote 11 down vote accepted

I would recommend using a tabular environment as below. The @{} removes the inter column spacing.

enter image description here

Mobile     &:&+12 111 111 111 &Email    &:&something@something.com\\
Phone      &:&+12 111 111     &Website  &:&http://www.something.com\\
Nationality&:&Somenationality &Birthdate&:&xx/xx/xxxx

As @cmhughes mentions, there is also a tabularx environment that will help with column stretching, but that might be overkill for this particular problem.

Alternatively, you could use something similar to what you were doing but use \makebox instead. Here I define a \LeftBox for the text on the left, and a separate \RightBox for text on the right, each of which takes two parameters. You could of course define just one command that takes four parameters, but this should get you started:

    {\LARGE \textbf{My Name}}\\
    \textnormal{xx, rue du XX \ \ X-XXXX XXXXXX} \\[3mm]
        \LeftBox{Mobile}{+122 111 111 111}  \RightBox{Email}{something@something.com}\\
        \LeftBox{Phone}{+122 111 111}       \RightBox{Website}{http://www.something.com}\\
        \LeftBox{Nat.}{Somenationality}     \RightBox{Birthdate}{xx.xx.xxxx}\\
share|improve this answer
Or you could use @{:} instead of a whole column for the :. It might also be worth mentioning the tabularx environment. I would post the answer, but it would be too similar. It's probably worth putting in a detailed explanation as this is a beginner's problem –  cmhughes Nov 12 '11 at 18:14
Thanks for help guys really appreciated! –  latz Nov 12 '11 at 21:15

You can also use a tabbing environment:



\=Nationality\=:\quad\=+12 111 111 111\hspace{4em}\=Birthdate\=:\quad\=something@something.com \kill % set the tabbings
\>Mobile          \>:  \>+12 111 111 111   \> Email         \>:  \> something@something.com \\ 
\>Phone            \>:  \>+12 111 111            \>Website   \>:  \>http://www.something.com \\
\>Nationality \>:  \>Somenationality \>Birthdate \>:  \>xx/xx/xxxx


enter image description here

A brief description of the basic commands commands used:

  • \= sets a tab stop at the current position.
  • \> advances to the next tab stop.
  • \kill sets tab stops without producing text. Works just like \\ except that it throws away the current line instead of producing output for it. The effect of any \= commands in that line remain in effect.
share|improve this answer
Thanks a lot for your answer :) –  latz Nov 12 '11 at 21:15

Your Answer


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.