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)

1
vote
1answer
23 views

Aligning Table Notes in Three Part Table

I am using the threeparttable environment to make tables. The table notes are always indented. How can I get the notes to start flush with the table? \documentclass[a4paper,12pt]{article} ...
3
votes
1answer
25 views

Increase width of caption's horizontal lines in algorithmic and listings

I've been able to increase the width of the horizontal lines honoring the second answer in LaTeX tables: How do I make bold horizontal lines (typically \hline)?. Now, I'd like to do the same in ...
3
votes
1answer
34 views

alignement problem with table and fancyhdr

I'm having a problem with allignement in header handled with fancyhdr. Here is my code \documentclass[a4paper,italian,10pt]{report} \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} ...
3
votes
2answers
55 views

Problem with a large table

I'm trying to make a table that's a little complex. I'll try to explain what I want with a picture of a table from word: I'm new to latex, so I have two questions. How can I make such table look ...
2
votes
0answers
62 views

Square root long division method

I wanted to draw the working column for this method of finding square roots: http://youtu.be/UnshaiwljGY Here is an image example of the process: But I am unable to draw it because I am new to ...
1
vote
2answers
32 views

Format table column widths to fit single column of twocolumn document

I am using a two column format, and I would like the following table to fit in one column, along with text wrapping on the title row. How do I do this? Thanks. \documentclass[10pt,twocolumn]{article} ...
4
votes
1answer
53 views

Is there a way to reduce the gap between double hlines (\hline\hline) in the tabular environment?

\documentclass{article} \begin{document} \begin{tabular}{c | c} cell 1,1 & cell 1,2\\ \hline\hline cell 2,1 & cell 2,2\\ \end{tabular} \end{document} I would like to reduce ...
0
votes
0answers
15 views

\otoprule not appearing

I am using a two column format, and for the following table the \otoprule line after the first row is not appearing. \documentclass{sig-alternate} \usepackage{array,graphicx} \usepackage{booktabs} ...
5
votes
1answer
40 views

Preserve tab and newline characters in command argument

Following the question Tab not as extra alignment tab I managed to use the tab character as column divider '&' and the newline character as line break '\\' in an array (or tabular) environment, ...
1
vote
1answer
56 views

putting notes below table

I'm having trouble putting notes below the table -- I put several notes below the table but the footnote seems to stretch, making the table longer than necessary. Would there be a way to fix this? ...
0
votes
0answers
22 views

putting footnote within table using \minipage

I tried to put a footnote within a table and then place the footnote beneath the table, which worked pretty well except for the ugly line that would not go away in the bottom. I think this is because ...
3
votes
3answers
70 views

Centering a table inside text block

I have a table in my document, but for some reason it is not in the middle of the page, as I can see more whitespace at the right side. Here is the source code for the table: \begin{table}[H] ...
3
votes
2answers
49 views

Loops and Tables

I'm trying to use LaTex to produce our family diary for next year. It's a page per week with a column for each person. I have the basic layout working: \documentclass[10pt]{article} ...
0
votes
0answers
19 views

Expand table columns proportionally to textwidth

I have a simple table: \begin{table}[h] \begin{tabular}{|l|l|l|l|l|} \hline First entry & 2nd & 3rd little longer & Forth & Fifth\\ \hline\hline 4.7\% & 11.7\% & 2.5\% ...
1
vote
1answer
52 views

Mathematical formulas in a table

I would like to draw such a table in latex with some mathematical formula. Could you please help me to do this?
1
vote
0answers
17 views

Vertical spacing in tabular environment with graphs/math

I have problem getting this to look nice. I need help with spacing and alignment of text: \begin{tabular}{lll } \toprule \multicolumn{1}{l}{Activation Function} & ...
2
votes
1answer
56 views

Macro for tables that take as arguments the column and row dimensions

I am working with tabulars formatted in a consistent way. Sometimes the tables are 3X3, 3X4, 4X4 etc nXm in general. As it is I have a macro for each of these tables: \matrixIIIC, \matrixIIID etc. Is ...
7
votes
2answers
85 views

