Questions tagged [multicolumn]

{multicolumn} is for questions concerning the formatting of table cells that span several columns.

Filter by
Sorted by
Tagged with
2
votes
3answers
52 views

how to tabulate this table

I would like to tabulate this table, but I have some problem with codes. How to recode this table in a good way? here my code: \begin{table}[th] \centering \scriptsize \caption{Group A.}\label{...
0
votes
2answers
35 views

Align vertically text in a multicolumn cell of table

I am trying to recreate the last table on page 4 of this document, and it should look something like this: Here is what I have so far: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{...
1
vote
2answers
23 views

Aligned columns (with \dcolumn) have unequal widths under longer text in \multicolumn

I have a regression table that has three columns. One for the names, one for the estimates and one for the standard errors. The two columns that display the estimates and the standard errors are ...
6
votes
2answers
89 views

How to automatically calculate the width of a multicolumn in a table based on the combined widths of the columns that are merged

Let's assume that I have a table containing two l type columns that both contain rather short amounts of text. In one of the following rows I want to use a \multicolumn that merges both columns. I ...
1
vote
3answers
51 views

How to center values of an r@{}l column? (r@{}l aligns all column numbers along their decimal points)

Writing \documentclass{article} \begin{document} \begin{table} \begin{tabular}{lr@{}lr@{}l} \hline & \multicolumn{2}{c}{First column} & \multicolumn{2}{c}{...
-1
votes
1answer
25 views

Calculate Column width of longtabu and preserve format when using multicolumn

I'm using the longtabu environment to create a table, the general look is almost how I want it, however I'm running into a few issues that mess with the formatting. Here's basically what I want to do: ...
0
votes
0answers
13 views

multicolumn to inherit column widths

I have a table with fixed column widths, e.g. p{2cm}. How can I make multicolumn inherit the widths of the columns that it merges? I can sum the widths and specify p{4cm} for the multicolumn, but then ...
4
votes
3answers
150 views

How to resolve this clash between multirow/multicolumn and cellcoloring?

I am trying to put together a little table, but I fail to have the lines between cells displayed correctly: \documentclass{article} \usepackage{multirow} \usepackage{xcolor} \usepackage{colortbl} \...
5
votes
2answers
109 views

Set multicolumn to a exact width

I am new to tables in latex. I know that I can do this with p{width} but when I try it the table gets all unformated. How do I do it so that the Approach column gets smaller so that the table can fit ...
0
votes
1answer
24 views

Multicolumn + multirow + minitab: vertical lines

In my table, I am using a multirow + multicolumn section to create a "merged" cell. However, I am running into an issue where the column borders bleed into that merged area. I provide an example with ...
2
votes
2answers
43 views

Column width as necessary in tcolorbox tables

I am trying to make nice looking table with some data. Everything is fine except the width of column is fixed. I have tried many solutions but nothing works. How can the width of the column is change ...
5
votes
2answers
72 views

Please help me with the correction in table column width and the errors. You can give your suggestions according to your own

\documentclass[a4paper, 12pt]{report} \usepackage{array} \usepackage{tabularx,booktabs} \newcolumntype{Y}{>{\centering\arraybackslash}X} \begin{document} \noindent \begin{minipage}{1\linewidth} \...
1
vote
1answer
58 views

longtable - how to put the first element on a page into the header

I have a very long longtable (>100 pages) with 4 columns which represents an index into some literary text. The index data is programmatically produced and I have removed the first (index element) for ...
1
vote
2answers
20 views

Alignment of columns in tabular

Is there a command to make all columns of the same width? In my example the first two columns are small and the third is much wider. I know that I could have set exact psarameters, but I'm just ...
0
votes
0answers
33 views

Missing { inserted when using an lstinline inside a multicolumn of a table

The following code does not compile \documentclass[12pt]{article} \usepackage{listings} \begin{document} \begin{table}[] \centering \begin{tabular}{l|c|c|} \cline{2-3} ...
0
votes
0answers
23 views

How do you centre text in a multicolumn table?

I used the following code below to create a multicolumn table. I want to centre 'THIS'. How does one go about it? (I'm quite new to Latex and I got this from a thesis template from uni so I'm unsure ...
0
votes
1answer
31 views

Problem about “Misplaced \omit.\multispan” in multicolumn table

I read many threads on this forum and spent a lot of time to solve this problem, unfortunately, no matter how much I try, I haven’t fixed it yet. I could draw the table below before, with my latex ...
0
votes
1answer
31 views

Implementing itemize in multi column table in Latex

I am trying to create a multicolumn table for an IEEE conference paper I am currently writing. The desired column format is given below: I have written a code that closely gives me the desired ...
3
votes
3answers
91 views

How to make a table with a variable number of columns?

I am trying to insert a rather complex table in Latex. The problem is that the table actually consists of different tables in one. I am trying to create something like this (the difference in line ...
1
vote
2answers
43 views

Multicolumn cells with text wrapping and rowcolour with tabular

What seems to be so simple has turned so fiddly. All I want to do is have a basic table 3 rows by 10 columns. Row one should be highlighted lightgray and row 3 a lighter gray (defined as ...
3
votes
1answer
19 views

\newcommand for short notation for a \multicolumn [duplicate]

Many times is handy to define \newcommand for short notation for \multicolumn. For this purposes I test two definition for such commands: \newcommand\my[2]{\multicolumn{1}{#1}{#2}} \newcommand\mx[2][...
0
votes
1answer
43 views

React to a Command or a Comment to start the Lua Code

i asked a question a few weeks ago for some Lua Code, that splits my table cell into two cells, if i type a new line. Here is the code: \begin{luacode*} function doline(line) local splitpoint = ...
0
votes
2answers
45 views

how do I get equally spaced columns inside 'multicolumn'?

I have a table which for the first N rows has 6 columns, and then at the end switches to 4 columns, with the left-most column staying unchanged. I am trying to accomplish this using multicolumn at the ...
2
votes
1answer
43 views

Problem getting rid of column

I need to get rid of the last column. Could you give me a hand? \documentclass{article} \usepackage[margin=1in]{geometry} \usepackage{multirow,tabularx} \newcolumntype{Y}{>{\centering\...
2
votes
2answers
38 views

How to color a table column

I have this sample table. I made the script below but I still need few requirements that I do not know how to: 1) I need to apply the gray color one row above (i.e. the cell which contains the word ...
1
vote
1answer
47 views

How can I place a table (including caption) across two columns of a \twocolum document?

I have inserted a table in a two column document. The table should span across both columns without a page break. Ideally, the table should be fixed at the top of a page with two columns of text below....
1
vote
1answer
24 views

How to choose into which column to write in beamer without overlays?

I would like to write text in a three column frame under beamer, but not in default sequence starting inside the first column, and when it is filled in the next one, and so on. Instead, I would like ...
1
vote
2answers
33 views

Multicolumn wider than subcolumn

I'm dealing with an aesthetic issue related to a multicolumn in a table. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{multirow} \usepackage{multicol} \usepackage{booktabs} \begin{...
2
votes
1answer
75 views

Actual split cell in tabular

Look at these questions and their answers: Splitting a row to two rows in LaTeX split a table cell in two lines and columns They present similar issues and, similar accepted answers. However, the ...
1
vote
1answer
81 views

loops on columns inside tabular environment

What is the proper way to use loops inside the tabular environment? The context of my question is generating tables using the datatool package. I need the following features: In each row, I want to ...
2
votes
3answers
51 views

Linebreak in multicolumn cell using tabularx environment

I have the following sidewaystable, in which the headers and the last cell need to be across two columns with line breaks, else the table is not readable. The "specs" columns are just necessary in the ...
1
vote
2answers
40 views

Multicolumn problems with tabularx and lists

I am trying to get \multicolumn to work with lists inside tabularx, but the text itself does not occupy all of the space available. The answers to similar questions I found do not seem to work in this ...
3
votes
1answer
29 views

Lines (rules) and \multicolumn in tabular content built with token lists

Building on the MWE in my first ever question here (Extra space in cells when using token lists to build tabular content), I would like to add multicolumn content and \toprule (\midrule, \bottomrule, ...
1
vote
1answer
55 views

\cline not working properly

\begin{longtable}{|cc|c|c|c|c|c|} \caption{Result table} \cline{3-7} \multicolumn{2}{c}{}&\multicolumn{5}{|c|}{Name} \endfirsthead \multicolumn{2}{c}{}&\multicolumn{1}{|c|}{Line 3}&M&...
0
votes
1answer
34 views

Table with partial line on the top

I would like to mimecry the following table in LateX: I have tried the following code but I am having hard time to get the partial line on the top (the content is not important, only the top line to ...
0
votes
0answers
48 views

Adding the table of content in IEEE access template after the abstract

How to place after the the abstract in IEEE access format I had used \onecolumn then \tableofcontent. I am trying to add the table of content in the same page of the abstract but with a single column.
0
votes
1answer
27 views

Multirow and Multicolumn Horizontally Positioned Side By Side

I am trying to make a table that has multirow then multicolumn horizontally positioned side by side. I have found a lot of posts that show how to use both in the same table, but none discuss using ...
0
votes
0answers
33 views

How to combine multiple rows and columns in tabu environment

I need to create the following table: I use Xelatex (Texlive) and I wrote the following code (this is my first table in Latex): \documentclass[a4paper,14pt,draft]{extreport} % Стиль документа \...
1
vote
1answer
17 views

Closing table cells in a tabular environment involving multirow and multicolumn

Is there a way to close the cells containing "Field A" and "Field B" only, i.e. with excluding the cell on the top left? Below is a minimal working environment. Thanks for your hints and suggestions. ...
1
vote
2answers
96 views

Multi-row and Multi-column text alignment and grid

I am trying to create the table below using tabular in latex. Exploring the stack exchange for similar problems like this one has brought me to my current table: \usepackage{multirow} \begin{...
3
votes
2answers
92 views

Uneven column widths when using a long multi-column header

I have the following MWE, but I have a problem with the alignment of the last column (under the multicolumn) \documentclass{report} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{...
1
vote
2answers
49 views

Aligning content in multirow

I want to write a document, where i group two plots and the two functions corresponding to the plots together. There should be two such groups aligned next to each other. Here is a picture of what i ...
2
votes
1answer
43 views

Change column specification for single specific cells

Say I have a table with some data, a header row and a summary. The table has specific column specifications, like below \documentclass{article} \setlength\parskip{1em} \begin{document} % ...
0
votes
1answer
50 views

itemize inside multicolumn and tabularx

How can I make the itemize fill the entire multicolumn as seen in the picture below? I know my code might not be the most elegant solution, but I finished my entire document already and I'm very ...
0
votes
1answer
16 views

Make two objects (a graph and an algorithm) lined next to each other in a single column article

I have a single column article, and I have a algorithm and a graph arranged like following: I am just wondering can I do something like this: Any solution is welcome. Thanks a lot. Here is my ...
0
votes
1answer
73 views

\multicolumn and dashed vertical lines

I'm getting some strange behaviour with \multicolumns and dashed lines. I need a single-column \multicolumn in a document (since I need a partial-height vertical line, and that seems to be how you do ...
0
votes
0answers
23 views

Getting an object to span multiple [jou]{apa6} columns without colliding

I like to use \documentclass[apacite,jou,a4paper]{apa6}. It wastes too much negative space, but it invokes a consistent two column layout, and helps with the APA journal style, referencing, etc. which ...
1
vote
1answer
42 views

Definition before \multicolumn or the like?

Is it possible to have definitions take effect at the beginning of the first cell of a tabular row (using array.sty, if relevant), and still leave room for \multicolumn, \hline, etc.? The problem is, ...
2
votes
2answers
70 views

Complex table formatting

I've trying to format a fairly complex table. The layout is exactly as I want with bottom tables underneath the appropriate headings in the first table (P1 and P7). But the column widths aren't equal (...
0
votes
1answer
93 views

How can i adjust my longtable in two column IEEE format paper?

\documentclass[journal]{IEEEtran} \usepackage{algorithmic} \usepackage{blindtext} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{multicol} \usepackage{multirow} \usepackage{...