5 votes

Table within a table

One way is to use the nicematrix package. \documentclass{article} \usepackage{nicematrix} \begin{document} \begin{NiceTabular}{lw{l}{1cm}w{c}{2cm}w{c}{2cm}} & & \Block{1-2}{\textbf{Trust ...
Sandy G's user avatar
  • 42.9k
5 votes

Table within a table

I just discovered the amazing tabularray package, which provides many customisations for tables through a modern key-value interface and replicates the functionalities of classic table packages. It's ...
jlab's user avatar
  • 2,136
3 votes

Table within a table

Here's another example \documentclass{article} \usepackage{multirow} % Merge rows \usepackage{array} % More convenient column spec. \newcolumntype{L}{@{}p{2.5cm}} \newcolumntype{C}{w{c}{2.5cm}}...
Celdor's user avatar
  • 9,148
3 votes

Multicolumn & Multirow leads to an unwanted vertical line

With tabularray. You didn't show which document class you're using. Please note that, given its column width, your table goes out of the border, with an ordinary article class. \documentclass{article} ...
CarLaTeX's user avatar
  • 62.9k
3 votes
Accepted

Multicolumn & Multirow leads to an unwanted vertical line

There are two, separate issues with your longtable environment: double-thickness vertical separator line in row 1 unwanted vertical separator line in row 2 To fix the first issue, change \...
Mico's user avatar
  • 507k
3 votes

How can write a long text as cell colspaned content of a table?

https://tex.stackexchange.com/a/236156/82917 explains how to handle the X columns. Of course, since you need it often I would define an ad-hoc command for this. \documentclass{article} \usepackage{...
campa's user avatar
  • 31.1k
2 votes
Accepted

Vertically align advanced longtable on only one cell on a specific column and row

NOTE: Improved solution based on the remarks of the OP below. Here is a solution with the package tabularray \documentclass{article} % Packages \usepackage{xcolor} \usepackage{plex-sans} \usepackage{...
Pieter van Oostrum's user avatar
2 votes

How can write a long text as cell colspaned content of a table?

With tabularray: \documentclass{article} \usepackage{tabularray} \usepackage{xcolor} \begin{document} \noindent% \begin{tblr}{ width=\linewidth, colspec={*{4}{X[l,m]}}, hlines={gray!50}, vlines={...
CarLaTeX's user avatar
  • 62.9k
2 votes

Create mutlicolumns and multirows simultaneously

No need of manual adjustment with tabularray: \documentclass{scrbook} \usepackage{lscape} \usepackage{float} \usepackage{tabularray} \UseTblrLibrary{booktabs} \begin{document} \begin{landscape} \...
CarLaTeX's user avatar
  • 62.9k
2 votes

Create mutlicolumns and multirows simultaneously

You can always replace \multirow with \raisebox \documentclass{scrbook} \usepackage{lscape} \usepackage{makecell} \usepackage{float} \usepackage{booktabs} \usepackage{tabularx, ragged2e} \usepackage[...
John Kormylo's user avatar
  • 79.8k
2 votes

How to color Multicolumn and Multirow correctly

Like this? Since your document class isn't on CTAN, I used article. \documentclass{article} \usepackage{xcolor} \definecolor{mygray}{HTML}{BFBFBF} \usepackage{tabularray} \begin{document} \begin{...
CarLaTeX's user avatar
  • 62.9k
2 votes

Table within a table

You only need some \multicolumns , that no need any package. Besides, the table will look like off-center with a centered caption, because the jailed data are only on the right, so I will put the ...
Fran's user avatar
  • 80.9k
2 votes
Accepted

Mixed NiceTabular, MultiRow, Multicolumn, Alignments problems and Missing $

Here is a solution with {NiceTabular} of nicematrix. \documentclass{article} \usepackage[usegeometry]{typearea} \usepackage{geometry} \geometry{a4paper,top=25mm,bottom=25mm,left=30mm,right=30mm} \...
F. Pantigny's user avatar
  • 40.5k
1 vote

How to color Multicolumn and Multirow correctly

With {NiceTabular} of nicematrix. \documentclass[sn-mathphys,Numbered]{sn-jnl} \usepackage{xcolor} \definecolor{mygray}{HTML}{BFBFBF} \usepackage{nicematrix} \begin{document} \begin{center} \begin{...
F. Pantigny's user avatar
  • 40.5k
1 vote
Accepted

Create mutlicolumns and multirows simultaneously

In your code, I have loaded nicematrix, replaced {tabularx} by {NiceTabularX} and put a command \Block{*-*}{Merge Cells}. That does the job... \documentclass{scrbook} \usepackage{lscape} \usepackage{...
F. Pantigny's user avatar
  • 40.5k
1 vote
Accepted

Table formatted incorrectly, partly missing border

Your row \multicolumn{1}{|c|}{\emph{Data 2}} & \\ only has two cells, you need 4: \documentclass{article} \begin{document} \begin{tabular}{ | p{4cm} | p{1.5cm}| p{1.5cm} | p{1.5cm} |l|} \hline ...
samcarter_is_at_topanswers.xyz's user avatar
1 vote

Vertically align advanced longtable on only one cell on a specific column and row

Here is another solution based on the original longtable solution in the question. I did the vertical centering with the multirow package. The disadvantage is that you must manually specify the number ...
Pieter van Oostrum's user avatar
1 vote

Combining columns and rows in overleaf

With tabularray: \documentclass{article} \usepackage{tabularray} \UseTblrLibrary{booktabs} \begin{document} \begin{table}\centering \begin{tblr}{colspec={lrrrrrr}} \toprule &\SetCell[r=3]{c} U.S....
CarLaTeX's user avatar
  • 62.9k

Only top scored, non community-wiki answers of a minimum length are eligible