How to determine the width I can use in a table

I have a table of fixed width in which I want to put some thing such as a figure or another box. But the problem is that I can't determine the width of the object that I want to put in the table. I ...
3
votes
1answer
45 views

Vertical space every third row in a table

I have the following code to put an extra space (a carriage return) after every second row. How can I edit the code to put the extra space after every third row instead? \documentclass[12pt]{article} ...
0
votes
0answers
69 views

wide table fit into beamer

I have been struggling to include a very wide table into beamer. Does anyone know how to properly scale the following table in order to fit the frame and be readable at the same time? Thank you. ...
0
votes
0answers
18 views

Horizontal lines of colored cell in table not printed [duplicate]

I am trying to add horizontal lines on the table but they are not printed on the paper. I want it to look like this: But when printed it looks like this: Note that there are no horizontal line in ...
4
votes
3answers
37 views

Making a space between table headings

I want to replicate the table in this image but without the second column: However the problem is that I'm unable to find out how to make a horizontal space between each two columns (N=2, N=3 ... ...
1
vote
1answer
44 views

How to create a large table with Pgfplots and string entries?

I tried to hack this here for a larger case but it is firing errors. What is causing the too many columns error and is Pgfplots ideal for this kind of table generation? Goal: table that I am trying ...
1
vote
1answer
62 views

How do I center table headings including line breaks? [duplicate]

\documentclass[11pt]{article} \usepackage{geometry} \geometry{a4paper} \usepackage{mathpazo} \usepackage{amsmath} \usepackage{amssymb} \usepackage{booktabs} ...
2
votes
2answers
121 views

Creating a table from CSV file with strings?

I want to create a table from a CSV file in LaTex. I am able to do it with numbers here but creating table for strings such as abbrevions does not work. What is the problem? MVE This example ...
1
vote
0answers
18 views

Tool to flip a table [duplicate]

I am looking for a tool to flip the rows and columns of a tablular table. For example \begin{tabular}{lll} ...
4
votes
3answers
99 views

The caption of the table moved to the left

I am trying to add a table to my Latex document but the caption of the table shrunk in the left corner and does not extend to the whole width of the table. This is my table: \usepackage{graphicx} % ...
2
votes
1answer
32 views

Gluing text to longtable

I am an occasional LaTex user. My question relates to the use of longtable. If I understand the standard table constructs, then "tabular" defines the layout of the actual table grid with contents, and ...
2
votes
1answer
138 views

How to create a complicated table in latex

I am trying to create a table in LateX that looks like the following: Could anyone plz tell me what the corresponding LateX code would be? Thank you in advance.
2
votes
1answer
49 views

Switching from two columns to one column environment and back

I am using a two-column template to write an article in LaTeX. I would like to insert in the text tables which have one column only. Is there a way in which I can switch from a two-column to a one ...
2
votes
3answers
40 views

What does it mean to be a cell based table without being vertically merged?

I am given these requirements and I am not really sure what they mean. I need some help figuring out what they mean in terms of Latex code: -Tables must be cell based; do not merge rows. - ...
1
vote
2answers
38 views

Incomplete last vertical line in table with an image

I want to make a table in LaTeX and I wrote the following program: \documentclass[]{article} \usepackage{graphicx} \usepackage[usenames, dvipsnames]{color} \usepackage{multirow} \begin{document} ...
3
votes
2answers
29 views

The vertical lines in my tabular environment are scattered

I'm using pdflatex and have some trouble: the vertical lines in my tabular environment are all scattered. \documentclass{article} \begin{document} \begin{tabular}{| l | c | l |} \hline ...
5
votes
2answers
115 views

Extra distance in tabular in LaTeX

I want to make a table in LaTeX and I wrote the following program: \documentclass[]{article} \usepackage{graphicx} \begin{document} \begin{tabular}{|c|c|c|c} \hline ‬ & $\gamma_n$ & ...
1
vote
1answer
32 views

