4

MWE:

\documentclass[11pt]{article}
\usepackage[a4paper]{geometry}
\geometry{tmargin=2cm,bmargin=2cm,lmargin=2cm,rmargin=2cm}
\usepackage[english]{babel}
\usepackage{tabularx, makecell}
\setlength{\parindent}{0pt}
\begin{document}
\begin{tabularx}{\textwidth}[t]{ l  X }
  \hline
  \makecell[l]{Supplier\\(Executor):} & text text text text text text text text text text text text text text text text text text text text text text text text text text\\
  \hline
\end{tabularx}
\end{document}

Output:

enter image description here

How to get rid of the extra vertical space?

1
  • Use \makecell[tl]{...} Feb 19 at 14:14

1 Answer 1

5

Use \makecell[tl]{...}.

\documentclass[11pt]{article}
\usepackage[a4paper]{geometry}
\geometry{tmargin=2cm,bmargin=2cm,lmargin=2cm,rmargin=2cm}
\usepackage[english]{babel}
\usepackage{tabularx, makecell}
\setlength{\parindent}{0pt}
\begin{document}
\begin{tabularx}{\textwidth}[t]{ l  X }
  \hline
  \makecell[tl]{Supplier\\(Executor):} & text text text text text text text text text text text text text text text text text text text text text text text text text text\\
  \hline
\end{tabularx}
\end{document}

Output of the above code

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.