{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
881 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
229 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
1k 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
38 views

\write at the beginning of a table cell adds spurious vertical space

If a tabular column of type p (or a few others such as tabularx's X) starts with a write, this inserts some vertical space. MWE: \documentclass{article} %\usepackage{array} \newcommand{\writethis}{\...
4
votes
0answers
153 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
37 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
138 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
142 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
27 views

Landscape environment in variable position

I have a portrait document, and I want to put a big table in a landscape page. I am currently using the landscape environment to achieve that. As this page is in the middle of the document, I want ...
3
votes
0answers
43 views

Badly aligned tikz objects and bad page-break in deluxetable

I am creating a table in latex, and I need to use a deluxetable environment. I use the package tikz to draw some circles in the table. The problem I am having is that I want to reposition those ...
3
votes
0answers
67 views

Remove most bottom space of tabular (or tikz-picture?)

I'm trying to add a table-like structure left of a ganttchart. It appeared to me that labeling every bar with its own tabular of fixed column-width would be the easiest and I got quite close to what I ...
3
votes
0answers
64 views

How to draw a table with shared cells?

Starting from such a table: \documentclass{article} \begin{document} \begin{table} \begin{tabular}{|l|c|c|} \hline & Property 2 & Not property 2 \\ \hline Property 1 & ...
3
votes
0answers
57 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
146 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
76 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
33 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
142 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
460 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
227 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
49 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
224 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
527 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 \def\rowcolor{\noalign{\ifnum0=`}\fi\bmr@...
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
115 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
304 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
139 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
282 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
254 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=] \setupexternalfigures[...
3
votes
0answers
219 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
161 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
527 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
30 views

Command to create alignment

Consider the following mwe: \documentclass[letterpaper]{article} \usepackage{amsmath,amssymb} \usepackage{array} \begin{document} \begin{center} \renewcommand{\arraystretch}{1.2} \...
2
votes
0answers
39 views

Parsing input for table automatically generated from csv file

I have a .csv file which looks like: {one},{two},{three} 11/07/2014,14:49:54,(100,100) 2,2,2 I have some code which creates a table from the .csv file. \documentclass{article} \usepackage{...
2
votes
0answers
62 views

Code crashes on Mac OSX, not linux?

Using TexWorks. 2 people using Mac OSX, one El Capitan, one Yosemite. 1 person using linux. The following code works on linux: \begin{tabular}{|l|l|l|} \hline Scalar form & Meaning & ...
2
votes
0answers
82 views

How to handle too many columns of table

I need to print a table with many columns. I am thinking about two ways: printed table like this (assume the paper only can print 6 dates at one row): Measure date1 date2 date3 date4 date5 date6 ...
2
votes
0answers
101 views

How to make table, as the picture show?

How to make table, as the picture show? Help me pls... 13/06 [Update] until now i've got is: \tcbsidebyside[ bicolor, colframe=black, colback=blue!30!white, colbacklower=blue!30!white, center, ...
2
votes
0answers
40 views

how to adjust the header of a table ?

I'm trying to use a table in my these. I have used this code from this list of tables : \documentclass{article} \usepackage{tabu} \usepackage{longtable} \usepackage[table]{xcolor} \definecolor{...
2
votes
0answers
26 views

Collecting and analyzing data presented in tables

I have data presented in tabular environments and I want to process it, in LaTeX, in ways that require for multiple cells to be analyzed together. That's in addition to typesetting the cells ...
2
votes
0answers
23 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 \def\...
2
votes
0answers
68 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, pstricks,graphicx,...
2
votes
0answers
50 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
30 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
51 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} \noindent\begin{...
2
votes
0answers
91 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
53 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. \begin{...
2
votes
0answers
56 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
52 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} \usepackage[active,pdfpage,tightpage]...
2
votes
0answers
36 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
62 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
36 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. \...