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

0
votes
0answers
3 views

list of tables, figures and table of content is not updated

I use \section and \subsection for Table Of Content, and \caption for table and figures but just chapter 1 sections appear in the list, no figure and table updates in the list, what should I do?
0
votes
0answers
13 views

Table rows ending up on different pages

I have a large table and I have tried other techniques but the rows are ending up on different pages. Below is the code: \begin{center} \begin{longtable}{ |p{2cm} | p{2.6cm} | p{2.4cm} | p{2.1cm} ...
1
vote
1answer
34 views

Column misalignment with multicolumn command

I have the following code that generates a table \begin{tabular}{|c|c|c|c|} \hline \multicolumn{4}{|c|}{A} \\ \hline \multicolumn{2}{|c}{B} & \multicolumn{2}{|c|}{C} \\ \hline D ...
0
votes
1answer
27 views

pgfplotstabletypeset with the use of multirow and the vertical line problem

Please bear with my clumsy codes here. I am using multicolumn and multirow to custom-made a header but are having trouble. I will use an example csv file to illustrate what I am trying to do. My csv ...
3
votes
2answers
30 views

Vertical alignment of figure in a tabular. (Automatic width)

I'm trying to align photos and text vertically and horizontally in the middle of each tabular. I've tried the 'array' package but it seems like I need to define the width of the column. I want the ...
0
votes
1answer
27 views

insert \hline in datatool importing .csv

I'm trying make a table with the datatool package and a .csv created from an Excel file. I'd like this code to be as generic as possible since I will have to import a lot of .csv in this document. ...
1
vote
2answers
126 views
+50

How to use samepage environment in the middle of a table?

I use the following code to generate a document: \documentclass[10pt]{article} \usepackage{ltablex} \usepackage[top=2.5cm, bottom=2.5cm, left=2.5cm, right=2.5cm]{geometry} \usepackage{bibentry} ...
0
votes
2answers
38 views

How to reduce tabular column margin or is there whole alternativ?

I want to demonstrate a number of transformations from one eigenstate to the other in one line: At the moment I am using a tabular with the code: \documentclass{scrartcl} \usepackage{lmodern} ...
1
vote
0answers
23 views

Selecting font features for tabular data

I am writing my thesis using (among others) the KOMA-script and fontspec packages. I would like to select the default sans serif font (and add some font features) for my tables. I know how to do this ...
1
vote
2answers
39 views

Creating a multi-column table with dynamically wide columns from a CSV file

I'm trying to make a multi-column table take dynamic values, read from a CSV file. The current table looks like this and has been formatted manually with tabularx, without any multicolumn package ...
3
votes
2answers
44 views

Write vertically over several cells

First of all, sorry for my possible bad English as it is not my mother tongue. Here is my problem: I can't get my table to do what I want and even though I looked everywhere, I didn't find the ...
4
votes
1answer
14 views

Issues lining up multiple columns in beamer

I am working on a slide to use for a presentation. Right now the bottom left table does not line up with the bottom right table. I would like for the first row of each table to line up as the first ...
2
votes
1answer
24 views

labeling figures as table

P.S. I have figured it out. I simply added \begin{table} \end{table} instead of figure environment I am new to latex, trying to figure out how to write a simple paper. I have a figure (a jpeg ...
4
votes
1answer
66 views

Using Multirow in tables created with a TikZ matrix

I need to incorporate multirow in the following table, and I keep coming across errors. I found the following example for a great formatted table with colored cells and rounded corners here. I have ...
3
votes
1answer
230 views

How to expand row height while using long text in multirow?

I m working on one table which has one row which spans over 3 rows but text in this row is very lengthy so it uses more than 3 lines so all text is not visible. How can i increase row height ...
2
votes
1answer
30 views

Aligning a column to the center of the page

To showcase some variables, I wrote a very simple table: \begin{table}[H] \centering \begin{tabular}{rcl} $-0.3858 * 10^{5}$ & for & $H_2O + COS \rightarrow H_2S + CO_2$ \\ $-0.6927 * ...
4
votes
1answer
28 views

Colored Cells and Cell Contents Aren't Aligned As Expected

I'm trying to color some cells in a table, with the cell contents being centered vertically as well as horizontally. I can't seem to get the numbers - which seem to align with the header fine - to ...
5
votes
3answers
192 views

Creating a simple table diagram with arrow annotation

Many investent fund factsheets have a simple risk diagram as below, along with the annotation: How would one recreate this in TeX? I though of using a table but perhaps some sort of tikz picture ...
1
vote
1answer
37 views

cell colour overlaps cell borders

This is a question that seems to be asked quite often so I apologise for the repetition. I looked in the answers already given and tried out several of them, but none seems to be the solution to my ...
1
vote
1answer
33 views

Tables does not fit [duplicate]

I have a pretty long table which is of the size of one page. The thing is that I want that this table is broken in pieces if my whole text is about to jump to the next page so that one part of the ...
3
votes
3answers
107 views

Trying to fit a table in the width of a paper

I am trying to make the width of the table equal or less than the width of the paper so it will fit in it. I wrote the code of the table below but it doesn't fit in the paper as shown in the figure ...
2
votes
1answer
38 views

Trying to display a 40 x 40 table in landscape mode

My first problem was just trying to get the table to look OK. I did this by adding a "double align" (two &'s between elements) and a \tiny font size. When I put the table in landscape mode, I get ...
0
votes
0answers
16 views

Why row color overlaps with row border [duplicate]

I am using the following latex code to highlight some row of a table useing rowcolor command. However the table borders in those rows are overwritten by the row color. Why is it happening? How can I ...
0
votes
1answer
35 views

two tables of same size tikz

I am creating two tables with the following code (tikz package} \documentclass[twoside,11pt]{article} \usepackage{tikz} \usepackage{url} \usepackage[T1]{fontenc} \usetikzlibrary{positioning} ...
0
votes
1answer
31 views

Adjust table to fit within the page

I am generating a table but I dont know why it's getting out of the page! [\begin{tabular}{|*{3}{l|}*{5}{c|}} \hline \textbf{Participant} & \textbf{Systèmes} & ...
3
votes
2answers
46 views

Unexpected behaviour of multicolumn/minipage in tabularx

Please take the following MWE into account : \documentclass[a4paper]{article} \usepackage{tabularx} \usepackage{array} \usepackage{booktabs} \begin{document} \textbf{Array A :} ...
1
vote
0answers
32 views

Huge space before xtabular

Description I have a tex file similar to the following, where I use xtabular in multicols enviroment. However, I find that xtabular starts a new column when there is enough space for an entry. Also, ...
0
votes
1answer
109 views

I need this tikz and tabular sketch at the right of my presentation, and an itemize at left, but too much length

I need this tikz and tabular sketch at the right of my presentation, and some text at left. Unfortunatly the text is at left but in the down part of my frame, I need it at the center and starting ...
1
vote
1answer
50 views

How to vertically center image in table cell

I am trying to place an image in the first column of a 4 column table. However the image is going over the top horizontal line. How can I set the image in the center of the cell so that the top ...
2
votes
1answer
36 views

How can I horizontally align text in a multirow element?

In the tabular environment, horizontal alignment is traditionally achieved using such arguments as l, c, and r for the table spec. However, when \multirow (from package multirow) is used, the chosen ...
4
votes
3answers
83 views

ifnum: problem with multicolumn in tabular

The next code has an error \documentclass{article} \newcommand{\numtest}{1} \begin{document} \begin{tabular}{ll} text A & text B\\ text C & text D\\ \multicolumn{2}{c}{Long Text}\\ \ifnum ...
4
votes
1answer
42 views

LaTeX alignment in tables

I'm trying to create a custom environment that uses tables to align some stuff. I want the first column to be left-aligned, so I used the command \tabularx{\textwidth}{ l X c X }. This produces the ...
0
votes
1answer
26 views

Why resizebox is not working on my informs template [closed]

I have to use informs class for journal Operations research and I have a very large rotated table, I used resizebox to fit it on the page, when I just used the class article, but when I used the ...
1
vote
1answer
26 views

Large table to next page

I have a very large table that extends to at least 2 pages, but the tables just continues down along the bottom of the paper. How can I get it to extend to the next page? And how can I get a bit more ...
2
votes
2answers
19 views

How to locally change the “Table” caption prefix in table environment

In my memoir document, I have several tables looking something like: \begin{table}[htbp] \centering \caption{This is a caption.} \label{tab:some_table} \begin{tabular}{l p{10cm}} \toprule some text ...
0
votes
0answers
31 views

breaking table row across pages

I am using xtabular package. Is there a way to break a row across pages? In the case of my table, I have some rows that are lengthier than the rest, and this results in a lot of unnecessary empty ...
3
votes
1answer
20 views

Tables with fixed column widths and language switching

I'm trying to typeset a German-Slovak vocabulary list and some grammar. Since table entries might get long, I'm using tables with p-columns. For correct hyphenation, I want to switch to Slovak in the ...
11
votes
3answers
310 views

Explain this macro: double hash with no number, \ialign

This macro is quite old, and I don't know plain TeX very well. MWE: \documentclass{article} \setlength{\unitlength}{0.06em} \newlength{\cellsize} \setlength{\cellsize}{18\unitlength} ...
2
votes
3answers
79 views

Change row vertical alignment in a table

I am trying to produce a table that changes the vertical alignment of the cells for different rows. At the moment I have set up my table so that all the columns are middle and center aligned. However, ...
4
votes
2answers
100 views

Trouble creating LateX table - ieee paper

I am having trouble creating a semi-complicated table. I've already made some work but it is still not like in the image... The main issue is creating that rectangle box and adding that line/column ...
4
votes
2answers
97 views

Vertical Table Alignment - the nightmare

People, I've looked to multiple questions already asked about this theme but I can't find a straight answer! I have the following table: And, as you can see, there are multiple problems! I have ...
0
votes
0answers
20 views

How to change tabularx 'X' command to raggedRight [duplicate]

I want to use the X command from tabular X to evenly space a tables columns. However, the individual comulns are quite narrow, and this makes the justified spacing look really bad. Is there anyway ...
1
vote
0answers
86 views

Drawing a TiKz Diagram within a Table [closed]

Any ideas on how to draw a TiKz diagram within a table? I made this example of what I need to typeset in Word: I'd love to hear any suggestions, even if it requires reformatting.
4
votes
1answer
42 views

problem with newcommand with line break \\ and tabular inside

I define a new command \nonBranchingRule that takes 3 arguments. Intuitively, it defines a rule where the last argument is a comment (optional argument) for the rule. I want to place the comment under ...
2
votes
1answer
46 views

Table with different colors removes vertical and horizontal lines

I have a table in my documentation, where i'm switching the rowcolor between white(default) and gray. Those rows, where the color is changed with \rowcolor{gray}, disabling the horizontal and vertical ...
0
votes
0answers
34 views

custom column width with multicols using xtab package

How to customize the width of a particular column in table created using xtab? In my case I have the following xtab specification in my document: \documentclass[11pt]{report} \usepackage{xtab} ...
1
vote
1answer
87 views

How do I format this table in latex?

I have this table from Stata: EDIT: After taking Mico's suggestion I was able to create the table with the following codes: \begin{table}[htbp] \caption{Summary Statistics} \label{tab:1} ...
1
vote
1answer
44 views

Making a table look nicer

I have this table with the following codes: Table \ref{tab:2} lists all the variables in the model: \begin{table}[htbp] \caption{Variable Descriptions} \label{tab:2} \begin{center} ...
5
votes
1answer
44 views

Beamer - rendering table borders while uncovering rows

I have a table with borders that I am trying to reveal row by row. However, the borders are rendering badly: \documentclass{beamer} \begin{document} \frame{ \frametitle{Title} ...
7
votes
7answers
690 views

How can I typeset this correspondence in LaTeX?

I am looking to create a "table" or something similar in LaTeX where I show correspondence/mapping between a natural number and some other natural number, as indicated in the picture below (please ...