0

I would like to align the text in the first column of a table with the text outside the table. Here is a MWE:

\begin{document}

\begin{table}[!htbp]
\begin{tabular}{lll}
{\bf Title} & Executive Manager &   \\
 & Email: xxx  &   Phone: xxx\\
\end{tabular}
\end{table}

\noindent{\bf Description}

Here goes a paragraph...

\end{document}

I would like to align "Title" and "Description", which is not what happens now. Note that I would like to keep the outside text outside (i.e., not moving them into the table). Thanks in advance!

  • use {@{}lll@{} also do not use \bf in latex documents – David Carlisle Jan 10 '18 at 16:47
  • Beautiful! And thanks!! Two follow up questions: i) what is @{} doing? and ii) are you suggesting using \textbf? – Daryl Jan 10 '18 at 16:52
  • @{hello} would add hello on every line, in general it replaces the default \tabcolsep padding space but here you want to replace with nothing so @{}. For the table heading yes, \bfseries or \textbf . Presumably Description should be \section*{Description} or some such. As you have not said which document class you are using \bf might not even be defined as unlike \bfseries the latex format does not define \bf – David Carlisle Jan 10 '18 at 16:56
0

A column specification of

{@{}lll@{}}

would remove the \tabcolsep padding space on either side of the table.

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.