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

Issue with row spacing in tabular environement

I have the following macro to format all my table together inside of my CV. \documentclass[a4]{article} \usepackage[left=1.5cm,top=2cm,right=1.5cm,bottom=2.5cm,nohead,nofoot]{geometry} \setlength{\...
1
vote
1answer
50 views

how to create a table with the text of columns centered and justified?

I'm a new with Latex, I'm trying to create my Thesis . But I'm stuck in how to create a table. I have tried to use this link which make latex tables online. but I didn't succeed to create my table ...
2
votes
2answers
52 views

Math mode in table headers (tabularx)

I am editing a document, using a custom class. The author has numbers with a bar over them in a table header, e.g. $0.58\bar3$. However, when I try to compile it I get the following errors: ! Package ...
0
votes
1answer
30 views

Latex table error, Forbidden control sequence

Im trying to make a table in LaTEX and my code looks like this: \begin{table}[H] \centering \caption{Comparing all interactions with time at each timestep. The model for All are the full model shown ...
1
vote
0answers
25 views

Out of margin for longtables

I have a longtable in latex which span in two pages... the table is coming out of the margin when using tufte-book template. Appreciate if anyone can help here.
1
vote
1answer
34 views

How to center longtable both horizontally and vertically

I have the following longtable, I want to center its content both vertically and horizontally, So far I've successed in centering it in one of them using the array package and newcolumntype \...
0
votes
0answers
47 views

How to construct table later

I'm trying to update my simple exam template. I want to place the grade table before the questions. The number of questions and the grades are not ready during the construction of the table. It works ...
2
votes
0answers
26 views

Collecting and analyzing data presented in tables

I have data presented in tabular environments and I want to process it, in LaTeX, in ways that require for multiple cells to be analyzed together. That's in addition to typesetting the cells ...
4
votes
0answers
36 views

\write at the beginning of a table cell adds spurious vertical space

If a tabular column of type p (or a few others such as tabularx's X) starts with a write, this inserts some vertical space. MWE: \documentclass{article} %\usepackage{array} \newcommand{\writethis}{\...
0
votes
1answer
27 views

Vertical center cell

Why is not vertically centered the second column, while the first one it is? \begin{table}[h!] \centering \begin{tabular}{|>{\raggedright\arraybackslash}m{0.4\textwidth}| >{\raggedright\...
7
votes
3answers
295 views

A note with the dangerous bend symbol: how to vertically center text and symbol?

I want to make a command (to be used mainly with the beamer class) which typesets a text note with a dangerous bend sign \dbend on the left, the two vertically centered with respect to each other. I'...
4
votes
2answers
1k views

how to use Calc2LaTeX

I've installed extension Calc2LaTeX to convert OO tables into LATEX. But I don't see any extra button on OO to get LATEX CODE; In Extension manage of OO, it's showing Calc2Latex in Enabled format. ...
1
vote
1answer
23 views

Tabular row height of header with vertical allignment

How to set the row height of a single row (the header in this case) with vertically center alignment? Here's my MWE: \documentclass{article} \begin{document} \begin{tabular}{@{\extracolsep{\...
1
vote
1answer
33 views

Minipages with figure and tables side by side: Alignment of captions

I want to place a figure next to a table. To do so, I use the minipage environment. Here's the MWE: \documentclass{article} \usepackage{caption} \begin{document} {\centering \begin{minipage}[t]{0....
1
vote
1answer
25 views

Tablecolumn alignment

Below is my latex code for my table. But the table is not aligning properly. Also, I am getting an error "extra alignment tab has been changed to cr". Please help me. Thanks in advance. \begin{table*...
1
vote
1answer
40 views

Problem with tabularx's vertical spacing

I have a problem with the way tabularx (or is it booktabs?) is handling vertical spacing between horizontal lines and the cell content / background color. MWE: \documentclass[paper=a4,fontsize=12pt]{...
2
votes
1answer
38 views

Why sections between these tables are not shown at the required position?

I'm totally new with Latex and I'm facing this problem using tables: I have a certain number of tables with the exact same structure, when I define subsections between them the subsections do not ...
6
votes
1answer
79 views

Linenumbers in longtable

I have to add line numbers to a document. It would be nice if the line numbers are also printed (and counted) inside tables. Consider the following example: \documentclass{scrartcl} \usepackage{...
3
votes
0answers
36 views

alternate row colors for only some columns

I'd like alternating row colors for only specific columns (and in a perfect world, also only a subset of rows), with a table using multirow and multicolumn. I've found that putting \rowcolor{COLOR} ...
1
vote
2answers
56 views

Table formatting equal to page size

I have been looking around on this forum, but unfortunately I couldn't find the answer to my question. As given below, I make use of a table. The table contains two columns and I want the first column ...
2
votes
2answers
67 views

iosart2c table* will make next table caption overflow into second column

In the two-column layout of iosart2c, the very next "table" after a "table*" will have its caption incorrectly flow into the second column, thus overlapping with the text there. Is this a known ...
1
vote
0answers
18 views

DTLoad from Start to End Record?

Assume I want to use DataTool to display CSV data in a Latex Table. However, my CSV table, is say 1000 lines long, and I can only display 50 on a page. So I what I am looking for is a solution to ...
0
votes
1answer
25 views

Table column combine

I want to create a table of the following format. How do I combine the two columns CD into A and EF into B.
1
vote
1answer
40 views

Error while setting column width in Latex: Package array Error: Illegal pream-token (3cm): `c' used

This is my code to build a simple table. \begin{table} \small \centering \begin{tabular}{ l{3cm}|l|l|l} .... \hline \end{tabular} \end{table} But, I am getting the error Package array Error: ...
0
votes
0answers
21 views

How to obtain a specific table with a missing cell [duplicate]

How should I proceed to obtain the following table: What I've tried is: \begin{tabular}{ | c | c | c | c | c | } \hline 7 & 4 & 7 & 9 & 27\\ \hline 10 & 9 & 9 & 6 &...
7
votes
2answers
296 views

How to create a table automatically for a homework in statistics?

I want to create a long table containing some statistical data, such as the sample, the average, and the variance, etc. I am using the pgf package and its various extensions to do this. Here is a ...
4
votes
1answer
43 views

Misplaced noalign when using rowcolor

I am trying to create a table with colored rows and colored hrules between the rows, but I am getting a "Misplaced \noalign. \rowcolor" error. The following example reproduces this problem: \...
1
vote
1answer
28 views

Justify caption

For my figures and Tables the caption text is formatted to start in the middle. For the tables only however, I need it to start from the left. I tried using \flushleft command for it but it did not ...
2
votes
3answers
44 views

Table : Overfull hbox

When I compile the following code, I get the error overfull hbox and I cannot see the right end of the table. Does anyone know how to fix it ? \begin{center} \begin{tabular*}{\textwidth}{c @{\...
1
vote
0answers
32 views

Using table in Latex. text overwitten

I'm using this code \begin{center} \begin{tabular}{ | l | l | l | p{5cm} |} \hline Day & Min Temp & Max Temp & Summary \\ \hline Monday & 11C & 22C & A clear day with lots of ...
0
votes
0answers
20 views

Column borders don't extend from row to row, horizontal cantering

I'd like my table borders to extend throughout a row, they don't; and entering text is problematic, it's vertically entered but to horizontally centred. Any suggestions? \begin{tabular}{|c|c|c|c|c|} ...
2
votes
1answer
45 views

Problems with references to figures and tables

I am finishing my course conclusion work writing using LaTeX, and insert the images I used standard codes, such as \begin{figure}[!h] \centering \includegraphics[width=13cm]{lixeoutroa} \caption{....
2
votes
1answer
1k views

How to change cellspacing of a table in latex?

I've tried searching the answer here, but I did not find it. I have a plenty of 25x25 table with long entries. The table should fit in an A4 sheet of paper. I tried using "landscape". It helped a bit, ...
0
votes
2answers
30 views

Question on formatting a Tabular Column

I had a few questions. When I was making a document containing a table containing 10 columns, I was not able to bring all the columns in the page.I tried to fit it by making the margin width 1cm by ...
0
votes
1answer
49 views

How can I be sure that there are also lines between the boxes that are empty

I have a problem with Latex, TeXmaker (program). I would like to make a table but the last two boxes are empty, but how can I be sure that there are also lines between the boxes that are empty? Now ...
1
vote
0answers
26 views

Footnote missing when used with table, tabularx

I'm using fithesis3 class and I'm unable to get to work table + tabularx + footnotes + footnote references. I have tried \tablefootnote - http://tex.stackexchange.com/a/35328 \scrextend (\footref) ...
2
votes
2answers
44 views

Vertical and Horizontal alignment in table

Question: Here i made a simple table. My question is very simple how can i align text inside the table horizontally and vertically? MWE: \documentclass[12pt, a4paper]{article} \usepackage[a4paper,...
11
votes
1answer
5k views

LaTeX template for use cases

Currently I am trying to create a template in LaTeX for my team members in order to create a set of use cases. I thought of using tabular to create something like the picture below 2 (without colors). ...
1
vote
1answer
137 views

Longtable integration Stata

As far as I am aware, the available commands that produce LaTeX-formatted tables of stored estimates using Stata, will only produce tables using either the table or tabular environments. Do any other ...
2
votes
1answer
53 views

Multiple Choice Answers with Graphs

I need to have 4 graph options for a multiple choice question in LaTeX. I would like it to look like this picture. I have the graphs(tikzpicture inside minipage) with code before the \begin{...
2
votes
2answers
41 views

how to make table width fit to width of column?

This table should fit into one column of two column page perfectly. But it displayed a bit longer than column width. I want to make it fit correctly. \begin{table}[h] \renewcommand{\...
0
votes
1answer
26 views

Table foot note not showing

I am trying to use footnotes in a table, and I saw a regular \footnote{} wouldn't work, but \tablefootnote{} should be used instead, therefore importing its package. I did that, but the footnote is ...
0
votes
0answers
30 views

Missing table borders when using tabularx

I'm using tabularx with this solution: http://tex.stackexchange.com/a/12712 to achieve right alignment in a variable column width based on content size with linebreaks. I would like the result to ...
2
votes
1answer
35 views

Macro or \def to create lines in a table

I have a certain table to which I would like to add lines by a command. One way I can get to this looks like this: \newcommand\arow[3]{ #1 & #2 & #3 \tabularnewline } and the table \...
6
votes
2answers
108 views

Table with a diagonal line that crosses cells

How can I draw the following table in LaTeX? I tried looking here but from the examples I can't figure out how I can draw this. Edit: After browsing a few more times I found this with the help of ...
2
votes
2answers
81 views

Using list environment to refactor messy table

I'm writing a book using Latex (obviously). Xetex actually. I'm doing a lot of tables w/ \parboxes in the table cells. In the end there's alot of repetitions and the code looks bad as a result (it's ...
2
votes
1answer
30 views

adding frame=none to lstlisting options in \lstdefinestyle gives error with tabular

lstlisting has an option called frame= But when I use the frame=none in \lstdefinestyle and put the lstlisting command inside tabular or longtable I get an error Forbidden control sequence It ...
2
votes
1answer
45 views

Combining Multicolumn & Multirow in a Complex Table

I am attempting to create a table where the every box in the table merges to be two columns wide and two rows tall. I currently have the code below commanding two columns, but I have failed to combine ...
4
votes
1answer
100 views

Latex Table is moved by Appendix Chapter Heading

In the screenshot we see two tables and I want them on the same level.. I am pretty new to Latex so I really dont know what to do.. Thanks in advance!
4
votes
2answers
48 views

Horizontal lines in nested tabular environment

I currently have this table: \begin{table} \centering \begin{tabular}{ |c|c| } \hline no test & no test \\ \hline no test & \begin{tabular}{c|c} D1 & 1.23 \\ \hline D2 & 1.23 \\ \end{...