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

tabular & multirow: taking a multirow back to a single

I have a table that I needed multirow for say column 2, but for column 3, I am putting the best result from column 2. \documentclass{article} \usepackage{tabu} \usepackage{multirow} \begin{document} ...
0
votes
0answers
16 views

write latex code in Lyx for tables

I found this template for a table on TeX.SX: Beautiful table samples The table I would like to reproduce is \documentclass[12pt, oneside, landscape]{memoir} \newif\ifblackandwhite % ...
1
vote
0answers
34 views

How to add and align figure and texts like that [duplicate]

Please show me how I can do that. And I want to use many times. Help me write a macro so that I can use every time I need. For example, \begin{question} Texts in the question field. ...
2
votes
1answer
33 views

Latex longtable not working?

I have some data I have put in Latex in order to make a table for a report. The table would extend over two pages but my longtable code seems not to make it to the second page. The code I am using is ...
0
votes
0answers
27 views

Is there a way to compare table packages? [duplicate]

I'm trying to figure out the strengths/weaknesses and benefits/drawbacks of the various table packages available. I very much like threeparttable, but I need to have at least one multi-page, 90° ...
1
vote
1answer
75 views

Creating a tabular data in latex

I want to create a tabular data something of the sort in the figure. It's empty. But it has some contents filled. How can I do it in latex. It's like I have a row title and its contents inside the ...
0
votes
0answers
33 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}| ...
1
vote
0answers
25 views

How can change the color of the table of contents

Could you help me What is the best way to change the color of the entire table of contents. I saw a lot of tutorials but it's complicated for me (I am a beginner). thank you
3
votes
3answers
113 views

How can I produce this table of cumulative numbers?

How can I produce this table of cumulative numbers? I tried without success.
4
votes
2answers
337 views

How to create this figure?

I have now spend hours by creating this figure - without luck. I have tried different types of tikz, tikzpicture, pstricks and multido usepackage. Can you maybe help me? I would really appreciate ...
1
vote
1answer
49 views

Bad vertical distance in table using makecell package \multirowhead

This is my working code: \documentclass[12pt,a4paper]{article} \usepackage[latin1]{inputenc} \usepackage{multirow} \usepackage{hhline} \usepackage{array} \usepackage{caption} \usepackage{tabu} ...
0
votes
0answers
64 views

bad boxes made by picture

I got bad boxes (3pt too high), It because of picture. I need it in multirow environment, I want it to be in the middle of all rows (5). How can I achieve this without bad boxes? ...
1
vote
1answer
101 views

How can I put the table caption on the top in pdfLaTeX? [duplicate]

I have this code \begin{table}[H] \caption{My Caption } \centering \begin{tabular}{*{6}{|p{3cm}}} \hline\hline But caption comes at bottom. I can't use this \begin{table}[Ht] as it ...
3
votes
2answers
103 views

Generating a table but an error occurs

What is the most efficient way of getting the table at http://en.wikipedia.org/wiki/Electrical_resistivity_and_conductivity#Resistivity_of_various_materials into LaTeX syntax? I tried to get it in, ...
3
votes
1answer
41 views

Easiest way to write Avery 11137 template

Trying to get a template to work for the Avery 11137 label template and it is exceedingly harder than one would think because the geniuses over at Avery put it on an 8.5x7 page and, although it is not ...
2
votes
2answers
81 views

How to make table floats work with preview/standalone environment?

Couldn't make a table float work inside the preview environment: \documentclass[fontsize=16pt]{scrartcl} \usepackage[active,tightpage]{preview} \setlength{\PreviewBorder}{25pt} \begin{document} ...
1
vote
1answer
191 views

Creating Thin Tables in LaTeX

