![如何删除表格单元格边框中的多余垂直空间](https://linux22.com/image/446306/%E5%A6%82%E4%BD%95%E5%88%A0%E9%99%A4%E8%A1%A8%E6%A0%BC%E5%8D%95%E5%85%83%E6%A0%BC%E8%BE%B9%E6%A1%86%E4%B8%AD%E7%9A%84%E5%A4%9A%E4%BD%99%E5%9E%82%E7%9B%B4%E7%A9%BA%E9%97%B4.png)
梅威瑟:
\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}
输出:
如何去除多余的垂直空间?
答案1
使用\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}