在没有块的乳胶 table 中包装文本
wrapping text in a latex table without block
我在 LaTeX 文档的页面上有一个 table,就像这样:
\begin{tabularx}{\linewidth}{X | p{4.6cm} | p{3cm}}
& & \
& drop variable \syntaxConcept{}; & some very long content in order to produce a high box \
& & \
\end{tabularx}
中间的单元格产生以下输出:
现在我尝试了两件事:
- 使所有单元格中的内容垂直对齐顶部并且
- 获取文本不像块文本一样包裹
所以结果应该是这样的:
但是我无法得到这种结果。 p{width}
始终生成一个环绕块文本,而普通 l
没有宽度参数。
尝试使用 \raggedright
。并查看 tex.stackexchange.com 上 this related question 的答案。
我在 LaTeX 文档的页面上有一个 table,就像这样:
\begin{tabularx}{\linewidth}{X | p{4.6cm} | p{3cm}}
& & \
& drop variable \syntaxConcept{}; & some very long content in order to produce a high box \
& & \
\end{tabularx}
中间的单元格产生以下输出:
现在我尝试了两件事:
- 使所有单元格中的内容垂直对齐顶部并且
- 获取文本不像块文本一样包裹
所以结果应该是这样的:
但是我无法得到这种结果。 p{width}
始终生成一个环绕块文本,而普通 l
没有宽度参数。
尝试使用 \raggedright
。并查看 tex.stackexchange.com 上 this related question 的答案。