Suppose I have the following table: \begin{table}[!p] \fontsize{6}{6}\selectfont \caption{First 200 terms of Hofstadter's $Q(n)$}\label{tab11} \center{ \begin{tabular}{l r r r r r l r r r r r} ...
3
votes
1answer
78 views

width of paragraph in multicolumn tables

I have problem that I don't know how to solve. Look at \multicolumn{2}{p{18.5cm}}{bla} and please tell me how to set paragraph width to fill whole multicolumn space? I discovered this (18.5cm) value ...
1
vote
1answer
26 views

Why are the tables in minipages left out of the list of tables?

I have some tables inside of minipage enviroment but they don't appear listed like the others in my \listoftables; see the code below. \listoftables . . . \begin{table} \begin{tabular}{c|c|c} ...
1
vote
2answers
29 views

Equivalent color for \colorbox{gray} as for \cellcolor[gray]{0.8}

In my table I have used \cellcolor[gray]{0.8} and I would like to mark some words in my text with the same color. I have tried \colorbox{gray}, but the resulting box in the text is too dark. How can I ...
1
vote
1answer
51 views

Creating a Color Key?

How can I create a colour key in LaTeX to show what the colours of this table mean?
3
votes
1answer
96 views

Meeting Minute with supervisor

I want to make a table of Meeting Minutes with supervisor. The format is as follow; ------------------------------------------------------------------------------------- ...
4
votes
2answers
47 views

One cell with multiple lines

I am trying to make a table that has some cells spanning across multiple lines, like this: (I used print screen on my table and then edited it to show how I want it). I have been searching around ...
2
votes
2answers
80 views

Updating words throughout document

In my job we deliver several of hundred physical assemblies per project - typically to offshore platforms in Nordsjøen - each one has a corresponding tag (and also other metadata such as item ...
4
votes
2answers
1k views

Colored tables and cline/hhline

How to write \clines (or \hhline) in colored tables so that the color of the cell does not hide the line? Here are two solutions but neither of them works fine. \documentclass[a4paper,11pt]{article} ...
2
votes
1answer
33 views

color multirow in a table

I am trying to color a multirow in my table, but withou success until now: \documentclass{scrartcl} \usepackage[utf8]{inputenc} \usepackage{multirow} \usepackage{hhline} \usepackage{colortbl} ...
1
vote
0answers
29 views

Using `\hhline` coloring cells of a table

Sorry for this simple question. I am trying to color some cells of my table. Unfortunately, if I color two neighbouring cells, the lines of the table disappear. I have found some questions about this ...
3
votes
2answers
41 views

How to align table and caption when table is centered on page

I haven't been able to figure out the best way to set up my tables. These are the features that they are supposed to have: Should be centered on page Caption should be "justified" and aligned with ...
8
votes
4answers
179 views

How to merge two tabulars into a single table the width of the column?

I am asking for advice on achieving two separate effects in the table environment. (1) I have two tables with a different number of columns. I need to merge them into a single table. I have this ...
2
votes
1answer
771 views

Float table with subfloat extend to multiple pages LyX

I have a float (table) which contains several subfloats. The last of these subfloats does not fit on the page and is cut off. I would like it to extend to the next page. I know of longtable but that ...
3
votes
2answers
1k views

Referencing a table vs. a figure in LyX, format

Currently, when I reference things using labels I have setup LyX simply inserts the table number. I would like it to insert Table N where N is the table number. Similarly, I would like it to insert ...
3
votes
2answers
1k views

Importing LaTeX table code into LyX

I create tables in a spreadsheet program, convert them to LaTeX code and then use an ERT to import into my LyX document. When I paste the LaTeX code the entire thing turns out very ugly looking. The ...
3
votes
2answers
36 views

Align a Table with the Edge of Text

In a document I am working on, I want to use a table. However, the point at which the table belongs is heavily indented due to multiple enumerations. This results in the table being placed much ...
2
votes
2answers
39 views

Horizontal Table spacing problems

I've created a horizontal table using the tabular package. The rotating package isn't playing nicely with one of my other packages, so I can't use \sidewaystable. However, my table still runs off the ...
2
votes
1answer
45 views

Line break in table [duplicate]

I want to go on writing in the first array but in a new line. The command \\ is not working for this. Can anybody help me please? My code is: \documentclass{article} \usepackage[landscape]{geometry} ...
1
vote
2answers
37 views

First row in second table created is blacked out

I am a LATEX/R/Sweave newbie and am encountering an issue while creating a report. The issue is that as shown in the figure below the first heading in the second table is blacked out. I am able to ...
-1
votes
0answers
38 views

space between top caption and table

Im have a question concerning the space between table and it's caption. When I use the three part package the caption is nicely placed in the top of the table, but once I added the table environemnt, ...
4
votes
3answers
47 views

The \pbox makes the text crowded

The result is as follows: you will see it is too crowded. And the MWE is: \documentclass[12pt,a4paper]{book} \usepackage{fontspec,amsmath} \usepackage{tabularx} \usepackage{pbox} % For multiletter ...
6
votes
3answers
110 views

Vertical skip between p{…} rows of tabular

I want to increase a bit the vertical spacing in my tabular table. I did something like this: \documentclass{article} \begin{document} \begin{tabular}{p{4cm}p{4cm}} Lorem ipsum dolor sit amet ...
23
votes
6answers
22k views

Table with multiple lines in some cells

What is the easiest way to have 2 lines in some of the cells in a table? The only way I can think right now is to actually have 2 separate rows (without the line in the middle) and use \multirow on ...
9
votes
2answers
5k views

Tabular with p type columns to fill page width

I wish to be able to have a table (using tabular) that fills the page horizontally with each column using a fraction of that space, for now assume that they are equally sized. I wish to be able to ...
0
votes
0answers
18 views

\textwidth in tabular does not add up [duplicate]

I had the understanding that the constant \textwidth is the width of text from the left margin to the right margin. I have been using the same as width specifier in my tables with paragraph. However, ...
2
votes
1answer
46 views

A program to export latex tables to excel/ods/csv?

I know there are tools to export excel tables to latex, but what about the other way around? I get a lot of latex tables from functions in R (e.g.: texreg) that aren't perfectly customizable via the ...
1
vote
2answers
39 views

table with incomplete line

This is probably very simple question: I am trying to generate a table with multiple rows in the last two columns. I have tried the following: \documentclass{scrartcl} \usepackage[utf8]{inputenc} ...
3
votes
2answers
81 views

Removing space around tabular columns set with siunitx

OK, first off, this table is horrendous looking and desperately needs help. But what I'd really like to know is how to eliminate some of the extra white space between the columns set with S in the ...
4
votes
1answer
45 views

How to maintain numbering and labels inside of a tabular

I'm using gb4e in order to number examples in my paper. I want to be able to number a tabular as an example, and then have each line of the tabular be a, b, c, etc. \documentclass{article} ...
5
votes
2answers
73 views

image inside a multirow: problems with the vertical space

I have a problem when including an image inside a table using the multirow option. My problem comes from the vertical space dedicated to this row. As you can see in the picture included, the image ...
2
votes
1answer
53 views

multilingual table content

I want to introduce table that has multilingual content which are (Arabic, English, Vietnamese and Armenian) as the following figure Any idea how to produce that UPDATE: code used to produced ...
193
votes
16answers
112k views

How to add a forced line break inside a table cell

I have some text in a table and I want to add a forced line break. I want to insert a forced line break without having to specify the column width. Something like this: \begin{tabular}{|c|c|c|} ...
4
votes
2answers
95 views

two rotated tables on same page as heading

I am sorry, there seems to be a similar question already, but I didn't get the answer. I have a chapter heading and then two wide but short tables with captions, which I would like to rotate. But ...