1

I am trying to make my table fit the text. I tried \renewcommand{\tabcolsep}{0pt}, but it makes no difference. Your help is appreciated.

The following code:

    \begin{tabular}{lcl}
    \textsc{Date of Birth:} 30 May 1993 & \textsc{Phone:} +31 649 52**** 
    & \textsc{email:}  \href{mailto:K.***@student.***8.nl}{K.***@student.***8.nl} \\
 \end{tabular}
Sebastiano
  • 54,118

1 Answers1

1

You can override the spacing by the @ operator (find more on e.g. https://en.wikibooks.org/wiki/LaTeX/Tables). So by {l@{}c@{}l} you completely remove the inter column spaces. Probably you want some spaces, and then you can add it as for example {l@{\ }c@{\ }l}. In the nelow example I have also added one version where only one column is used. I do not really see the reason for three (as it is given in this example).

\documentclass{article}
\usepackage{hyperref}
\begin{document}

\begin{tabular}{l@{}c@{}l}
  \textsc{Date of Birth:} 30 May 1993 
  & \textsc{Phone:} +31 649 52**** 
  & \textsc{email:}  \href{mailto:K.***@student.***8.nl}{K.***@student.***8.nl} \\
\end{tabular}

\begin{tabular}{l@{\ }c@{\ }l}
  \textsc{Date of Birth:} 30 May 1993 
  & \textsc{Phone:} +31 649 52**** 
  & \textsc{email:}  \href{mailto:K.***@student.***8.nl}{K.***@student.***8.nl} \\
\end{tabular}

\begin{tabular}{c}
  \textsc{Date of Birth:} 30 May 1993
  \textsc{Phone:} +31 649 52**** 
  \textsc{email:}  \href{mailto:K.***@student.***8.nl}{K.***@student.***8.nl} \\
\end{tabular}

\end{document}

enter image description here

StefanH
  • 13,823