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

0
votes
0answers
26 views

Floating and non-floating items in one document

till now my tables were like this: \documentclass{article} \usepackage{capt-of} \begin{document} \begin{table} \begin{minipage}[h!]{\linewidth} \centering ...
4
votes
3answers
3k views

Sorting Table Column

Suppose I have a table with say two columns. How can I sort its rows based on the first column? Is it possible in latex? If I do it in another application (like MS Excel) can I import the data from my ...
1
vote
1answer
118 views

Forcing paracol to look like a tabular

Consider the following tabularx construction: \documentclass{article} \usepackage[margin=1in]{geometry} \usepackage[table]{xcolor} \usepackage{lipsum,tabularx} \begin{document} \noindent ...
5
votes
4answers
60 views

How to align contents within table cells vertically?

Sorry for opening up another thread when there are so many already, but I can't find the correct solution to this right now. I would like to align the contents of the third column (the parts put in ...
3
votes
2answers
71 views

A table with some cells selected

I have an assignment at university and I have to write some documents written by hand into a TeX document. I'm facing a problem with the following table: Is it possible to achieve a result similar ...
0
votes
1answer
26 views

Latex align table within itemize

I am trying to write my CV using latex. I have the following problem. I want a table within itemize environment. This is how my code looks: \documentclass{scrartcl} \usepackage{tabularx} ...
4
votes
1answer
40 views

Auto colour numbers in range

If I had some numbers in a tabular column, is there a way to automatically change the font colour of them if they are outside a range; eg red if under 10 and green if over 50? \documentclass{article} ...
1
vote
1answer
43 views

Getting `tables` R package to print a text file that I can import into my .tex file

I'm trying to write some R code that takes data from my (evolving) experiment, makes a summary statistics table, and inputs it into the .tex document that I'm writing. I want to avoid copy-pasting. ...
0
votes
0answers
49 views

How to break lines in a cell of table? a very long word contains “::” or “_”

I use "longtabu" package to create a table. The reason I choose longtabu is, first it can deal with very long table, second it can automatically break lines to fit the width of a cell. But I got a ...
5
votes
1answer
32 views

Recalibrating \hline vertical spacing to that of \cline

How do I alter the spacing dimensions of \hline so as to replicate those of \cline? I have drawn a series of (empty-celled) tables using \hline for lines spanning whole tables and, e.g., \cline{1-2} ...
3
votes
1answer
110 views

how to modify the following table

In the example below, you might see that I have a table: I would like to change/introduce and understand the following: How to change the column separator say to \Rightarrow. Normally one can do ...
1
vote
0answers
43 views

How to adjust spacing between caption and table / figure in beamer?

I want to adjust spacing between caption and table/figure in beamer. However I am not able to overcome the warning Package caption Warning: \caption will not be redefined since it's already ...
0
votes
0answers
43 views

In table, how to make one column has different font size for different line?

I use longtabu to create a table, below is the realted code \begin{longtabu} to \textwidth {|>{\footnotesize}X[1 , p ] |>{\footnotesize}X[1 , p ] | >{\footnotesize}X[1 , p ]|} I want the ...
1
vote
3answers
129 views

My table is larger than the text box and I want to make it smaller

I have some tables that larger than my box text, but not my page. If I don't want to use the rotate package, what can I do to solve this problem? For example a picture of one of my pages is below ...
0
votes
2answers
47 views

Several caption problems in longtable and tabulary

I'm trying to typeset some multipage tables with tablenotes and repeating captions on each page. I found this question, which marries the longtable environment with tabulary. This is quite nice, ...
0
votes
1answer
29 views

Strange extra line after forloop in a tabular table

I'm trying to generate table lines (tabular environment) with forloop macro. I've got strange extra line after forloop. \documentclass {article} \usepackage [utf8] {inputenc} \usepackage [english] ...
4
votes
2answers
94 views

Is there a semantic way to typeset table headers in LaTeX?

Usually, when I add tables I use \usepackage{booktabs} and code that looks like this: \begin{table}[ht] \centering \begin{tabular}{l|rrr} \toprule Country / Property & Population ...
2
votes
4answers
70 views

