Questions tagged [tables]

{tables} is about the tabular environment and related packages such as {array}, {booktabs}, {tabularx}, {tabu} and {longtable}. For questions about the table environment (i.e., about floating or positioning), use {floats} instead.

Filter by
Sorted by
Tagged with
0 votes
1 answer
19 views

Changing a row horizontal alignment

I do have a table that that different languages is used in table rows (one left-to-right and one right-to-left), the table is like this: and the code for the table is: \begin{table}[H] \centering \...
user avatar
  • 33
0 votes
0 answers
14 views

How to add all subsection in table of contents? [duplicate]

I have a subsection like 1.1.1.1 in my thesis. The table of contents does not include this subsection. How can I make a list of every subsection? Have a wonderful day, and thanks again. (the ...
user avatar
0 votes
2 answers
34 views

How can I use subtable as single column inside twocolumn documentclass?

I have following base \twocolumn setup taken from https://tex.stackexchange.com/a/307286/127048, here I want to put a side-by-side tables using subtable as its in single column: \documentclass[5p,...
user avatar
  • 738
0 votes
1 answer
31 views

LuaLaTeX - Table (tabularx) Can't get rid of underfull hbox (badness 10000)

Ok so I have tried various solutions to this problem and the ~10 underfull hbox warning have been reduced to 1. But this one's really sticky and I'm at my wit's end. The warning is directed to the ...
user avatar
0 votes
1 answer
30 views

Creating hatched cells in a resized table\tabular

I'm writing an elsevier els-cas article and am trying to hatch some table cells for a table\tabular setting. It seemed to work fine until I used \resizebox and set the table size to \textwidth. The ...
user avatar
  • 1
2 votes
3 answers
131 views

How to align between text and math between two columns?

Relating to my previous question and the answer given by egreg. Now I would like to add one column. How can I add more space between these two columns and the text like this? Also if you please ...
user avatar
  • 205
1 vote
2 answers
46 views

Problems in table using \hhline

Consider the following MWE \documentclass{standalone} \usepackage{multirow} \usepackage[table]{xcolor} \usepackage{hhline} \newcommand{\firstrow}[1]{% \multicolumn{2}{|c|}{\cellcolor{blue!25} #1} } \...
user avatar
  • 425
4 votes
1 answer
53 views

How do I center align every corresponding elements in a table?

How do I center align every corresponding elements like this? Also if the second row is (y_1+z1 & y_2 & y_3 & y_4 & y_5 & y_6 & y_7+y_3) would you think that align the ...
user avatar
  • 205
2 votes
1 answer
23 views

Reference section inside table including labels set in that section

L.S., For a modular document where .tex files containing a section can be added and removed, i'm looking for a way to include an overview table of these sections. In this table labels that are set in ...
user avatar
3 votes
1 answer
43 views

How to make a table of fixed width in tex4ht? (not fixed column width)

This is related to tex4ht only and not pdf. This is a problem that existed in tex4ht forever. I just found in HTML that by fixing the width of the whole table, then the column width will remain fixed ...
user avatar
  • 18.4k
0 votes
1 answer
10 views

Insert tabular in footnote in beamer cause blank slides

In beamer, tabular environment in footnote cause unexpected blank slides. (I’d rather have overfull vboxs) If you add another footnote, the blank slides are gone. MWE (TeX Live 2022, XeLaTeX): \...
user avatar
0 votes
0 answers
24 views

What is the difference between file font.lua and the font itself?

When LuaLaTeX/fontspec uses a font, say Erewhon-Regular.otf, it creates a file erewhon-regular.lua that is put in (user's)Library/texlive/2022/texmf-var/luatex-cache/generic/fonts/otl/. Actually it is ...
user avatar
0 votes
2 answers
52 views

How to properly typeset this table-like paragraph?

I would like to typeset the following paragraph: What I can achieve so far is this: \documentclass{article} \usepackage{amssymb,csquotes,tabularx} \begin{document} \noindent \begin{tabularx}{\...
user avatar
  • 6,566
2 votes
1 answer
46 views

Defining a table template for a document

I am trying to create a document which automatically updates certain values according to an output from a python code. From this python code, it produces a latex table, which looks pretty basic. ...
user avatar
2 votes
2 answers
60 views

Print sequence of property lists as table

I want to define two macros, that together should generate a table for an invoice. Add entries to a sequence. Does not generate any output. % \addentry{description}{quantity}{price} \addentry{Item 1}...
user avatar
  • 350
1 vote
2 answers
22 views

Get cline to cover space between column and previous column

\documentclass{article} \begin{document} \begin{tabular}{r||c|c||l} Hello & test & run & done\\ \cline{2-3} \end{tabular} \end{document} Gives this output: Hoped for output:
user avatar
  • 246
0 votes
1 answer
31 views

Cross reference not able to find table, while example table is working

I am trying to reference a table. However I get the error: Reference `table:PortfolioSummary' on page 7 undefined I used an example table to see if that works, and it works. The example table and the ...
user avatar
  • 1
0 votes
1 answer
33 views

Making space between two tables

How can we make space between two tables, arranged in columns, where each table contains four columns? I have two tables with three columns each, but want four columns.
user avatar
1 vote
0 answers
18 views

How to make link on text and not on cell with tabularx

Consider the following: \documentclass{minimal} \usepackage{tabularx} \usepackage{hyperref} \begin{document} \begin{tabularx}{\linewidth}{|X|l|} Text spanning over multiple lines. ...
user avatar
  • 4,680
1 vote
2 answers
51 views

Specifying an array columnwise in math mode

I would like to do the same sort of thing as in the question How to create table column wise in LaTeX?, except that I want to do it in math mode. To be precise: I want to enter an array of items of ...
user avatar
  • 3,225
0 votes
0 answers
41 views

How to select table package and environment?

While creating tables in latex overleaf, we select our desired table package e.g. cuted, tabularx, tabulary or any other. Then, we select our table environment, which carries all the table data. I am ...
user avatar
  • 25
1 vote
1 answer
20 views

Inputting data from external file causes misplaced \noalign error [duplicate]

I want to be able to process data using a python script and write it to an external file which can be imported into a latex table environment. The data is formatted exactly as it would be in the main ....
user avatar
0 votes
1 answer
35 views

How to align table with tikz picture side by side

I am trying to align a table of data along side a tikz picture made only of the axis and grid used to draw by hand the data. However, the grid in tikz picture is not aligned with the middle of the ...
user avatar
1 vote
1 answer
44 views

How to make a table in a doublepage with KOMA Script

I'm struggling with a table that I can't get to fit successfully into the page. I want to clarify that I am working with TeXlive 2019 (it is not feasible to upgrade before finishing the project) and ...
user avatar
  • 3,566
0 votes
1 answer
41 views

Creating a multi-row column in latex

I am trying to create a table as below in latex: EDIT: This table is made on MS word. I have tried the following \documentclass{article} \usepackage{multirow} \begin{document} \begin{tabular}{|c|c|...
user avatar
  • 117
2 votes
2 answers
82 views

Cannot space table headers properly

I am unable to space my table headers as expected in LaTeX. My table is supposed to look like this: But unfortunately it is showing up in the document like this: Where it is not fitting the page's ...
user avatar
0 votes
2 answers
71 views

Table with variable and fixed cell width and height

I would like to make a table that looks like in the image but I unable to make it the way I want by using the online LaTeX Table Maker. Here is how it is looking: Here is my attempt: % Please add ...
user avatar
1 vote
1 answer
40 views

How to split a page into 6 parts, adding a centered image to each?

I have been trying to create a page which is separated into six parts, and then add a figure to each of the sections. Each picture must be centered both horizontally and vertically and must be ...
user avatar
1 vote
1 answer
38 views

Drawing a multi column table

I'm trying to create the table in the figure. Here is my code: \begin{table*}[ht] % \resizebox{\textwidth}{!}{% % \resizebox{1\textwidth}{!}{% \resizebox{17.5cm}{6.9cm}{% \begin{tabular}{|l|l|lllll|...
user avatar
0 votes
3 answers
87 views

How do you go over the [0,1] range for Colors

When I go over the !100 in shading, it gives me an error, however it still works. And simply, my question is: how do I get rid of this annoying error? \documentclass{article} \usepackage[utf8]{...
user avatar
3 votes
2 answers
115 views

Make single line independent of table pattern

I got this table right here: \begin{table}[] \centering \begin{tabular}{lccc} \toprule Metric / Index & \textbf{V1 - Base Unet} & \textbf{V2 - Multiscale} & \textbf{V3 - Attention} ...
user avatar
  • 41
0 votes
1 answer
38 views

Automatic Line Break in Headings

I would like to have an automatic line break in the title of a table or figure if the title is too long so that the title has a justified alignment and the two line are exactly the same length. If ...
user avatar
0 votes
0 answers
46 views

Problems with tables rendering [closed]

I have a document with two tables when I run the code separately they both work but when I run them together the top sections do not render and I cannot figure out why. \documentclass{book} \...
user avatar
  • 405
0 votes
0 answers
28 views

Vertically align multi-line text in tabular with makecell

I have a table with line-breaked cells (using \makecell) and want to align the content vertically. The ``makecell'' command has an optional parameter for that -- however, only horizontal, not vertical ...
user avatar
  • 351
1 vote
1 answer
16 views

Question about \begin{tabular}{L!{\VRule}R}

This is my first time asking a question on here, so please forgive me if I'm not explaining everything properly. To describe me as a beginner is a massive understatement. But here it goes. I'm working ...
user avatar
  • 11
0 votes
2 answers
25 views

knitr kbl only providing code in compiled PDF [closed]

I'm trying to get a table in a PDF using the knitr and kableExtra packages in R but when I compile the PDF the table code is in the PDF not a table. The screen shot below is from the example code ...
user avatar
  • 171
0 votes
2 answers
91 views

Long table example

Is there a way to mimic this MWE, but using the long table approach? \documentclass{article} \usepackage{table, tabular} \begin{table}[!htbp] \setlength\tabcolsep{.25cm} \renewcommand{\arraystretch}{...
user avatar
  • 151
-3 votes
0 answers
37 views

How do I write the algorithm in Overleaf like this? [closed]

I am unable to write the algorithm in that particular way. Kindly help me to write the high level algorithm in LaTeX.
user avatar
0 votes
0 answers
25 views

How can I exactly position an image\table in a document?

I am trying to insert an image in my LaTex document using either straight ahead the \includegraphics argument or the figure environment. One problem however that I am facing is that I cannot position ...
user avatar
2 votes
2 answers
57 views

How to generate a table from a list

I am attempting to build up a list of rows for a table, then render that list into a table. I'm using etoolbox to manage the list and loop over it. I'm close but I can't get more than one column of ...
user avatar
5 votes
3 answers
98 views

Centered cells with tabularx and linebreak

I would like to have centered cells and have manual linebreaks within tabularx. I searched a lot in stackexchange and other latex related pages, but cannot find a solution \documentclass{article} \...
user avatar
1 vote
1 answer
70 views

Table: Color, alignment, and linebreak in cells

Code Consider the following code. \documentclass[ 12pt, landscape ]{article} \usepackage{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[ a3paper, margin = 0.77cm ]{...
user avatar
0 votes
1 answer
24 views

Last column of table getting pushed to next line

This might be a really basic thing that I am struggling with - I'm trying to create a simple table (outputted from Stata) but the last column gets pushed to the next line repeatedly - removing the ...
user avatar
1 vote
1 answer
34 views

Align top line of two tables side by side and their caption

I am trying to align these two tables that unfortunately are uneven on the top hline. The results are upsetting. I'm using minipage to have the two tables side by side. If you have any idea how to ...
user avatar
2 votes
4 answers
60 views

What to create a long stretched arrow across columns in latex?

Want to enter an arrow that stretches from columns 3-5. The desired output is shown in the image file. Please suggest how to achieve it. The sample latex code I have presented below. \documentclass[...
user avatar
2 votes
2 answers
75 views

Modifying tabular environment to longtable and adjust box

I have the following tabular code: \begin{tabular}{|c|c|} \hline Name & Formula\tabularnewline \hline \hline Parameter 1 & $\phi_{1}=a^{2}+b^{2}+c^{2}+abc+bca+cab+a^{3}+b^{3}+c^{3}+3ab+2ba+...
user avatar
0 votes
2 answers
79 views

How to make beautiful vertical borders in tables

I want to print a table with vertical lines. This is what I currently have: % Preamble: \usepackage{multirow} % \usepackage{booktabs} \begin{table}[htbp] \begin{tabular}{|c|ccccccccc|} \toprule & &...
user avatar
0 votes
1 answer
34 views

tkz-tab: problem with tkzTabIma

how can i make the number 1 and 0 lie on the line at f(x) row
user avatar
0 votes
0 answers
34 views

How to force numeration in tables and figs

Hello Friends I would like to force the enumeration in figs and tables: I need Figura 1 y tabla 1. I am using report class but my tables and figs took the chapter enumeration too: Tabla II:1. and is ...
user avatar
1 vote
1 answer
18 views

Extra alignment tab has been changed to \cr in table

What is wrong with this table, please? It is giving an error Extra alignment tab has been changed to \cr Where is the mistake in the number of &? \documentclass[11pt,a4paper]{report} \usepackage{...
user avatar
  • 257

1
2 3 4 5
327