Skip to main content
2 of 2
Commonmark migration

For this specific case, David Carlisle's answer works great. But, in general if you want table to span the entire \linewidth, I find using the X column from tabularx to be very useful:

enter image description here

Notes:

  • The showframe package was used just to show the page margins. It is not needed in your actual use case. was just to show the page margins.

  • Here I have used the X column to be the blank column between the two groups of text. Hence the double && separating the two groups.

  • The @{} at the left and right of the table remove the inter column padding that would normally be applied.

Code:

\documentclass{article} \usepackage{tabularx} \usepackage{showframe} \begin{document} \noindent \begin{tabularx}{\linewidth}{@{}l l X l l@{}} Name: & XX && Email: & [email protected]\\ Work: & YYY && Phone: & +1 666222\\ \end{tabularx}% \end{document} 
Peter Grill
  • 228.8k
  • 51
  • 602
  • 962