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

1
vote
1answer
24 views

Problem with cross references in table and algorithm

I am having a problem with cross references, which I have not been able to solve. I have a table and an algorithm which cannot be referenced. However, the behaviour in both cases is different: when I ...
0
votes
1answer
38 views

How to define a table with colored sections

I need to write a table like the image below in Latex. This table represents the data structure of a message, which some specific data of the message and other fields that are inserted into two ...
2
votes
2answers
57 views

How to create customized table

I need to create this table: I'm having problems on the second row, this is what I got: I'm not understanding where I'm wrong \documentclass[11pt]{report} \usepackage{outline} ...
1
vote
1answer
38 views

ref a table correctly inside enumerate items

\documentclass[11pt,english]{article} \usepackage[english]{babel} \usepackage[utf8]{inputenc} \usepackage{amsmath,amsfonts} \usepackage{graphicx} \usepackage[colorinlistoftodos]{todonotes} ...
2
votes
1answer
28 views

Formatting S columns with percent

Why in the following tables the results of formatting of S columns are different, i.e. dependent on, where the column is in table? Consequently those tables have different width. ...
3
votes
1answer
182 views

Is there a simple way to create a latex equivalent of this (ms)word table template?

I'd like to know if there's a newbie friendly way to create something like the table (it doesn't have to be a table if there's some other options that produce a similar template) in the pictures. In ...
1
vote
1answer
29 views

align to decimal point in the table

I want to align the number values of second and third column in the table, with the decimal point. Anyone can help me? \newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}} \begin{table}[htbp] ...
6
votes
1answer
133 views

Beamer annotated tables

I am trying to include some boxes around numbers in a table. I am using the method exactly described on the answer to question below: Beamer, annotated tables using Tikzmark The issue is that the ...
0
votes
1answer
46 views

chemfig formula in table - vertical alignment

I want to create numbered chemical formula via chemfig environment. MWE: \documentclass[a4paper,fleqn,leqno]{article} \usepackage{polyglossia} \usepackage{tikz,tikz-3dplot,graphicx} ...
1
vote
1answer
43 views

How should one add axis-type labels to a table?

I have a table of plots of the following form: It is made using code like this: \begin{tabular}{r|ccc} & 2 & 3 & 4 \\ \hline 4 & ...
1
vote
1answer
60 views

Fitting table to the whole page

How to fit the table into the page size in revtex 4.1 \documentclass[% aip, jap,% amsmath,amssymb, reprint,% ]{revtex4-1} \draft \usepackage{graphicx}% Include figure files ...
4
votes
1answer
112 views

How to remove unwanted space in beamer?

Here's my code: \documentclass{beamer} \usetheme{Berkeley} \begin{document} \section{Formula} \subsection{Time-varying Coefficients} \begin{frame}{Time-varying Coefficients} ...
0
votes
1answer
26 views

Tweaking table size with column separation

I have a large table which is very slightly wider (around 1cm) than my text width and I want to squash it up slightly so that it fits. Rotating it or resizing the text was undesirable in this context. ...
0
votes
0answers
32 views

“There´s no line here to end” after trying to make a table

\begin{table} \begin{center} \begin{singlespacing} \scalebox{1}[.75]{ \begin{tabular}{||p{2cm} | p{2cm} | p{1.8cm} | p{3cm} | p{2.5cm} | p{1.7cm} | p{1.7cm} ||}%p{1.7cm}||} \hline \hline Project & ...
0
votes
1answer
49 views

Number formatting in the table with spreadtab

I am using spreadtab for the calculation in a table. In the same time, I use numprint package for number formatting as advised in the documentation of spreadtab. To get thousand separator as , and ...
2
votes
3answers
78 views

Make a tabularx environment fit inside the text block

My tabularx environment doesn't fit, width-wise, inside the text block. The \hlines do, but the text does not. Excel2latext is used to make the table. Only the 'x' is added to tabular. ...
0
votes
2answers
35 views

Center first line of a table

