{tables} is about the tabular environment and related packages such as {array}, {booktabs}, {tabularx} 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
79 views

Table with a different fonts for different columns

I'm using XelaTeX to typeset a table with a vocabulary list in a foreign language, with a structure similar to this one: different columns are typeset in different fonts (and scripts). It seems that ...
2
votes
2answers
65 views

Generic table definitions

According to the topic How to use commands in table specs, and still support array package? I have tried to intense the way of creating tables, definitions. \documentclass[fontsize=11pt, % Document ...
3
votes
1answer
97 views

Complex tabular layout

I am trying to understand what the following line implies for a tabular and did not find anything matching it: \begin{tabular}{|*{2}{@{}p{184pt}@{}|}} What is the *{2} for? What is the @{} for?
7
votes
2answers
126 views

How to align the last column to the right in tabular?

This is my code: \documentclass{article} \usepackage{array} \begin{document} \begin{tabular}{p{10em}>{\raggedleft\arraybackslash}p{10em}} First\newline Second & Alpha\newline Beta ...
3
votes
1answer
109 views

How to draw some lines between figures in LaTex

I want to draw the following figure. How do I do this? Some lines between figures, and Can you give me this lines some color? Some color lines in figure, as following:
4
votes
1answer
58 views

Enumerating tabular data

How do you enumerate tabular data like this? a) stuff stuff stuff b) stuff stuff stuff c) stuff stuff stuff I considered making a table then using a counter: ...
2
votes
1answer
40 views

Move Text Down in Table to Avoid Overlap with Line

