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

8
votes
1answer
912 views

Pgfplotstable one row in bold

Considering this MWE, I am looking to obtain bold style on a row. The highlight's style works on columns but not on row. \documentclass{standalone} \usepackage{pgfplotstable} \begin{document} \...
4
votes
1answer
7k views

How to put table caption on top without using float or floatrow package

I have got some very simple table; something of the sort: \begin{table} \centering \begin{tabular}{|c|c|c|} \hline 1 & 2 \\ \hline 3 & 4 \\ \hline \end{tabular} \caption{This is ...
1
vote
2answers
185 views

How to insert images in a table's colum?

I want to display my testing on some images. And i want to display it in the table. so the table has 3 column. first : number 2nd: image 3rd:sentence \begin{table}[!h] \centering \caption{...
22
votes
1answer
28k views

How to draw a double \hline in a table without interrupting vertical lines

I need to draw a double line after the first row in a table, but when using \hline twice, this interrupts the vertical lines: \documentclass{article} \begin{document} \begin{tabular}{|c|c|c|} \hline ...
5
votes
2answers
699 views

Can I make this table fit in portrait mode?

I have a table which I want to make fit in portrait mode. Do you think this is possible? Here is the minimal example: \documentclass[11pt,a4paper]{book} \usepackage[utf8x]{inputenc} \usepackage{ucs} ...
0
votes
1answer
202 views

PDFLatex tables are covering up text

I have a series of images that I'm displaying using a table environment. However, pdflatex places my table over the references portion of my paper. I've tried [htb!] options for the table, and it ...
5
votes
1answer
68 views

How to “count” some table cells and print the result?

Thanks to an answer from David Carlisle found on this site I managed to code this: \documentclass[a4paper,10pt]{article} \usepackage{colortbl} \usepackage{xcolor} \newcommand{\acell}[1]{\gdef\...
1
vote
1answer
603 views

Problem with m{} in tabular

Can someone please tell me why if I write this piece of code \documentclass[10pt,a4paper]{article} \usepackage[italian]{babel} \usepackage[utf8]{inputenc} \renewcommand{\rmdefault}{ptm} \usepackage{...
3
votes
1answer
260 views

Equation numbers under equations

I have three similar equations which I want on a same line. I put them in tabular environment nested within subequations following this: subequation in tabular. Now I have this code: \documentclass{...
4
votes
3answers
1k views

Misplaced \omit and \multicolumn in \IfEqCase

I have the following code with a command that creates rows for a tabular: \documentclass[letterpaper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage{xstring} \newcommand*{\condrow}[2]{ \...
6
votes
2answers
315 views

How does this TeX code generate automatic \hline's in tabular environments?

@AlexeyMalistov gave an answer to make LaTeX draw a \hline between each line in tabular without using \hline? in StackOverflow before TeX.SE existed. The same question was later asked on TeX.SE: ...
3
votes
1answer
910 views

How to make LaTeX (tabu, hhline) tables keep rowheights?

i want to typeset a long table across several columns / pages and want the table rows to keep register. my code looks basically like this: \documentclass{book} \usepackage{pagegrid} \usepackage{...
3
votes
1answer
112 views

How can tikzpictures in a tabular be centered independent of nodes?

I have the following tikzpicture inside a tabular and i would like to have the circles to be centered such that they line up in collumns and rows, even if there are nodes at different positions. How ...
2
votes
1answer
347 views

Multirow results in text overlapping border

when using multirow in the following example, the content of the multirow cell is placed above the cell border. Is there any means to remove the border automatically where multirow is used? Code: \...
7
votes
2answers
17k views

Formatting of Tables in Latex, using multirow and multicolumn together

When I used this piece down, I got. \documentclass[a4paper,12pt]{report} \usepackage[inner=0.75in,outer=0.65in,top=0.75in,bottom=0.75in]{geometry} \usepackage{graphicx} \usepackage{url} \usepackage[...
2
votes
2answers
2k views

Vertical space between tables vspace won't work

I have 2 tables, one above the other. At the moment I can't make any space between them in my report. The strange thing is I moved them in to a new blank document with all the same preamble and \...
4
votes
1answer
262 views

How to control the multirow table to fit in one column?

I have a multirow used in twocolumn format. The issue is that when I used some circled characters, the column of the table widened to invade the next column. How can I control the multirow table to ...
6
votes
1answer
873 views

Warning: Overfull \hbox in table

Consider the following example: \documentclass{article} \usepackage{booktabs,dcolumn} \usepackage{siunitx} \newcommand*\mc[1]{\multicolumn{2}{c}{Eleverne fra $9$.~#1}} \begin{document} \begin{...
11
votes
2answers
374 views

Table with all numbers in millions

What is the proposed way to set numbers in tables which are all in the millions? None of the numbers has a significant digit smaller than 1,000. Since it is a rather large table, I want to get rid off ...
2
votes
2answers
618 views

How to make a table with variable rows

This is my code extracted from a custom class file. \makeatletter \let\@tmemi\@empty\let\@tmemii\@empty \def\tmemi#1{\gdef\@tmemi{#1}} \def\tmemii#1{\gdef\@tmemii{#1}} \...
0
votes
0answers
52 views

How to write Euclidean division [duplicate]

I tried to use the tabular but the \hline spread over the whole line (even under the 77).
4
votes
2answers
467 views

How do you display table headers that are wider than the rest of the column?

I have a table with lots of columns, which only contain a short values, but have long headings. I think this table would fit width-wise on a single (landscape) page, if I could get the headings sit on ...
1
vote
1answer
137 views

Horizontal centering in table

Consider the following example: \documentclass{article} \usepackage{booktabs,dcolumn} \usepackage{siunitx} \newcolumntype{d}[1]{D{.}{,}{#1}} \newcommand*\mc[1]{\multicolumn{1}{c}{#1}} \begin{...
6
votes
1answer
1k views

Align along dot in tables

Does anyone know how to align the figure along dot within the tabular environment? I would like the figures to be under each other sharing the decimal dot as a common point of alignment. \begin{...
5
votes
2answers
185 views

Captions and labels for my tables, listings, images

I'm writing my master thesis and I have a lot of short tables, listings, etc. in the text. I would use figures for them like this: \begin{figure}[h!] \begin{lstlisting}[mathescape] ... ...
2
votes
1answer
718 views

siunitx: bold single numeric cells + mathspec

I need to bold and align numeric values in a table while using both mathspec and siunitx packages. I've looked at siunitx: Bold single numeric cells for bold and alignment in a tabular environment ...
5
votes
1answer
114 views

Table within table fouls up vertical alignment of neighboring cells!

I nested a table inside of my table like this: \begin{tabular}{p{1in}||p{5in}} \hline This should be on top. & \begin{tabular}{@{\extracolsep{\fill}}lr} Thing1 & ...
2
votes
1answer
140 views

Tabular environment for specified width, bg and font colorings by row?

I'm looking for a tabular-type environment which will allow me to: Specify the total width (like tabular* or tabularx, tabulary) Allow an individual row to have a specific background color (like ...
7
votes
2answers
258 views

Table column align on decimal

Jeff Dean published this famous table of "numbers every software developer should know". I'm struggling to format it properly for a publication that is written in LaTeX. As you can see, the left ...
3
votes
3answers
861 views

Table Large Text and Centering

I'm trying to learn the TeX language in preparation for my final engineering project before I graduate, and while I've been able to find most of the solutions online, I can't seem to find a solution ...
4
votes
2answers
3k views

Sideways (rotated 90 degrees) label for table

How can I create the following table in LaTeX? I created the table below using PowerPoint. Here is my best attempt at using LaTeX to create the table: \begin{tabular}{l|l|l|} \cline{2-3} &...
1
vote
0answers
36 views

I cannot put latex code with pgfplotstable package [duplicate]

I'm makin' a table with this package but I cannot put latex code with $$ in every cell. The code: \usepackage{icomma} \usepackage{fancyhdr} %activamos el paquete \usepackage{endnotes} \usepackage{...
1
vote
1answer
193 views

How to remove multiline space within cell value (in Table)?

This refers to my following question. Setting single row height with multirow \documentclass[11pt,table,a5paper]{article} \usepackage{array,ragged2e} \usepackage{graphicx} \usepackage[framemethod=...
4
votes
1answer
132 views

Is there a way to always get a table on the same page with corresponding footnotes?

I have a situation where sometimes two tables (who look nearly identical to the one in the MWE) are on the right page with the corresponding footnotes but then unfortunately very often not, ...
7
votes
1answer
270 views

How do I use commands within tabular definition?

Using commands within tabular definition result in error ! Missing $ inserted. In this case, it is the \, that causes problems when calling the custom command. Same commands work fine outside tabular ...
5
votes
1answer
301 views

Align table columns with superscript markings

I have a table of integers; a handful of them have an extra superscript marks to distinguish various characteristics. I think the table looks nice, but the superscript marks throw off the alignment....
1
vote
2answers
917 views

Insert the table environment into the tcolorbox environment

Is possible insert the table environment into the tcolorbox environment, made available by the package tcolorbox? % !TEX program = pdflatex % arara: pdflatex: {synctex: yes} \documentclass[a4paper,...
3
votes
1answer
562 views

How to expand row height while using long text in multirow?

I m working on one table which has one row which spans over 3 rows but text in this row is very lengthy so it uses more than 3 lines so all text is not visible. How can i increase row height ...
0
votes
1answer
141 views

How to implement a table with multirow and multicolumn in latex

How can I create a table like this in latex? It is included multirow and multicolumn.
3
votes
1answer
159 views

Tabular p-column and environment gives strange output

The code below does produce a clearly too high column. The same effect can also be seen with other environments (center, ...). How can I use the p-column and have the correct height at the same ...
4
votes
1answer
215 views

Fixing the size of ingredient in the tables' cells

I have created a table as follows: \documentclass{article} \usepackage{array,booktabs} \usepackage{colortbl} \usepackage{xcolor} \begin{document} \newcolumntype{L}{@{}>{\kern\tabcolsep}l<{\kern\...
4
votes
1answer
168 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
2answers
128 views

Tabular(x) cell filled with text from a macro

I'm trying to generate a table containing some static text and some text that should be supplied from a defined macro. Consider the following MWE: \documentclass[a4paper,12pt]{article} \usepackage[...
2
votes
1answer
110 views

Short way to create simple multiple rows in a tabular

Let me please emphasise first, that I do not need a sophisticated tabular --- I'm looking for a clever way to create a simple, but long tabular. I'd like to create an empty tabular which has e.g. 25 ...
8
votes
2answers
853 views

Tabular paragraph vertical alignment

How to make this kind of tabbed paragraph: 3 columns 2cm 10cm 2cm, the last column is right aligned and it's content starts on the last line of the paragraph of the second column. 10. Some text ...
3
votes
1answer
381 views

Arrow alongside table

Long time listener, first time caller. I've got a table \begin{center} \begin{tabular}{cc} And two columns of pictures displaying results with a particular parameter increasing. I am trying to ...
0
votes
0answers
33 views

How to get a table in the Correct Place with LaTeX [duplicate]

Hi I am using LaTeX through no choice of my own. I thought I had just gotten used to it and then it starts messing around with me. My out put is to a PDF document. I am trying to add 6 tables to the ...
5
votes
1answer
872 views

Table cell height too small when wrapping text

I have the following problem with my table: The height of the 2nd row is slightly too small and the text overlaps with the line at the bottom and the top of the cell. My code is below: \begin{...
4
votes
1answer
985 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 ...
2
votes
0answers
318 views

Put ampersand (&) inside conditional [closed]

I'm trying to make a command that formats the alternatives of a test. Can I put an ampersand after each alternative? (I call my tabular command out of this command, and I want to put each alternative ...