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

fitting a wide table in centre of a page

I want to fit this table in the centre of a page. I couldn't find any way to fit this table on the page. Can anyone suggest a solution? \documentclass{article} \usepackage{booktabs} ...
2
votes
1answer
34 views

Need help formatting table without row and column header cell borders

How do I make a table like this in LaTeX?
2
votes
1answer
24 views

Overlaying a tabular on a lstlisting in a book

I am relatively new to LaTeX and am trying to move a tabular up by about 2cm to overlay a lstlisting. The \hspace command works as expected; the \vspace command however moves the text following the ...
2
votes
2answers
75 views

Color overshoots when using \cellcolor without intercolumn space

When creating highly regular tables, I'm quite fond of the custom C column type shown below that accepts a width and centers the content, without having me worry about intercolumn space messing ...
5
votes
4answers
185 views

A simple line from start of the page to the end

I need on one specific page a line from the very top to the end of the page (it is for folding). Everything I tried so far stopped at the head/foot room. Someone got an idea?
4
votes
2answers
48 views

top align minipage in tabular

I have one table with 2 minipages. I wish to top align the two minipages. e.g. \documentclass{standalone} \usepackage{adjustbox} \begin{document} \begin{tabular}{|l|l|} \hline ...
2
votes
1answer
47 views

vertical line in tabular and size

In the code below, how do I add a vertical line to separate the second column from everything to the right of it? Also, the content of the table is too wide horizontally. I can see though that if ...
1
vote
1answer
35 views

Errors in table, missing \endgroup inserted <inserted text> \endgroup

Below is the latex example i am working on, it should generate two tables. One table with two columns, the other table is just one column. And i have a software program it makes any word in the table ...
0
votes
3answers
44 views

Vertical lines in a table

% Table generated by Excel2LaTeX from sheet 'paper2' \begin{table}[htbp] \centering \caption{Comparison of the CCSHR estimators based on beta and logit-normal distributions} ...
4
votes
1answer
2k views

How to use LaTeX tables with MS Word/PowerPoint

I love LaTeX's modularity and that I can generate (w/ Stata) and \input{} tables, which makes it really easy to update my work and to keep the same analyses across papers and presentations. But not ...
5
votes
1answer
48 views

Dynamically calculated Row height in Tables

I am trying to dynamically allocate the height of rows in a table based upon a number, specifically the number of minutes that are devoted to a specific activity in a class lesson. The table ...
5
votes
3answers
54 views

Long list of tabular figures inside minipage goes off page

Using the follow MWE, I'm able to create a beautiful lists of photos on the left and a caption on the right (similarly, I could also use the sidecaption package or floats directly). MWE [LuaLaTeX]: ...
1
vote
1answer
25 views

xtra alignment tab has been changed to \cr?

I get the error mentioned in the title of the question. Can you help me please ? \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[siunitx]{circuitikz} \pagestyle{empty} ...
4
votes
1answer
61 views

In table cell, how to break long words after “::” or “_”?

I have a software program can generate tables which may be very long and may contains words with many letters,so i use longtabu package. Some words may look like this: AAA_BBB_CCCC_DDDDD_CC ...
0
votes
1answer
46 views

Table for Binary Operations

I am trying to build a table used for different binary operations, especially with thicker lines on the sides separating the elements in the set from the "products" of the operations. I know this ...
0
votes
1answer
27 views

Landscape table will not be in centre of page

I read all the questions and answers on this, but they only left me more confused. I want my table to be in the centre of the landscape page, but it's always aligned on the left instead. Is there a ...
2
votes
0answers
31 views

How to sort footnotes in tables in two columns at the page end?

I have come across a problem and have searched the internet for a solution for two days now, but no luck. I have a couple of tables in my thesis with a lot of footnotes. I have read about the problem ...
0
votes
1answer
36 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
125 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
3answers
77 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 ...
4
votes
2answers
78 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
28 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
43 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
53 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. ...
-2
votes
0answers
72 views

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

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
37 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
115 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
48 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
45 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
133 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
51 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
95 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
72 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
62 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
69 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
114 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
323 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
69 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
55 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
44 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
75 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
86 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. ...