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} &{gagagasgsdv@xxxx.com}
\end{tabular}
  • You should read, as a start, lshort. Specifically, section 2.11.6 Tabular (p 46). – Werner Apr 5 '14 at 1:19
1

Like this?

\documentclass{article}
\usepackage{array}
\begin{document}
  \begin{tabular}{p{2cm}!{:}p{3in}}
{Mail} & 1234 XXXX st,\\
{Email} &{gagagasgsdv@xxxx.com}
\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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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