{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
21 views

Exclude a line of text in a tabular environment

I have this problem: inside a framebox there is a line of text which should not be a part of the tabular enviromnent because it widens the first tab. Here is the code \documentclass[12pt, ...
2
votes
1answer
24 views

Double backslash or \cr in \newcommand to be used in a table

I have a \newcommand*\mycmd[3]{#1 & #2 & #3 \\} that is used in a tabular environment later, like this \begin{tabular}{ccc} \mycmd{a}{b}{c} \mycmd{d}{e}{f} \end{tabular} But the double ...
1
vote
1answer
35 views

Longtable spacing

I am using longtable and I cannot find a way to adjust its column spacing. I want a table like this: But I am getting this: This is what I am doing for defining table size: ...
3
votes
1answer
44 views

Table with figure using 2 rows?

I need a table with 2 rows and 4 columns. The 1st column should contain an image, which uses both rows (centered). How? The closest I can make is this: \begin{tabular}{ | c | l | r | r |} \hline ...
2
votes
2answers
20 views

How to align column names in the second row?

Here are my example and the code. \begin{table}[H] \begin{tabular}{lrrrr} \toprule \multirow{2}[3]{*}{Method} & \multicolumn{2}{c}{group} & \multicolumn{2}{c}{variable} \\ ...
1
vote
1answer
34 views

Making a multiple column table in this fashion

I want to create a table like this: Title Name Title Name Mr Tom Mr Tim Mrs Eliza Mr Ohm so I want a table with multiple columns, but I don't want ...
5
votes
1answer
44 views

hyperref link jumps beneath table's top caption when floatrow is included

I use the following packages related to captioning, tables and hyperlinks: \usepackage{hyperref,caption} \usepackage[style=Plaintop]{floatrow} \usepackage[referable]{threeparttablex} I have a table ...
3
votes
2answers
27 views

Item list inside multicolumns not correctly centered

I have a table with item list inside multicolumns which are not behaving as expected (vertically and horizontally centered): \newcolumntype{C}{>{\centering\arraybackslash} m{2.3cm}} \begin{table} ...
0
votes
2answers
31 views

Multicolumn table with different size

I have the following multicolumn table, but I would like to have these columns in different width. For example, columns "Cast name" should be wider that columns "percentage". Could someone kindly let ...
2
votes
3answers
59 views

Rotated table exceeds width of text block

I have a table (code in the final) that is rotated 90 degrees counterclockwise. However, it is too wide. How can I solve that (fit to the width of (rotated) text block)? One solution could be to make ...
2
votes
1answer
114 views

A nicer way of writing a table

I was wondering if there's a nicer way to write such a table... Any suggestions? Thanks! \documentclass[12pt,oneside,a4paper,fleqn]{report} \usepackage{float} \usepackage{booktabs} ...
2
votes
2answers
57 views

Fixing the form of a table

I am writing the below to get a table... Once I build it, there's something that doesn't look good... I can't figure out how to fix it ! Please help :) ...
1
vote
1answer
19 views

Center heading over the border between columns in a table

I have a table that looks like this: \documentclass[12pt,a4paper]{article} \usepackage{booktabs} \begin{document} \begin{tabular}{rl} \multicolumn{2}{c}{heading} \\ \toprule string & much longer ...
2
votes
1answer
38 views

Table numbering by section with letters

I have a 2 part table that I wish to label as "a" and "b", that also includes the section number and the table number within the section (e.g., "Table 4.1a" and Table "4.1b"). I use the basic ...
0
votes
2answers
44 views

Insert a multiply symbol in multiplication of maths

\documentclass{article} % My MWE original version % I did use mtpro fonts % how to use slop since I don't have the package 'slop' \usepackage{amsmath} \begin{document} \begin{tabular}{ l r r ...
2
votes
3answers
64 views

Table exceeds text width

My table exceeds the text width... I have already tried lots of stuff (ex: tabularx, tabulary and others that I can't remember right now) to try to correct but none of them has solved my problem. I ...
2
votes
2answers
31 views

Remove vertical padding of a table inside a longtable

I want to have two row heading for my longtable and I am using this: \documentclass[12pt,landscape,a4paper]{article} \usepackage{microtype} \usepackage[T1]{fontenc} \usepackage{lmodern} ...
0
votes
0answers
23 views

Adding two lines of text to a single line of table

I am having difficulty typing into the row below starting with "(a)." In the code below, when I type next to (a), the entire table shifts with the text I type. I would like it to not move and be able ...
2
votes
1answer
39 views

Mixing m and X in tabularx

I have a problem with tables containing m and X columns. I need one column which should be vertically centered and another one which should fill the available horizontal space. My problem is that the ...
1
vote
1answer
15 views

Boldface “Table” in caption of longtable, using the svjour3 document class

I am using the svjour3 class to submit a tex document to a Springer journal. In this class, table captions appear like this: Table 1 An example of a Table caption If I use longtable however, I ...
1
vote
1answer
78 views

Creating complex tables in Latex

I'm transfering a project document to Latex. But I encounter one difficulty. There is a complex table in it and I really would not know how to remake this one in Latex. Could you guys give some help? ...
2
votes
1answer
30 views

Table goes off the bottom of the page

Is there a way to move a table to the next page if it doesn't fit on the current page? Currently my table goes off the page because it is too high - I'd like it to realise it's too high and therefore ...
2
votes
2answers
35 views

Bolding the first column of a table in math mode

What I want to do: Create a table in math mode without $...$ everywhere Bolding the first column What I have done: Using >{$}c<{$} to put table in math mode; see this answer. Following ...
3
votes
0answers
31 views

How to divide a long tabular into 3 columns per page? [duplicate]

I'm making a set of very long (1000 rows each) data tabulars. I'm using the longtabu environment, since it can split over pages. My problem is that each of the tables is around 16 pages long, and ...
2
votes
1answer
34 views

Forcing minimum height for tabularx row

I have a tabularx table using multirow and with all columns vertically centered. Here's the table: \usepackage{multirow,tabularx} \newcolumntype{C}[1]{>{\centering\arraybackslash}m{#1}} ...
2
votes
1answer
33 views

Non-float table with both footnotes and caption

Using Lyx. Is there a way to produce table with both caption and footnotes? Use of footnotes in a float is not recommended (both footnotes and tabular are float environments, footnote text is not ...
2
votes
2answers
39 views

fitting text into the tabular and tabular into the page

I've created the following table with help of @Zarko. Now I have some questions about layout. Code: \documentclass[11pt,a4paper]{article} \usepackage[english]{babel} \usepackage[T1]{fontenc} ...
2
votes
1answer
26 views

Text covered by tabular

Hi guys and thanks in advance for the help! I have a problem writing my thesis with LaTeX and on internet I can't find a way to fix it. the LaTeX text is this: \documentclass{article} ...
3
votes
1answer
11 views

Remove content in specific cell when using auto-inserted content in row using @{}

Consider the following example: \documentclass{article} \usepackage{booktabs} \begin{document} \begin{table} \centering \begin{tabular}{r @{\,--\,} l} \toprule & \\ ...
2
votes
1answer
62 views

How can branch if I'm in a halign or not?

Edit: It seems that I can use \noalign\bgroup before the \halign. That's fine. But how do I test that I'm inside the halign group? I'm able to write an own if, but it would be better to ask tex for ...
4
votes
3answers
61 views

How is it changing macro in my MWE?

MWE \documentclass[a5paper,12pt]{article} \usepackage{graphicx} \begin{document} \begin{table}[h] \begin{tabular}{|c|c|} \rotatebox[origin=c]{90}{{OZGUR}} & \includegraphics[scale=.25]{o.jpg} ...
4
votes
1answer
31 views

Matching width of colorbox with caption to the corresponding table

Please have a look at the following MEW: \documentclass[demo]{article} \usepackage[english]{babel} \usepackage{graphicx} \usepackage{xcolor,booktabs,caption} \begin{document} ...
1
vote
1answer
23 views

cline missing after coloring and text overlap in tabular

My code and what I got, \documentclass{article} \usepackage{ragged2e} \usepackage[utf8]{inputenc} \usepackage[letterpaper, top=0.5in, bottom=0.5in, left=1.55in, right=1.55in]{geometry} ...
0
votes
2answers
21 views

unwanted table coloring issue [duplicate]

First thing first, my code, \documentclass{article} \usepackage{ragged2e} \usepackage[utf8]{inputenc} \usepackage[letterpaper, top=0.5in, bottom=0.5in, left=1.55in, right=1.55in]{geometry} ...
-1
votes
1answer
51 views

How do I fit a wide table to a page?

Using the code below I get the attached output. I want to make a table consisting of nine columns but currently it is too wide to be displayed completely. \begin{table}[ht] \caption{Survey ...
1
vote
2answers
34 views

Is it possible to have something similar to multiline equation inside a table row?

I need to build some sort of table with a series of equations from different papers, and I am having an hard time with formatting the table I got something like this: I wanted to know if there was ...
0
votes
1answer
33 views

Table cross-chapter reference works fine but shows “??”

When I reference a table in a posterior chapter in my thesis, instead of the correct table number it puts ??. However, the link works correctly, and the table appears in the List of Tables fine. I ...
1
vote
2answers
24 views

Table value alignment

I have a table that looks like this. I generate it using: \begin{table*} \centering \caption{ The parameters obtained from the fit for the real-space correlation function \xir{} on the sample with ...
0
votes
1answer
37 views

Forcing a single column, full width table

I am writing multiple documents like paper.tex, report.tex, book.tex etc. They all have different formats like single/double column, landscape/portrait etc. All these (wrapper like) document tex ...
2
votes
2answers
33 views

Asymmetrical Composition of images

I am desperately trying to arrange my images as in this sample figure for my paper and I am stuck. Has anyone been able to do this successfully and could give me some pointers? It should be noted ...
0
votes
1answer
52 views

Typesetting a worksheet

I'm trying to create a very basic worksheet in TeX. I just want a document that gives some instructions and then lists a few problems in a grid, the same way you'd see in a math textbook for a ...
1
vote
1answer
25 views

Table spanning two of three columns in multicol-environment

I have a three-column document where I would like to place a (floating) table that spans the two left columns of the three. The following minimal example works for the placement but overlaps the text ...
4
votes
4answers
145 views

Trying to make a grid of 5 rows by 2 columns for each page but failed on the first page

The objective is to make a grid of 5 rows by 2 columns for each page. Unfortunately, only the first page has a grid of 4 rows by 2 columns. How to fix it? Minimal Working Example I have tried to ...
1
vote
2answers
58 views

Table with multirow and multicolumn

I want to create a table with multirow and multicolumn in latex. I tried some post 1,2,3 to create my table but because I'm new to latex tables so couldn't able to create my table. Please help me with ...
2
votes
1answer
27 views

how to Insert an English table into a persian text written by the use of xepersian package

I am writing a in \documentclass{report} and I use \usepackage{xepersian}. In a separate .tex file I created a table which is written in English. I want to put this table in my text using \include ...
0
votes
1answer
28 views

Color midrule in tabularx [duplicate]

I have created a table using tabularx. Can I color the \midrule instead of having it colored black as default?
1
vote
1answer
31 views

Table/figure in custom environment

having a custom defined environment, how would it be possible to have figure/table under the defined environment? \newenvironment{example}[1]{% \begin{exa}[#1] }{% \end{exa} } and ...
0
votes
1answer
40 views

Print list in columns

I have a long list. I want to reduce the length this list uses. Can I somehow encapsulate all the entries in an environment which prints all the entries in a "3-column table", making me use more of ...
0
votes
1answer
46 views

\hline not working

Hi I want to make an additional line in my document. The problem is that it tells me \hline is a "undefined control sequence"... I tried to create a small example file but the problem is that I use a ...
1
vote
1answer
26 views

\columncolor overwrites table lines

When I fill columns of my table with a color, it overwrites some of the lines. Is there a way to avoid it? \documentclass[slidetop,11.5pt,xcolor=table]{beamer} \usepackage{tikz} ...