Tagged Questions

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

learn more… | top users | synonyms (2)

6
votes
2answers
77 views

Place table based on position of column break

I have a table with two columns of different widths. I want to place my table in my page such that the line between the two columns falls on the center of the page. If the columns were the same size ...
6
votes
1answer
147 views

Custom environment vs macro inside a tabular

In a document I'm writing I have a nested tabular structure that I want to capture as a macro for reuse. I'd like to define the nesting using a new environment but it doesn't seem to work. I have ...
4
votes
2answers
86 views

Series of long equations formated into a table with references

I have a series of long equations, 12 of them, that I'm trying to format into a table. The table is something like: \begin{tabular}{L{1.7cm} | L{1.8cm} | C{12.2cm} R{1cm}} \toprule \textbf{Label 1} ...
2
votes
2answers
152 views

How to make multiple tables?

How to make multiple tables on the same page, as in the example?
7
votes
2answers
115 views

Amend tabular environment in preamble: different font

I'd like to put some lines in the preamble to change the font of all tabulars in the document. I know that I can easily define my own environment »mytabular«. But for different reasons I need to ...
1
vote
1answer
101 views

Error in creating tables in beamer

The code for tables i used in beamer is as follows : \begin{center} \begin{tabular}{|r|r|r|} \hline Risk&Meaning&Example\\ \hline ...
5
votes
1answer
262 views

Input a table into a subfigure, get the error “Not in outer par mode”

My question is it possible to put a table in the place of a figure when using subfigures? I have tried this example: Include table as a subfigure but I get the following error: Not in outer par mode ...
7
votes
3answers
87 views

Set the columns' width of a row under multicolum row

I want to make a table like this one: I've using: and got the table Please help me to adjust the width of columns Y1, Y2, and Y3 equally. Many thanks!
9
votes
2answers
125 views

Text at the edge of a table

I have made a big table in L-form, and I was wondering if there is any way in Latex to write at the ege of the L where there is nothing in the table. See the following illustration: So the idea is ...
2
votes
1answer
30 views

Yet another issue on spanning columns

There are a lot of examples on spanning columns and rows in a table. I tried them to create a table like this but failed! +-----------------------------+ | A | B | C | D | E ...
5
votes
3answers
183 views

Equations in a box - table doesn't work

I want to put some limit equations in a table but all I get are errors such as "! Missing $ inserted." and "! You can't use `\eqno' in math mode.". Am I doing something wrong or is there another way ...
15
votes
2answers
531 views

moving the whole word to next line when there is no free space

Is there any option in tabular that can move the whole word to the next line whenever the length of the word is greater than the fixed cell size? Currently I use \begin{tabular}{ | p{2cm} | } And ...
1
vote
1answer
110 views

How to display a number with many decimals and year correctly

I have a table in "import_csv_2.csv" as follows: No. Year W(G) 1 2010 0.02110333 2 2008 0.02082747 3 2006 0.02037291 ... \pgfplotstabletypeset[ col sep=comma, ...
9
votes
2answers
185 views

Weird alignment issues in table for list of courses

I am trying to make a table containing details of all my coursework. I wrote the following code. There are a few issues with it: Why is it giving a blank 1st page upon compiling(with the table on ...
3
votes
3answers
136 views

How can I fix the width of the table?

I have a multi-column table but the width of last three column is float. I want it change line automatically when the text exceeds the table of too long to write in one line. Here is the image and ...
5
votes
2answers
266 views

Increasing space between columns in a list of acronyms

For my List of Acronyms page, I'd like the explanation of the acronym (i.e. "List Abbreviations Here" in the example below) to be a bit more on the right. I'm using a thesis template, which ...
7
votes
1answer
330 views

Huge table/matrix with colored boxes

I have a huge CSV file with about 25.5k records that (structurally) looks like the sample below. In essence, I want to display the values of the columns U,V,W,X,Y,Z of each row as a colored box. The ...
5
votes
1answer
129 views

Change diagonal line color in the table (slashbox)

I want to change the diagonal line color to white (the one at the left top corner in my case). Here is the image Here is the code \documentclass[12pt, a4paper,twoside]{memoir} \begin{document} ...
4
votes
2answers
397 views

Sophisticated square cells table

Is it possible to draw tables as those in Figures below. Tables should have square cells and notations along borders. I know that I could use the TAB environment from the Easytable package to create ...
5
votes
2answers
850 views

How to draw two \hline and two vertical line?

I want to draw a table with two \hline and two vertical line. But as shown in the figure, the first vertical line do not cross the two hline. How to solve this problem? \documentclass{article} ...
5
votes
2answers
140 views

Balanced vertical padding in table & Why does \vphantom has width?

I think I have a simpler & better solution to these questions on how to add vertical padding to tabular cells so they looks less crammed. However, my solution which make use of \vphantom somehow ...
4
votes
1answer
378 views

Color first row in a xtable generated table

I am trying to color the FIRST row of my table. But if I add \rowcolor[gray]{0.95} to the FIRST row the colored row will be the SECOND. Indeed it is quite straight forward to modify from the second ...
4
votes
1answer
825 views

TikZ Picture in Table

Can somebody help me with the table? I want to have distance between the outline of a TikZ picture and the table-line. Furthermore, the non-TikZ pictures aren't centered. Here is my LaTeX code: ...
5
votes
2answers
153 views

Footnotes in table captions but not in list of tables

I have the following problem: My tables are formatted via caption[title]{long description...}. Now I need to add the sources to some of them as a footnote added to the caption, like in the following ...
4
votes
2answers
350 views

Plot data from a LaTeX table

I have a table in LaTeX format. I would like to plot a few figures using this data, having the five frequencies (125, 250, 500, 1000, 2000, 4000) on the horizontal axis, and the absorption coefficient ...
1
vote
0answers
151 views

Define style of xtable

I want to set the style of tables built with xtable by looping on multiple dataframe. I then look for some macro so to set the style in the preamble and not directly within the tabular environment. ...
1
vote
1answer
41 views

Footnote inside tabular inside longtable

I have a foontone inside a tabular environment inside longtable and of course it does not work. Has anyone faced something similar? What should i do ? Thanks in advance Vasilis \begin{center} ...
-1
votes
1answer
139 views

how can i write latex code to produce this rectangle as picture [closed]

anyone can help me this question,i really hurry,
5
votes
2answers
170 views

Unwanted vertical space before tabular on title page

I worked on my title page, and there is some undesired vertical space before a tabular environment. I made two fboxes to illustrate the vertical distance I wanted to be the same 116 pt. But after the ...
3
votes
1answer
347 views

Control space between paragraph and table in LaTeX

I have large white space between paragraph and table in a LaTeX file, see the following figure. how to control this space? MWE is uploaded in this link MWE the paper should not exceed 1 page
1
vote
1answer
99 views

Problem with making table

I have been in a problem with making a table in LaTeX as attached in the figure below. Please help me out. I am trying like: \begin{document} \begin{tabular}{|p{1cm}|p{1cm}|p{5cm}|} \hline ...
3
votes
0answers
159 views

Center an image horizontally and vertically in a table with ConTeXt

\setuppapersize[A4] \enableregime[utf-8] \usemodule [simplefonts][size=12pt] \setmainfont[EB Garamond 12][expansion=quality,protrusion=quality] \setuppagenumbering[location=] ...
4
votes
2answers
389 views

Left and right aligned minipages, with table layout

I am trying to create a layout with two "columns," where the right-hand column itself has two columns, which are right and left aligned, respectively. For instance: This is some text in the first ...
4
votes
2answers
367 views

Why isn't my table centering with threeparttable?

Can anyone help me to solve my problem with threeparttable, TPTMinimum redefinition and centering environment? I haven't seen in any other topic what I was trying to do. I have something like this: ...
2
votes
1answer
147 views

Vertical alignment of multiple consecutive tables

The aim is to align multiple (often quite large) consecutive captioned tables within respective chapters, for example: chap 1, table 1.1, table 1.2, table 1.3 --- chap 2, table 2.1, table 2.2... ...
3
votes
2answers
270 views

Vertical space between chapter heading and table

In my appendix I have only chapters followed by one or more tables each. These tables are captioned. But I'd like the tables to begin after the usual vertical space which is put if you simply write ...
3
votes
1answer
128 views

Table: rule spanning two side-by-side tables

I have a little problem for which I desperately need help. Basically I want to span a midrule (or any other type of rule) over two vertically aligned side-by-side tables. As in the MWE below, I could ...
20
votes
2answers
434 views

How to print subtotals in each page of a long table?

Some invoices need print a large list of items. In this case, and in my country, invoices must print the subtotal of the previous page for each break page, and add to the last subtotal the accumulated ...
3
votes
3answers
181 views

problem with multirow: text runs out of a cell bound

As shown in the attached picture, text runs out of the cell bound. I'd appreciate it if someone could help me fix the problem. \begin{table}[!htbp] \centering \caption{Experiment outline} ...
6
votes
2answers
119 views

What is the correct way to calculate \multicolumn size when using tabularx?

What is the correct way to determine the correct size for use with p{} needed by \multicolumn to get the size correct? The problem is this: I want to use tabularx and also use \multicolumn. To do ...
2
votes
2answers
147 views

How to make width of an inner table use full column width of an outer table?

When making tabularx one need to give a table width. For the outermost table, one can use \textwidth. When making one or more inner table(s) inside outer table(s), the inner table(s) also need a ...
5
votes
1answer
116 views

How to put tabularx inside tabularx

I am trying to make a complicated table, where each cell itself can be a table. I found I can include tabularx inside tabular*, but unable to figure out why I get an error with the outer table is ...
2
votes
3answers
964 views

Latex: obtain an empty row with central alignment

I would like to have a table that looks like the image below. \documentclass{article} \begin{document} \begin{table*} \begin{tabular}{|l|l|l|l|l|l|l|} \hline ...
1
vote
0answers
27 views

Latex: obtain an empty row with central alignment [duplicate]

Is there a way to produce a table in LaTeX in the way as is depicted in the attached image? I have tried the following code, but I am not able to obtain an entire empty row with, say, "cold cache" ...
3
votes
2answers
146 views

How to make a two-column table with border?

I have never been able to figure out how to make tables do what I want in LaTeX. How do I make a two-column table with a border and a line down the middle separating the two columns?
1
vote
1answer
100 views

Combination (mix) of enumerate and tabular environments with labels giving the number from the enumerate environment

I'm trying to do something similar to How can I mix itemize and tabular environments?. However, I'm trying to use an enumerate environment, I want the items lined up like in a tabular environment, ...
1
vote
1answer
63 views

Table taking up full width

I am looking to adjust this table in two ways: -Firstly, I would like the second = to be more to the right, next to the $P_{S}(K|GB)$. -Secondly, I would like the table to take up as much width as ...
4
votes
1answer
147 views

How to use table in multicols env. with paragraphs p{} and \multicolumn as well?

updated question I am going to start all over. Will make the question very simple and direct. Will leave the original question below. I simply want to see an example of using \multicolumn in a table ...
1
vote
0answers
125 views

How to keep title, table and caption together in 1 page?

I have one table which is dynamic (number of rows varies from 2 to 20). This table has title and caption. But I need title, table and caption all 3 should be in the same page i.e. need to avoid title ...
0
votes
0answers
27 views

Row to column table [duplicate]

Is there any way to transpose table? I mean row to column and column to row? Here is the code. \documentclass[a4paper]{article} % <-- remove12pt, again too big for your table. ...