Latex 表格内文字过长自动换行
2015-04-30 12:24 zhaoyang10 阅读(30595) 评论(0) 收藏 举报法一:
- \begin{tabular}{m{5cm}}
法二:
- \begin{tabular}{p{0.9\columnwidth}}
- nrows 设定所占用的行数。
- bigstructs      此为可选项,主要是在你使用了 bigstruct 宏包时使用。
- width 设定该栏文本的宽度。如果想让 LaTeX 自行决定文本的宽度,则用 * 即可。
- fixup 此为可选项,主要用来调整文本的垂直位置。
- text      所要排版的文本。可用 \\ 来强迫换行。
法四:
- /newcommand{/tabincell}[2]{/begin{tabular}{@{}#1@{}}#2/end{tabular}}
然后使用&/tabincell{c}{}&就可以在表格中自动换行
比如这么用
- /begin{tabular}{|c|c|}
- /hline
- 1 & the first line //
- /hline
- 2 & /tabincell{c}{haha// heihei//zeze} //
- /hline
- /end{tabular}
- /begin{tabular}{|c|c|}
- /hline
- 1 & the first line //
- /hline
- 2 & /tabincell{c}{haha// heihei//zeze} //
- /hline
- /end{tabular}
    还记得有一个人在前面
 
                    
                 
                
            
         浙公网安备 33010602011771号
浙公网安备 33010602011771号