{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
4answers
479 views

centering tables

I am trying to create my CV, using tables. I want them in the center of the page, but they continue to position a little bit to the left. I am using the command \centering before the environment ...
4
votes
2answers
120 views

Are tabls and tabularx not compatible?

The following MWE does not compile: \documentclass{article} \usepackage{tabularx,tabls} \begin{document} \begin{tabular}{ccc>{arraybackslash}c} 1&2&3&4\\ 1&2&3&4\\ ...
4
votes
4answers
198 views

Expand a macro with parameters in tabular head

My eventual goal is to create my own tabular-like environment in which all entries are in math-mode by default, let's call it fancytable. (One requirement is that the first column be separated from ...
4
votes
2answers
110 views

Alignment Problem in Table environment

Regarding to the following question Problem with subcaptions in subtables I created the following. There appears three problems: in the header starting from "Mean" to "Max." The alignment seems not to ...
4
votes
1answer
89 views

Minted Environment inside Tabular

I want to create a table with Tabular and put a minted environment into it, just like here: How to embed a minted environment inside a tabular environment?. However, as shown in that post, the minted ...
4
votes
1answer
140 views

table badly too wide

I got a bad problem with the width of my table. I can't get the point why its so wide. I'm using latexmk. Here's my code: \documentclass[final,12pt,abstracton,oneside,a4paper, ...
4
votes
2answers
181 views

Can I change the overall width of the invoice package's table?

I'm using \usepackage{invoice}, and I'm wondering if I can adjust the width of the table? \documentclass{article} \usepackage{invoice} \date{September 1994} \begin{document} \begin{invoice}{USD}{0} ...
4
votes
2answers
132 views

Rotating text at the side of a table?

In the following code I want to rotate the text 'Probability' 90 degrees and have it in a column to itself at the left hand side of the table. I would also like vertical bars either side of the top ...
4
votes
1answer
80 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
635 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
238 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
155 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
155 views

How to make a table's columns fill up the page horizontally?

I would like to stretch out the content of the table/tabular-environment over as many columns on the first and second page as possible. How can I achieve that? MWE \documentclass[ 11pt ]{scrartcl} ...
4
votes
1answer
414 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
459 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
286 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
189 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
164 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
219 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
371 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
966 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
234 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
1answer
471 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
522 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
3k 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
252 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
543 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
194 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
6k 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
1answer
1k views

Full page table template

I am making a manual with LaTeX and at the end of the manual I want to insert a full-page blank table where I can have people sign to acknowledge that they have read the manual. Currently I am doing ...
4
votes
2answers
517 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
238 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
273 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
551 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
2answers
846 views

Centering tables in document class apa6

I'm using the apa6 class in doc mode for my thesis. Now, when I create a table and try to center it on a page, the table is centered alright. The caption, however, still floats on the left of the ...
4
votes
1answer
4k 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
1k 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
924 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
627 views

I had a problem with spacing of tabular columns combined with \multicolumn. I found an inelegant solution. Perhaps someone knows of a better one?

Consider a table with several columns. Three consecutive columns are thin. These three thin columns have a long \multicolumn{c}{3}{??} heading over them. If nothing is done to specify how these should ...
4
votes
1answer
711 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
1k 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
3answers
64 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? ...
3
votes
1answer
48 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 ...
3
votes
2answers
113 views

tables with very long texts

Im trying to generate a pdf using Latex. My problem is with tables that have very long texts in it. For example: This example was made using xtabular. But I also tried using longtable. Is there any ...
3
votes
2answers
78 views

Formatting pbox in table for neat distribution of text

For the purpose of a paper I am writing I have some very big tables. I couldn't fit the numbers inside the boxes so I used pbox. The problem is that now the numbers within the box aren't distributed ...
3
votes
1answer
65 views

Automatic right justify in table - multiple choice question

My code part \newcommand{\iib}[5]{ \begin{center} \begin{tabu} to 0.42\textwidth {@{}|X[l]@{}|X[l]|} \textbf{A)} #1 & \textbf{B)} #2\\ \textbf{C)} #3 & \textbf{D)} #4\\ ...
3
votes
1answer
205 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.