How can I combine cells in a row in a latex-table?

…衆ロ難τιáo~ 提交于 2019-12-04 16:06:55

问题


In a table I want to combine some of the columns, but not in all rows. How can I realize this with LaTeX?


回答1:


\multicolumn{<number>}{<formatting>}{<contents>}

Where the arguments are

  1. Number of columns to merge
  2. the justification and formating string (just like you use in the table header, i.e. "|c|" or the like)
  3. The contents to put in the merged columns

This command simply replaces the <number> columns and is used inline.


Addition: This is also how you change the formatting of a single field in only one row of the table. Just use \multicolumn{1}{<new format>}{<contents>}.



来源:https://stackoverflow.com/questions/440228/how-can-i-combine-cells-in-a-row-in-a-latex-table

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!