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

4
votes
3answers
60 views

Vertical alignment of a tabularx cell

I have a tabularx table with: a variable width column X on the left a cell with a nested tabular table on the right Like so: \begin{tabularx}{\textwidth}{ | X | c | } \lipsum[1-1] & ...
1
vote
1answer
46 views

specified column width

I'm using the following code for the table. Currently it is set up so that I can change the width of all column (except the first one) to the same width. Can someone help me tweet it so that I can ...
2
votes
2answers
47 views

switching between newcommand and default

I've defined the following macro: % makes tables more readable \renewcommand{\arraystretch}{1.1} \setlength{\tabcolsep}{5pt} Which add extra tabbing space in the tables. However, in one place ...
2
votes
1answer
35 views

Arithmetic in tabular lengths ( p{…} )

I'm trying to do some simply arithmetic for a dynamic column type in tabularx. What I want is to be able to calculate (n-1) * X. I tried to use the calc package, but I just cant figure it out. ...
2
votes
2answers
851 views

How to make such a nice table in LaTeX?

Below is an example, it seems rather complex for me. I can only make a table with dark lines, and don't know how to make the dark lines hollow ones. Is there a way to embed such a fancy table in ...
2
votes
1answer
54 views

Tabularx ou Tabulary environement populated by csvsimple information

I am currently using csvsimple to import table data. Some of the cells information is too long and I would like to dynamically manage the column width. I have been trying to add the tabularx or ...
2
votes
0answers
59 views

How can I use \multicolumn in a \pgfplotstable table?

In my experiments with pgfplotstable, I've run into some bumps: merging multiple columns adding formatting commands to text within cells Problem I cannot seem to properly add a \multicolumn{}{}{} ...
9
votes
2answers
221 views

How can I use variables (or formatting commands) in a header row of a \pgfplotstable table?

My first reaction to reading the pgfplotstable manual was: Why would anybody in their right mind use the tabular environment for generating tables? Advantages of pgfplotstable No need to specify ...
1
vote
2answers
47 views

Automatically setting table row height

When creating a table, Latex sometimes doesn't fit the row height well, making the content intersect with the borders as in the following: Notice how the first row is too short while the second ...
3
votes
3answers
80 views

Tabularx and multicolumn

When I try to use multicolumn inside a tabularx environment, I get this weird behaviour; where the column doesn't fill the whole width. Anyone know why this is happening, and how I can fix it? ...
1
vote
1answer
38 views

How to create lines for all cells of the table (pgfplotstable)

How to create lines for all cells of the table in a package pgfplotstable? There is my code: \documentclass[a4paper,12pt]{article} \usepackage{ucs} \usepackage{amsmath} \usepackage{pgfplotstable} ...
2
votes
1answer
32 views

table alignment specification

When I use \begin{tabular}{l*{20}{c}} it works perfectly. But when I use \begin{tabular}{l|c*{4}|c*{8}|c*{8}} It gives me error. How can I specify the alignment operator as multiples without ...
1
vote
3answers
71 views

How can I improve the style of this table in latex?

I would like to center all the elements of the table and improve the style of this one. \begin{table}[h] \begin{tabular}{|l|r|l|l|} \hline \multicolumn{1}{|c|}{text} & ...
2
votes
3answers
47 views

vertical alignment of paragraphs in separate paragraphs of text

Writing text in two-column format and I would like the lines of text to agree between both columns. Right now I use 12 point font on both sides, but the equations on one side are larger than on the ...
5
votes
0answers
71 views

deluxetable error (Illegal pream-token (\string): 'c' used \startdata) when using \rowcolor and \specialcell

I'm having an issue with deluxetable and am given the following errors: Package array Error: Illegal pream-token (\string): 'c' used \startdata Package array Error: Illegal pream-token (\string): ...
3
votes
1answer
61 views

hatching table cells fails when using positioning

I'm trying to hatch some table cells by following the code here. It seems to work fine, but then when I change the positioning to \begin{table}[!h] the hatching stops showing up. The correct result ...
8
votes
2answers
428 views

