{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
2answers
119 views

Anchoring Table (Tabularx) from the Bottom of Table

Can you anchor a table at the bottom, inline with text? I have another question posted which I seemed to have solved myself - List Numbering Through Multiple Tables - but I have since found my way ...
4
votes
2answers
591 views

LaTeX table adjustments

I am typing the following table in LaTeX: \begin{center} \setlength\extrarowheight{5pt} %\renewcommand{\arraystretch}{1.2} \begin{tabular*}{3.4in}{@{\extracolsep{\fill} } | c | c | c | c | c | c | c ...
4
votes
1answer
61 views

Error with pmatrix inside multline* inside minipage inside tabular

The following is a minimal example of code that gives me an Argument of \multline* has an extra } error. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{tabular}{c} ...
4
votes
2answers
411 views

Why isn't my table centering with threeparttable?

Can anyone help me to solve my problem with threeparttable, TPTMinimum redefinition and centering environment? I haven't seen in any other topic what I was trying to do. I have something like this: ...
4
votes
1answer
1k views

How can I insert simple Table Notes?

I've tried to get some table notes to work in a paper I'm working on. Here is what my table looks like (minus the details for clarity): \documentclass[progress]{cmpreport} \usepackage{enumitem} ...
4
votes
1answer
225 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 ...
4
votes
2answers
139 views

Parsing rows (`\\`) and tab characters (`&`)

I have a use for parsing what would look like tabular input data, except that it isn't part of a tabular environment, but rather the argument to a macro. So I developed two macros, \readTABrow which ...
4
votes
1answer
303 views

Table spacing, multi column

Good day, hi, I have a question to ask. If you have some spare time please kindly spare me a few minutes to enlighten me on the following question. Thanks in advance! So I am trying to construct a ...
4
votes
2answers
387 views

Little indentation despite \noindent after tabu custom-environment

this question is about a (to me) mysterious little indent (looks like an ordinary blank...) after a custom-environment using the tabu-environment. Please compile this MWE: \documentclass[a4paper, ...
4
votes
1answer
273 views

acronym - tabular — weird spacing while using \ac

I'm currently writing a Lab-Report, using a lot of acronyms and tables. What I have so far looks like this: \documentclass{standalone} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} ...
4
votes
1answer
171 views

How to display numbers in the format 12.3 (4.56) in a table column?

I would like to print numbers in a table in the form 12.3 (4.56) using siunitx. How can this be achieved? I'm a bit worried that siunitx changes the numbers in various ways and I would like to ...
4
votes
2answers
4k views

Extra alignment tab has been changed to \cr

\begin{table}[ht!] \begin{center} \begin{tabular}{p{0.6cm}p{0.6cm}p{2.3cm}p{1.4cm}p{2.3cm}p{1.45cm}} \hline \bf p & \bf N & \bf $\|u-u_{h}\|_{L^{2}(0,1)}$ & \bf $L^{2}$ ...
4
votes
1answer
151 views

pgfplotstable: Why does `postproc cell content` not work properly when used within a style?

I use pgfplotstable and want to post-format a specific column. Among other things I need to duplicate its content. My problem is that postproc cell content works fine as a direct parameter to ...
4
votes
1answer
199 views

Color in multirows

I have a similar problem to that on the post xcolor package; color multirows with the following table. The four-row-cell containing the word 'HHeader' should be completely gray. I have tried to ...
4
votes
2answers
303 views

Increasing the length between rows in a table

I have defined a new command to increase the length between rows in a table: \newcommand{\ra}[1]{\renewcommand{\arraystretch}{#1}} For example \documentclass[a4paper, 11pt]{article} ...
4
votes
1answer
830 views

LyX TeX Table too big

I am including a TeX file into a LyX document using Insert -> Child Document. The Table looks fine on the LyX screen but when I preview the PDF it is 10 times too big. Not sure how to fiddle with the ...
4
votes
1answer
221 views

Equivalent of \DTLiflastrow

With the datatool package there is a \DTLiffirstrow. I am looking for a similar command to detect the last row, \DTLiflastrow, but could not find one. I attempted to create my own but was not ...
4
votes
2answers
809 views

sidewaystable is positioned before normal table when using the apa6 document class

I tried to use a normal table together with a sidewaystable in an apa6 class document. Following the APA guidelines, the table order should equal the order of appearance. However, if the normal table ...
4
votes
1answer
387 views

footnote, hyperref, tabular

I have many tables with footnotes inside and I need hyperref in my document. Now, the problem is that footnote in my tables does not point to the notes at the end of the page. It points to the first ...
4
votes
1answer
418 views

Too long hyperlink can not fit on page

I have a problem with a too long hyperlink. This reference is one word, but it is too long and doesn't set the text width, so some part is pushed beyond the margin: ...
4
votes
2answers
2k views

Vertical and horizontal alignment with tabu package

Another question led me to use tabu for the purpose of fitting one column to its content while allowing the others to stretch equally. This is my current code: \documentclass{article} ...
4
votes
1answer
457 views

Multi line header for pgfplotstable

I have a dataset in csv file format that I'm loading into pgfplotstable. I can't change the format of the original csv, and being financial data it has a column of item names and two or three ...
4
votes
3answers
2k views

hspace in tabular

How can I move the summation equation that appears at the bottom of column 3 to be centered with the column 3rd column. Using \hspace hasn't been successful thus far. ...
4
votes
1answer
241 views

Vertical centered image in cell

Consider following code: \documentclass[a4paper]{article} \usepackage[table]{xcolor} \usepackage{graphicx} \paperheight297mm \paperwidth210mm \textheight297mm \textwidth180mm \topmargin-25.4mm ...
4
votes
2answers
491 views

spreadtab insert multiple values to a cell

\begin{spreadtab}{{tabular}{rrrr}} \toprule & @A & @B & @C \\ \midrule 1 & 33 122 & 133/\Factor & 156/\Factor \\ ...
4
votes
2answers
185 views

how to redefine the `\\` in a tabular environment?

I want to redefine the tabular environment, such that each for example \begin{tabular}{c|c} AAA&BBB\\ CCC&DDD\\ \end{tabular} would produce (for example) AAA,BBB;CCC,DDD; Question 1 In ...
4
votes
1answer
5k views

vertical text orientation (multiple rows) in tabular environment

I would like to create a table that is labelled like the axis of a plot, i.e. a vertical orientation of the y-axis' label. This is what I have \begin{tabular}{rc|c|c|c|} ...
4
votes
2answers
492 views

ConTeXt center tabular

In ConTeXt, a tabular environment evidently does not behave a centered context. e.g.: \startalignment[center] \starttabular \NC item one \NC item two \NC\NR \NC item three \NC ...
4
votes
1answer
227 views

Measure and retain lengths between tabular rows

I need elements in a tabular environment to set some lengths and be able to access these lengths in another row of this same table. But it appears that adding \global in front of \settoheight and ...
4
votes
2answers
262 views

How do I stop tables from messing with alignment?

I'm new to TeX and I'm having a hard time understanding how paragraphs, alignment, indentation, and all that works. Some text here. \begin{tabular}{ l l } a & b \\ c & d \\ \end{tabular} ...
4
votes
2answers
516 views

Vertical alignment of tables when using numbered list in LyX

I have a table on my numbered lists but the number is appearing in the middle, I want it to be at the top like normal. This is what it looks like when using tables. (Screenshot below) I've attached a ...
4
votes
1answer
3k views

Empty line after a tabular environment

I would like to have a little table without caption within my text. There should be, however, some space between the preceeding and following lines of text. The following snippet ...
4
votes
1answer
1k views

Split table into multiple files with \input

I want to split my table into multiple files: \input{table_head.tex} with following content \begin{table}[htpb] \centering \caption{Caption} \begin{tabular}[r]{ccc} \addlinespace \toprule A & B ...
4
votes
1answer
947 views

Table paragraph spacing

In the preamble of my document, I'm using \usepackage[parfill]{parskip} to make a new line between each paragraph. But when I try to write paragraphs inside a table: ...
4
votes
2answers
875 views

Estout and dcolumn: Overriding decimal alignment

I'm using estout (esttab actually) to produce a table in Latex from Stata. I'm using the dcolumn package to align the decimal places in my table. I want to override the alignment for a single row; ...
4
votes
1answer
684 views

Generate table with dynamic number of columns

Is it possible to create a table with with a dynamic number of columns that depend on some given width, e.g., \textwidth? For example, given a fixed-width table t with size(t) <= 0.5\textwidth that ...
4
votes
1answer
956 views

Puzzling error while using sunitx (in a tabular environment)

I've been working on writing a contingency table in LaTeX (I've prepared myself for a long battle to get multi-line and multi-column cells to appear as I need). \usepackage{booktabs} ...
3
votes
1answer
78 views

tabular environment: incrementing the headings

Is it possible to let LaTeX increment the headings in a table environment? If so, how could I do this? For example, I would like to have 7 columns and 7 rows where the columns except the first are ...
3
votes
2answers
198 views

Difference between tabular and array environment

What is the difference between a tabular and an array environment? When should be used the former and when the latter?
3
votes
1answer
78 views

Auto generate list-items within table from string with delimiter

This is a follow-up on this question: Creating bullet-list from string with delimiters I have a CSV file where I genereate some tables from. Some of those table cells will have items that should be ...
3
votes
3answers
162 views

Vertical alignment in table

I am making a table with LaTeX, and I have trouble with vertical alignment of the texts. When I have \hline, the text crosses the line. Here is the code: \begin{tabular}{lcccc} \hline\hline & ...
3
votes
1answer
81 views

Problem with hyperref and tabular (not table)

The link to the target inside a tabular is too low. This is not inside a float, so hypcap and \hypcapspace have no effect. Is this a known problem? \documentclass{article} \usepackage{hyperref} ...
3
votes
1answer
174 views

Setting up APA-Tables - three problems

Below, you see a table. The blue boxes display my "problem areas". Setting up tables is pretty difficult for me so far... Uper left box: I want to indent Group A/ Group B compared to Overall Group; ...
3
votes
1answer
139 views

Table in a resizebox out of bounds

I'm trying to resize a table so that it will fit a page, following the instructions given in this question. However, \centering doesn't seem to work, as shown by this example: \documentclass{article} ...
3
votes
2answers
244 views

How to write multiline in a cell of table in latex?

I have multiline table. \documentclass[11pt,table,a5paper]{article} \usepackage[top=2cm, bottom=2cm, outer=2.1cm, inner=1cm,twoside, headsep=26pt]{geometry} \usepackage{collcell} ...
3
votes
3answers
133 views

Please help me with a tabular problem

The above table is from C. Bonatto and E. Bica: Fundamental parameters of M 52 and NGC 3960 \documentclass[a4paper,oneside,12pt]{report} \begin{document} \begin{small} %\begin{sidewaystable}[h] ...
3
votes
1answer
194 views

Extra alignment tab has been changed to \cr end template?

I get the error mentioned in the title of the question. \begin{table*}[!ht] \centering \caption{\textit{first scenario : heuristic methods}} \label{Table2} \resizebox{2\columnwidth}{!}{% ...
3
votes
1answer
109 views

Use of underline and siunitx in a table

I have a table of numbers that are aligned using the 'S' format of siunitx (so they are aligned by the decimal point). I need to mark the statistically significant numbers somehow, and using bold font ...
3
votes
1answer
179 views

Table numbering and listing in table of appendices instead of TOC

I am using a list of appendices based on this thread: Appendix in scrreprt - Separate table of appendices but mentioned in original TOC This works perfectly fine. But I realized I don't intend to ...
3
votes
1answer
192 views

Custom table caption (Updated)

I'd like to achieve a custom table (figure) format with Table numbering and title (this is usually the title also used in the list of tables but does not have to be) in boldface, and the (longer) ...