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

1
vote
1answer
32 views

Automatically pick from one of N available table widths

Problem statement I am using a custom-written document class that makes excessive use of a relatively wide outer margin. To strenghten the eye's judgement for what constitutes the main text block vs. ...
1
vote
1answer
33 views

If Not Switching When In Environment

I have the following environment to create an invoice. It works perfectly except that the rows do not switch between light and dark gray (they stay light) so I assume that \iflight is staying true. If ...
3
votes
1answer
38 views

Lots of Errors Trying to Create Invoice

I will preface this by saying I do know there is an invoice package. It wasn't working with my setup and I wished to have a little more customization. So, in order to replicate that package I created ...
1
vote
1answer
42 views

Create multicolored off diagonals in a table

Is there a way to create the following coloring for a table? (the column and row headings having different colors... this is just the coloring of the "body" of the table) I looked around and it ...
0
votes
0answers
29 views

Define new column type in which content is surrounded by an environment

Building on this example: \documentclass{article} \RequirePackage{longtable,nameref} \usepackage{amsmath} \usepackage{xcolor} \usepackage{listings} \lstset{ frame=single, breaklines=true, ...
1
vote
1answer
29 views

Automatic line-breaks in a table

I need a short table that I have to add to my document. I'm afraid, LaTeX does not seem tp break the lines at the spaces. My table currently looks like that: \begin{table}[!ht] \centering \...
1
vote
0answers
19 views

Table side by side [duplicate]

I'd like to have two tables side by side. How can I do that? These are the tables \begin{table} [h!] \centering \begin{tabularx}{0.5\textwidth}{|c|X|X|} \hline & Sensibilità [...
3
votes
1answer
77 views

How to import table in Excel?

I would like to know if it is possible to copy a table from Excel with the configurations to Latex. I use Microsoft Excel 2016 for Max OS X. Thank you!
3
votes
1answer
81 views

How to prepare time table in the desired format?

I am expected to prepare a time table in the format shown below: However, I am only able to generate this: Following is the code which I've with me: \documentclass[a4paper,11pt,landscape]{book} \...
1
vote
0answers
25 views

Tex: \endfloat can't push figures to end of document

Edit: I added document class, but now it told me that the figure file is not found, which is not right because Four Step.png is in the same folder. I tried to use \endfloatto push all tables and ...
1
vote
2answers
31 views

Full table not coming

My table contains 10 columns and when I am running the code full table is not coming. Last two columns are not appearing. Can you please help. The code is as follows: \begin{table}[H] \begin{center}...
3
votes
1answer
43 views

Make complicated wide table to fit entire page in landscape

I'm working a wide complicated table and I thought the best way to make it easily readable is to use sideways table so that it is in landscape mode. Unfortunately, its font is too small (even with ...
1
vote
1answer
30 views

Extra alignment tab has been changed to \cr? in latex

I get the error mentioned in the title of the question. Can you help me please ? \begin{table}[htb!] \centering \caption{\textit{Résultats global}} \label{tableau4} \...
1
vote
1answer
16 views

How to use justify alignment in longtabu without affecting the table?

I am using the following code to generate a table.. \begin{longtabu} to \linewidth{@{}XX[6]X[2,c]X[1.5,c]@{}} %{X[1,c]X[4,l]X[1,c]X[l,c]} \rowcolor{brown!50!black} & \multicolumn{3}{c}{ \...
2
votes
2answers
31 views

How to append a percent sign % to a some columns/rows only using siunitx [duplicate]

I have two questions related to the MWE shown: How to append a percent sign to only cells of a column, or of a row by using siunitx package whether the tabular is defined by row or by columns. ? (I ...
1
vote
0answers
40 views

% sign not working inside tabular [duplicate]

What is wrong with this table? \begin{tabular}{lllll} Firms & Revenues & Shares & Shares in Percentage & HHI \\ Anheusar Busch & 50400092.4 & 0.490059433 & 49.01% &...
1
vote
1answer
43 views

Questions about TEX when I try to Constuct a tablet

Excuse ME, when I try to construct a tablet in LaTeX, I got the following error message: !Missing \endgroup inserted. <inserted text> \endgroup 1.141 &...
1
vote
1answer
34 views

Font size of table much bigger than rest of text

I have created a table (two rows, four columns) in a seperate .tex file. The table is smaller than the text width, so I stretch it to the text width. Unfortunately, the font size is much bigger than ...
2
votes
1answer
45 views

Image and table side by side

I want to put a table and a figure side-by-side. The table should fill two third of the text width, and the figure the last third. So I'd like to achieve one of the following effects (which are ...
2
votes
1answer
68 views

Creating a macro which draws rectangle on the edge of the paper

How can I write the following macro to compile in XeLatex The Paper to be divided into two columns by using a borderless table (middle | is for conceptualization purpose only. it will not be visible) ...
4
votes
1answer
69 views

\makecell in the header: how to get rid of the space after the last column of the table?

This table is perfect for me except for the space left at the end: How can I eliminate it? @{} doesn't work! \documentclass[british]{article} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} ...
-2
votes
1answer
70 views

What is wrong with resizebox usage

Does anyone know why this is giving me errors? \begin{center} \resizebox{10cm}{7cm}{ \begin{tabular}{ | p{1cm} | p{1cm} | p{1cm} | p{1cm} |} \hline $n$ & $b(n)$ & $l(n)$ & $p(...
1
vote
0answers
29 views

Deluxe tables help, “Package array Error: Illegal praam-token…:”

Just wondering exactly what I have done wrong to experience the following error when using the table package deluxe tables: Package array Error: Illegal pream-token (\s tring): `c' used. See the ...
-1
votes
0answers
24 views

Matrix labelling [duplicate]

I need your help desperately. I want to write something above and on the side of a 5x5 matrix for my master thesis. But I don't know how to do it. Can you please help???
1
vote
3answers
46 views

Margin of caption of table

I have a table which is wider than my usual margins. This results in the table violating the right margin. (putting table in landscape wont work because of the length) I want to have a caption of the ...
1
vote
0answers
21 views

LaTex - endfloat marker text not showing

I want to put "Insert Table 1 Here" in my paper and all tables at the end. So I use \endfloat. However, none of the Insert Table text is showing. Is it conflict with other packages I am using? Thank ...
1
vote
0answers
19 views

placing the full width table caption on top of the table in tufte-latex book [duplicate]

I am using tufte-latex book format for writing my thesis. I have a full width table which I can easily define within table* environment in tufte book. As far as I understood, the caption should also ...
0
votes
1answer
36 views

Last column of tabular isn't vertically centered

I'm in trouble with the last column of my array. It's not vertically centered. I'd like to use as less package as possible, here my code and the result. \usepackage{array} %Some Text \newcolumntype{...
2
votes
2answers
60 views

Align numbers by decimal point using siunitx and bfseries

I am looking for help regarding number alignment along the decimal point. Here is the code that I use so far: \documentclass{article} \usepackage{etoolbox, siunitx} \usepackage{booktabs,makecell} \...
1
vote
2answers
39 views

Issues with Formatting a Table for Integers Modulo 9

I'm having some trouble formatting a table in LaTeX. I'm trying to format a table for the addition of the Integers modulo 9, but it isn't working correctly. This is what I currently have: \begin{...
0
votes
0answers
20 views

Fixing row height while writing vertical

I am writing vertical in a row and as text is long the row is getting insane height. following is my code and result. \begin{table}[H] \centering \begin{tabular}{|p{5cm}|p{1cm}|p{1cm}|p{1cm}|p{1cm}...
3
votes
2answers
74 views

Table rotation with sidewaystable

I rotated a table using sidewaystable but the first and last 4 cells of the first row appear with a wrong vertical alignment. Can anyone solve this problem? \documentclass[twoside,b5paper,12pt,fleqn]...
2
votes
2answers
25 views

Change settings of a multicolumn/multirow table

I just have a little question. I need to draw a payoff-matrix. I already have one, but I had to make some changes there. The are still some things I like to improve but I was not able to do so far. ...
2
votes
2answers
47 views

Print table columns next to each other so that they don't use the total table width if table has few columns

I have a PDF file with table printed on two pages. The table can fit 9 columns (one column header and 8 data columns). The first page contains exactly 9 columns. The second page only has one column ...
3
votes
2answers
36 views

Figure/Tables/Equations… counters

I'm currently trying to create a template of my own to unifiy all the documents (article class) I write for school and I'd like to change the functioning of the counters for the equations, figures and ...
3
votes
1answer
40 views

Splitting a formula in table

I am a newbie in Latex and I have the following codes. \documentclass[12]{article} \usepackage{amsthm,amssymb,amsmath,amsfonts,amscd} \usepackage{caption,subcaption} \newcommand{\hmi}{\hat{\mu}...
2
votes
1answer
32 views

Table with fixed width columns with \multicolumn in every line

I want my two tables to look like in the example below, except I would like to get rid of the first row(s) (1 to 8). Both tables should have the same width and all fields should span the given number ...
1
vote
1answer
29 views

Horizontal line after every table

I want to draw a horizontl line after every table. I tried using \hrulefill after every table, but this breaks because of the floating behavior of the tables, e.g. if i have a Code pseudo MWE: <...
3
votes
0answers
27 views

Landscape environment in variable position

I have a portrait document, and I want to put a big table in a landscape page. I am currently using the landscape environment to achieve that. As this page is in the middle of the document, I want ...
1
vote
1answer
37 views

Remove “belowskip” only for tables

In a twosided scrbook, I am aligning all my figures and tables on top of the page (via [!t]). As a result, the upper edge of the figures is higher than the upper edge of the table caption. This can be ...
1
vote
1answer
35 views

Vertical spacing after enumeration in table altough all seps are set to zero

I have a strange vertical spacing after a \enumeration in a table although I have set all seps to 0pt ([itemsep=0pt, topsep=0pt, parsep=0pt, partopsep=0pt]. I want zero vertical spacing after the ...
0
votes
1answer
17 views

using multicolumn in latex table

I have the following table: I want the following: 'Short-crested' belongs to the value 1, 2, 5, 10 and 20. 'Long-crested' belongs to the value 100, 200, 500, 1000, 10000. I want them to move to ...
2
votes
2answers
50 views

How to shorten equation left bracket?

I need to make a table with some equations and the codes as follow: \documentclass[12pt,a4paper]{article} \usepackage[latin1]{inputenc} \usepackage{amsmath,amsfonts,amssymb} \def\arraystretch{3} \...
0
votes
0answers
20 views

Centered inline table with a caption?

I want to typeset a table (in the plain English meaning of the word, not a table environment) inline, and have a caption for it. Well, if I use \begin{table}[!h] ... \end{table} I get the table ...
5
votes
2answers
175 views

Latex Multirow Table formatting

I am trying to format a table using multirow and multicolumn. Most of it seems ok except that I am missing some borders and I would a line separator between row "Binary Classifier" and the row ...
3
votes
3answers
116 views

How to create table with labels (first row and first column)

Here is what I want: And I created simple table as below: \documentclass[11pt]{article} \begin{document} \begin{tabular}{c|cccccc} & 0.1 & 0.25 & 0.40 & 0.55 &...
2
votes
1answer
34 views

I need to break lines in a {tabular} environment using memoir

I need this table to fit the page...breaking the lines... Is there a way to do it? MWE: \documentclass[14pt,twoside,a5paper,extrafontsizes]{memoir} %Classe estilo memoir \usepackage[brazilian]{...
4
votes
2answers
35 views

How to set top align for tabular inside tabular?

My source: \documentclass[12pt]{article} % For removing number order at section header. \makeatletter \def\@seccntformat#1{% \expandafter\ifx\csname c@#1\endcsname\c@section\else \csname the#1\...
3
votes
1answer
41 views

Input file starting with a multicolumn

I have constructed a table (table with a tabularx environment) which takes an input file as input. When I begin this input file with a \multicolumn command the compilation fails and gives me the ...
3
votes
1answer
70 views

Generating a table with all entries from all over the document

We're working on a technical document where we define messages in different chapter/section all over the document. All messages have the same structure and are displayed in a table. We thought that it ...