Custom table from csv file (multiple header rows)

I would like to create custom tables from .csv files. By custom I mean, that I only want LaTex to read in the body of the table, i.e. "a & b & ... \ ..." but I want to write my own header and ...
1
vote
3answers
49 views

Line break in table and multicolumn layout problem

I have a small problem. I would like to rebuild the following table: Until now I made the following code: \begin{tabular}{lllllll}\toprule \textbf{Factor} & \textbf{Effect} & ...
1
vote
1answer
28 views

Vfill after a table does not work

I have a table at the top and would like to place the title at the page mid - or place it with vspace. But it doesn't work. Here is my code and my problem is on line 17 (the vfill do nothing). ...
3
votes
1answer
60 views

How to align rotated column headings in a table?

I have this code which I adapted from Big table with rotated column labels using booktabs: \usepackage{booktabs} \begin{document} \begin{table*} \centering \begin{tabular}{cccccccccc} \toprule ...
3
votes
1answer
140 views

Alignment of exponential numbers with non-exponential number

I would like to align non-exponential and exponential number at their decimal point in a table. I tried \documentclass{article} \usepackage{booktabs} \usepackage{siunitx} \begin{document} ...
0
votes
0answers
26 views

Extra empty page for List of tables and list of figures

I am really stuck to that , I always get en extra empty page for list of table and and list of figures and table of contents and all these pages with headers , How I can remove them ?? Here is the ...
5
votes
3answers
105 views

Addition and Multiplication Tables

I am trying to create addition and multiplication tables for certain bases, but I want to construct them in a way different than most addition/multiplication tables are made, where the line divisions ...
2
votes
2answers
46 views

Line between cells

How to add line between cells in tabular like on this image between 38 and 77 in LaTeX? I have only this code, that draws table: \documentclass{scrartcl} \begin{document} \begin{tabular}{ ...
3
votes
2answers
82 views

Division with remainders displayed on side

I am trying to make a nice looking division process where the remainders are displayed on the side at each step. I want to produce exactly this (but, of course, be able to extend it to longer ...
5
votes
1answer
37 views

macro value can not be updated in tabular with multirow columns

I am writing a command \newrow to generate one row in a longtable. The problem is that the tabular environment here can not see the value of \subColWid (output is 0pt). This occurs only when multirow ...
2
votes
0answers
39 views

RTL and LTR columns in ONE table?

Is it possible to set some columns in one table as RTL while other are LTR? I want to do something like this: % !TEX encoding = UTF-8 Unicode % !TEX TS-program = xelatex ...
2
votes
2answers
44 views

Vertical alignment within table

My MWE: \documentclass{article} \usepackage{lscape} \usepackage{booktabs}% http://ctan.org/pkg/booktabs \newcommand{\tabitem}{~~\llap{\textbullet}~~} \begin{document} \begin{landscape} ...
0
votes
1answer
37 views

How to type a binomial tree with hanging branches

I want to type up a binomial tree, except that each entry is a function (say a polynomial). If the polynomial is typed in the usual horizontal style then the table becomes too wide and ugly. If the ...
0
votes
0answers
8 views

No footnote text shown for footnote in table caption [duplicate]

I have the following scenario: table content .. \end{tabular} \label{tab:beispiel} \captionof{tabular}[tablecaption]{tablecaption\footnotemark} \footnotetext{table found in ...} \end{table} I can ...
3
votes
1answer
38 views

Fill last page with empty lines in longtable/longtabu

I am generating a PDF automatically from a database and I want to fill the last page up with empty rows. The document looks like \documentclass{article} \usepackage{longtable} \usepackage{tabu} ...
1
vote
1answer
53 views

Alignment problems with table using tabularx

I have a problem with a table which I am using for a publication. The code is as follows: \begin{table}[htbp] \centering \captionof{table}{Summary} % \begin{tabularx}{0.5\textwidth}{| c | ...