Wrong bottom-alignment of rows of two independent tables, where the last row contains a nested table

I wanted to create a page, where I put some information in the left and some on the right side at the bottom of the page. The bottom lines of the minipages are supposed to be aligned as kind of an ...
3
votes
3answers
57 views

Table alignment help

I have three fairly minor problems, but I can't seem to figure out how to fix them. First Problem: Even though I have 'gaps' in my Latex editor between the semi-colon and the number after it (e.g. ...
1
vote
3answers
67 views

Extending Text Outside Table Cell

I have a simple graphic I'm trying to make with a table, but for it to work I need to extend the text beyond the table cell - through something like a negative margin - is this possible? Specifically, ...
1
vote
1answer
60 views

Issue with table captions

I have been writing my thesis in LaTeX and has always managed to fix any issues that arose but I just can't go anywhere with this one... :s. Basically any table that I have in my document has the ...
1
vote
1answer
112 views

How to add a table in footer

How can I add a table in the footer in LaTeX? I was trying to add a table that has three rows and 2 columns. In the left column, text is left-aligned, and In the right side column, text is ...
3
votes
4answers
316 views

Can anyone help me create the table below?

I try to use \multirow to create the table below, but it failed. Making the "unit" below the item causes table creation difficult for me. Anyone can help me out?
2
votes
1answer
68 views

How to remove the extra vertical lines in a table

There are two vertical lines on top of my table that are not supposed to be there. It looks something like this: | | Table 1: Title This is the beginning of my ...
2
votes
1answer
54 views

Adjusting the overall width of a table

My table extends past the margin of my .pdf file. I already set the margin using the geometry package. How will I be able to adjust the width of my table so that it will be within the specified ...
4
votes
2answers
67 views

Tabular cells with exact same width and multicolumn

I tried to design a table with some very specific preferences: The table should span across the whole width Each cell can have a different alignment Each cell has exactly the same width Some cells ...
0
votes
0answers
42 views

ComplexTable of Contents

