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

57
votes
2answers
87k views

Increase LaTeX table row height

How does one increase the height of the rows in a LaTeX table?
1
vote
1answer
36 views

Continuous table numbering for ltablex with captionof

Problem: I want to have a independent table numbering in my appendix for tables that break at page break: Table A.1 Table A.2 Table A.3 Therefor i use \renewcommand{\thetable}{A.\arabic{table}} ...
2
votes
1answer
71 views

Modify arraystretch for a single row in table

I need to display fractions within a table and it requires to set \renewcommand{\arraystretch}{2.3} The problem is that not all rows contain fractions, and in this cases the white space below and ...
0
votes
1answer
35 views

How to make the table fit in a page?

I have the following table and it doesn't fit in the page. I already tried looking for the threads which were relevant, tried all suggestions but no success. Here is my code: \usepackage{array} ...
0
votes
1answer
53 views

Sub caption of table produces large white gap

For tables I need a caption above, and sub captions beneath the table, to define all abbreviations used in the tables. The solution I'm using so far results in a large white space after the table/ ...
0
votes
1answer
40 views

Making a different table in latex

How can I make something like this? I know how to make a table but I don't know how to make that line between 3 and 5 in a table. Can someone please explain me how to do it?? Thanks in advance.
5
votes
2answers
201 views

How to get the pdf of a compiled table only

I would like to generate a pdf document by compiling a table using pdflatex. For that I checked this but the result there is a complete a4 page. is there a way to generate a pdf that has the size of ...
3
votes
1answer
67 views

Text in table is going outside of document. Automatic line-breaking needed

I'm facing some issues with my two-column table. The second column which contains a description is causing problems. I want the second column to automatically begin a new line whenever it is exceeding ...
0
votes
0answers
23 views

adjust table to fit text latex

i'm trying to make a table in elsarticle two side but the table seems to overwrite the text.. can someone help me to fix the problem , here the code \\\begin{table}[H] \centering ...
2
votes
1answer
38 views

How to use subfigure to make the following table of figures

|Fig A| FigC| |Fig B| - | FigC should span the entire column. Thanks for the help.
33
votes
6answers
5k views

How to produce a list of prime numbers in LaTeX

I would like to write a LaTeX script that produces all the prime numbers between the numbers n and m, where n < m. How can I do this? I feel it should not be that hard, but I cannot seem to program ...
1
vote
1answer
36 views

How to create a table with 2 panels, each one separate page?

I wish to create a table with 2 independent panels. Both panels are big enough, so I have to put them on two different pages.What should I do? \documentclass[12pt]{article} \usepackage{subcaption} ...
3
votes
2answers
30 views

Center a fixed width text within a multicolumn

