{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.
5
votes
1answer
207 views
Table with a numbered list
What is the best way to make a table/list that looks like this:
1. Item 1
subitem type date
subitem type date
2. Item 2
subitem type date
...
5
votes
2answers
1k views
tabularx inside a \newenvironment
There's something wrong with this code:
\newenvironment{Tbl}
{\begin{tabularx}{\textwidth}{|l|X|} \hline}
{\end{tabularx}}
but this is fine:
\newenvironment{Tbl}
{\begin{tabular}{|l|l|} \hline}
...
5
votes
1answer
945 views
How to vertically and horizontally centre text and images in (different) table cells?
I have a table which contains images in one column. I would like the first column to have text centred vertically and horizontally. I would like the second column to have text left justified and ...
5
votes
3answers
1k views
Automatic table row numbers
Is there any way to get automatic row numbers in table?
For example, if I define table contents as
\begin{tabular} % black magic column definition
\rownumber & foo\\
\rownumber & bar\\
...
3
votes
3answers
233 views
Bold one cell in table using CSV reader
Is it possible to bold a single desired cell (or number of cells) using csvreader (besides the head)? Here is an example of making the table.
\documentclass{article}
\usepackage{csvsimple}
% Make ...
3
votes
2answers
745 views
Drawing Arrows in Tables
What is the best way to draw a diagonal line through the following table?
\begin{center}
\begin{tabular}{*{9}{c}}
$e_{1}$ & = & $0$ & $.$ & $d_{1}^{1}$ & $d_{1}^{2}$ & ...
3
votes
2answers
227 views
An improved \rowstyle that takes the cell contents as an argument
It is possible to format the column entries of a tabular in an argument-style fashion using the lrbox environment to
store the column cell in a box (say) \mybox; and
supply \mybox as an argument to ...
2
votes
2answers
277 views
How to make a table smaller?
I am going make a table smaller in a paper which I am going to submit to a journal. I used \small but it does not make it small enough ?
2
votes
2answers
697 views
booktabs and tiny horizontal space
In a regular table, I'm trying to remove the small horizontal space before the first column and after the last one as achieved with package booktabs with the option @{}. How can I do that? Please ...
2
votes
2answers
521 views
Extra line of vertical separator using itemize in tabular
I'm creating a resume based off of the example tutorial HERE. It's fairly simple, actually -- just a two columned table with dates on the left and job on the right. I prefer bullets vs. a paragraph ...
1
vote
1answer
86 views
Automatic adjustment of cell width
My problem is similar to tabular tabularx automatic linebreak (p/m/b doesn't work as expected).
However he had some other issues that I don't have.
I have a two-column article. In this article I ...
20
votes
4answers
876 views
How to draw arrows from cell to cell at the borders of a table
How can I draw arrows from cell to cell at the borders of a table? More precisely I'd like to get something like this:
It would be nice to have a solution using TikZ.
Edit:
Since I have other ...
11
votes
1answer
1k views
How to draw lines around multiple table cells
\documentclass[fleqn,12pt,a4paper]{article}
\usepackage{tabularx}
\begin{document}
\begin{table}[ht]
\begin{minipage}[b]{1 \linewidth}\centering
\begin{tabular}{|c|c|c|c|c|}
\hline
...
18
votes
3answers
11k views
How can I draw a horizontal line spanning only some of the table cells?
In a table, how can I draw a horizontal line that goes only through some of the cells? I mean a line like the one in the Foo and in the Bar area of this table:
+----+-----+
|Foo |1 |2 |
| |1 |2 |
...
21
votes
1answer
16k views
How do I fill table cells with a background color?
I'd like to fill the cells of a table with a background color. How can this be done?
20
votes
3answers
16k views
Adding space between columns in a table
I notice that the space between each column of a table in LaTeX is not quite wide (at least for me). Is there any way to set this? I found the \hspace, but I don't get how to use this in the table.
...
11
votes
2answers
873 views
How to Create Comparison Tables in LaTeX?
I am a new user (both to LaTeX & this forum).
I want to create a Comparison Table for an Article (like the one shown here):
Can someone please help me with this.
8
votes
2answers
3k views
How to Rotate Text in Table across column spanning many rows
\documentclass[fleqn,12pt,a4paper]{article}
\usepackage{tabularx}
\begin{document}
\begin{table}[ht]
\begin{minipage}[b]{1 \linewidth}\centering
\begin{tabular}{|c|c|c|c|c|}
\hline
...
6
votes
4answers
1k views
Using external tables in TikZ
How do I use tabela.xls as a data source to a LaTeX table or even a table made with TikZ with the following command?
Note: I wanted to use tabela.xls as a data source for multiple files. Tex and that ...
17
votes
2answers
1k views
Highlight a table row with a rectangular overlay
I am trying to highlight the row of a table by drawing a rectangle over that row. A wrinkle is that the code for the table is pre-written from external statistical software and then included in the ...
16
votes
2answers
2k views
Generate random numbers with a specific font
My objective is to create a table or some form of environment as shown in the figure below.
The numbers should be randomly generated every time you compile and have the font shown below.
Is ...
9
votes
3answers
2k views
Convert numpy array into tabular
I am doing some data analysis in python, putting the results in form of a matrix stored into a numpy array. I would like to put this results into a report and the best way would be to put a table with ...
26
votes
10answers
1k views
Methods to edit column order in an existing LaTeX table?
What is the best way of editing an existing LaTeX table? I need to swap the order of two columns and can't think of an efficient way of doing this.
My table is a long creature of the following ...
12
votes
3answers
529 views
How can I illustrate decimal to binary conversion?
As part of my homework for discrete math I need to convert different decimal values, both positive and negative, to 8-bit binary representations using signed magnitude, 1's complement, and 2's ...
12
votes
2answers
6k views
shrinking tables for presentations
What is the most convenient way to shrink a table to fit in a beamer slide?
8
votes
2answers
11k views
Combine 4 cells in a table
Here is some simple table - I cannot upload, because I'm just a guest.
I want to merge 4 cells. I mean I want to combine three "this" area in this table.
I thought I have to use multirow and ...
7
votes
2answers
3k views
Remove vertical lines for table
I am trying to implement the following K-map with a table
AB
C 00 01 11 10
______________
0| 1 0 1 0
1| 0 1 1 0
I implemented it like this:
\begin{table}[htdp]
...
17
votes
2answers
515 views
How to put the list of figures into a table
How can I get a “list of figures” of the following type?
List of figures
Exactly, this list of figures is set as a table. I know this cannot be obtained by the command \listoffigures directly, but ...
16
votes
1answer
342 views
automatically insert data in a complex table
I have a relatively complex table that looks like this:
The same table structure is going to be repeated so many times. I already have the tables in MS Word. My question is if there is an easy ...
12
votes
3answers
768 views
A table with square cells
A friend is trying to make some auto-generated bingo boards, and LaTeX seems like an obvious choice - nothing fancy, just a 5x5 table with square cells, centered text, and line wrapping if necessary. ...
12
votes
1answer
17k views
Add notes under the table
I'm using the latex package apa6e because the apa package isn't using APA style version 6 yet.
Now I'm trying to add a table with notes right underneath it, like in this table for instance:
Since ...
11
votes
1answer
467 views
Table looking like a block
The goal is to create a table that has the same style than a block of the used theme in order to have a consequent style trough the document. this can be done by the following two methodes shown in ...
11
votes
1answer
1k views
coloring every other row of a table, with vertical lines
I am making a table that needs every other row colored. I thought to use this.
\usepackage[table,svgnames]{xcolor}
\rowcolors{1}{white}{gray!15}
But my table has vertical bars
...
10
votes
1answer
182 views
Scientific Notation Only For Large Numbers
I have a table full of numbers. Most of them are floating point numbers that are less than one, some are integers from 1-100, and a few are large (×10^75). I know how to set the precision of the ...
8
votes
4answers
538 views
How to make 4 equal paddings (left, right, top, bottom) in a table cell?
I want each cell in a tabular to have 4 equal paddings of exactly 15pt each.
How to make 4 equal paddings (left, right, top, bottom) in a table cell?
\documentclass{article}
...
7
votes
1answer
35 views
Change text color in table, preserve ability
I'm having difficulty creating a new command for \rowstyle that allows me to color the text of different rows in a table and preserve my ability to space out the columns and not induce space between ...
19
votes
3answers
21k views
tabular vertical alignment to top?
I'm trying to create a simple tabular with two cells of text and two images below them like so:
\begin{tabular}[h]{ c | c}
\emph{Normal} & \emph{Cone} \\
...
18
votes
5answers
26k views
LaTeX tables: How do I make bold horizontal lines (typically \hline)?
The title says it all:
In LaTeX tables: How do I make bold horizontal lines (typically \hline)?
15
votes
2answers
7k views
Vertical spacing of a table cell
I want to tabulate formulas, but I find that the lines of the table cells are too close together, and this is aesthetically unsatisfactory. Example (formulae copied from wikipedia):
...
11
votes
2answers
781 views
vspace before itemize in a Table cell, tabular vs longtable
In the following MWE, one sees the difference between tabular and longtable, with respect to the vertical space before an itemize, inside a cell :
\documentclass[12pt]{article}
...
9
votes
3answers
506 views
Copy table row n times
I would like to copy the row of a table, let say, n times, but unfortunately my sample below does not compile. It is my understanding that the \foreach command should copy what is in its argument but ...
8
votes
2answers
208 views
Accessing values from tables via “grid search”
I am trying to achieve the following: I want to access a number from a table in the main text and make some calculations with it. For example, if there is a value 1.85 in the table I want to store it ...
7
votes
3answers
5k views
Newline in a table cell which is centered
This question may look like a duplicate but, none of the answers given to the possible duplicates contain the answer to this specific case.
I have a tabular, say \begin{tabular}{ccc}. While adding a ...
6
votes
2answers
344 views
PGFplotstable: Is it possible to set a number format for a *row* instead of a column?
Using pgfplotstable, it's straightforward to set a column number format using
columns/(columnname)/.style={(format)}
What I would like to do is change the number format of a particular row. In my ...
6
votes
2answers
1k views
Indent all but first lines of paragraph.
Inside of a table column with a width determined by a p{5in} tag, I want all but the first line of text to be indented.
Is there any way to achieve this? Doing it by hand would make later edits ...
5
votes
1answer
1k views
Putting LaTeX table legend in a “x\y” style [duplicate]
Possible Duplicate:
Tables of numbers
Is it possible to put a "x\y" style legend in one cell (maybe be made up of several cells) of a table? It would be great to make the 'x' slightly lower ...
4
votes
1answer
699 views
Wrapping text in enumeration environment around a table
I would like to wrap the text in an enumerate environment around a table, this is my actual situation (sorry for including so much code, but I wanted to give a precise idea of the number of lines in ...
4
votes
2answers
469 views
siunitx rounding in table with parentheses
I'm trying to create a standard regression table with standard errors in parentheses below the coefficients, while using siunitx to align the numbers on the decimal point, and to round the numbers.
...
4
votes
2answers
1k views
Too long vertical lines in table
Ok, I've looked at this code too long and need some fresh eyes and ideas.
Question: Why do I get too long vertical lines on my LaTeX table?
Please note that I've not experiencing any problems with ...
4
votes
2answers
1k views
Clickable Table Footnote
I'm trying to have some clickable footnotes within tables. I tried using \footnote{}, it does create a link but there's no footnote text associated with it. \footnotemark[number] along with ...