![减少包装表格单元格文本中的行距](https://linux22.com/image/379090/%E5%87%8F%E5%B0%91%E5%8C%85%E8%A3%85%E8%A1%A8%E6%A0%BC%E5%8D%95%E5%85%83%E6%A0%BC%E6%96%87%E6%9C%AC%E4%B8%AD%E7%9A%84%E8%A1%8C%E8%B7%9D.png)
提前致歉,我是一名完全的 LaTeX 初学者,正在尝试修复现有系统的问题。我已将问题隔离到以下测试代码中:
\documentclass[12pt, a4paper]{article}
\usepackage[a4paper, margin=10mm, total={7in, 10in}]{geometry}
\begin{document}
\begin{tabular}{|p{56mm}|}
\hline\begingroup\fontsize{10pt}{12pt}\selectfont
This is an overlong line that should be wrapping\endgroup\\
\hline This is an overlong line that should be wrapping\\
\hline
\end{tabular}
\end{document}
我需要减少这些单元格中第一个单元格的行距,但我找不到这样做的方法。
欢迎任何建议。
答案1
这是您要找的布局吗?
\documentclass[12pt, a4paper]{article}
\usepackage[a4paper, margin=10mm, total={7in, 10in}]{geometry}
\begin{document}
\begin{tabular}{|p{56mm}|}
\hline
\fontsize{10pt}{12pt}\selectfont
This is an overlong line that should be wrapping\\
\hline
This is an overlong line that should be wrapping\\
\hline
\end{tabular}
\end{document}