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

3
votes
1answer
72 views

siunitx table leading zeros

How to preserve the leading zeros of the errors in a table using siunitx' S column type. \documentclass[ngerman,english]{scrreprt} \usepackage{babel} \usepackage[locale=DE]{siunitx} ...
19
votes
2answers
2k views

Aligning inside tabular environment, specific cell

I'm trying to align a specific content of a single cell. For example, \begin{tabular}{|r|r|} \hline 1 & 2 \hline right & to_the_left \hline 1 & 2 \hline ...
1
vote
1answer
59 views

Confusion related to this tex

I have this confusion about what this line in tex does \begin{tabular}{|p{5cm}|p{5cm}|} \hline \textbf{Heading 1} & \tabularnewline \hline \end{tabular} I am not sure what this |p{5cm}|p{5cm}| ...
4
votes
3answers
72 views

What is the correct way to stretch the cell keeping it vertically centred in tabularX

I have this table, in which the text is touching the horizontal lines above and below, I tried some of the solutions to stretch the cells I found in the web. I managed to stretch the cell but I can't ...
3
votes
1answer
201 views

Landscape Picture + Table format

I'm using latex, and memoir, and I want to create a page template that would always take one and only one page, containing a picture that is aligned to the left of the page, and always fitted inside a ...
2
votes
1answer
64 views

Footnote in table appears on wrong page

I have a tabular in a floating table environment and want to place a footnote in that table, whereas the footnotetext should appear at the bottom of the page where the table is on. I tried the ...
3
votes
1answer
53 views

Need help starting long, text-heavy table

I am new to LaTex and trying to teach myself. Currently I am trying to write a unit plan for graduate school (MA in Math Ed), which would look something like that provided image. One question, one ...
6
votes
2answers
185 views

How can I improve this table?

Using MikTex/pdfLatex Question: How can I improve table? Consider Column Title: I'd like to remove table numbering? (i.e. remove 'Table 0.1') Consider Column headings: I'd like to get single line ...
1
vote
1answer
76 views

Removing hline when producing latex code for table in R with Hmisc package

I have been struggling with this for some time and can't really find an answer. By default the latex command in Hmisc package cab generate code for table with hline on top, below header row and after ...
2
votes
2answers
59 views

Right alignment of column in table column

I have a table defined as follows where the first column is right-justified: \documentclass{article} \usepackage[margin=1in]{geometry} \usepackage{array} \begin{document} \begin{table} \centering ...
1
vote
1answer
65 views

Table row content, duplicate or quote in a different table

Following on from Arbitrary named counter, referenced, which was answered very comprehensively, I have a follow up question. This one's difficult to describe so my searching around the internet and ...
3
votes
1answer
50 views

how is it possible to automatically break a long table with many columns?

I would like to have a single table that automatically breaks when it does not fit on the page. Is it possible? I have manually made an example illustragin the desired behavior. I created multiple ...
5
votes
3answers
3k views

How to vertically center text with an image in the same row of a table

I want to create a table with multiple rows of the following form: a cell that contains text and then multiple cells that contain images. The text should be vertically centered and the contents of ...
3
votes
5answers
103 views

Giving spaces between rows in a (multicolumn) table

I managed to make a multicolumn table, but it looks ugly and need some fix. How to move the label "Min width" in the center? How to give more space between the first and second row? ...
8
votes
1answer
109 views

Multi level timeline

I am fairly new to LaTeX and I want to write my internship report with it. I have briefly summarized the history of the company and I want to use something visual. I tried to reproduce this (done ...
1
vote
1answer
45 views

How to keep table in the chapter title page

In my thesis I have two chapters at the beginning, list of abbreviations and list of symbols, that consist only of a table. Unfortunately while converting to pdf LyX puts the tables on the next page, ...
1
vote
1answer
57 views

Is there a way to make symbols in a table?

I am trying to make a table and I keep getting errors once I add symbols like \Theta. \documentclass[12pt]{article} \usepackage{amsmath} \begin{document} \section{Problem 1} %\begin{tabular}{l c r} ...
0
votes
2answers
72 views

Alignment of multi-columns and line breaks within cells

I am failing to set up a complex APA table once again. Actually, I need a table like shown below: My current MWE: \documentclass[12pt,ngerman]{article} \usepackage[utf8]{inputenc} ...
2
votes
2answers
133 views

Question about code for tables [closed]

I have been trying to understand why my code won't produce a table: \begin{enumerate}[label=\bfseries Exercise \arabic*:] \item 5 + 7 = 12 \item 9 + 1 = 10 \item 2 * 2 = 4 \end{enumerate} ...
4
votes
4answers
130 views

Expand a macro with parameters in tabular head

My eventual goal is to create my own tabular-like environment in which all entries are in math-mode by default, let's call it fancytable. (One requirement is that the first column be separated from ...
4
votes
2answers
27 views

Vertical alignment of menukeys output in tables

I want to collect a number of menu entries and associated shortcuts in a table with additional information and references. The actual table is quite large, so here is an abbreviated example: ...
1
vote
1answer
2k views

Table Layout Beamer

I need to create a structure which is similar to Table Layout in the presentation (Beamer). I have rows, and in every row I have some columns (pictures,text). E.g., I mean this: I need only to ...
1
vote
1answer
37 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
41 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
32 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
88 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
192 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
51 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
49 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
58 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 ...
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
57 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
63 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
26 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
68 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
47 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
28 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
34 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
37 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
137 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
81 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
80 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
36 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
48 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
63 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
75 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
38 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
116 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
54 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 ...