1.5 + 1.5 > 3 : difficulties aligning columns in tables

I made 4-column table and a separate 2-column table. I thought if the columns were twice the size they should align but they don't. What is the problem? \documentclass[12pt]{article} ...
5
votes
3answers
162 views

Generate a table with 19 arguments using key-value interface

I'm doing my bachelor thesis, and need to make a table with lots of data. I want to make a macro for that table, since I'm going to use it a few times. Considering egreg's answer in this question, ...
0
votes
1answer
41 views

Recreate table-like graphics

I'd like to recreate a calculation similar to: I tried using a table with blind cells and \swarrow, but the arrows are to steep. A second try was using xymatrix, but the distances between the rows ...
2
votes
2answers
51 views

Fit wide table to landscape page - Legibility

I have a wide table to fit in a landscape page. I'm trying a combination of changing the font size of the header paragraph changing the font size of the table contents resizing the table in a ...
0
votes
0answers
16 views

float: Table* not working

I am trying to squeeze a wide table with contents onto a page. I have tried selecting the span columns option that turns it into float:table* but instead of the table squeezing and the contents ...
4
votes
1answer
47 views

Vertical bar in a math mode inside tabular

I cannot get the | line to appear in a fraction in a tabular. Could someone please tell me what I am doing wrong?? \documentclass{article} \usepackage{amssymb, amsmath} \begin{document} ...
0
votes
0answers
54 views

Latex copy formatting table

How can i copy formatting table from latex pdf? To word or email message? When I copy - paste table from pdf paste only text, without formatting tables line. Part of my .tex: ...
3
votes
1answer
28 views

How to allow a cell to expand into its left neightbour

I want to make a cell overflow to the left. In this Question: Allowing cell to overflow without affecting indentation we learn how to make an overflow to the right(row 1), but I cannot manage to ...
1
vote
2answers
69 views

Multicolumn table with wrapping

I am trying to create a multicolumn table, with the column heading split in to two lines and each column has two subcolumns (except the first one). It is not working. Any help ? ...
0
votes
0answers
25 views

Unwanted white space with knitr+booktabs package