I'd like to move the text "District Profile Report: English Language Learners" down so that it doesn't touch the upper horizontal line while keeping the logo aligned between the two lines (the logo ...
1
vote
3answers
41 views

Tables and figures slightly wider than text in article class

I have some tables and figures which are (slightly) wider than the text width. This results in them aligning with the left side of my text and going far out in the right side instead of actually being ...
2
votes
3answers
45 views

Add vertical space between \hline and the row consisting of only \multicolumn (without using \midrule)

I want to add vertical space between \hline's and the rows consisting of only \multicolumn. I do not want to use \midrule. The answers in this question do not work in case of \multicolumn. Here is ...
2
votes
1answer
49 views

Page Breaks in Two-Column, Multi-Page Table

I'm currently using xtab to create long tables that span two columns, and multiple pages. What I'd like to do is have a finer degree of control over when the table is broken on a page / column ...
2
votes
1answer
48 views

Problem with vertical alignment of cells in tabular environment

I'm having a problem with vertical alignment of cells in a somewhat complicated case. Does anyone know how to have a different vertical alignment for two cells in the same column? And also if you use ...
3
votes
2answers
135 views

How to center a big table in LaTeX?

I have a relatively large table composed the following way \begin{table}[ht] \caption{Backtesting - CFM $\alpha=5\%$, $confidence \ interval = 95\%$ } \centering \begin{tabular}{rrrrrrr} \hline ...
2
votes
1answer
35 views

\arraystretch in conjunction with booktabs

I'm trying to enlarge the row-height of my booktabs-table but \arraystretch does this asymmetrically. I am slightly confused because this is an obvious problem to me and I couldn't find any solutions ...
5
votes
2answers
223 views

Weird Error from \midrule

I am getting a weird error code: \expandafter \let \cmrsideswitch \@tempa \fi \fi? Strange error in my table The question above had the same code and it was liked to his use of \cmidrule. I am ...
4
votes
1answer
45 views

Braces for cases in tabular environment

I would like to create an aesthetic table with some cases within the table. I would like to denote the cases with braces from the left, as usual, like in the picture below (taken from ...
3
votes
2answers
80 views

multicolumn table

I want to make a latex multicolumn table, i wrote the code below, however, the result is not what I want. Is there anything wrong? Anyone can help? Thanks in advance. The code: \usepackage{booktabs} ...
4
votes
4answers
451 views

centering tables

I am trying to create my CV, using tables. I want them in the center of the page, but they continue to position a little bit to the left. I am using the command \centering before the environment ...
1
vote
1answer
30 views

Asking spreadtab to add all rows above?

I love the idea behind spreadtab. The author should be congratulated. However, it seems to require that I specify specific numbers for the rows that I want to add. What if I have a document, where I ...
3
votes
1answer
42 views

Resizing table when using package {threeparttable}

I'm using the {threeparttable} package because I want to use table notes, but I'm having a problem resizing my tables. If I use {adjustbox} to enclose {tabular} (or {tabularx}), I get an error ...
3
votes
3answers
72 views

Arranging page in a single big table

I'm a LaTeX beginner, so I apologise in advance if the question has an obvious solution or has already been answered. I have to write a short technical report on a lab experiment for college, and the ...
0
votes
1answer
26 views

Why does this cause an Overfull hbox ?

I am doing quite a big report and I am getting quite a lot of overfull badboxes (actually I got one whenever I use a tabular), so I decided to work on a MWE so I can understand what is really ...
3
votes
1answer
75 views

tabular environment: incrementing the headings

Is it possible to let LaTeX increment the headings in a table environment? If so, how could I do this? For example, I would like to have 7 columns and 7 rows where the columns except the first are ...
1
vote
0answers
37 views

Colorising a table based on the content

It can be hard for humans to recognise strings of numbers as being the same. Consider the table below If cells that had the same content were each colours the same, then it is much more clear. ...
0
votes
1answer
37 views

table legend - wrong reference

I'm using these commands to create a table with a legend, but the problem is that when I make a reference to it, it appears as "Table IIIB" instead of "Table III". Can you help me please ? ...
2
votes
2answers
41 views

itemize in table without excess space

I am trying to create a list of bullet points in a tabular environment. When I use itemize, the line separating different jobs on my cv is no longer separated. When I manually use cdot however, the ...
1
vote
2answers
87 views

How to set horizontal space for tabular

Below is item in tabular. Using tabular text gets out of the page. In-order to get rid of this. I tried with \\. But doesn't help. It's not aligned. Can anyone help me to get the below Below ...
1
vote
1answer
30 views

cellcolor affects horizontal alignment in table

I have a table and I want to highlight some cells with color with \cellcolor. However the horizontal alignment is distorted, as you can see in the image. Can this be corrected with the current ...
1
vote
1answer
57 views

Reducing space between columns manually

I'm working on a table in report documentclass. Here's some of my code below: \documentclass[12pt]{report} \usepackage[table]{xcolor} \setlength{\arrayrulewidth}{1mm} ...
1
vote
3answers
43 views

A table consisting of mathematical expressions [duplicate]

The following is my code, but it didn't work, do I miss some package? Please, give me advice and correct code. Thanks for your help! \begin{tabular}{|c|c|c|c|} \hline & x<0 & x=0 & ...
6
votes
1answer
107 views

Do not indent a tabular

In the following minimal example, the tabular seems to be indented, unless I misunderstand (for example, maybe left-aligned does not do what I think?) \documentclass{article} \begin{document} ...
4
votes
2answers
57 views

Breaking up text in a column

When the contents of a column are too long to fit on a single line, how can I have TeX break up the contents across multiple lines if the column has a variable width (such as column 2 in the example ...
4
votes
1answer
38 views

\rowcolor and custom column separators

When I use \rowcolor, custom separators between columns are not affected: \documentclass{article} \usepackage{xcolor} \usepackage{colortbl} \begin{document} \begin{tabular}{p{1cm}!{-}p{1cm}} ...
3
votes
1answer
53 views

Stretching a column so that table fills up specified area

Using plain TeX how can I make column 2 in the following table take up the remaining space to .5\hsize while preserving the other columns' property to have a variable width dependent on their ...
1
vote
1answer
119 views

Complex nested table in LATEX

In my document I want to include nested tables as in the picture below. i- The table need to occupy the page width ii- The left most column "GRP1" & "GRP2" to be left aligned on the page iii- ...
3
votes
0answers
75 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 ...
1
vote
0answers
31 views

In row table page break

I want to generate a report automatically. I use python to replace placeholders inside a LaTeX template. The report contains large complex tables that span multiple pages. I have found a packet cals ...
1
vote
3answers
77 views

How to specify the multicolumn width in table header? [closed]

I want to read/input the body of a table from a separate file. I have mostly solved this problem using this question. But when I try to read a table with multicolumn from a separate file, it failed. ...
2
votes
2answers
68 views

Error missing \endgroup for table tabulary with bullet list

I'm trying to insert a bullet list in a table of the type tabulary , but it always throws following error! Missing \endgroup inserted. <inserted text> \endgroup ...
0
votes
2answers
62 views

How to make the following table with multiple cell merges

How can I make the following table in LaTeX?
3
votes
2answers
149 views

Difference between tabular and array environment

What is the difference between a tabular and an array environment? When should be used the former and when the latter?
4
votes
3answers
85 views

Enlarge table/tabular without using tabularx

I have the following table and I want to enlarge this. The width of the table has not to be big as the \textwidth but it should be a little bit larger as it usually is: \documentclass{article} ...
4
votes
2answers
123 views

Cross-referencing within a Table

I have defined a new counter to track chemical reactions listed in a Table \begin{table} \begin{tabular}{clccr} \hline \# & Reaction & $\log_{10}A$ & $n$ ...
3
votes
1answer
83 views

Proper Formatting for Simple Tables in LaTeX

I have a table as below that doesn't format properly through pdfLaTeX. Specifically, the vertical lines for each row don't extend all the way down to create a complete box. Is there a better way to ...
0
votes
0answers
32 views

How to split a table vertically? [duplicate]

\begin{tabular}{ |p{3cm}||p{3cm}|p{3cm}|p{3cm}| } \hline \multicolumn{3}{|c|}{States} \\ \hline cpu & Higher--Lower & Lower-Higher \\ \hline ...
2
votes
2answers
110 views

Number of row in a tabular

Is there a simple way to get the number of rows of a given tabular ? More precisely, I have a variable \t@b which contains something like foo & bar \\ foo & bar \\ foo & bar I will ...
5
votes
2answers
78 views

Varying the number of decimal places in spreadtab

I have a table for a budget, which uses spreadtab. \STautoround*{2} \begin{spreadtab}{{tabular}{lrrrr}} @\textbf{Item} &@\textbf{Unit Value}&@\textbf{Unit ...
2
votes
0answers
35 views

Color x Grids in tables

I have been trying to reproduce a table with two uncommon features. Grey first row Header Two last columns with extra row. First I managed to do the extra row, but if I try to put the color in ...
2
votes
1answer
40 views

Set column width to point

I currently have a tabularx table with four columns. I initialize the environment like this: \begin{tabularx}{\linewidth}{l p{0.4\linewidth} | l X l X} How could I change this so that the second ...
0
votes
1answer
45 views

Multirow: column borders missing

I'm not getting column borders correctly in the following table. I'm using multirow package. Also, I want the '123' in the big cell to be centered, but it is misaligned. I'm not sure how to fix this. ...
3
votes
3answers
143 views

What does mean the code in this table?

After see the Andrew Swann solution to my previous question: How to fit this table in a page? I tried to fit it to another table: \documentclass[11pt]{book} \usepackage[utf8]{inputenc} ...