1

How can I arrange text in tabular environment. For example, the Main and Email to start at left align and the contents in right column to left align ?

\begin{tabular}{c|l}
{Mail} & 1234 XXXX st,\\
{Email} &{[email protected]}
\end{tabular}
1
  • You should read, as a start, lshort. Specifically, section 2.11.6 Tabular (p 46).
    – Werner
    Commented Apr 5, 2014 at 1:19

1 Answer 1

1

Like this?

\documentclass{article}
\usepackage{array}
\begin{document}
  \begin{tabular}{p{2cm}!{:}p{3in}}
{Mail} & 1234 XXXX st,\\
{Email} &{[email protected]}
\end{tabular}
\end{document}

enter image description here

Adjust the widths 2cm and 3in suitably. I have also removed the vertical line and added :, instead. With array package !{<content>} adds some content in between columns without destroying the tabcolsep.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .