{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.

learn more… | top users | synonyms (2)

2
votes
2answers
253 views

Urgent help with preparing a table

I'm writing my internship report and I need to include this Table, I wonder if there is someone who can help with the TeX program for this Tab.
7
votes
1answer
4k views

Adding row spacing to a longtable?

I want to add some extra spacing between the rows of my longtable - but not for every table of the entire document, just one of them. I've tried to use the \\[dist] mechanism, but with surprising (at ...
10
votes
1answer
1k views

Indenting wrapped words in tabular environment

How do I indent wrapped words in a tabular environment? I would like my table to look like this: +-----------+-----------+ | heading 1 | heading 2 | +-----------+-----------+ | cell 1 | cell 2 |...
10
votes
1answer
54 views

Is there any way to change the caption of a table after its declaration?

I have some tables that are generated automatically by a third-party program. I would like to change their captions without editing their text. Is there any way to change the caption of a table after ...
3
votes
1answer
109 views

Inserting existing table in a float

I have a lyx file with tables which are not in a table float, I need to put them in a new table float . It seems it is impossible to do this in the GUI of lyx, So what are the workarounds to achieve ...
5
votes
1answer
89 views

Precision for one row only

I have an array with three rows and I would like that the last row has a specific format. There is a command every row no/.style, but it wouldn't work in our context because the processing is applied ...
4
votes
1answer
41k views

Making table width fit into text width [duplicate]

I'm using p{} format to adjust the width of a table. I expected using {p{0.1\textwidth}||p{0.2\textwidth}|p{0.2\textwidth}|p{0.2\textwidth}|p{0.2\textwidth}} makes the table width smaller than the ...
2
votes
1answer
249 views

parameter description with long descriptions and long lists — possibility of page break?

I have a series of equations with following parameter description. Some of those descriptions are relatively long, meaning that I nead a line break. I use so far table, and to accomodate the long ...
8
votes
1answer
1k views

Why does \smash screw up vertical spacing after tabulars?

Using \smash after a tabular seems too screw up vertical spacing. Wheras after a paragraph vertical spacing is fine. Witness for yourself: \noindent \begin{tabular}[t]{@{}ll}% One\cr Two\cr \end{...
5
votes
1answer
284 views

Table with percentage sign for a specific line

I am importing a table from a file and I would like to add a percentage sign for all figures on the third row. The code works well for a specific cell in the table using the command every row 2 ...
3
votes
0answers
161 views

Hyperref TextFields dont't work when in tabular environment with xetex?

I created a pdf fillable form in LaTex using hyperref text fields, then decided that I wanted to change the font of the whole form, so I tried to use XeTeX with fontspec. Unfortunately, when I do ...
0
votes
1answer
115 views

LaTeX table appears below reference, not in correct location

I have a table using the tabular environment: \begin{table}[ht] \centering \begin{tabular}{c|cccccc} & Landmarks in the Human Genome Project \\ \hline \rowcolor{LightCyan} 1953& Watson-Crick ...
3
votes
1answer
204 views

latex table appearing below references

I have a table using the tabular environment: \begin{table}[ht] \centering \begin{tabular}{c|cccccc} & Landmarks in the Human Genome Project \\ \hline \rowcolor{LightCyan} 1953& Watson-Crick ...
3
votes
0answers
40 views

Read single value from a table [duplicate]

I will use in many places in my LaTeX document a specific value given in, say, the row 2 and column 1 from a table. Is it possible to make a macro for it, such as \read{2}{1} ? Here is an simple ...
1
vote
1answer
324 views

How to make columns of multiple tables the same size?

In my document I have a couple of tables that each have to columns. I'd like to make the first column of all tables the same width, and the second column of each table should consume the rest of the ...
7
votes
1answer
134 views

Import a table with a specified format

Basically, I have a table (from a file) containing only numeric values. I would like to import in latex but it has to be formatted in a specific way, as illustrated by the picture. The ... should be ...
5
votes
1answer
236 views

Align \itemize and \tabular horizontally

I have an \itemize list and a \tabular table, how do I get them to align horizontally on the the same line? This is what I have so far: \documentclass[8pt, a4paper,twoside]{article} \usepackage{...
2
votes
1answer
131 views

Table too wide for page in standalone file?

My goal is to create a standalone TeX file containing tabulated figures. No matter what value I set for image width, the resulting table is always too wide for the page. Here is a MWE: \...
3
votes
2answers
592 views

Multiple paragraphs in a multirow cell?

I'm trying to write multiple paragraphs inside a multirow cell,... but I can't find how! I've tried a lot of options, but none of them worked. First of all, I'll show you what I would like to get: ...
1
vote
1answer
2k views

Drawing database tables in tikz

I am bit confused about how can i draw a table like this using tikz. Any ideas please?
2
votes
1answer
468 views

How to break the table elements in LaTeX?

I am setting up my bibliography in LaTeX. I have used tabularx but the problem is it tries to set the entire table all together, since the list is long, it will go over the limits of the page. Is ...
5
votes
1answer
547 views

Splitting figures/tables into separate files

I'm preparing an article for submission in a journal and it requires that the PDF of the text be uploaded without figures and tables and each figure and table should be it's own PDF file complete with ...
6
votes
1answer
3k views

Left-Align Table in Beamer Presentation

I have a table within a frame in a presentation using the beamer package, and it's centered in the frame right now: \subsection{Results} \begin{frame}{Results} \begin{table} \begin{tabular}{l|l|l|l|...
1
vote
1answer
2k views

How to make a Cayley table?

I'm trying to make a Cayley table such as the one shown here http://dogschool.tripod.com/cayley.html Thus this question doesn't help Making an odd shaped table
3
votes
1answer
231 views

Creating a table in LaTeX

I am fairly new to LaTeX and creating tables. I was wondering if there was a way to create a table that looks like this: | Method 1 | Threshold |P |Z |W |...
3
votes
1answer
605 views

Suppress page break before table

I have a large, horizontal table that spans multiple pages. LaTeX puts a page break before the table, but I don't want a page break. I want the text to fill the page before the table. I've tried \...
6
votes
1answer
1k views

Alignment at specific character with S column from siunitx

To avoid starting a new question yet again, I'll use this tread as the problem is the same as the first one. \documentclass{article} \usepackage{booktabs,dcolumn} \usepackage{calc} \usepackage[...
5
votes
1answer
100 views

Unexpected alignment in table

Consider the following example. Code \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{booktabs,dcolumn} \usepackage[locale=DE]{siunitx} \newcolumntype{d}[1]{D{.}{,}{#1}} \newcommand*...
4
votes
2answers
343 views

Vertical alignment in tabular with fbox

I have problems with vertically aligning content in my single row header table for an invoice template. Currently it looks like this: What do I have to do to align the top fbox to the top of the ...
11
votes
5answers
3k views

How to write a code to find the Pythagorean Triples

I want to write a code to make a table contains Pythagorean Triples (see picture) automatically. That is mean from the formulas $a^2 + b^2 = c^2$ , we can get the Pythagorean Triples I used ...
2
votes
1answer
482 views

TikZ table text alignment

I'm having trouble aligning text inside a TikZ table. It currently just centres the middle letter, despite the align=left. I also tried using: row 1/.style={nodes={align=left}} (as suggested in ...
4
votes
1answer
308 views

TikZ table with floating labels + time discontinuity

I'm trying to create a TikZ version of this table, made in LibreOffice Draw. I'm quite new to TikZ, and don't really know what I'm doing, but have followed an example here and have built this table:...
4
votes
1answer
128 views

Alignment of tabular objects inside a horizontal box

How to align two tabulars of different height side by side so that both top rows are aligned with each other? Example: \hbox{\vtop{\hbox{Foo}\hbox{Bar}}\enskip\hbox{Baz}} produces Foo Baz Bar ...
7
votes
1answer
2k views

LyX: Insert bullet list inside table cell

I want to add a bullet list inside a cell, but .. I can't.
3
votes
1answer
159 views

How to convert all numbers into math mode

I have a table converted from excel. I want to transform the numbers in the table to the math mode, i.e., 15 -> $15$. Is there any visual way I can use it. I am using TexStudio. CODE: \begin{...
7
votes
5answers
10k views

How to center table caption that includes a newline

My table caption spans more than on line so I added a \newline to split the caption at an appropriate position. Now, the two lines are left aligned. How do I center the two lines of the caption? \...
3
votes
2answers
243 views

\mathbf ignored in table column specification

I have a long table whose columns are to be typeset in math-mode and bold. To avoid repeating \(\mathbf{cell value}\) for each row, I defined in a column specification how each cell under it was to be ...
7
votes
2answers
6k views

Dealing with very long table - split into columns?

I've got a very long table in a document that I'm not sure how to deal with. I've been thinking about putting it in the appendix of my document (I'd have to create one just for the table). It's too ...
2
votes
1answer
236 views

From TexShop to LyX - Table error

I wrote this table in TexShop and all seems to work but, when I try to insert this table in a Tex block in LyX I got some Undefined Control sequences, some Missing $ inserted and some extra} I used, ...
3
votes
1answer
74 views

Text in merged Table

I don't know why my text in the top of merged column will always be duplicated. \textbf{A} in line 6 show in the table will be AA which I cannot figure out why. Thank you for help. \begin{figure}[!...
1
vote
2answers
63 views

Reference grouped tables with hyperlinks

I have the following MWE. \documentclass[12pt, a4paper]{report} \usepackage[hidelinks]{hyperref} \usepackage[all]{hypcap} \begin{document} As seen in Table \ref{table1} and \ref{table2}. \begin{...
33
votes
6answers
5k views

How to produce a list of prime numbers in LaTeX

I would like to write a LaTeX script that produces all the prime numbers between the numbers n and m, where n < m. How can I do this? I feel it should not be that hard, but I cannot seem to program ...
3
votes
2answers
402 views

Switch off booktabs for one table only

I am using the booktabs package in basically all my papers to present tables with results or descriptive statistics. However, I need to show a schematic choice in a table, and for that I need a proper ...
5
votes
1answer
154 views

Spacing between tables

I need to adjust the vertical spacing between three tables as defined in the following MWE. \vspace{30pt} only works for between the second and third table. I'm suspecting this has something to do ...
4
votes
1answer
199 views

Specify color of the first row in table (in “newenvironment”)

I am using an specific style for my tabulars and I am looking to specify automatically the color of the text in the first row. Currently I must specify manually the color of the text of each cell in ...
14
votes
2answers
426 views

How to set tikzmarks with \noalign at the edge of tabular rows

I'm trying to improve the lines in a tabular with colored rows (lines above a colored row can disappear in the adobe reader at some zoom levels) by redrawing the line above a row after the row itself ...
2
votes
2answers
254 views

Fixed table width with even alignment

I like to use a table layout where the width of the table is fixed to 7cm. I can do this using: \documentclass{book} \usepackage{array,tabularx} \newcolumntype{+}{>{\global\let\currentrowstyle\...
8
votes
3answers
275 views

Simple Key Events table

Consider the simple time-line table shown in the image below (extracted from a book). and the MWE below defining it as an environment, \documentclass[twocolumn,10pt]{article} \usepackage{mathpazo,...
2
votes
0answers
151 views

pgfplotstabletypeset merged cells in middle of table

I have to convert some *.doc files in LaTex and I have some hard work with converting some tables. I have, for example, tables like this: and is mandatory to import the values from *.csv file. It's ...
2
votes
1answer
187 views

Alignment of text within a table with color

Is it possible to align the numbers in the last column of a table with color? For this column, I would like the numbers (they are actually text) to be in the center of the table, but aligned to the ...