{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
1answer
24 views

In nested tables, how can I make an inner table stretch to fit its column?

I'm trying to design a layout that has tables nested within tables, and I'm having trouble getting things to line up. The question is quite similar to How to make width of an inner table use full ...
2
votes
2answers
42 views

Adjust table spacing and cells centering

I want to make a formal table in a report. I used the following code; however, I still need to remove the gaps between the cells contents and data to save space. Also, I want to center the cells ...
3
votes
2answers
35 views

How to \caption a longtable imported from a file by \input{file} and use a smaller font?

I'm generating a boring longtable from a database into a file. My goals are: Import the generated longtable into another document. The longtable data is dynamic and must be imported periodically. ...
1
vote
1answer
29 views

How to create a custom “short” table of contents

I'm very new to Latex and I need to make two table of contents, one in the beginning and one in the end. The one in the end should be very detailed and the one in the beginning should just be a ...
1
vote
1answer
36 views

How to make the table in latex?

I already install all the packages but its still not working error given below Table generated by Excel2LaTeX from sheet 'Sheet1' \begin{table}[htbp] \centering \caption{Add caption} ...
0
votes
0answers
13 views

Tables: text wrapping and maximal stretch

I have a table with say two columns, the first column contains only small items, in the second column is some text, something like this: \begin{tabular}{lp{0.8\linewidth} 1 & Lorem ipsum ...
0
votes
2answers
33 views

How to create a table with table of contents like attributes?

Is there a simple way to create a table of contents like table? In detail i want the same layout like the toc, the same width and especially the filling of the white space with dots, but with a ...
0
votes
0answers
17 views

Table make it nicer and single space columns

my friend done the table for me but I am not satisfy from the current table, I need to have it in 1 page or 2 pages (squeeze it). The first row (header) need to be vertical. \if 0 \begin{landscape} ...
0
votes
0answers
31 views

How to create a multicolumn color table?

How to create a multicolumn color table look like this picture but i meet problem with multicolumn color tables? Please help me create it! Thanks your help.
1
vote
1answer
21 views

Writer2Latex table border removal

I'm using Writer2Latex to convert my .odt file, created in Google Docs and downloaded as .odt format, to .tex. It works but because there is no way to create columns of text in Google Docs other than ...
3
votes
2answers
73 views

A single row background colour

Below is my code. How do I add a background colour to the first row (only the first row, please)? \begin{table}[!htb] \centering \begin{tabular}{c c c} \toprule ...
1
vote
0answers
54 views

Problems with “simple” table

After lots of attempts, I've been unable to get a table exactly as the one below. I don't know if somebody could give me some advice. . I took the code of another table and managed to get this: ...
4
votes
1answer
10 views

Using bytefield as parameter to self-defined macro raises error

I defined a simple LaTeX macro \bansen which takes a single argument: \newcommand{\bansen}[1]{#1} Unfortunately, I noticed that I can not use a bytefield environment as a parameter for this macro ...
1
vote
1answer
51 views

how to construct table inside table in latex

I would like to construct a table look like the picture below in latex:
1
vote
0answers
32 views

Incorrect Typesetting while referencing to a table

I would like to make reference of a table that I have introduced before. However, after I try to typeset the first time, I have double question marks like this table ??. I know that I need to ...
0
votes
0answers
17 views

File ended while scanning use of \pgfplotstabletypeset@opt

{{Constructs},{Items},{SLoadings},{CR},{AVE} {Social Needs},SN1,0.66,0.762,0.677 ,SN2,0.72,, ,SN5,0.71,, {Social Influence},SI1,0.7,0.785,0.609 ,SI2,0.68,, ,SI3,0.74,, ,SI4,0.65,, ...
2
votes
3answers
90 views

How to add vertical space after \hline without breaking vertical lines in a table

I have seen similar questions on the matter (Question 1, Question 2) of adding vertical space and not breaking vertical lines, the solutions suggested are to add space after the \\ using \\[0.1cm] for ...
0
votes
1answer
35 views

Selecting font size in a table

I have the following table decleration: \begin{table}[H] \caption{Tree construction table for subsample 1} \centerline{ \scriptsize \begin{tabular}{|c|c|c|c|c|c|c|c|c|} \hline %%%%%VALUES%%% \hline ...
2
votes
1answer
39 views

Pandoc: convert .docx to .tex while retaining the table structure from .docx format in output

The problem I have is that when I convert a document using Pandoc from .docx to .tex, the tables get messed up. Is there a way to use pandoc that will retain the proper table formatting in .tex? ...
1
vote
1answer
35 views

Problems when including diagonal line in a table cell

I am trying to use this solution which uses tikz, however I cannot get it to compile properly. I get the error: Misplaced \omit. ...llcolor[HTML]{EFEFEF}\diag{0.2em}{1cm}{a}{b} Searching for that ...
0
votes
1answer
29 views

How to mark a float as inline?

I need to insert a a narrow but tall table. To save space, I would like the other half of the page to be occupied by text. At first, I succeeded using using package multicol together with tabular ...
1
vote
1answer
29 views

How do I move the table to the vertically center ? , and align figure and table together

\begin{figure}[htbp] \centering \makebox[0.5\textwidth]{\includegraphics[width=0.7\textwidth]{figure/ch3/result_s2/book.jpg}} \qquad \qquad \scalebox{0.7}{ ...
2
votes
2answers
26 views

csvsimple Vertical Header

I'm trying to create a table from .csv files using csvsimple. Here are the contents of my file: Degrees,10,20,30,40,50,60,70,80,90 Time,1.33,0.90,0.72,0.63,0.50,0.43,0.41,0.40,0.38 This is a table ...
1
vote
1answer
46 views

Table Wider than text

I am trying to generate a normal table, but some columns have long lines and this made the table go outside the page margin. How can I adjust the table width ...
3
votes
1answer
35 views

Table with tikz image: vertical alignment

I'm trying to create simple table with tikz pictures and its descriptions on the left side. Unfortunately I cannot vertically center those descriptions in their cells: ...
4
votes
1answer
52 views

Declaring array of integers

Is it possible to declare in TeX array of integer numbers ? What I am trying to do is to declare new tabular environment for very long tables spanning accross multiple columns and (or) pages. My ...
2
votes
2answers
64 views

Color text in a table

Is there a way to color text in an entire table without using environment tabu? For example, change the color of text in every cell to red.
2
votes
1answer
42 views

How can I reduce the width of a table?

I'd like to put this table in a page: \begin{table}[h] \begin{tabular}{ccccccccc} \hline \textbf{No.} & \textbf{Author (year)} & ...
2
votes
2answers
34 views

Centering text in a table

I have a table which needs to expand to the width of my page and I do this by \begin{table}[H] \centerline{ \begin{tabularx}{\textwidth}{|X|X|} \hline \textbf{Number} & \textbf{Probability} \\ ...
1
vote
1answer
18 views

Cell padding and scientific notation doesn't work in both tables

I have made the following two: \documentclass{article} \usepackage[margin=1in]{geometry} \usepackage{pdflscape} \usepackage{longtable, caption, cellspace, booktabs} \setlength\cellspacetoplimit{4pt} ...
1
vote
2answers
47 views

I have almost finished my table format

Sorry for so many questions, but I am assembling my thesis' table. Thanks to the community's help, I was able to generate the following table: \documentclass{article} ...
1
vote
2answers
54 views

I am trying to convert specific columns into scientific notations

I have the final table: \documentclass{article} \usepackage[margin=1in]{geometry} \usepackage{pdflscape} \usepackage{longtable} \usepackage[table]{xcolor} \usepackage{siunitx} ...
1
vote
1answer
40 views

Automatic Table Widths

This is probably a really simple question, but I don't know what keywords this question might have so I have trouble with searching it over the net. Anyway below is a code I wrote for a table. ...
1
vote
2answers
32 views

Troubles with dcolumn package - how to use underscores?

I do have following table: \documentclass[11 pt, oneside]{thesis} \usepackage{dcolumn} \newcolumntype{d}[1]{D{.}{.}{#1}} \begin{document} \begin{tabular}{p{0.2\textwidth} d{2.2} ...
1
vote
2answers
45 views

Adjusting table to textwidth

I have a table that stretches over the total horizontal space of my page. However, I want its length to be equal to the textwidth. I tried some things I found at similar question but nothing seems to ...
0
votes
1answer
36 views

Border with multirow and multicolumn

Following example: \usepackage{multirow} \begin{tabular}{cc|c|c|c|c|c|} \cline{3-7} & & \multicolumn{5}{c|}{something} \\ \cline{3-7} & & AAA & BBB & CCC & DDD & ...
1
vote
0answers
34 views

Change geometry of single table [duplicate]

I have a wide table, which by default makes the page look like: | xxxxxx | | xxxxxx | | ______________ | | | || | | || | ______________ | | ...
2
votes
1answer
39 views

Wrapping tables with minipages?

Say I have the following table: \documentclass{report} \usepackage[intlimits]{amsmath} \usepackage{floatflt} \usepackage{caption} \usepackage{listliketab} \usepackage{booktabs} ...
2
votes
1answer
99 views

How could I modify the following table?

Thanks to the generous help of this forum, I have generate the following table: \documentclass{article} \usepackage[margin=1in]{geometry} \usepackage{pdflscape} \usepackage{longtable} ...
2
votes
1answer
32 views

Adjusting column size in Latex table

I am using the code below to get a simple table but I need to adjust the width of each column. \begin{table}[H] \centerline{ \begin{tabular}{|c|c|} \hline \textbf{Group} & \textbf{Count} \\ ...
2
votes
3answers
28 views

Make last column take all remaining space in longtable

I want to create a table using longtable where all columns have a fixed length except the last one, which should take all remaining space. The table itself should be full page width. I tried the ...
1
vote
2answers
45 views

Using long table to split a table across multiple pages

I am using the excel to latex add in to generate tables from excel, however, when the table is too long it is not split automatically between 2 (or more pages). Is there any easy way to do this? I ...
0
votes
1answer
19 views

table with values above vertical lines and/or over

I would like to be able to have a table like the one in the picture (hand drawn) below. I am not familiar with tikz, or proficient power latex user, and mostly use them by examples. If anyone can ...
2
votes
1answer
61 views

Infographic - need help!

Infographics enable us to communicate incredibly large sets of data in a way that is interesting, meaningful, and engaging to others. I have been trying to create a simple Infographic with TeX - ...
1
vote
2answers
50 views

How do I fit this table to the frame in Beamer?

\documentclass{Beamer} \begin{document} \begin{table} \begin{tabular}{l l l} \toprule Band & & \\ \hline Total stop band & No propagation possible & All of the incident field is ...
2
votes
1answer
43 views

Rotate my table to be vertical

I'm using the below script to rotate the table, but it keeps giving an error l.208 \end{table} \documentclass[12pt]{report} \usepackage{float} \usepackage[centertags]{amsmath} \usepackage{amsfonts} ...
0
votes
1answer
24 views

Lyx still inserting blank pages between tables in floats

I have a Lyx document with many tables and figures in floats after the bibliography. Lyx is inserting a full blank page (with a page number) between Table 1 and Table 2. Note these tables are rotated, ...
1
vote
2answers
44 views

I am trying to highlight specific rows with a light red color

I have the following table: \documentclass{article} \usepackage[margin=1in]{geometry} \usepackage{pdflscape} \usepackage{longtable} \begin{document} \begin{landscape} \begin{longtable}{ r *{7}{l} } ...
0
votes
1answer
25 views

How do I fix vertical spacing between tables?

I have a document with about 50 tables in it. If one of the tables goes over the page, LaTeX automatically sends that table to the next page. The issue is that LaTeX increases the spacing between ...
2
votes
2answers
48 views

Shorter notation for a two column table?

I am trying to create a document containing a lot of tables, layed out like in the following Word mockup: While I think I could use the tabular enviroment to create this, this would be quite messy. ...