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

5
votes
0answers
823 views

Multirow cells with centered multiline text

I use tabu package to easily typeset tables. Now i need to typeset long table. So i used longtabu. The head of the table consists of much columns. Also there are lots of text in each cell and some ...
5
votes
0answers
220 views

Table vs Plot: How to print table of values, with colors representing values

In an effort to collect knowledge that will ultimately allow me to answer this question, I am seeking a way to generate a table where numeric values are plotted as cell-filling colors. The color ...
5
votes
0answers
968 views

Color first row in a xtable generated table

I am trying to color the FIRST row of my table. But if I add \rowcolor[gray]{0.95} to the FIRST row the colored row will be the SECOND. Indeed it is quite straight forward to modify from the second ...
4
votes
0answers
122 views

ODS to LaTeX: use formatting from the ods file?

There is a nice solution for importing tables from ods file, in the form of the odsfile package. For very simple, non-formatted tables it basically produces the same effect as the table in the ods. ...
4
votes
0answers
35 views

vocalised arabic changes baselines in tabular environment

Using polyglossia I often set an Arabic text opposite and English text, and I want the baselines to match vertically within a tabular environment. Sometimes the Arabic text is vocalised, and ...
4
votes
0answers
133 views

Border control for LaTeX tables generated using TeX4ht

In producing simultaneous pdfs and html/word files using xelatex and TeX4ht I have noticed that the table produced by TeX4ht is kind of illogical and is clumsy to clean up and manipulate. I would ...
4
votes
0answers
138 views

How can I typeset *some* fields from a (YAML) dataset?

I'm building a dataset of sorts with long strings, tags, some of which will be used for survey research (a q-sort, actually). This dataset needs to: be reasonably human-readable play nice with ...
3
votes
0answers
35 views

latexdiff Producing Error with Simple Tabular

I ran across an error using latexdiff that I have reduced to the following MWE. Given before and after files... \documentclass{article} \begin{document} \thispagestyle{empty} \begin{tabular}{ll} A ...
3
votes
0answers
144 views

TeX/LaTeX macro to find out where am I in a tabular

