{multicolumn} is for questions concerning the formatting of table cells that span several columns.
3
votes
1answer
38 views
Table with non-standard multicolumns
I want to typeset this table:
As you see, it's hard to use multicolumn here. I tried 2 consecutive tables:
\documentclass{article}
\usepackage[a5paper]{geometry}
\usepackage{tabularx}
...
2
votes
1answer
89 views
Underline multicolumns in tikz matrix
In a TikZ matrix, how can I underline multicolumns automatically as follows (esp. when height of one header cell is larger than others):
MWE from this question:
\documentclass{standalone}
...
7
votes
1answer
186 views
How to create a table with merged columns and rows, and wrapped text, like in MS Word?
The above can easily be created in MS word, but how can I create something like this in latex? Basically changing the columns for specific cells, merging a bunch of cells together, wrapping text in ...
1
vote
1answer
116 views
How to implement this table in LaTeX
I really tried hard to do this on my own, but I keep failing ... Using multi-column and multi-row commands confused me. I know some of you might frown upon such a request but I really need help ...
0
votes
1answer
119 views
Custom length in table results in Package array Error: Illegal pream-token (]): `c' used… :( [closed]
In the code below I get a
Package array Error: Illegal pream-token (]): `c' used.
error after inserting this custom length:
\newlength{\mylengthy}
\settowidth\mylengthy{Registrierte ...
4
votes
2answers
279 views
Misplaced \noalign
Unfortunately I cannot solve the error with noalign on my own:
! Misplaced \noalign.
\hline ->\noalign
{\ifnum 0=`}\fi \hrule \@height \arrayrulewidth \futurelet...
l.12 ... ...
2
votes
1answer
62 views
Awful page breaking when very long multicolumns items are used
I am using ltablex with \multicolumns. My problem is that I have to introduce a lot of text inside of single \multicolumn items, then when it automatically breaks the table on two different pages, it ...
1
vote
2answers
129 views
\multicolumn table cell doesn't fit page width
I have this code:
\documentclass{article}
\usepackage{lipsum}
\begin{document}
\begin{tabular}{ |c|c| }
\hline
\multicolumn{2}{|c}{\lipsum[1]}\\
\hline
text text text text text text & ...
1
vote
1answer
76 views
Longtable with multicolumn and multirow not working
I'm using a table generated from Excel2Latex in my document. Despite using longtable, the table gets truncated at the end of page after overflowing the bottom margin. Min. working example provided ...
1
vote
1answer
69 views
Extra space added in table with multi-rows and columns
I am working with a table with multi-rows and headers. The problem is when I run it, extra space is added both between rows and at the end of the last column.
\documentclass{article}
...
2
votes
1answer
34 views
How could I insert a \section tag inside a \multicolumn tag?
is it possible to define a \section inside a \multicolumn in a xtab table?. Example:
\documentclass{article}
\usepackage{xtab}
\begin{document}
\tableofcontents
\section{TestSectionA}
...
2
votes
1answer
94 views
table header problems with \multicolumn
I have been trying to produce some aesthetically appealing tables for my MSc thesis. This link has helped me a lot: Professional-looking tables with alternating row colors?
A challenge, however, ...
6
votes
3answers
258 views
Set multicolumn width to default table width
I have a two column table with a single multicolumn spanning both of them. The text on that multicolumn is rather long so I need to set its width so it wraps around. I can set the width with ...
2
votes
2answers
114 views
Multiline listing within multicolumn row
I have a problem putting a listing (using lstlisting package) within a table. The problem is that I want to put a multiline listing in a row taking 2 columns.
The following minimal example shows ...
4
votes
1answer
147 views
Make the multicolumns in a row equally sized?
I have some big tables and I want to know how it is possible to make the columns in a row all equally sized. You can see in the row 'Intra Prediciton' that the column with the content 'I_PCM' is ...
0
votes
1answer
41 views
how can I predefine the color of multicolumns?
I'm trying to use multicolum. In my table all the columns have a predefined color which will be overwritten by multicolum. So my question is how can I define own or some more custom multicolumn ...
3
votes
2answers
148 views
Align (center) header row in table
I use @{\hskip 50pt} to separate columns in my table. The problem which arises is that I add this extra space after a multicolumn. This also moves the header row so that it is no longer centred. Is ...
1
vote
0answers
112 views
Table with different column size and column width
I'm trying to do a table which has a different number of columns in every row.
Is there an alternative to multicolumn?
7
votes
2answers
140 views
Table column widths disproportionate due to multicolumn cell being too long
I'm trying to typeset a table that would have a header in the first row (I'm not looking for a different/better solution to adding a header, but for a fix to this solution. Thanks). I want to achieve ...
1
vote
1answer
202 views
Problem with rowcolor in tables
Please help me.
I have a problem with this table. I have other tables in my document, but rowcolor worked fine. Particularly, this code of my table has something wrong.
I want the header colored with ...
4
votes
3answers
127 views
How to span over variable number of cells?
I'm looking for a macro to span all cells in a tabu environment to get category headers in tables.
This example does what I need for two columns.
\begin{tabu} {XX}
abc & def \\
...
1
vote
1answer
286 views
Wrapping multicolumn in tabu
How do I get the text within a multicolumn to wrap when using tabu? I am hoping that tabu makes it somewhat easier than having to specify p with a manual specification of the width ...
5
votes
1answer
152 views
Error showing up when using multicolumn and colors
I have a document that is creating the exact output I'm looking for, yet when I compile it I'm getting two errors. After tooling around for a little bit, I was able to pinpoint their location to the ...
9
votes
2answers
140 views
Multicolumn within a newcommand error
I am new to writing packages and am coming across an error that I can't unravel, I would appreciate any help that you can provide. I am writing a few macros which are meant to be used within a tabular ...
3
votes
3answers
160 views
Dropped column in multicolumn table
In a table with 4 rows and 4 columns I try to merge different cells in every row while preserving the table layout. As there are never more than 3 cells in a row, a table column seems to be dropped.
...
1
vote
1answer
2k views
Multi-column problem
Consider the following table. First I have troubles to get the multicolumn-elements in the first row of the table limited to a maximum width (I tried it here with the command C{0.75} but obviously it ...
1
vote
1answer
609 views
Fix sized centered multirow and multicolumn tables
I'm using TeXLive 2011, and one of my friends has a problem with creating tables, which use fix sized centered \multirow and \multicolumn cells.
This is his thesis, so there is a lot of ignorable code ...
5
votes
3answers
4k views
Automatic wrapping of a \multicolumn table cell
I output lots of tables to LaTeX using the estout/esttab package in Stata. I frequently want to have long footnotes on the bottom of the table, explaining coefficients, sources, etc. The estout ...
3
votes
1answer
247 views
multicolumn-command which automatically uses all columns of the table?
Is it possible to define a multicolumn{}{}{}-command, which automatically spans all columns of a table?
For my longtables I want to use a command defined in the preamble, which typesets at the right ...
1
vote
3answers
1k views
Center-align text in columns in tabular environment in multicol environment
I need the text in the second two columns to be center-aligned.
I also need someone to please help me clean up this table. It looks ugly.
Notice it is inside a multicolumn (2-column) environment, ...
6
votes
1answer
336 views
Custom macro for multicolumn with & without xparse
The following example has two normal LaTeX \newcommand macros and two xparse \NewDocumentCommand for specifying multicolumn text. The only difference between each pair of commands is one has the ...
4
votes
3answers
1k views
Why are the lines around my multicolumn cell misaligned?
In the following table, why does the double line before the diff column not go through? I guess all the multicolumn{1} are wrong? How can I fix it?
\begin{table}
\centering
...