I am trying to make a table with the multicolumn package. I know that you can either align a cell with: \multicolumn{[# of columns]}{l, c or r}{[text]} Or you can set the width of said ...
1
vote
1answer
45 views

Adding colour to a cell

I have the following preamble: \documentclass{article} \usepackage{colortbl} \usepackage[table]{xcolor} \usepackage[many]{tcolorbox} \usepackage{efbox} \efboxsetup{linecolor=fucsia!100, ...
0
votes
1answer
34 views

Split justified text between two pages with longtabu

I would ask how to split justified text between two different pages using longtabu. For now, if a single row exceed the space of the page, the entire text will be printed in the next page, leaving a ...
1
vote
1answer
12 views

Add equation number to tabular that contains text + vertical and horizontal lines

I have the following code that makes a table, and I would like to add an equation number to it (so I can refer to it in the text by number). Any suggestions? Thanks! \begin{tabular}{ | l | c | c |} ...
2
votes
3answers
41 views

How to get rid of vertical offset in a table containing pictures?

While trying to compose some kind of "wanted poster" (Steckbrief), I could not get rid of the vertical spacing LaTeX automatically introduces! Here's an MWE, which should work on Linux/Mac OS with ...
1
vote
0answers
13 views

How to let table stay in example environment? [duplicate]

My table is choosing not to stay in the example environment I created for it, however the text I placed in there are included. I notice that when I remove the table environment and let tabular remain, ...
4
votes
2answers
96 views

Big picture with several smaller ones on the side

I'm trying to achieve an effect like _____ ___ ___ | | |___| |___| | | ___ |_____| |___| but I can't get it to allgn correctly to the top. I tried with two minipages, the second ...
0
votes
1answer
59 views

Resolve rowcolor and column separator clash?

I want to create a table with Text aligned around the separator "V-" and color it using \rowcolor. The normal column separator @{V-} doesn't work with \rowcolors, thus I'm searching for a way to do it ...
3
votes
3answers
66 views

missing | in multirow

missing | in 3 multirow, dont know what to do :C \begin{table}[htbp] \begin{center} \begin{tabular}{|c|c|} \hline Rango de Tiempo $[s]$ & Viscosidad $[\frac{cm^{2}}{s}]$\\ ...
4
votes
2answers
51 views

Vert whitespace in tabular

How do i create some vert whitespace above and below text in the tabular below? \documentclass[landscape]{article} \usepackage{microtype} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} ...
3
votes
2answers
76 views

Table size and multirow problems

I'm beginner and have some problems with a table. The table is to wide and I tried to solve it with multirows. But I don't get how to have the line break in the first column or if there is a easier ...
2
votes
1answer
33 views

Change appendix table numbering for list of tables in table of contents

I am creating a document with multiple chapters, which each have a set of appendices, and a table of contents that includes a list of tables and figures. The numbering for the tables in the chapter ...
0
votes
1answer
52 views

How can I make this table bigger and centered, while still being on one page?

Made this table excel and included it in sharelatex like this: \begin{figure}[htp] \centering \includegraphics[width=1\textwidth]{Figures/reviewtable} \caption{insert} \label{fig:reviewtable} ...
4
votes
1answer
95 views

Reproduce a PDF table with colored vertical semi lines

Hi I'm really new to LaTeX. I've started learning yesterday and my plan is to recreate our medical reports from a design PDF to dynamic LaTeX PDF. My problem is to create these semi-vertical lines ...
3
votes
3answers
65 views

How do I centre a list of equations with a fixed set of right labels beside them?

Like this: A sort of 2-column grid layout, where the left column is 80% of the width and centre aligned, while the right column is left aligned.
9
votes
4answers
7k views

Add space before and after tabular environment

The tabular environment does not add any vertical space before or after it. This looks odd, in my view. What is the "correct" or "best" way to add some space? Also, why is there more space after the ...
2
votes
2answers
48 views

How to set latex table columns from the rightmost margin?

I want to display a table in latex. Currently I have the following situation. \usepackage{array} \newcolumntype{P}[1]{>{\raggedright\arraybackslash}p{#1}} \begin{table}[h!] ...
0
votes
0answers
50 views

Table section in article

Good morning everyone, it was about a year I wasn't using latex, and now that i'm writing an article I'm really struggling a lot for basic stuff. I would simply need to add a section for tables in a ...
4
votes
2answers
270 views

Why does this use of \textwidth cause pdflatex to crash (not exit!)?

I ran into this problem when playing around with tables. \documentclass{article} \begin{document} \begin{table}[h!] 400 MHz \qquad 800MHz \centering \showthe\numexpr\textwidth\relax \tracingall ...
1
vote
1answer
49 views

Insert a special character at each end of line in a paragraph

I would like to add a character (e.g. $\hookleftarrow$) at the end of each line in a paragraph, in particular in a tabular cell, only if the paragraph has more than one line. How can this be coded?
0
votes
0answers
31 views

I need to make the certificate page in latex as follows..plz help me find an answer because i am gettting the following error message [duplicate]

[![enter image description here][1]][1] here is the error message ! Extra alignment tab has been changed to \cr. <template> \endtemplate l.40 & \multicolumn{3}{l}{\bf Seminar ...
1
vote
1answer
148 views

Space between \hline\hline in `longtable`

I'm trying to use one longtable in my thesis while all others are created with table and tabular environment. I tried to find help visiting this link. But there only one type of table (longtable) is ...
0
votes
0answers
15 views

mtable into LaTeX: ! Missing } inserted.<inserted text>}

I am trying to write my thesis with LaTeX (first time using it) and I am struggling with making some tables. I am using toLatex in R to produce an mtable, which gives me the following code: ...
1
vote
3answers
294 views

I got an ugly table instead of a sharp and neat one!

This is a piece of code that I'm using to implement my desired table, but I got unwanted extra lines at the left side of the table. Also, I want to call the table "Table 1", but LaTeX keeps calling ...
3
votes
1answer
328 views

Placing three tables next to each other

I am trying to place three tables next to each other. Because they have the same caption, they are placed in three tabular envs in the same table env. For positioning I use minipage. This works ...
2
votes
0answers
49 views

Adding an image in every cell of a table

I am trying to insert an image in every row (apart from the first row of each column) but every time I try to insert an image in the last cell of each row it does not work, please see below. ...
2
votes
1answer
34 views

Table in landscape with caption in normal orientation

Is there a way to have a table rotated using the lscape package and have the caption above or below it in normal (portrait) orientation? Any help much appreciated. MWE: ...
3
votes
1answer
89 views

\rowcolor overwrites column divider

I have a strange issue where my rowcolor command is overwriting the column separator in some PDF viewers. Acrobat (unfortunately) is the only one that has the rendering issue. The issue exists in ...
1
vote
2answers
64 views

lyx: table goes out the page margin

how to solve this problem? I tried to change the font size and text width and none helped
0
votes
1answer
38 views

Using of \multirow with alignment in longtable

I've made a longtable and now try to add sells "lang1-2-3-4" like here: Could you please correct my code for longtable. \documentclass[a4paper,12pt]{article} \usepackage[T1,T2A]{fontenc} ...
1
vote
2answers
50 views

to vertically align text in center in table when other cells are rotated

I am trying to move first cell text "Assembly" to the center of cell. I already tried raisebox, parbox and many more things but nothing worked. Please help me. And, I don't want to change the rotation ...
0
votes
0answers
16 views

Force latex to break line in minipage tabular, so the content is visible on the page and not out of it

I want to compare JSON and XML in an tabular minipage. I wrote myself 2 commands to simplify this task, but it did not turn out as expected. The content of the minipage tabular is going out of the ...
2
votes
1answer
52 views

Caption doesn't display correctly

I've been searching for quite some time to find an answer to my question, but I can't find anything I can use. When my caption text exceeds the width of the line, it is displayed just like standard ...
2
votes
1answer
54 views

Suggested objects permitting table-like-column formatting and page breaks amidst long lists of breakable content

My preferred way of structuring and formatting large lists of content is with longtable. Some of my cells contain a lot of text, both in paragraph and itemize or enumerate environments. For reasons ...
0
votes
2answers
32 views

Command \multirow not working for tables

I want to build a table like this: But I'm having trouble at making the multirows. In order to build the line four of the table my attempt is: \hline \multirow{5}{*}{\begin{turn}{90}Senso de ...
1
vote
0answers
16 views

how to align caption,notes in revtex4-1 from the begin of table?

\documentclass{revtex4-1} \usepackage{tabu} \usepackage{caption} \begin{document} \begin{table}[htp] \begin{footnotesize}\captionsetup{justification=justified,singlelinecheck=false} ...
2
votes
1answer
51 views

How to make table split in two pages

I am writing a paper using elsarticle document class. However the article contains a long table which is sent to the next page, in the middle of the page although I have specified the position as ...
6
votes
1answer
87 views

Splitting a page into cells

I want to print "stickers" with on it : * a barcode * a validity date * maybe some others informations. I have A4 papers of stickers : 65 stickers : 38mm x 21mm ; 5 columns, 13 rows. Stickers I am ...