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

0
votes
1answer
43 views

wrapping text in table

For some reason, the text in my table is not wrapping up and I keep getting the error: Extra alignment tab has been changed to \cr.. can anyone help with making a simple table with wrapping the text: ...
3
votes
2answers
41 views

tabularx column width not behaving as expected

I'm trying to reproduce the following tabular design as close as possible: This is what I have right now: \documentclass[12pt,a4paper]{scrartcl} \usepackage[utf8]{inputenc} \usepackage{tabularx} ...
1
vote
0answers
56 views

Align fixed-width columns to the decimal point

I define a new column type for a fixed width column with centre aligned text as follows: \newcolumntype{d}[2]{>{{\rightdots{#1}}r<{\rightdots}\let\newline\\\arraybackslash\hspace{0pt}}m{#2}} ...
5
votes
2answers
50 views

Shifting a tabular environment down in an enumerate environment

I've seen several related questions on this website, but nothing for my particular problem. Consider the following MWE: \documentclass[12pt]{article} \usepackage[margin=2cm]{geometry} ...
1
vote
0answers
49 views

Coloring single cells in tabular

I've for a while tried to color single cells in a tabular enviroment. So far, I've tried the following \documentclass{article} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{color, ...
3
votes
1answer
28 views

Minipage with tabular inside ignores vertical alignment

I am trying to align a minipage that has a list inside. Using a tabular environment for the list results in the minipage ignoring the [t] option (or any other, as far as I can tell). On the other ...
1
vote
2answers
203 views

How to create a page with a structure like this?

How to create a page with a structure like this? Will there be appropriate to use the table if I need to have all of page like this?
1
vote
3answers
62 views

Aligning text in a table- right, left or center

I am trying to align the text in a table, but somehow the first cell with the year (1848) is not aligned. How can I fix this? Another question is: how can I specify if I want to align the text right, ...
4
votes
1answer
53 views

How to force the column names to be evenly distributed if I need to align by decimal point?

I am a new learner with table, and I had this strange problem with my huge table. Here is the partial code which can replicate the issue: \documentclass[floatsintext,man,12pt,a4paper]{apa6} ...
1
vote
1answer
31 views

Long wide table vertically overflows

I am trying to typeset a long and wide table using this code. Whatever I do the table is not page-breaked. Instead it vertically overflows the space allocated for it. As you can see the last rows of ...
1
vote
1answer
49 views

Wrong table placement

I have following MWE: \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[color=red,opacity=0.1,contents={}]{background} \usepackage{hyperref} \usepackage{indentfirst} ...
0
votes
0answers
42 views

how can i fit long equation in pretty table in beamer Warsaw

i would like to pretty table in my presentation in beamer by using Beautiful table samples but my equation can't fit the table in one line ...
0
votes
1answer
23 views

How to put Verbatim inside \multicolumn in tabular?

I need to put Verbatim text in tabular cell, which works fine, except when I want to extend the cell to all the columns, then I get an error File ended while scanning use of \FancyVerbGetLine. ...
0
votes
2answers
74 views

How to justify right and left the scientific values in table

As seen in the picture below, the length of some scientific values are shorter than the others due to use of + and - sign. + sign occupies more space than -. Values are aligned left by default. How to ...
5
votes
1answer
72 views

Calculations in PGFplots \addplot3 inline table

Plotting a rectangular patch with the code \documentclass{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis} \addplot3[patch,patch ...
6
votes
3answers
67 views

putting figures in tabular with foreach (or an alternative)

I have a number of figures coming from experiments; they are indexed with an integer number, and they are not always consecutive. Given a list of the indexes, I need to put them in a tabular of, say, ...
3
votes
4answers
54 views

Unequal width to columns in table

The following tables gives me unequal length for the row "Tower". WIll you guys please suggest me such that the column is divided exactly in the centre? \begin{landscape} \begin{table}{Variable ...
2
votes
3answers
633 views

How can I create a simplex tableau like this in LaTeX?

I want to create a table like this in LaTeX: How would I do that?
0
votes
0answers
37 views

LyX 2.1.3 on Windows 8 Best Long Multi-column Table

I was wondering what the best 'LyX' way was to create a long multi-column (>5 columns) table with unigrams as in Figure 5.8 here. I have seen similar solved queries for LaTeX but I have not been able ...
0
votes
1answer
45 views

Latex - tablex - config

I'm writing a paper and need to insert various tables. I already created a table in Latex and I inserted it into a subsection, but when checking the pdf, the table doesn't appear in that subsection, ...
3
votes
1answer
67 views

Connect rows in tables with arrows

I can create with the next code fragment two tables nearby: \documentclass{article} \begin{document} \begin{tabular}{ll} \begin{tabular}{ccc} A & B & C \\ \cline{1-3} 1 & 2 & 3 \\ ...
1
vote
1answer
43 views

How to put notes under table in LYX

I'd like to ask how to write notes under the table (in float) in LYX? I found the following, but it is strangely written (how can a table be at the same time out and in the float???): 'Table ...
1
vote
0answers
40 views

How can I align the cells vertically?

I'd like to align my table cell vertically and horizontally.... can anyone help here is my code \begin{table}[htbp] \small \centering \caption{comparisons} \subfloat[Approximation accuracy ...
0
votes
0answers
19 views

Pagebreak, newpage, vspace all not working after a Table

I have a section of my document composed of two tables. The following section is a section composed of figures. Between the two sections I want a page break. I have tried \pagebreak, \newpage, \vspace ...
0
votes
1answer
29 views

Lines dividing Table don't align

I've created a table with 3 columns: \begin{table}[htbp] \begin{tabular}{ p{6cm} || >{\centering\arraybackslash} p{3cm} || >{\centering\arraybackslash} p{3cm} } \hline \text Dummy ...
2
votes
2answers
83 views

How can I create a double border/table around every page of the document excluding the headers/footers?

I am a newbie to LaTeX... Outside of the title page and ending pages, I am trying to create a fixed size border/table that will be around every page (excluding the headers/footers) of the document. ...
7
votes
2answers
789 views

What is the use of @{}?

Can someone explain the use of @{} in table formatting as in: \begin{tabular}{@{}cp{0.45\columnwidth}p{0.25\columnwidth}@{}}
2
votes
2answers
50 views

The \multirow command do not allow a multiple lines content inside itself

I want to draw a table like I use the m parameter because the rest rows of the table need it. However if I use a \multirow command to combine some rows, the m parameter of columns will not take ...
1
vote
1answer
55 views

Manual line break in tabular (tabu) breaks the layout of other columns if not using X column parameter

I know this problem has been discussed many times, and the proposed solutions were to use yet nested parboxes inside table cells, but I would like to avoid that. Up to now, I was using my table with ...
0
votes
1answer
40 views

Create a table that fills a page with empty rows

I'm trying to create an inventory sheet for our lab, and as such I need a large blank table. Is there a better way to do this then copy and pasting \midrule&&&\\ over and over again? I'd ...
0
votes
1answer
61 views

Table caption before the table

I'm creating this table \begin{table}[htbp] \renewcommand{\arraystretch}{1.3} \setlength{\tabcolsep}{2mm} \centering \begin{tabular}{!{\vrule width 1.2pt}c!{\vrule width 1.2pt}c!{\vrule width ...
1
vote
1answer
25 views

Trouble aligning table cells

I need to wrap the text in two table cells. However, when the text has been wrapped correctly in cell (1,1) and (1,3), the text on the first row in the table do not align. \documentclass[b5paper, ...
10
votes
2answers
12k views

Fitting tables into beamer

I have some tables in my presentations that are rather big. I found out how to use \resizebox to fit them into my page. Unfortunately this only works for tables that are wide. For long tables, my ...
9
votes
4answers
9k views

Text alignment on top with multirow command

\begin{table}[!h] \centering \caption{Titel} \resizebox{.95\columnwidth}{!}{% \begin{tabular}{p{4.5cm}p{10cm}p{3.5cm}} \hline Name & ...
4
votes
1answer
46 views

How to alternate row color and specify column color simultaneously in LyX

I'm trying to set column 0 of my table to gray as well alternate its row colors, for example: I've managed to get the alternative row colors working by inserting the ERT before the table: ...
4
votes
1answer
84 views

Repeating the same column type

I'm using package numprint to create a table which automatically formats its columns. However, the table has many columns. Right now, my table definition looks like this: \begin{tabular}{l n{2}{3} ...
1
vote
2answers
57 views

Adjust table to fit within the page

I am generating a table but I dont know why it's getting out of the page! [\begin{tabular}{|*{3}{l|}*{5}{c|}} \hline \textbf{Participant} & \textbf{Systèmes} & ...
1
vote
1answer
35 views

Cannot make \arraybackslash work after defining custom columns

I use: \usepackage{array} \newcolumntype{fwLa}[1]{>\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}} ...
25
votes
2answers
39k views

Increase LaTeX table row height

How to increase the height of the rows in a LaTeX table?
5
votes
1answer
61 views

Erroneous depiction by use of `\draw` and `\fill` commands in PGFplots `axis` environment

I am trying to use table data to construct a patch surface plot. In doing so, I use pgf/tikz, pgfplots, pgfplotstable and the command \edef. My code: \documentclass{standalone} \usepackage{amsmath} ...
4
votes
2answers
95 views

Specify the row heights of a table

I need to draw a tabular like this one The all rows could be a line stretch less than 1 (I set to 0.5) so as to fit the whole table on the page. The height of the others rows which are different ...
4
votes
1answer
84 views

Recreating formatting of an Excel table using simplecsv

I'm trying to recreate a wholesale price list in LaTeX so that the data can be updated automatically from CSV files. I'm able to import data using \csvautolongtable but I'm struggling with the ...
2
votes
1answer
20 views

Fitting a table in the page with no column names broken by hyphenation

I´m trying to fit a table in the page so it has text width and looks fine. In fact, the code below fits the table, but it breaks column names (e.g. "Ditado" becomes "Di-tado"). It´s possible to do ...
1
vote
0answers
40 views

longtabu conflicts with tabu on page header

I have a complex page header that I manage to obtain by having a tabu on chead Then I have a longtabu on my document \documentclass[a4paper,11pt]{article} \usepackage[top=14cm, ...
1
vote
1answer
26 views

Errors using tabular

I have the following code: \listfiles \documentclass[oneside,12pt]{scrartcl} \usepackage[ngerman]{babel} %\usepackage{amsmath} \usepackage[fixamsmath,disallowspaces]{mathtools} \begin{document} ...
0
votes
0answers
29 views

Rotate table in appendix result in a redundant page between the table and the appendix header

I am new user of latex and now writing my thesis with it. I am trying to fit a long table in the appendix. I use \rotatebox to make the table fit like this: \documentclass[12pt,letterpaper]{report} ...
2
votes
1answer
42 views

Call to coordinate for creating a patch gives an error

I'm trying to construct a patch in pgfplots by means of table data. In attempting to do so, I also use the \coordinate command. Minimum working example: \documentclass{standalone} ...
2
votes
1answer
42 views

circle in a tabular [duplicate]

How can I circle some numbers in the following tabular, keeping the dimensions of lines/columns/cells constant, and avoiding crossing between circles and lines of the tabular ? Thanks ! Bruno ...
6
votes
1answer
6k views

Newline in table cell possible?

I am trying to add linebreaks in my table cell but found that Lyx doesnt allow me to. How can I do that?
90
votes
7answers
103k views

Column and row padding in tables

How do you guys go about controlling column padding in tables? Update To clarify, I'm looking for a way to control both vertical and horizontal padding. So, if I had a simple table like in the ...