Questions tagged [multicolumn]
{multicolumn} is for questions concerning the formatting of table cells that span several columns.
1,296
questions
3
votes
2
answers
203
views
Create two independent sub tables into one table in Latex
How can I create the following table in latex? I am not sure what concept is used to create this table. Are these two independent sub-tables combined in one? Any pointers or suggestions are ...
2
votes
2
answers
70
views
how to rewrite simple multicolumn command for use with new tabularray interface?
Long time ago I defined some templates. In one of them I used this
\newcommand{\zwiueb}[1]{%
\multicolumn{3}{l}{\makebox[0pt]{\textbf{#1}}}%
}
which obviously does no longer work with tabularray.
...
2
votes
2
answers
129
views
Columns in table not expanding as expected
I am attempting to create a single table that appears to be two separate tables, side by side. Each "table" should have text below it explaining what the table relates to. The text below ...
0
votes
1
answer
40
views
Multicolumn not utilising all available space in xltabular
I have a table with multiple columns. When using \multicolumn once everything works as expected.
However, when using \multicolumn twices, with different column col values the text does not occupy all ...
1
vote
2
answers
84
views
Table border problem
during my work I've encountered the following problem:
I tried to prepare external border of my table. And it worked fine, to the time I applied \multicolumn command to merge two adjacent cells. The ...
0
votes
3
answers
149
views
Latex Multicolumn not centering
In the first row the column containg A is not centering in the middle of the block only at the bottom and cant figure out why. Here is the latex stuff
\documentclass[a4paper,10pt]{article}
\...
1
vote
1
answer
170
views
How to make a line break inside a multi-column cell created with the tabularray package?
I made a table using the tabularray package. In the first row of this table I want the text to be in two lines, but I can't because I get the error Something's wrong--perhaps a missing \item. \end.
In ...
1
vote
1
answer
51
views
TabularX environment with some fixed width
I'm creating a table for a procedure.
I selected 3 columns to be able to put subpoints intended.
Unfortunately, with multicolumn it doesn't go to \textwidth anymore, but rather selects the X and keeps ...
0
votes
1
answer
32
views
Align table inside table
I have this table created:
\documentclass[12pt]{article}
\usepackage[latin1]{inputenc}
\begin{document}
\maketitle
\begin{tabular}{|c|c|c|}
\hline
\textbf{Nom} & \textbf{...
1
vote
1
answer
27
views
Dates is not visible in Table
I am trying to make a table where I define my training and validation sets. To do this I want a multicolumn table, written like this:
\documentclass{article}
\usepackage{booktabs}
\begin{document}
\...
1
vote
2
answers
64
views
How can I make Two Coloumn in a Merg
Please help me recreate the table. It is very confusing what to do on the next row of Latex Code
0
votes
2
answers
78
views
How to insert a long text in a multicolumn setting?
I would like to create a table with my some rows being multicolumns, one of them to be filled with a long text, followed by a 2 column's row. I don't have any issue to create the multicolumns or ...
0
votes
2
answers
44
views
Combine stackbox with multicolumn
I am trying to keep my multicolumn table as small as possible and wanted to have the first row stacked. However, when I try to use the \stackbox option the name gets continued on to the next one which ...
1
vote
1
answer
77
views
How split itemize into columns in a table?
I am trying to replicate a table that uses itemize in two columns. Also note that each category is within one column. For instance that the "Route plan" category does not leak into the ...
5
votes
2
answers
257
views
Nicematrix package conflicts with babel
I have the following code, inspired by this answer.
\documentclass{article}
\usepackage{nicematrix}
\begin{document}
\begin{table}[h]
\begin{center}
\begin{NiceTabular}{cccc}[hvlines]
...
0
votes
1
answer
70
views
Table / tabular enviroment doesn't build the pdf
i was trying to create a table of with 3 columns \begin{tabular} but once i had completed it, Latex can't manage to build the .pdf. I've made already some tables that had no problem with it, and i ...
0
votes
1
answer
123
views
How to split header of some columns on their two subcolumns for a table?
let us consider my table
I want to reorganize the header in this way: for column 3, I want to delete the dash and split the words "id." and "PDes" on two subcolumns. For the ...
0
votes
1
answer
54
views
Format errors: 2 column math problem set; vertical enumeration with TIKz
I'm trying to create a 2 column, vertically enumerated problem set for my math students trying to learn the distributive property.
Using some wonderful Tikz code by @Peter Grill & @Tarass, I have ...
1
vote
1
answer
199
views
One column is wider than the rest using multicolumn
I want the all the 3 columns under метод Ньютона and метод секущих to have the same width. Right now, the third coulumn is wider than the first and second columns
It is funny because the table was ...
1
vote
1
answer
42
views
How to inplace multicolumn in specific place?
I try to put it in specific place
\begin{multicols}{7}
\begin{figure*}[ht!]
\includegraphics[trim={0 0 0 22}, clip, width=0.3\textwidth]{1_signal_lunka0.png}\hfill
\...
0
votes
1
answer
40
views
Making booktabs multicolum/multirow fit a template; unexpected overflow spacing in one example, unexpected centering in another example
I have a table with multirows and multicolumns with a long column name that needs to be wrapped. However, the resulting table leaves an unwanted space:
% \usepackage{amssymb}
% \usepackage{array}
% \...
1
vote
3
answers
93
views
multirow table alignments, centering in combination with self defined columntypes
I've read a lot of table related posts, but couldn't find a specific solution for my problem. I know there was a bug with the multirow vertical centering of the last column, but it didn't work for me ...
3
votes
1
answer
83
views
Conflict between minted, colortbl and multicolumn (insertion of code in array cells)
I am doing a table, where some cells contain code. I also want to color some cells. It is perfectly allowed to use minted inline code inside table cells. However, I can't use minted code in a ...
0
votes
1
answer
62
views
How to format a book-style table with multicolumns and \cline?
I read lots of similar question but I did not manage to fit to my case. I need to get a table with 2 multicolumns.
Here is my code:
\documentclass{article}
\usepackage{siunitx}
\usepackage{booktabs}
\...
1
vote
1
answer
114
views
Merge columns in Tabularx Environment
I have the following tabularx environment.
\begin{tabularx}{\columnwidth}{@{}r@{\hskip 1mm}l@{\hskip 5mm}l@{}}
\end{tabularx}
My problem is that for some rows I don't have 3 columns but 2, so I need ...
2
votes
1
answer
311
views
How to design a professional table by loading it from .csv file?
I found a similar question (useful_question) that I'm following to build my table but I'm not able to get the desired results, i.e. the following table but with the booktabs style (that I'm not able ...
0
votes
1
answer
38
views
Logic before a table row when first cell is \multicolumn
This is related to a previous question that was well answered by egreg. I would like to typeset the following without the vlines around cells (1,0) and (3,0):
Using the code below, would, in ...
0
votes
1
answer
166
views
How to create a table with merged columns and rows
I'm new to latex, and I'm trying to create a cover for a report, that I use in word, but I'm struggling with latex.
Could someone help me?
I have tried the multicolumn but I didn't manage to organize ...
1
vote
2
answers
109
views
Using \multicolumn to remove vertical lines in row works, but not when used in a command called by in an \@ifstar conditional [duplicate]
The following works as intended, removing the vlines from the top row of a LaTeX longtable. Note: Need to use longtable because this table spans multiple pages and nicematrix does not currently ...
2
votes
1
answer
79
views
how to write equation in double column?
I created two columns in LaTeX. But the equations are overflowing from the column. How can I fit the equation into a single column?
\begin{multline}
C(x,y,z,t) = \frac{ (\pi t)^{-3/2} m_T}{8 (K_x ...
0
votes
1
answer
204
views
Text is out of cell in long table
I'm using a long table in Latex, and I found that in the joint of two pages, the text in the cell is out of the table, anyone knows how to solve this problem? As the picture shows, in the red circle, &...
1
vote
1
answer
101
views
Is there a good package for translation of two languages in humanities?
I am translating a classics text from German to Korean and I have to divide one page to two sections: source - target. Each of the paragraphs needs enumeration and they have to be vertically aligned.
...
1
vote
1
answer
120
views
How to build a three column table with tabularx
I'm attempting to build a simple three column table using tabularx, but I must be misunderstanding some aspect of the code because my table is visibly not working out.
My goal is to have three equal ...
0
votes
1
answer
50
views
Make multicolumn break if the text is too long
I just learned about LaTeX recently, and I found a problem.
What I want is:
The text will break in multicolumn. What I did is:
\begin{table}[H]
\centering
\footnotesize
\caption{\normalsize E-...
0
votes
1
answer
49
views
How to make column width adaptive to slanted texts in a table?
In the table below, I have tried to make my long texts, in the third row of the table, slanted by Werner's answer here:
\documentclass[border = 2mm]{standalone}
\usepackage{booktabs}
\usepackage{array}...
0
votes
2
answers
69
views
Centering a value on a row with multicolumns
I have the following table with 5 rows with a first column of text and 4 columns of data :
\newenvironment{mytable}[1][h!]{\begin{table}[#1]\centering\small}{\end{table}}
\begin{mytable}
\begin{...
1
vote
2
answers
48
views
MIssing border in table with multicolumn and multirow with hyphenated column headings
I am missing the right border in one the columns where there is a multirow.
Have tried a bunch of things.
Here is an example.
\documentclass[10pt]{article}
\usepackage{array}
\usepackage{multicol,...
3
votes
2
answers
507
views
How to make table columns the same width?
I made a table, but the column width is not even. I tried many methods, but still could not make the column width even. Strange things is that I have many other tables with the same style and their ...
1
vote
2
answers
49
views
How to separate labels into columns in the enumerate environment?
How to separate labels into columns in the enumerate environment? The desired effect is like below:
For example, if there are for items, the desired effect is for them to spread out evenly in one ...
0
votes
2
answers
94
views
Need to make this table, should I just use some other program?
Prof. wants us to reproduce this table to learn how to LaTeX, but all I'm learning is that LaTeX tables are a nightmare. Been stuck on this for weeks. We were given a lesson on the tabular environment,...
2
votes
3
answers
159
views
Centering a multi-column cell on top of two cells
I am new to Latex and it is just so hard to build a table there. I am using overleaf as a provider.
I am having a problem in adjusting the cells of muilt-column cells to be centered. I have looked ...
1
vote
2
answers
55
views
Table contents not in good shape
\usepackage{lipsum,tabularx}
\newcolumntype{Y}{>{\centering\arraybackslash}X} % centered version of "X" column type
\begin{tabularx}{\textwidth}{|c|Y|}
\hline
& \multicolumn{4}{c}{...
1
vote
2
answers
92
views
Missing table lines
I tried using \multicolumn but the vertical lines of the table disappeared.
Here's my code:
\begin{table}[htbp]
\centering
\caption{Add caption}
\begin{tabular}{||l | l l ||}
\hline
\...
0
votes
1
answer
275
views
How to add space inside multicolumn text
I've below latex code for creating cheat sheets.
\documentclass[10pt,a4paper]{article}% Packages
\usepackage{fancyhdr} % For header and footer
\usepackage{multicol} % Allows ...
0
votes
1
answer
83
views
Removing extra space from table with multirow and multicolumn
I am getting extra space in the first three rows which I do not want. How to remove this extra space?
\begin{table}[h]
\begin{center}
\begin{tabular}{l c c c c c c c}
\hline \hline
\...
0
votes
1
answer
103
views
Horizontal Multicols
Since the answer for my last question Tasks not accepting environments was pretty much: doesn't work, is there any alternative to tasks where the items are horizontally aligned?
Normal behavior of ...
1
vote
2
answers
41
views
Equation alignement with different numbers of columns - spacing issues
Good day everyone.
I have a set of 4 equations, that have respectively 2, 1, 3 and 3 columns, and that I want to "align" with each other in a particular way. I want all to be centered with ...
11
votes
5
answers
981
views
How Do I Reproduce this Three-Column Format Within Enumerate?
To be clear, I don't demand that I use enumerate. I just want to reproduce the image. I tried variations of flalign and multicols but couldn't get it to work.
2
votes
4
answers
113
views
Table multicols
I need do this table. Do you have any tips?
0
votes
1
answer
49
views
Tabularx and multicolumn (containing an X cell and a regular cell)
There have been many questions about tabularx and \multicolumn but I haven't found an answer to this one.
One can use X columns for two reasons: the first is to have equal-width paragraph columns, in ...