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

后端 未结 1 1252
-上瘾入骨i
-上瘾入骨i 2021-02-12 14:19

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

相关标签:
1条回答
  • 2021-02-12 14:50

    \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>}.

    0 讨论(0)
提交回复
热议问题