I'm working with \begin{tabular}{lll} \textbf{text} & \textbf{text} & \textbf{text}\\ &&\\ . . . &&\\ \end{tabular} Since lll puts everything at the left. What's the way to ...
0
votes
0answers
17 views

Rotate table without rotating text [duplicate]

I'd like to rotate some tables, but the text should not rotate. I have 10 tables, which are really long, but not very wide, which looks ridiculous. How can I switch rows and columns and keep the text ...
2
votes
0answers
24 views

How to create tally marks / hash marks with LaTeX [duplicate]

Hi I want to add a column in my table like the given image. How to produce this type of difficult symbol in latex?
3
votes
2answers
70 views

How to break up table headings into two lines? [duplicate]

I'd like to have the headers of my table on two lines. For example, I would like Reaction Buffer to be ABOVE (150mM sodium acetate), and etc. for each column, but I don't know how to do this. Also, ...
4
votes
2answers
79 views

Uneven Columns in two-column-Tables

I've been given the task of replicating this kind of table: I'm completely new to LaTeX, have literally started today but after looking around on forums I thought I'd give it a go. Here's my ...
3
votes
1answer
32 views

Split the selection area of two columns (tabular, or minipage, or whatever works)

I use a tabular environment to do this 2x2 table: These are input and output samples of a program. In a PDF viewer, I wanna be able to select only one of the sides of this table, but my viewer ...
2
votes
1answer
51 views

Problem with tables in document

i have problem with tables in my document. Tablica 1 and Tablica 2 sould be under "5. Opracowanie wyników pomiarów" and over \paragraph{1...} . Here is a code, copied from ...
0
votes
0answers
25 views

Beamer puts table borders in weird places with color

I have a table that I would like to alternate the colors on to make it look nicer. My code is as such... \begin{table}[!ht] \centering \adjustbox{max height=\dimexpr\textheight-5.5cm\relax, ...
2
votes
0answers
32 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} ...
4
votes
1answer
65 views

One half spacing in tables

What is the easiest way to get one and a half line spacing in all my tables? I have the setspace package loaded, if that helps. The relevant bits of my preamble currently read: \usepackage{setspace} ...
4
votes
1answer
121 views

enumerate items and table side by side

How to make enumerate items and a table side by side like the effect in the image which is from CLRS P.61. I have tried to make every row a table in each enumerate item, but the effect is not the ...
1
vote
1answer
35 views

Vertically centering multiple rows between columns containing uneven amounts of content

This is my first question here. I hope I can explain it clearly enough. I'm creating a tabular with an uneven amount of content in its columns and I'd like for the columns containing fewer rows of ...
2
votes
0answers
48 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 ...
1
vote
1answer
80 views

How to span brackets on some rows in longtable?

The goal is to place a brackets into the table (longtable) to embrace some rows of this table: The solution which involves rdelim and \multirows command (described here: usage of \rdelim) gives not ...
2
votes
1answer
34 views

Width of columns with circled numbers in a table

I think my question is similar to this one: Wrong spacing of circled numbers using Tikz and exam class but I'm not quite sure. In a talk using the beamer class I used a table and it involved tikz ...
1
vote
0answers
42 views

rowcolor removes vertical lines

Why does the code line setting the color for the first row of this table, remove three of the vertical lines of that row? \usepackage{colortbl} \newcommand{\grayrow}{\rowcolor[gray]{.90}} ...
2
votes
1answer
29 views

Using rotatebox and multicol in a table for the same cell

I have a table which has column headings like this: There is a gap between the row with text beginning 'Segments...' and the numbering of the second row. I believe this is due to my use of ...
4
votes
2answers
30 views

boldface with italic cannot be done in the second main header of advanced tables in memoir class, why?

\documentclass[a4paper,12pt]{memoir} \usepackage[margin=1in]{geometry} \usepackage{booktabs,siunitx,adjustbox} \begin{document} \begin{table}[t] \centering \begin{adjustbox}{} \small \begin{tabular} ...
0
votes
1answer
57 views

vertically align cell in table that includes minipages