Do you know a macro/command which can tell me where was it called in a tabular environment? Specially, i wish a macro which executes \commandA if I called it in the first cell of a row (or after a \\ ...
3
votes
0answers
71 views

Making an automatic log table yearly

I did a quick doodle in Excel and I like to make a table that looks like the below. Essentially the issue is, I want it to take up the entire page, half the month on one column, and the other half on ...
3
votes
0answers
32 views

Column Sorting Toggle in Output PDF

I'm interested in creating a table with columns that can be actively sorted in an output PDF. In this manner, I mean a table in which one can sort each column either alphabetically or numerically, ...
3
votes
0answers
129 views

How do I move table caption placement in pandoc-converted docx file?

I have the following table: % latex table generated in R 3.2.2 by xtable 1.7-4 package % Tue Aug 25 12:42:23 2015 \begin{table}[ht] \centering \begin{tabular}{rr} \hline & \# of Applicants \\ ...
3
votes
0answers
342 views

LaTeX table star positioning (double column tables)

How do I tell my table* to be on top of the same pages as the paragraph I want? I know of the question http://stackoverflow.com/q/1673942/659634. Which does not answer how to work with double column ...
3
votes
0answers
189 views

import a long tab delimited data file with first row as the header

Here's a very simple task that I don't seem to be able to get the format right. In short, I am trying to import and format a long tab-delimited txt file, with the first row as the header. I tried the ...
3
votes
0answers
47 views

etoolbox: problem with the last row in an table automated

I want to automate a long table as follows \documentclass{article} \usepackage{etoolbox} \newcounter{test} \newcounter{count} \begin{document} \begin{tabular}{|c|c|}\hline \whileboolexpr{test ...
3
votes
0answers
199 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{}{}{} ...
3
votes
0answers
470 views

Cell overlay in beamer

I used the code posted in this thread to highlight cells in a table: \documentclass[xcolor=table]{beamer} \rowcolors{1}{gray!30}{gray!10} \makeatletter ...
3
votes
0answers
77 views

Embed ConTeXt into LaTeX

I have an XML document which I'm currently trying to converted into XeLaTeX code. I'd like to stick to XeLaTeX rather than move to ConTeXt. However, a problem relatex to the difference in the table ...
3
votes
0answers
113 views

Typing Russell's “Sur la Logique des Relations”

I'm having some trouble typing Russell's definitions in TexWorks, mainly because of the spaces and numerations of propositions. Anyway, my output it's a complete disaster. How could I maintain the ...
3
votes
0answers
280 views

One tabular with column input from multiple data files with pgfplotstable

I have a question which sort of extends the page Multiple Files input to one pgfplotstable. In the answer to this question, data is read from dataB.dat and subsequently appended to the data as ...
3
votes
0answers
135 views

TeX capacity exceeded with a 13 columns 18 rows spreadtab

Originally I had a spreadsheet with 13 columns and 18 rows. Applying pdflatex or xelatex to this sheet I got: ... cell K15 ! TeX capacity exceeded, sorry [save size=80000]. Then I reduced the ...
3
votes
0answers
273 views

Cleaner Code for a Table design

in this question Showcase of beautiful wine bottle labels made with LaTeX/TikZ and friends I asked for wine bottle labels. Here is my own attempt. I still have to play with fonts. I'm quite happy ...
3
votes
0answers
247 views

Center an image horizontally and vertically in a table with ConTeXt

\setuppapersize[A4] \enableregime[utf-8] \usemodule [simplefonts][size=12pt] \setmainfont[EB Garamond 12][expansion=quality,protrusion=quality] \setuppagenumbering[location=] ...
3
votes
0answers
215 views

{tabular} styled like blocks in beamer.cls based upon booktabs.sty markup

beamer tables In Table looking like a block, two methods are shown to give tables a look similar to the block environment in the beamer class. Both require that header and content rows are split: the ...
3
votes
0answers
158 views

Hyperref TextFields dont't work when in tabular environment with xetex?

I created a pdf fillable form in LaTex using hyperref text fields, then decided that I wanted to change the font of the whole form, so I tried to use XeTeX with fontspec. Unfortunately, when I do ...
3
votes
0answers
504 views

Evenly split the columns of a multirow table in lyx

I would like to have a table like this: % Preview source code %% LyX 2.0.6 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. ...
2
votes
0answers
21 views

Change table index format

I am using IEEEtran document class. \caption{some text} in a table environment ends up TABLE I: some text in the final PDF. But I need Table 1: some text. I managed to change TABLE to Table by ...
2
votes
0answers
43 views

how to hatch a cell in table

\documentclass[a4paper,12pt, twoside]{article} \usepackage{enumerate} \renewcommand{\baselinestretch}{1.5} \usepackage{amsmath, amsthm, amsfonts, mathrsfs, latexsym, amssymb, ...
2
votes
0answers
44 views

longtable overwrites page number

In my thesis I need to display a lot of long tables for which I use the longtable environment. Most of the time it works perfectly, but sometimes for some reason it doesn't split the table and the ...
2
votes
0answers
28 views

How can I set individual column alignment while using siunitx?

I'm using the following code to make a table that will many many more rows. I want to make it so that the columns that contain numbers will be right and left justified, like the Year row looks like. ...
2
votes
0answers
38 views

How to prevent \rowcolor from altering the thickness of cell borders?

\rowcolor seems to alter the thickness of cell borders. Example: \documentclass{scrbook} \usepackage[table]{xcolor} \definecolor{maroon}{cmyk}{0.20,0.00,0.00,0.00} \begin{document} ...
2
votes
0answers
80 views

How to place multiple tablenotes on appropriate page with longtable?

I am trying to get footnotes (footnotes 2 and 3 in MWE) at the bottom of the table on the appropriate page with longtable. But with MWE I have provided I am able to get footnote only at the end of the ...
2
votes
0answers
29 views

How to get table row sub numbering?

I am trying to get serial numbers in table, but some of the rows require sub numbering as shown below: S. No. X Y Z 1 1 12 1 2 4 34 3 3 5 54 2 4.a 6 34 5 4.b 8 32 7 5 1 ...
2
votes
0answers
49 views

Adding an image in every cell of a table

I am trying to insert an image in every row (apart from the first row of each column) but every time I try to insert an image in the last cell of each row it does not work, please see below. ...
2
votes
0answers
51 views

h/v centering in tabular

I'm trying to get my cells in a tabular environment horizontally and vertically centered. MWE to be found at the end. I tried different orientations: c, which does what it is supposed to, as well as ...
2
votes
0answers
41 views

Highlight first rows and first columns of a pgfplotstable

I'm trying to change the background color of the cells FOO and BAR and also the ones with the values (1 and 2) in the following MWE: \documentclass[12pt]{article} ...
2
votes
0answers
33 views

Gummi won't compile document after compiling bibliography, table error

I'm new to this whole LaTeX thing, and I'm having a problem that I can't even begin to understand. I've written a great big document with several tables and images, and previously everything worked ...
2
votes
0answers
35 views

why does \hline produce different thickness lines

I am new to LaTeX and so still learning. I am using the following code and am surprised to get the middle horizontal line in bold. Any help would be appreciated. \begin{table}[htbp] \centering ...
2
votes
0answers
52 views

How to remove tabcolsep in the first column of all tabulars in one place?

I want to vertically align the first column of all my tables the text. I can change the \tabcolsep using @{} but I how can I declare this in a single place as a default value? Edit: I added an MWE ...
2
votes
0answers
33 views

Can I get table column headers on each page?

I am making one table out of many tables and would like the headers to be at the top of each page. I would use \endhead but I dont think I can put longtables in longtables. Here is what I mean. ...
2
votes
0answers
56 views

Table title and notes not appearing in PNAS

I'm trying to prepare a manuscript for PNAS and am running into issues with a table. As in this question/answer, the table is placed after the \end{article}. However, when compiling the document, the ...
2
votes
0answers
78 views

Extra } or forgotten \endgroup when using footcite in table

I have a problem using footcite of bibtex and \makesavenoteenv of footnote together. This is my (not so minimal) MnWE, where I am trying to use \footcite inside a table floating environment: ...
2
votes
0answers
75 views

Table cell pattern of colors

With \cellcolor one can set the background color of a cell. I use this in documenting a communication protocol to indicate the type of the value in a certain field, say green is type X and blue is ...
2
votes
0answers
48 views

Vertical alignment of table cells and defining column width

I'm currently experimenting with building an Excel app that writes latex code for a table from a selection area within Excel. Essentially the user selects their table in Excel, clicks a button, and ...
2
votes
0answers
47 views

Split up Table Header and Table in LaTeX

I am writing a finance paper and I have some very long tables and some very long table headers. I'd like to split them up, i.e. Header on one page and then the table following on the next. My table ...
2
votes
0answers
43 views

Width of the table

i have a problem with the the width of a table,this is the code: \begin{table} \centering \begin{tabular}{|cl|c|c|} \hline & \emph{\textbf{OWL ...
2
votes
0answers
38 views

How to change rounding precision across rows in a table?

I use the package siunitx to print tables. In the following table, I would like to have a different rounding precision and number of printed decimal places for each row. \usepackage{siunitx} ...
2
votes
0answers
63 views

tabularnewline incompatible with rowcolors

I have a huge table I am editing with LyX I tried to use rowcolors to have alternate row colors but it does not work This looks like to depend on the use of \tabularnewline instead of \\ The ...
2
votes
0answers
50 views

Why my table caption shift line!

\begin{table}[h!] \caption{Arnold period in different size images} \setlength{\tabcolsep}{8pt} \renewcommand{\arraystretch}{1.5} \centering \begin{tabular}{|c|c|c|c|c|c|c|} \hline Size N ...
2
votes
0answers
39 views

Argument of \@xnext has an extra }

I simply generated the following table from here website so syntax-wise it should be correct. \begin{table}[] \centering \begin{tabular}{|c|c|c|c|c|c|} \hline & Frames with Obstacle(s) & ...