在LaTeX中包装一个单词 [英] Wrapping a word in LaTeX
本文介绍了在LaTeX中包装一个单词的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在表格环境中将 longWord_anotherLongWord_long_again 单词包装到许多行中?
How can you wrap the word longWord_anotherLongWord_long_again to many lines in the tabular environment?
这个词应该是
LongWord_
anotherLongWord_
long_again
推荐答案
\bgroup
\catcode`\_=13%
\def_{\textunderscore\hskip0pt}%
\begin{tabular}{|l|l|p{4.5cm}}
test_444 & 555 & longWord_anotherLongWord_long_again_too_long_very_long_ha_ha_ha_ha\\\hline
\end{tabular}
\egroup
但是要小心;这将产生预期的结果,但是TeX会抱怨盒子不够完整.
Be careful though; this will produce the desired result, but TeX will complain about underfull boxes.
这篇关于在LaTeX中包装一个单词的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文