How to code tables with multi-line cells

前端 未结 4 1750
萌比男神i
萌比男神i 2021-01-30 10:25

I am trying to write a short paper with LaTeX and need to add a table with 3 columns.

+-------------+-----------------+--------------------------------------+
|          


        
4条回答
  •  自闭症患者
    2021-01-30 10:51

    Use the p column descriptor:

    Change

    \begin{tabular}{lll} 
    

    to

    \begin{tabular}{llp{5cm}}
    

    To explicitly insert line-breaks:

    CCCCCCCC  & DDDD & \parbox{5cm}{Betty Botter Thought: \\ If I Put This Bitter Butter in My Batter it Will Make My Batter Bitter}
    

提交回复
热议问题