Questions tagged [tables]
{tables} is about the tabular environment and related packages such as {array}, {booktabs}, {tabularx}, {tabu}, {tabularray} and {longtable}. For questions about the table environment (i.e., about floating or positioning), use {floats} instead.
18,600 questions
1
vote
2
answers
68
views
Two columns of text for quotes written in two languages
This is a screenshot from the Italian Wikipedia page on Richard Feynman:
At the top of the page there is one of Feynman's quotes, repeated twice: first in English and then translated into Italian. ...
4
votes
3
answers
123
views
My caption doesn't appear in a wide table [closed]
I was preparing a table in LaTeX (Springer Nature template) and the table ended up too wide for the page. I used many tricks to put it still on the page with some codes like \setlength{\tabcolsep}{3....
1
vote
0
answers
45
views
p-type columns not working with colortbl [closed]
I want to make a table with fixed column widths and some coloured cells.
However, with colortbl imported (doesn't matter if I import it directly or using the table-option of xcolor), as soon as I ...
0
votes
0
answers
27
views
aligning an element at the top tabular [duplicate]
I don't know how to put the "solution" at the top of the column. Here is my code. Can anyone help me?
\begin{tabular}{c|c}
\input{picture}
&
solution
\end{tabular}
%the picture ...
5
votes
1
answer
75
views
Can siunitx tabular align section numbers?
I have a table of equations where I'm including the section where that equation was introduced. I'd like to align the sections on the decimal marker between the section and the subsection. Here's an ...
2
votes
1
answer
64
views
In tabular environment, aligning a center aligned column to have a left-alignment within the center alignment
I am wondering if there is a relatively sane way to get a tabular environment with a centered alignment column, to have a consistent left alignment within that centering. This is easiest to explain by ...
4
votes
4
answers
225
views
Large table does not fit on page
I am typesetting a table in landscape mode using the pdflscape package.
The table has four columns, one of which contains long mathematical expressions.
I want the table to fit properly on the ...
5
votes
3
answers
143
views
Multiple Key-Vals fails in enviroment table wrapper
I'm trying to use xkeyval to make single row commands which add entries to a table. To do this, I'm creating the table (inc header row) with the opening of an environment, and closing the table with ...
1
vote
1
answer
49
views
Merge two tables into one with different number of columns without floating
How can I join two independent tables so they look like one table? Every time I try, I can't get rid of the space between the tables. \nointerlineskip doesn't help.
I've found several answers on how ...
5
votes
1
answer
119
views
LaTex freezes when compiling table with tex4ebook
It seems like my table doesnt work well with tex4ebook. When I try to compile it freezes, latex process keeps running for hours (maybe more).
The error seems to be related to fourier font, but if I ...
4
votes
1
answer
96
views
How can I make the following threeparttable with footnote span multiple pages in LaTeX?
I’m using threeparttable for footnotes and tabularx to adjust column widths. My table contains notation definitions for an mVRP-D model, and its content is too long to fit on a single page. I need it ...
3
votes
0
answers
94
views
Is there a package to split tables with large number of columns over many pages?
I have square matrix numerical data whose size can vary from 4x4 to 100x100 and possibly more. If using longtable or tabularray and in landscape view, I can present 20, 30 rows at most.
Ideally I ...
2
votes
2
answers
149
views
How to reproduce this 4-column accounting grid with section headers and full borders
I need to reproduce this table exactly in LaTeX
What I tried :
\documentclass[11pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc} % pdfLaTeX
\usepackage[french]{babel}
\...
2
votes
2
answers
99
views
Tabularx table thicker lines on some rows
I want to make the lines on the first three rows thicker, both vertical and horizontal lines, but just first three rows. Is it possible to do this with tabularx environment?
\documentclass{article}
\...
0
votes
0
answers
49
views
wide table split over two pages
When a table is way to wide to fit on one page (in a two-sided document such as a book), I would like to be able (in the version for print) to split the table over two facing pages.
I managed this ...
0
votes
1
answer
44
views
Two-row header with grouped column (“Ajustement”) and full grid lines
I’m trying to reproduce the table below using tabularray (and optionally adjustbox to scale to \textwidth).
What I tried :
\documentclass{article}
\usepackage{tabularray}
\UseTblrLibrary{booktabs} % (...
3
votes
2
answers
80
views
How to hide (without background or borders) certain cells in a row when hlines, vlines are active?
I'm trying to reproduce this table :
As soon as I try to remove the borders/backgrounds of these cells, they become flat black areas (or inherit unwanted lines/backgrounds) whereas I want them to be ...
0
votes
1
answer
77
views
tblr, extra newlines between row-specs causes row misalignment on first column
The code below behaves differently depending on the number of newlines (unix carriage return) between two rows. If the number of newlines is 3 or more then the immediately following cell is not ...
0
votes
0
answers
36
views
Broken vertical lines when printing tabular and framebox
This is a weird issue. The vertical lines of tabulars and frameboxes get broken at the top, but only when printed (the PDF is fine). I've been using the same LaTeX code for more than a decade and ...
3
votes
4
answers
223
views
Table with integrated header
I'm trying to reproduce this table with LaTeX
What I tried :
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[french]{babel}
\usepackage{microtype}
\...
1
vote
2
answers
107
views
How can i make this table more suitable and formatted
How can i make the table more formated. this is my code
\documentclass[preprint,12pt]{elsarticle}
\usepackage{lscape}
\usepackage{float}
\usepackage{booktabs}% http://ctan.org/pkg/booktabs
\...
1
vote
2
answers
121
views
how to prevent misalignment of number/symbol in table due to minus sign/superscripts
Is there a way to get alignment like in Column B without using appropriately placed \phantom{-} and \phantom{^2*}
\documentclass{article}
\usepackage{booktabs} % For professional table lines
\...
0
votes
0
answers
39
views
building tabulars column-wise that can wrap programmatically
(Mayde this question is basically a duplicate of this closed one: How can we build a package similar to longtable package to accommodate wide tables?, but I still try my luck because I have made a ...
0
votes
2
answers
88
views
How to control line thickness in horizontal lines of an array use book class [closed]
\documentclass[%
openright, % doublepage cleaning ends up right side
11pt, % font size
]{book}%
%\usepackage[fleqn]{amsmath}%
%\usepackage{amssymb}%
\...
4
votes
1
answer
81
views
Set column width using text example
I’m setting multiple tables on separate pages that have two columns each using tabularx.
The cells in the left columns only contain a time in the format 15:00.
Since not all times are available in all ...
4
votes
5
answers
337
views
Tabular reproduction
I'm trying to reproduce this table, and I'm having trouble.
What I tried :
\documentclass{article}
\usepackage[margin=1.7cm]{geometry}
\usepackage{xcolor}
% -------------------------- Tableaux ------...
1
vote
1
answer
101
views
Breaking a Large Cell Across Pages in tabularray (or another environment)
I'm creating a table using the longtblr environment from the tabularray package in LuaLaTeX. The table's content will be generated dynamically, and consequently, some cells might contain a significant ...
4
votes
2
answers
118
views
I want to add some bullet point lists in each of the named cells under the resepctive letters. How do I do it?
It should look somehow like that:
\documentclass[10pt, aspectratio=169
]{beamer}
\usepackage{booktabs}
\begin{document}
\begin{frame}
\begin{table}[]
\caption{}
\label{tab:my-...
0
votes
0
answers
37
views
Table width issue when switching from single- to double-column layout in elsarticle (Elsevier template)
I am preparing a manuscript using Elsevier’s elsarticle class. According to the author guidelines, the review version should use a single-column layout (e.g., \documentclass[review,1p,times,authoryear]...
3
votes
2
answers
108
views
Tabular custom rules across certain columns
I'm using two custom table rules to reproduce the following table:
The codes below have problems at the edges, how to avoid the rules from producing extra spaces and extra length.
\documentclass{...
0
votes
1
answer
55
views
how to create landscape-oriented LaTeX table used in systematic reviews or survey papers
How to create a table like this with LaTeX?
5
votes
1
answer
127
views
Suppress table and table caption, but remove resulting blank lines
For various (uninteresting) reasons, I need to suppress the appearance of a number of tables, while keeping their \label{...} for easy cross-referencing in the text using \ref{...}. To achieve this ...
3
votes
2
answers
99
views
tblr row to row distance when using \cline
it seems that when using \cline or \SetHline the rows below are displaced downward by the value of the horizontal line inserted.
I have three tables in three columns in a beamer slide and at the same ...
0
votes
1
answer
31
views
How do I keep my symbols from being so far apart in the logicproof environment? Or should I just avoid using \footnote there?
I want to remove the spacing between the symbols and between the arguments for the deductions.
{\footnotesize{
\begin{longlogicproof}{1}
\varphi \land_{(n)} \neg_{c_{k}}\varphi & Premise \\...
2
votes
2
answers
94
views
Identical table between two manuscripts - one is compact and one is overfull and jams numbers on top of numbers
I am having the issue of my tables constantly being spread out and always overflowing the hbox in one of my documents. The table should be compact and only take up half a page, tried to upload an ...
1
vote
1
answer
63
views
theorem-like environment and tabular with and without text
In the following LaTeX code, a tabular environment is inserted within a teor environment. If no text is added immediately after \begin{teor}, but just the table, the word "Teorema" is ...
1
vote
0
answers
138
views
Why does \rowcolors from xcolor break my table formatting?
I have been struggling to add colour to rows whilst without having catastrophic affects to the table appearance.
I came across this example on overleaf. Even it fails, so I am wondering if this is a ...
0
votes
2
answers
111
views
Automatically Wrapping Long Titles and Uniform Underlines in LaTeX Tables
I want to design a cover page in LaTeX that contains several pieces of information.
For the title, which can be very long, I would like it to automatically wrap onto a second line. In addition, the &...
6
votes
5
answers
350
views
alignment in a table with custom separator
I'm trying to make a table with custom column separators using NiceTabular here because I'm going to use tikz to draw lines and arrows between some cells. The problem here is the alignment with the ...
0
votes
0
answers
47
views
Placement of multiple tables. How can I force the last one to appear at the top of the page for the next subsection to start?
I am having this problem with the placement of multiple tables in a Latex document. Basically I have created this table macro to enter different words, their definitions and examples or other ...
1
vote
1
answer
83
views
Alternating row colors in longtable: header and first row have same color
I’m trying to create a longtable in LaTeX with alternating row colors (zebra striping). However, I can’t get the coloring to align properly with the table content.
Right now, the caption and the first ...
-2
votes
3
answers
151
views
tikz matrix and multi-column using `fit`
I'm trying to make a table using tikz-matrix in which i would like a cell that expands over many columns. It seems fit can help in that but i'm not succeeding in aligning the text with that of the ...
0
votes
1
answer
117
views
tabularray: Adjusting outer vertical space
In a beamer presentation, I would like to control the outer vertical space around the tblr environment from the tabularray package. Based on the manual, I expected to be able to do that with options ...
2
votes
1
answer
73
views
How can I remove top margin in "enumerate"? [duplicate]
I made a table of test cases with LaTex below:
\documentclass[
paper=landscape,
fontsize=11pt
]{scrartcl}
\usepackage[a4paper, landscape, margin=2cm]{geometry}
\usepackage{tabularray}
\...
3
votes
1
answer
87
views
How can I create the following table with materials vertically centering
I'm trying to create a table as below picture using LaTeX in Overleaf.
But vertical centering isn't working in my table.
How can I solve this problem?
\documentclass[
paper=landscape,
fontsize=...
3
votes
2
answers
90
views
\ifx in tabular macro fails with “Incomplete \ifx” when argument is empty
I am creating my CV with LaTeX on Overleaf. I defined a custom command \cvpub in my .cls file to typeset publication entries. It takes 8 arguments (tag, authors, title, venue, year, conference, DOI, ...
2
votes
1
answer
64
views
An unexpected error occurred when using 'tabular' with hooks
MWE as follows:
\documentclass{article}
\begin{document}
\NewMirroredHookPair{cmd,test,begin}{cmd,test,end}
\def\testcmd{%
\UseHook{cmd,test,begin}
\def\TTTa{TTTa-val} % only '\gdef' can use '\\\...
1
vote
0
answers
105
views
landscape table in Latex printed upside down [closed]
I'm currently writing a thesis in Latex and I'm hardly done.
However, when printing a table over several pages in landscape mode, the pages are upside down, i.e. the header of the page is on the ...
0
votes
1
answer
59
views
Increase the city line and date in a CV
I'm preparing a CV and I'm having trouble with the final section. I'm using tabular* to align "Catania, \today" on the left and the signature on the right. I would like the line with "...
5
votes
2
answers
193
views
Tables: aligning text and equation
I'm trying to allign a normal cell with text together with another one in which I have an equation. For instance, I want OB2B and SSMF to be aligned with their corresponding equations.
Here is my code:...