In the following table (code included below), how can I vertically center the text RowName1? (note that each bulleted list must be within a minipage environment). Code: ...
1
vote
0answers
13 views

Strange behavior in tabular environment [duplicate]

Can someone explain why "B1" cell is not vertically centered and how to figure this out ? \documentclass{article} \usepackage{array} \usepackage{amsmath} \begin{document} ...
0
votes
1answer
35 views

How to establish the width of a column in a longtable

I wrote a table by longtable. It works correctly but I would like to improve the layout of the width a column. In the figure below you can see the result: As you can see, the last colums is very ...
6
votes
2answers
186 views

Why is a certain part of my table italicised?

I am just wondering why, in the following table, the words "Male" and "Black" are italicised, while Quintile 3 isn't? I'd like Quintile 3 to be italicised, but I don't know why "Male" and "Black" are ...
3
votes
2answers
84 views

Duplicating MS-built Table Formatting in LaTeX

I have a table made in MS Office and I'd like to recreate it using LaTeX. I've attempted a number of solutions using Table+Tabular (using this as a template); this has worked until I try to ...
2
votes
1answer
31 views

Multirow vertical aligment issue

I am having issues with creating my table with multirow. Vertical aligment is not centered properly (letters are more at "top"). I think that is caused by "hline". When I use "toprule, midrule,.." ...
1
vote
2answers
68 views

Why is parskip zero inside a tabular?

I wonder why \parskip is zero inside the tabular environment. How can i make the paragraphs inside a tabular to be equally spaced as outside the tabular environment? I know about \@parboxrestore ...
1
vote
1answer
41 views

Two tables in one line, problem with text between tables

i have few problems. 1) I would like to create one table and inside 2 tabulators one on the left and one on the right with one caption, but when i use 2x tabular inside table i'm getting two tables ...
0
votes
1answer
36 views

Text “figure” appearing after section number in Table of Figures [duplicate]

I am having the same issue as MarkSvalov in this post. Sadly it seems like it has been removed. The same thing is happening to the List of tables, but not to the listings (source code). So what I ...
2
votes
3answers
76 views

Advanced tables does not work with memoir class, why?

\documentclass[a4paper,12pt]{report} \usepackage[margin=1 in]{geometry} \usepackage{booktabs} \begin{document} \section{report Advanced Tables} ...
1
vote
1answer
38 views

How do I align multiple tables vertically

\section{User Requirements} \hfill \begin{tabular}{|p{2.8cm}||p{12cm}|} \hline \rowcolor{lightgray}\multicolumn{2}{|l|}{Requirements} \\ \hline Number & 1 \\ \hline Description & The app ...
3
votes
2answers
37 views

Mixed table borders

I am trying to draw a table where some lines have (vertical) borders and some lines don't. I couldn't find a satisfying way to do this. Horizontal borders are not the problem obviously, since I can ...
1
vote
1answer
23 views

Make Table with Long and wrapped text for Table Header

I want to make table like this Here's my code (only try with the header and one empty row) \begin{table}[ph] \centering \begin{tabular}{\textwidth}{|l|l|l|l|l|l|l|l|l|} \hline No ...
1
vote
1answer
89 views

Creating a Table using LuaLaTex

I am just trying to create a simple table in LuaLaTex that summarizes an experiment. I needed to use it (LuaLaTex) to typset my document in Times New Roman font. I am using Macbook Pro with OSX El ...
2
votes
1answer
92 views

How to fill gantt chart bar with arbitrary color

In the code below I would just like to manually decide to fill the second bar in the chart with a color or hash it! I want to be able to decide which bars to make these changes on a case by case ...
1
vote
1answer
34 views

PythonTeX + \InputIfFileExists for inputting rows in longtable creates spurious space before the end

TeX Live 2014 on Xubuntu 14.04 LTS. Minimal working example: \documentclass[11pt, twoside]{book} \usepackage{pythontex} \usepackage{booktabs} \usepackage{multirow} \usepackage{longtable} ...