{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
3k views

Stop automatic indenting of tabular in apa6e

In apa6e, tabular environments indent automatically. This does not match APA's guidelines. One can work around this by putting a \noindent in front of every \begin{tabular}{...} line. How can I stop ...
4
votes
2answers
2k views

how to vertically align text in multirow cell with tabularx with renewcommand?

Here I come again, Following the indications on this url I managed to get almost exactly what I want. However the problem is that the first multirow cell (with text "5 and 6") is not vertically ...
4
votes
3answers
6k views

Centering cells of a tabular column using m{}

I want to use a tabular to list some headlines, that might be quite long or contain linebreaks. The first column is kind of an Index or Key for the second columns content, so i would like to (...
4
votes
3answers
445 views

Drawing a grid on array of images

I have nice story to tell with pictures. There Maltese type cross which is processing and twisting at the same time. So to make it more visual in paper i need grid something like this Drawing on an ...
4
votes
4answers
359 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
1answer
3k views

Increasing height of single row in table

Possible Duplicate: Column padding in tables I want to make a table where one column heading has superscript which overlaps with hline above it. How can I increase the height of just that row ...
4
votes
1answer
6k views

sidewaystable vs landscape environment (pdflscape-package) for landscape tables spanning double pages

As explained in several other posts, I'm currently trying to create wide tables. The document is in portrait format A4, but the tables shall be typeset in landscape format. As the tables have more ...
4
votes
1answer
1k 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
3k 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
14k views

Table \rowcolor \columncolor \multirow and \multicolumn Alignment

I'm trying to recreate this table from Word in LaTeX: I'm getting close, but the "Effectiveness" section is not aligned properly, and the "Probability" section is not fully filled in with color. ...
4
votes
2answers
396 views

How could I create a diagram that looks like this?

I am trying to create a diagram for a document that illustrates a table. (Below is an example of how I would like it to look.) What tools should I use to replicate this?
4
votes
3answers
108 views

Separating text from lines

I'm using \documentclass[10pt]{article} \begin{document} \arrayrulewidth=0.7pt \begin{tabular}{|c|c|l|c|c|c|l|} \cline{1-3}\cline{5-7} & & fun & & & & first sight \\ 1 ...
4
votes
1answer
541 views

tabularx: bottom alignment on r or l-columns when X column wraps

In tabularx, when the X-column wraps on more than one line, l/r/c-columns remains top aligned: MWE: \begin{tabularx}{5cm}{lXr} 1 & qwer asdf zxcv qwer asdf zxcv qwer asdf zxcv & 1 \\ 2 &...
3
votes
1answer
81 views

How do I enclose each table column of a particular row in parenthesis

I am a novice in Latex and have very little idea about writing latex macros. I have a collection of hundreds of tables to be incorporated in a document. In each table I need to have certain rows ...
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
3answers
696 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
709 views

Siunitx: alignment, parentheses and font size

I'm trying to align numbers (that are bolded, between parentheses, etc.) by decimal points in table columns while using the auto-round option of the siunitx package. The following code doesn't work: \...
3
votes
1answer
1k views

siunitx align numrange

ave a table with a table in which I use \numrange of the siunitx package. I would like to center align that column at the range-phrase. If I align it left, it sort of works, but if I align it center, ...
3
votes
1answer
831 views

Changing font color in a table adding unwanted extra spacing

I haven't been able to find a solution, so I'm hoping for any suggestions. When I try to change the font color in my table, I get extra spacing above and below the lines with the color-changed font. ...
3
votes
2answers
612 views

binary representation of an integer

Is there a way to get a binary string of an integer calculated by e.g., \pgfmathparse{pow(2,3)} \pgfmathresult such that later on I can use the string digits in a foreach loop like .. if it is '1' do ...
3
votes
1answer
600 views

form field alignment with a table cell

Is there any way to horizontally centre the checkboxes in the following MWE? Also is there any way to adjust the size of the checkboxes so that (i) they do not touch the cell border, and (ii) they are ...
3
votes
1answer
276 views

Combination of multirows and multicolumns table [duplicate]

I need to create similar table using LaTeX: I have tried to use tabular and \multicolumn, but every time I get something wrong. Could someone help me? \documentclass{article} \begin{document} \...
3
votes
2answers
4k views

adjusting column width tabularx + table margin

As you can see from the following MWE, it would be really great to adjust the widths individually for a couple of columns individually. Also how can I decrease the page margins of the table, if the ...
3
votes
1answer
669 views

Dynamic table column generation

I want to generate table columns dynamically but I have no clue how to tell LaTeX to accept or evaluate & as a column separator. As you can see in the attached code, the problem is with \@for \el:...
3
votes
1answer
2k views

How best to change the font size (etc) of threeparttable's table notes?

How best to change the font size (etc) of the threeparttable table notes ? Google returned these (duplicate) unanswered stubs (in English and German, but with pictures ;) http://compgroups.net/comp....
3
votes
1answer
965 views

How could you make an image a hyperlink to a section in a LaTeX document?

I'm fairly new to latex and am currently working on a few articles as practice before I use it for more official documents. In my current document, I am attempting to make a table of icons (png ...
3
votes
4answers
192 views

How to fit this table in a page?

I'm working on a manual that should be finished this week, so I'm in a hurry, sorry if this silly question was done before. My MWE: \documentclass[11pt]{book} \usepackage[utf8]{inputenc} \...
3
votes
1answer
491 views

Misplaced \noalign error in table, but only when using include{}

I am using xtable() in R to create a LaTeX table that I import into a .rnw file via \input{}. As documented here, I am attempting to highlight rows conditional upon a certain value of one variable. ...
3
votes
2answers
480 views

Create a table column by column with special border formatting

I need to create some tables for a special college report. The data provided specifies the values column by column. The user Andrew Swann pointed out, that there is a way to create TeX tables column ...
3
votes
2answers
221 views

Using \color in a paragraph column inside a tabular environment results in a line break [duplicate]

Some of my documents are compiled into multiple outputs. Some Versions contain certain parts, while other versions contain only a placeholder. For this purpose I have a macro \markup that colors its ...
3
votes
1answer
681 views

MinionPro Number Styles: lining, tabular using pdfLaTeX

I have successfully installed the MinionPro font for LaTeX. It works with pdfLaTex. I also changed the number style to lining with: \usepackage[textlf]{MinionPro} However if I have a table with ...
3
votes
2answers
707 views

Subscripts with tables

I have a magic square with cards as entries, and I am trying to consider all magic squares of order 3 (there are 8). My goal is to denote each square with a subscript M_1, ... , M_8. Right now I have ...
3
votes
2answers
297 views

Getting tabulars to line up in the end of two columns

In the following document: \documentclass[twocolumn]{article} \begin{document} \begin{tabular*}{\linewidth}{|c|}\hline test\\\hline\end{tabular*} \vfill \begin{tabular*}{\linewidth}{|c|}\hline ...
3
votes
1answer
820 views

Matching question

Is there a standard package for generating a matching question such as: Match the following states with its capitals: Michigan Raleigh North Carolina Lansing Minnesota ...
2
votes
1answer
1k views

Importing CSV table - Error [closed]

I am new to LaTeX and am compiling a document right now using TeXworks. I am trying to create CSV tables into my document right now, and although I succeed in between I must have some small bug in the ...
2
votes
2answers
193 views

csvsimple Vertical Header

I'm trying to create a table from .csv files using csvsimple. Here are the contents of my file: Degrees,10,20,30,40,50,60,70,80,90 Time,1.33,0.90,0.72,0.63,0.50,0.43,0.41,0.40,0.38 This is a table ...
2
votes
0answers
87 views

Put brackets around value and uncertainty with exponent in tables with siunitx [duplicate]

I have a number with an exponent and an uncertainty that I want to display in an S-column in a table. When I just put it in, the spacing is terrible, and if I tell the column how much space to reserve ...
2
votes
1answer
271 views

Column with fixed width and centre alignment

In the following code, \documentclass[12pt]{article} \usepackage{multirow} \usepackage{array} \usepackage{hhline} \newcommand{\spe}[1]{\multicolumn{2}{c}{#1}} \makeatletter \newcommand*{\@rowstyle}{...
2
votes
1answer
407 views

Automatically change the text width for all table environments using memoir

I'd like to redefine the table environment in a document I'm writing so that the tables and captions are wider than the text block. I'm using the memoir class, and an example given in the manual is \...
2
votes
1answer
1k views

Hyphenation within multicolumn

I've got the following table, which I'd prefer not to split, and it's slightly too wide for the page. How can I make some of the column headings hyphenate? I don't want to have to define a fixed width ...
2
votes
1answer
404 views

Split lines, keep a table/aligned text within textwidth and span several pages

I have a very long table that I use to align some text, therefore I don't need it to be (specifically) a table (please consider that in the answers). I am using supertabular for the table to span ...
2
votes
2answers
185 views

How to *disable* Lua's Microtype for a given tabular column?

I'm looking for a way to disable Lua's Microtype (note the capital M - to distinguish from the lower case microtype package) in the first tabular column of the MWE given below: \documentclass[a4paper]...
2
votes
2answers
177 views

An error I get trying to number tables consecutively with theorems

egreg kindly answered my (previously-asked) question about giving numbers the same numbering as theorems here: Numbering tables sequentially. Unfortunately, this very good solution seems to be ...
2
votes
4answers
271 views

Problem with custom vertical-alignment and/or length of lines/rules in tabular environment

As a follow-up to my previous question: In my table / tabular, \cline{1-1} gives me the correct vertical position but not the right horizontal length . In contrast, \rule{\mycustomlength}{0.4pt} ...
2
votes
3answers
984 views

How to get rid of these excessive rules?

\documentclass{article}%cannot be minimal \usepackage{longtable} \usepackage{ifthen, xspace} \newcounter{xyz} \setcounter{xyz}{1} \def\and{&\xspace} \begin{document} \begin{longtable}{|*2{c|}}\...
2
votes
1answer
368 views

Table Vertical Alignment not functioning

So I'm creating some tables and trying to use the array package to vertically align the text in some of my columns. Unfortunately whether I use p{xcm}, m{xcm} or d{xcm} the column is always aligned to ...
2
votes
1answer
5k views

Aligned equations in tables [duplicate]

I'm new to LaTeX. I'm trying to create a table where one of the cells contains aligned equations. The naive approach of nesting an align environment inside the table environment does not work: \...
2
votes
2answers
4k views

Bold \hlines for longtable

I've searched the topic and found the following two answers. Answer 1. LaTeX tables: How do I make bold horizontal lines (typically \hline)? The best answer suggests to use booktabs. However ...
2
votes
1answer
6k views

Multicolumn misplaced \omit problem

Okay, I know there are a few questions already about this but I looked at them and tried to get it to work but couldn't, I'm kinda new at this so I dont really have a clue what I'm doing. Anyway here'...
2
votes
3answers
451 views

Place sidewaystable together with text

My sidewaystable is always placed on a separate page! How do I make it appear exactly where it is defined? Is that possible? text sidewaystable page break text I've done something like this: \...