Id like to create a table structure within my document based upon a \newlesson command for example. \newcommand{\newlesson}[1]{ \newpage \addtocounter{LessonNumber}{1}\subsubsection{{Lesson ...
3
votes
1answer
54 views

Table of results is not closing from above

The problem is that the table is not closing from above. Secondary problem (which I don't really care) is that a vertical line is replicated. Here is the code: \resizebox{\linewidth}{!}{ ...
2
votes
2answers
43 views

Multiple columns in table, problem with alignment

The following code generates a table: \begin{table}[!t] % increase table row spacing, adjust to taste \renewcommand{\arraystretch}{1.3} \caption{An Example of a Table} \label{table_example} ...
2
votes
2answers
69 views

Overfull \hbox (15.0pt too wide)

I have multiple tables which look like this: \begin{tabularx}{\textwidth}{|l|X|l|} \hline \textbf{ID} & \textbf{Description} \\ \hline 336858 & The description \\ \hline \end{tabularx} and ...
2
votes
2answers
83 views

Blank lines in tabular environment

I have a problem. I am making a table in the tabular environment; it has multirows and multicolumns and cell colours and all the usual haberdashery. However, there are lines missing in the table ...
0
votes
0answers
42 views

How to make the (COMPLETE) preamble of a Standalone document available to a `Main Document`?

I am in the process of generating a lot of content for presentations and scripts. The standalone package and documentclass seems to be a very helpful, but I am running into an issue mentioned by Diac ...
2
votes
1answer
47 views

subcaptions for tables can not be displayed

everyone. For making tables with subcaptions,I write the source as shown below. However, subcaptions can not be displayed as shown in attached screen shot. Let me know how to solve it. ...
3
votes
1answer
52 views

How can I arrange the table and the image in a minipage vertically?

I need the table and the image arranged vertically in the minipage instead of horizontally. I also add the pictures used in the code in the end. \documentclass[12pt,a4paper]{article} ...
1
vote
1answer
51 views

Table numbering incorrect

Since trying to fix the problem described in this question: Tabularx moving table to next page, ignoring optional arguments I have removed the offending Table and now noticed that my Tables have all ...
0
votes
0answers
23 views

Specifying columns using cellspace

I'm using cellspace to try get some more padding around fractions in tables and I'm stuck on this gibberish: \begin{tabular}[b]{ >{}l*{2}{| >{$}Sc <{$}}} What does it all mean? For ...
0
votes
1answer
81 views

one problem of creating table in latex

I want to create a table in LaTeX by this \begin{table} \begin{center}‎‎‎‎ \begin{tabular}{‎c‎ | c | c | c | c ‎|c ‎‎‎‎‎‎‎‎{c}‎r}‎ ‎j/i‎ & 1:Tumor & 2:Envir & 3:Leuk & ...
4
votes
1answer
250 views

Color first row in a xtable generated table

I am trying to color the FIRST row of my table. But if I add \rowcolor[gray]{0.95} to the FIRST row the colored row will be the SECOND. Indeed it is quite straight forward to modify from the second ...
0
votes
2answers
451 views

Fit to landscape longtable generated with xtable and sweave

I read many TEX questions/answers on fitting a table to your page width, but cannot figure out how to do apply it in my context (using xtable/sweave). Everything that I tried (using adjustbox, tabu) ...
0
votes
2answers
47 views

Ignore particular tabular cell height and simple overflow its content (like \multirow)

I want latex to ignore the height of a tabular cell and to overflow its content to the above and below tabular cell (see image - red arrows). First I tried \multirow but this doesn't align the text on ...
6
votes
2answers
691 views

Prevent xtab breaking table too soon

Xtab breaks a long table spanning multiple pages too soon -- see my screenshot: The output seems rather unsightly to me. Can I make it take more of the available space? Alternatively, is there a ...
0
votes
1answer
70 views

Tabular - Problem in aligning text

I've created a table and I want the text to be centered and aligned vertically in the middle so I used this code \documentclass[a4paper]{article} \usepackage[french]{babel} ...
4
votes
2answers
60 views

Error when specifying width of column in table

\documentclass{beamer} \begin{document} \begin{frame} \begin{table} \begin{tabular}{c{15mm} | c | c | c | c} Television & Radio & Washer & Dryer & Computer \\ \end{tabular} ...
2
votes
2answers
105 views

Something is wrong with my multirow

\begin{tabular}{p{2cm} p{2cm} p{2cm} p{2cm} p{2cm}} \hline & \multicolumn{2}{c}{Latin America}& \multicolumn{2}{c}{ Africa}\\ \hline & {\large $\Delta p_c$} & {\large $\Delta ...
3
votes
1answer
54 views

Table header appears twice at top of page

The following minimal code demonstrates my problem. (For me) the header appears twice on the table which is placed at the top of page #2. Any help would be appreciated. \documentclass{article} ...
7
votes
2answers
142 views

Importing CSV file as a table in Latex but file too long

I am trying to import a CSV file but the data in the table is too long it goes down till the end of the page and disappears without continuing on the next page. Here's the file: ...
4
votes
1answer
58 views

How to set a picture with caption in table?

How to set caption for images in table? like this image.
0
votes
1answer
42 views

If can set caption for images in this table?

If can set caption for 3 image in cells of table in this command? What abut For one image? ‎\documentclass[11pt,fleqn]{book}‎ ‎%\usepackage{amsmath,amsfonts,amssymb,amsthm}‎ ‎\usepackage{graphicx}‎ ...
1
vote
1answer
51 views

tabularx “Missing number, treated as zero” error

error: ! Missing number, treated as zero. } l.16 \begin{tabularx}{\textwidth} {x x x x} MWE: \documentclass[12pt,a4paper,fleqn]{book} % ...
2
votes
1answer
170 views

Vertical alignment text first column with merged cells and last column

I'm relatively new to Latex and I really appreciate this community, it has already helped me a lot. However, I've been unable to find the answer for the following problem: I want to create a 3 ...