I want to include a table in my latex document that I create using knitr package. I "call" the table using: \begin{table}[H] \begin{centering} <<r second part}>>= kable(Per_cond, ...
5
votes
1answer
39 views

Is it possible to ignore (not typeset) a column of a tabular by modifying its preamble only? [duplicate]

Is there a convenient way to not typeset a particular column in a tabular environment by modifying only the preamble of the tabular? That is, without modifying the body of the tabular itself? My ...
3
votes
2answers
112 views

Prettify booktabs table with subheadings/categories

I basically want to list attribute names and a attribute description in a table. The attributes belong to a certain category. The idea is to list all attributes in one table to avoid creating multiple ...
0
votes
0answers
22 views

Table caption alignment with respect to table [duplicate]

How to align table caption in following example to the left of table (instead of being centered) ? Unfortunately I cannot find any switch which would govern this. Command ...
0
votes
1answer
35 views

Part of my table is not placed in the pdf output

I used this code using an online website : here to create my table, my first problem is that it can not merge the first row, then also I couldn't design it the way you see in the image attached ,is ...
0
votes
0answers
37 views

Tables and Figures are appearing at the end of Chapter

My Table and Figures in Chapter 4 of my thesis are appearing at the end of chapter instead of within the text where I want them to appear. Before these table and figure everything is fine in this ...
2
votes
1answer
67 views

Fancy table of tables

I'm trying to create something similar, but not identical to, this table. That is, I want to have one page-size table (two columns), and then within each cell be able to have additional tables, ...
0
votes
1answer
65 views

Latex text goes out of bottom margine and get clipped

Following is the code that gives the wired result. \documentclass[a4paper,12pt, oneside]{book} %enable linespacing commands% \usepackage{setspace} %set onehalf line spacing \onehalfspacing ...
1
vote
1answer
47 views

Adding the character & in LaTeX table [duplicate]

My question is easy but I currently haven't the response. How can I add the "&" as a normal char inside a table row? If I try to use $&$, I have an error.
0
votes
0answers
24 views

width of table cell

I'm playing with a class file and the exact positioning of the text by using the textpos package depends on the exact width of a table cell. Is there a way to obtain this width, say by using ...
3
votes
2answers
109 views

Insert text in-between rows in a table

I'm trying to achieve the following effect: +------------+---------+ | Col1 Col2 | | +------------+---------+ | Value 1 | Value 2 | | Value 3 | Value 4 | Text goes here... | Value 5 ...
1
vote
2answers
52 views

How to use tikzpicture with tabular

I'm trying to place my graphs into the same figure vertically. However, I couldn't use tabular with tikzpicture to do it. \begin{figure}[] \begin{center} \begin{tikzpicture}[scale=0.9] ...
1
vote
2answers
59 views

Merge column headers in table typeset using pgfplotstables

I have a table where the columns are narrow, except for the column headers. I am typesetting the table using pgfplots, and I need a way to specify that certain header columns should be merged. MWE ...
0
votes
2answers
48 views

Placing sources or graphics and tables

I would place my graphic and/or my tables "sources" as shown in the picture attached to this post and I don't know how to do this? Could you help me please
1
vote
0answers
57 views

Latex longtabu problem at page break

I am using longtabu for a table in a latex document. It gives a wired result at page break. Notice that the 'continue' part of the table is stuck in the page before the break. Page 14 shown in the ...
0
votes
1answer
67 views

Table and Tikz figure not displaying using this article template

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Journal Article % LaTeX Template % Version 1.3 (9/9/13) % % This template has been downloaded from: % http://www.LaTeXTemplates.com % % Original author: % ...
2
votes
1answer
53 views

Format table number alignment

I am having a few problems with the following code: \documentclass{standalone} \usepackage{booktabs} \usepackage{siunitx} \begin{document} \begin{tabular}{ l S[table-format = 4.2] ...
1
vote
0answers
53 views

Generating practice sheets for characters

I'm currently learning japanese, and since they have different characters, I'm doing some practice where I make a table, in which each cell contains the pronounciation of one of their characters, and ...
0
votes
0answers
21 views

How to add conditional text to a latex table and get rid of warnings after running pdflatex in ubuntu 14?

I would like to format a entry to a table in latex by \newcommand{\muNNN}[1] { \ifnum #1=99999 \multicolumn{1}{|r}{-} \else \multicolumn{1}{|r}{\num{#1}} \fi } It works ok when \muNNN{99999} so ...
0
votes
0answers
20 views

Ref to table without actually having a table [duplicate]

I would like to generate TOC entries for tables, without actually having a table but something other in place (a image) The background is, that in my document are some tables, which were quite big ...
1
vote
1answer
34 views

Space between columns wider than usual in table - How can it be fixed?

I have a table but still struggling. Would be great if you could help me out with the following questions: a) Even having two times $\toprule$, I get only one thick line in the pdf. How can both be ...
1
vote
2answers
49 views

Create a table with specified column widths and centre spacing in tabularx

I would like to create a table where I can adjust the overall width of the table, hence the tabularx environment. However I am having difficulty in configuring my tables such that I can control: The ...
0
votes
1answer
50 views

text adjustment in table

Hello I put the text in the table but I need to set when the sentence finish the number is go to the next line, not appear after the previous text. see the red highlight, I want the numbers start in ...
1
vote
1answer
25 views

Tabular uneven column bars

Does anyone know why my double line is shorter than the other single lines? \documentclass[]{article} \begin{document} \begin{figure} \centering \begin{tabular}{l||c|c|c|c} ...
3
votes
1answer
77 views

Coloring vs. adding a hatched pattern for table cells

I'm trying to come up with a nicely formatted work plan as a table, but the coloring of individual cells messes completely the row coloring of the table as the following code shows: ...