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

2
votes
1answer
62 views

The table in the center of a cell align

How to achieve this alignment? Instead: \documentclass{article} \usepackage{array, tabu} \begin{document} \begin{table}[h] \begin{tabu} to 1.0\textwidth { |X[c]|X[c]| } \hline $ N_{1} $ & $ (0: ...
-2
votes
0answers
42 views

hi all I a new learner to the latex. Help me plz to code this diagram in the latex [duplicate]

I have done this but how to proceed further I am not getting share1: $x_1$ - \hspace{1cm}$f_1(x_1)$\hspace{1cm}\ldots\hspace{1cm}$f_i(x_1)$ \hspace{1cm}\ldots\hspace{1cm}$f_{last}(x_1)$ share2: $...
1
vote
1answer
23 views

Table caption not left aligned in revtex

I am currently writing an APS article and use: \documentclass[% reprint, amsmath,amssymb, aps,nofootinbib, ]{revtex4-1} % \usepackage{graphicx} \usepackage{dcolumn} \usepackage{bm} \...
1
vote
3answers
153 views

Latex Table goes outside page width

A mimimal working example of what I am facing right now: \begin{table} \centering \begin{tabular}{|c|c|c|c|c|c|c|} \hline \multicolumn{1}{p{2cm}}{\centering Mass ($h^{-1}\;M_{\odot}$)} & \...
1
vote
1answer
36 views

Table of contents title and author appear

I'm having a problem with the table of contents, the title and the author appear in it and I can't manage to remove them. \documentclass{llncs} \pagestyle{plain} \usepackage[utf8]{inputenc} \...
1
vote
1answer
30 views

Replacing text in table via overlay causes table to move: beamer

I am using beamer and trying to change a word in a table via overlays. So, "constant" should appear on some slides and "non-constant" should appear on other slides---both in the same box. (This same ...
8
votes
2answers
64 views

Creating left (only) curly braces in tabular environment

I have found the code below that almost does what I want. But since I do not understand it, I do not know how to alter it to my purposes. The code below generates a brace on the right side of a ...
0
votes
1answer
65 views

How would I go about creating the following tables?

I would like to know how to create such tables in latex. Thank you!!
3
votes
1answer
72 views

tikz in table with right colored arrows and xshift and y shift

I have the following code as can be seen below the images. The output I have now is like the first image below. I want the output to be as in the image below with blue and red arrows in the middle. ...
2
votes
1answer
57 views

filled circle in table field

At the moment I am using beamer and have a table in a frame: Everything works fine except that where I put this color filled circle the table breaks apart but I want to have the circle just within the ...
2
votes
2answers
35 views

Alignment in table depends on length of header

When I delete the header "General variables used in the header" in the code (or any long text), the two columns overlap like this: Current output: Current code: \documentclass[12pt,twoside]{book} ...
6
votes
1answer
70 views

Improper alignment in tabular environment when using xcolor table option

I came across weird behavior when loading xcolor=table option that affects the proper alignement in the tabular environment. The output of this MWE \documentclass{beamer} \usepackage{siunitx,...
3
votes
2answers
41 views

Drawing separated dashed/filled rectangles (sub-tables) within a tabular environment

Please, I need to draw a table that looks exactly like the following one Thickness is not important here, but rather the grouping and shading of symbols in rectangular sub-tables within the main ...
2
votes
2answers
54 views

Tabular: Couple dimensions of one tabular to another tabular

tabular sets column widths to the widest element across all rows. Is it possible to set two or more separate tabulars to consider each other's column widths and pick the largest of the them? For ...
2
votes
1answer
41 views

Problem by merging columns in the table's heading

I am trying to create two tables: one with two columns and the other one with three columns, in both cases the first row should be one cell merged over all columns. Besides, the content of this first ...
0
votes
0answers
27 views

Tabular Cell Vertical Centering: \hline

I find that \hline skews vertical centering. What can be done such that cells are symmetrical when using hlines between rows.
0
votes
0answers
21 views

Table Notes in Sub-table

I want to add table notes in sub-table similar to the one shown below. Any help/suggestion would be much appreciated!
1
vote
1answer
37 views

Table Errors - Misplaced \noalign, Misplaced \omit, extra alignment tabs

I am very new to latex, and as I'm nearing the end of my first thesis, due to submission in two days I'm placing the results which have finally been extracted after several attempts over the past few ...
2
votes
1answer
31 views

bytefield inside tabular

I wonder why it is not easily possible to put a bytefield enviroment into a tabular. This MWE \documentclass[border=2mm]{standalone} \usepackage{bytefield} \begin{document} \begin{tabular}{c} \...
0
votes
1answer
17 views

The entries in a table do not wrap in a table's cell

I have the following code: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[table]{xcolor} \setlength{\arrayrulewidth}{0.5mm} \setlength{\tabcolsep}{18pt} \...
3
votes
2answers
49 views

Macro expansion with colortbl and tabular

I would like to alternate row colors in a tabular environment. I found colortbl useful. To simplify writing, I built the following macros to alternate row colors (see MWE below). However, I cannot ...
1
vote
1answer
41 views

LaTeX Error: Illegal character in array arg. : Table parameter “m{'width'}”

! LaTeX Error: Illegal character in array arg. \begin{center} \begin{tabular}{ | m{'1cm'} | m{'1cm'}| m{'1cm'} | } \hline cell1 dummy text dummy text dummy text& cell2 & cell3 \\ \hline ...
4
votes
1answer
40 views

Decimal alignment in a table with tabular and multicolumn

I have made a table in my document and the everything looks quite good to me. The issue is that when numbers with mixed signs appear in a column they are not aligned. \documentclass{article} \...
1
vote
1answer
49 views

latex table to continue on the same page

I need to generate a latex table using data from a csv file. The table has only two columns with about 500 rows. I would like to make best use of the space and continue the table on the same page, ...
0
votes
0answers
23 views

Creating own Column Type with vertical and horizontal centering

I have following Code to create a custom ColumnType: \newcolumntype{K}[1]{>{\centering\arraybackslash}p{#1}} %Own ColumType that is centered But my problem is I need additional to the ...
4
votes
2answers
82 views

How to create a table with fixed-width cells and use cellcolor and multicolumn to create time bars? Or: How to substitute ganttbar with tabular?

Failing to combine a gantt chart with a table I now try to avoid the gantt chart by just using a tabular environment. However I like to keep some neat features of the pgfgantt-package and I'm facing ...
17
votes
2answers
442 views

Why is & special outside of tabular environments?

Consider the following m(non-)we: \documentclass{standalone} \begin{document} Foo & Bar \end{document} The build will fail with ! Misplaced alignment tab character &. while it will ...
0
votes
0answers
19 views

Beginning Table immediately after Reference section

I am attempting to include a table after the Reference section so that the table appear after the word reference and that they are on the same page. However, with the code below, the table appear ...
2
votes
2answers
28 views

Question marks in a reference to a table?

I have this code and when I compile (even several times) some question marks appear on the pdf in the place where the reference should be. Actually if we perform an Augmented Dickey-Fuller test on ...
3
votes
0answers
62 views

Remove most bottom space of tabular (or tikz-picture?)

I'm trying to add a table-like structure left of a ganttchart. It appeared to me that labeling every bar with its own tabular of fixed column-width would be the easiest and I got quite close to what I ...
1
vote
0answers
10 views

Properly indenting new lines in caption [duplicate]

I'm trying to get a caption with manual line breaks, where the next lines indent on the left with the first one. By default the next lines are not indented at all, so I tried using a tabular ...
2
votes
1answer
47 views

Text boxes that cover several pages

I am trying to faithfully reproduce the first section of the standard UK Police Witness Statement Form, known as an MG11. I am having difficulties lining up the boxes for the front page with the box ...
1
vote
1answer
18 views

Landscape longtable pagenumber rotation works only for 1 page!

Assume I want to draw a multi-page landscape table. Also I want to rotate the pagenumber to landscape. I figured out the following MWE for this, however as you can see, it rotates only the pagenumber ...
0
votes
0answers
28 views

how to create long table with multirows?

I'm new with latex and I'm trying to use this table which is long and divided into multiple pages. but I failed to add multirows and multicolumns to make it look like this table this is my code ...
0
votes
0answers
13 views

footnotemark equivalent for tablefootnote

There is an option to mark the same cross reference in footnote using footnotemark. Can I do the same for tablefootnote? MWE: \documentclass{article} \usepackage{tablefootnote} \begin{document} ...
1
vote
1answer
35 views

Troubling making a 4 digit addition formatted in columns

Hey I've been using LaTeX for about an hour, no experience in CS. Can anyone help me with this? \arrayrulecolor{} \[ \begin{array}{*4r} & & &8\\ & & &8\\ &...
2
votes
0answers
36 views

how to adjust the header of a table ?

I'm trying to use a table in my these. I have used this code from this list of tables : \documentclass{article} \usepackage{tabu} \usepackage{longtable} \usepackage[table]{xcolor} \definecolor{...
3
votes
0answers
59 views

How to draw a table with shared cells?

Starting from such a table: \documentclass{article} \begin{document} \begin{table} \begin{tabular}{|l|c|c|} \hline & Property 2 & Not property 2 \\ \hline Property 1 & ...
1
vote
0answers
36 views

How to write an algorithm as a column inside the table

Let us consider the following code and the algorithm corresponding to it \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[]{algorithm2e} \begin{document} \begin{center} ...
0
votes
0answers
45 views

How to convert .ods to latex?

When I use calc2latex I receive the error message "BASIC Runtime Error: Object Variable not set" Using Ubuntu 16.04
0
votes
0answers
25 views

What is wrong with my Tabular format? [duplicate]

I want to write a table with 6 columns and 5 rows. I tried the following, but couldn't give me a table. Could someone please help me? \begin{center} \begin{tabular}{ | l | l | l | l | l | p{1cm} |} \...
4
votes
2answers
46 views

How to merge the contents of the table cell without using multirow and multicolumn?

\documentclass{article} \usepackage{graphicx} \begin{document} \begin{table} \renewcommand{\arraystretch}{1.2} \centering \setlength\tabcolsep{0.5em} \scalebox{0.84} { \begin{tabular}{|l|l|l|} \hline ...
-1
votes
1answer
114 views

hi guis iwant to help me [closed]

indeed help me in this problem when I write new subsection enter as shown in table belwo
14
votes
2answers
167 views

How to align horizontally two tabular environments

I have this table (a table environment containing two tabular environments). I need the two tabulars to be placed side by side. But I need the second tabular to be align horizontally (same height that ...
6
votes
3answers
135 views

How to only show text?

I have a document for a student research project and want to know how many pages content without figures, listings and tables i have. My university does differentiate between content and figures,... ...
6
votes
2answers
48 views

Precision setting lost when postprocessing rows

I want to generate a formatted table from a CSV file: with every other row in a different color using 4 digits precision for numbers Right now I can't seem to have both. Here's an example code to ...
-1
votes
2answers
65 views

How to fit long equation into a cell of table and how to use table in general

I am using tabular for the first time and found it to be unbelievably difficult to use. But the primary goal for now is to fit a long equation into the cell of a table \pagebreak \section{List of ...
1
vote
1answer
43 views

table and box over certain cells

I was trying a way to make a box for a certain part of my table like the following Is there a way to create the red box? My code so far for the table: \begin{tabular}{cccc} \toprule &...
0
votes
1answer
21 views

How to control vertical spacing before and after Itemize within the tabular environment?

After asking this question about how to add some spacing between two row in a tabular environment, I figured out some strange behaviour of the itemize command within the tabular* environment. Using ...
1
vote
1answer
29 views

Issue with row spacing in tabular environement

I have the following macro to format all my table together inside of my CV. \documentclass[a4]{article} \usepackage[left=1.5cm,top=2cm,right=1.5cm,bottom=2.5cm,nohead,nofoot]{geometry} \setlength{\...