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

Problem with tabular

It's my first time utilizing latex, and I can’t get rid of this problem. im doing an article with two columns, using \begin{multicols}{2} but the problem, is that when I put a table with ...
0
votes
0answers
29 views

misplaced \omit with \multicolumn

Having typed \begin{tabular}{|l|l|} \hline \multicolumn{2}{|c|}{toto} \\ \hline a & b \\ \hline \end{tabular} I have as error \omit \multicolumn{2}{|c|}{toto} Having read ...
1
vote
3answers
78 views

Making a longtable that does not interfere with table numbering

I would like to use longtable to make list of abbreviations in the front matter of my thesis. I did not caption it, so it (rightly) does not show up in my list of tables. However, it does throw off ...
4
votes
1answer
61 views

Can I get the effect of \halign to \hsize using a LaTeX tabular environment?

I'd like to get the effect of doing \halign to \hsize ... while retaining all the convenience of LaTeX's tabular environment. The particular problem I am trying to solve is to use \tabskip to set a ...
2
votes
1answer
31 views

Overlapping part numbering in table of contents

I'm having a few problems with my 'Table of Contents' as it the numbering interferes with the chapter and part labels. I've added a screenshot of the problem here. I would prefer to keep the roman ...
2
votes
1answer
95 views

Multirowed multicolumn

I need something like that: \multicolumn{2}{|c|}{in this place I want multirow text like in fixed width cells without multicolumn} Without use \makecell and \\ in it. Is it possible? MWE ...
5
votes
0answers
72 views

Separate content from formatting - i.e., “just type”

What exactly does "separate content from formatting (style)" mean? And if it's "necessary", how do I do it practically? After reading many LaTeX documents and TeX Stack Exchange, I keep seeing ...
1
vote
1answer
25 views

Rotated Table ignore lower margin (and remove page number)

I have a big latex table which I rotated to fit the page. However, the table is to big for the page. Is there anyway I can make the table ignore the lower margin and remove the page number on this ...
6
votes
2answers
4k 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 ...
0
votes
1answer
39 views

Help need, Tables jumps to next page

I'm a new to LaTex. I'm trying to make my CV using Latex. I used tables. But when I use table, it jumps to next page instead keeping continuous with others. Here is my script, ...
1
vote
0answers
52 views

latex is one page enough

I want to place three consequent tables and data in these tables is generated automatically. I want third one to be in the same page if there is enough space or to be in the new page if space is not ...
0
votes
1answer
41 views

Border of table does not fit together

In my latex file I want to create a table. My current code looks like the following: \begin{table}[htbp] \centering \begin{tabularx}{\linewidth}{|l|X|} \hline \multicolumn{1}{c}{{\bf \ul Type of ...
3
votes
1answer
789 views

Line under one column

Simple question that I couldn't find an answer to anywhere: I am using \cline to create discontinued lines in my tables. Sometimes I want to have a line just spanning over one column rather than ...
2
votes
1answer
85 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? ...
2
votes
3answers
49 views

A header in a table with two lines

The following code has LaTeX make a table. In the header, I want "End of the" over "kth week"in the first column and "Total Number of" over "Copies Sold" in the second column. ...
2
votes
1answer
79 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: ...
2
votes
1answer
29 views

Extra line space being inserted, unrequested

I have created a survey form over two A4 pages, using tables. I have fancyhdr on top of each page and have suppressed the \maketitle command. Both tables have almost exactly the same content (the ...
2
votes
2answers
62 views

Different column widths under a multicolumn prevent appropriate centering

How can I center the two columns inside the multicolumn? MWE \documentclass{article} \usepackage{booktabs} \usepackage{multirow} \usepackage{siunitx} \sisetup{input-ignore={,}, ...
0
votes
1answer
24 views

Wrapping text and changing column width in latex table

I recently asked for help in reducing the width of my tables to that of the text for my thesis. The answer worked perfectly for tables with lots of small columns but not ones containing lots of text. ...
3
votes
1answer
61 views

How to trim the length of \toprule

I want to be able to trim the left and the right of a \toprule and \bottomrule as you can do with \cmidrule(lr){<column range>}. My attempted solution using \cmidrule[\heavyrulewidth]{<column ...
0
votes
1answer
42 views

Table and bullets next to each other - how?

I am trying to get the table below to the left and the bullets (below the table) to show up to the right of the table in Beamer. Can anyone show me how to do that? \documentclass[10pt,t]{beamer} ...
3
votes
1answer
465 views

How to add vat to this invoice?

I'm using the invoice document class. However, I do not possess the knowledge required to add VAT to it... Can anyone help me with this? I want to add 25 % of the total cost and it should display like ...
3
votes
2answers
132 views

Connect tables with arrows

I'm trying to do something similar to what is shown in the picture, but do not even know where to start. I can get something similar with three tables and minipage environment. But I have no idea how ...
1
vote
2answers
50 views

Is there a Simpler way to create this Assignment Problem table?

I just want to know if there's a faster way to create this table or array without or minimally using the \multicolumn command in tables. The one I used is here \begin{tabularx}{200pt}{c c c c c} ...
1
vote
2answers
33 views

Tables and equations in a 2 column paper

I am trying to write a paper with 2 columns and I need to insert tables and formulas in it, however, they are not fitting. Is there a way how to make these shrink to fit the page size? MWE: WIC is ...
1
vote
3answers
35 views

Vertically aligning content in table cell

I have the following code: \begin{table}[h] \begin{tabularx}{\textwidth}{ m{4cm} X } & Derivations \\ $v=v_0+at$ & test \newline test \newline ...
12
votes
4answers
7k views

How to construct a confusion matrix in LaTeX?

A confusion matrix looks like: Is there an easy way to do the same using LaTeX? Otherwise I could just create a diagram with any software.
1
vote
2answers
59 views

Why does the table title does not follow directly after the table number?

As shown below, my table title does not follow directly after its number, it starts from another line. I need your help to figure out why this happens. How I can fix this problem? My code is as ...
12
votes
3answers
6k views

Automatic table row numbers

Is there any way to get automatic row numbers in table? For example, if I define table contents as \begin{tabular} % black magic column definition \rownumber & foo\\ \rownumber & bar\\ ...
2
votes
2answers
58 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 ...
0
votes
1answer
44 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 ...
3
votes
2answers
40 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. ...
2
votes
3answers
46 views

Table does not show up using \documentclass[man]{apa6}

I use \documentclass[man]{apa6} and my table will not show up when compiling the .tex. I use the following code: \documentclass[man]{apa6} \usepackage{enumitem} \usepackage{amsmath} ...
1
vote
1answer
43 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
42 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
2answers
40 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
41 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.
0
votes
0answers
14 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 ...
1
vote
1answer
29 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 ...
0
votes
0answers
23 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} ...
3
votes
2answers
84 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 ...
4
votes
1answer
12 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 ...
0
votes
0answers
23 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,, ...
1
vote
1answer
62 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
34 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 ...
2
votes
3answers
129 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
37 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
97 views

How to work better with tables/columns in notes by LaTeX?

There are many methods to work with tables but I would like to do it flexibly and generically for better collaboration and productivity. External mode in IDE would be nice. I can use any editors for ...
9
votes
1answer
167 views

Automating extraction of Markdown-formatted tables from an (incomplete) LaTeX document

I am trying to automate the presentation of my note taking. I would like to be able to regex all Pandoc tables in my document, add LaTeX around them, compile them and show the result in a PDF. ...
1
vote
1answer
37 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 ...