{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
0answers
28 views

Creating a table with gray title bar [duplicate]

I want to create a table as shown below. Can someone provide me an MWE?
1
vote
1answer
24 views

How to force content to jut out of a (vertically centered) table cell?

I want to force the content of one of the cells in my table to overflow the cell width by a specified amount. With c columns, negative kerning does the trick. But I also want vertical alignment, and ...
0
votes
0answers
27 views

ignore a word in spacing [on hold]

I want to set a specific spacing, because I can only work with one column in a tabular. I would be able to set the spacing in the tabular like so: `exampletext\kill\vline` however then I don't know ...
1
vote
2answers
44 views

Table with images

I want to make a table with 3 rows and 2 columns, where in the left column I put text and in the right column I put an image in each row. I have no idea how to make this, I already tried to make a ...
0
votes
0answers
36 views

script to create a table with multiple rows

I'm wondering how to quickly put a bunch of data into a table. I have a rather basic knowledge so I'm asking for a way to read in data by the following format: It has 4 columns, first is formatted in ...
2
votes
2answers
108 views

Why is this macro putting an element of a table on the wrong row?

Consider the following MWE: \documentclass[a4paper,10pt]{article} \newcommand{\macro}[2][]{% & something & #2 & #1 \\ } \begin{document} \begin{tabular}{lccc} \macro{3}{4} ...
2
votes
3answers
91 views

How can I create this aligned bracketed thing?

I'm trying to create a list of items that looks something like this: but I can't figure out how to position the bracket properly. Here is what I currently have, minus the brace (which I edited into ...
6
votes
3answers
80 views

Use the result of FPeval to color a table cell

I am trying to give a table cell a grayscale color value based on it's numeric value. So far I have the following code \documentclass{article} \usepackage{fp,xcolor,colortbl} \FPeval{\resb}{0.5} ...
2
votes
0answers
48 views

Is there any single property/option for creating all borders in LaTeX table?

\begin{tabular}{ | c | c | c | } \hline 1 & 2 & 3 \\ \hline 4 & 5 & 6 \\ \hline 7 & 8 & 9 \\ \hline \end{tabular} If we want to create a ...
0
votes
1answer
81 views

Adding a rectangular box with tikz to table (beamer)

I would like to add a rectangular box to my table to highlight some rows. I'm trying to use tikz with the second lot of code from Harish Kumar's answer to a similar question. However, unlike the ...
0
votes
0answers
18 views

How to avoid the horizontal separator while using multirow? [duplicate]

Creating a table in IEEE transaction format. The last cell of the table has to combine two rows. I can put the same text using the multirow package, but the horizontal separator cuts right through the ...
0
votes
0answers
19 views

How can I use multicolumn or multirow in a tabular using the array package global formatting technique?

Awhile ago, @robintw asked a practical question: Make first row of table all bold It uses the array package to cleverly inject formatting code to the header row columns. Clever Table Row Formatting ...
0
votes
2answers
22 views

Table appears to be incomplete in latex pdf generated

my code is given as below \begin{table}[H] \begin{tabular}{|c|c|c|c|} \hline \rule[-1ex]{0pt}{2.5ex} JP1/JP14 Pins 1 – 8 & Description & JP1/JP14 Pins 9 -16 & Description \\ \hline ...
0
votes
0answers
29 views

Placing a figure inside a table which needs to be listed in the table of figures

I need to put a figure inside a table and then list it in the table of figures. What I made and failed is this: \begin{longtabu} to \textwidth {..omitted for brevity...} \caption{Table of components} ...
0
votes
0answers
13 views

Longtable integration Stata

As far as I am aware, the available commands that produce LaTeX-formatted tables of stored estimates using Stata, will only produce tables using either the table or tabular environments. Do any other ...
2
votes
2answers
22 views

Text next to an xskak diagram?

The \chessboard command from xskak.sty assembles the board using glyphs from a chess font. This causes me a ton of headaches trying put explanatory text next to a board. The first and most obvious ...
0
votes
0answers
51 views

Which rating symbols are recommended? [on hold]

I have to evaluate several types. The first evaluation is on features these types have. There are only two answers possible: Yes the feature is existent in the type or No the feature isn't present. I ...
1
vote
3answers
50 views

How can I center text vertically in the middle of a multicolumn table cell?

When I enter this, why does the 'Type I stuff' and 'Type II stuff' break down into 2-3 lines? How can I have them written in one line without linebreak? When I use c instead of M for the multicolumn, ...
0
votes
0answers
21 views

Can't seem to align right the text in a tabular

Hello I am using "Extended Fancy CV Carmine Benedito" template and have a really hard time to allign the name of my school in the right... Please, anybody has an idea of what to do? Thank you in ...
2
votes
2answers
37 views

Using a table as a header in Context

I want to define a table to use as a header in my Context document. This table shall contain different variables, like document title, document number, date, page x of yy, etc. I have defined the ...
0
votes
1answer
26 views

Keep getting “Package hypcap Error: You have forgotten to use \caption.” error from this part of my code

I keep getting the error I listed above from this part of my code. When I take it out, it runs fine and I get no errors. This table is part of a chapter that gets input into a larger paper. This is ...
0
votes
0answers
59 views

How to vertically align text in a table

I have problems vertically aligning text in my table. I define new column type like this: \newcolumntype{M}{>{\centering\arraybackslash}m{\dimexpr.25\linewidth-2\tabcolsep}} And this works for ...
4
votes
2answers
61 views

Vspace in a table in a two column page

I made a table spanning the top of a two column page, but there is a problem in the last column where $j$ is very close to the hline above, while other elements in the same row are of the same ...
1
vote
1answer
35 views

Setting table-width exactly to linewidth

I'm trying to create a table with exactly the same width as the surronding text. I would expect that the command \resizebox{\linewidth}{!}{..table..} should do the job. However, the tables width is ...
1
vote
1answer
19 views

adjust distance between the rows and repeat header in each page?

I faced problem in longtable, as each column is long it print in one page as picture shows, also when goes to next page need first row header repeats. \documentclass{article} ...
1
vote
1answer
31 views

How to get siunitx to centre columns of integers correctly

I've just discovered siunitx, which seems to do what I want with tables, that is centering a column but keeping numbers decimal aligned. I find it doesn't work for a column of integers (say 99, 9, 99, ...
0
votes
0answers
50 views

Packages for programming documentation [on hold]

I am writing an exercise in school in which I've done some programming. I need to document and explain my design choices in my programming. Aren't there any suitable packages to create some kind of ...
7
votes
7answers
203 views

Complex table with cell/box inside cell

everyone. I'm currently beginning to use LaTeX technology and stumbled upon this problem, I have read several tabular manuals on CTAN with no success. I'm trying to create a table like this: ...
1
vote
1answer
31 views

my table doesn't completely close all the borderlines

using this lines for making a table, I noticed that it doesn't close all the border lines, and also I wanted to make the vertical line before the alpha character \alpha, thick or double, just don't ...
2
votes
1answer
34 views

Fitting table with 2 tabularx environment (Beamer)

I am trying to make a big table fit into a beamer slide. My table has 2 panels which are 2 tabularx environments. My attempt involves one \resizebox for each tabularx environment (see code below). ...
3
votes
1answer
38 views

\ifstrequal in tabular produces spurious spaces

I'm working on a LaTeX class for my university's thesis format, which requires signature lines on the title page. The sig lines are labelled differently depending on what kind of a thesis it is, so ...
2
votes
2answers
61 views

vertical line between the cells

could someone kindly help me out how to solve this problem by completing the vertical line between the cells. Regards \begin{table}[htbp] %\setlength\extrarowheight{3pt} ...
5
votes
3answers
67 views

No horizontal centering in multirow at \newline

MWE \documentclass[a4paper,11pt]{article} \usepackage{multirow} \usepackage{array} \begin{document} \begin{tabular}{|>{\centering\arraybackslash}m{2cm} ...
0
votes
1answer
32 views

Not vertical centering in multirow at \newline

MWE \documentclass[a4paper,11pt]{article} \usepackage{multirow} \usepackage{array} \begin{document} \begin{tabular}{|m{3cm}|m{3cm}|}\hline X & Y \\ \hline \multirow{2}{*}{No problem} & One ...
1
vote
0answers
23 views

longtabu bottom caption too close

I want to add the longtabu caption bottom of the table. I know this is not good. But I was told to do so. When I do it as in the code sample, the caption comes too close to the table. But after the ...
5
votes
5answers
178 views

Make a sentence into two lines to make column width narrower.

I have a table that has multiwords and columns \documentclass[12pt, twocolumn]{article} \usepackage{booktabs} \usepackage{multirow} \usepackage{lipsum} \begin{document} \lipsum \begin{table}[ht] ...
2
votes
1answer
38 views

Set width of tabular column to the width of tabular numerals

Take the following code: \documentclass{article} \usepackage[oldstyle, tabular]{libertine} \usepackage{array} \newlength{\period} \settowidth{\period}{9999--9999} \begin{document} ...
2
votes
3answers
74 views

What's wrong with my table?

I am trying to write the following entries in a table \begin{table}[h] \centering $\begin{array} \toprule k & \lbrace c_{kj} : j=1, \cdots , 8 \rbrace \\[1ex] 1 & \lbrace 0 , 190 , 359 , ...
0
votes
1answer
44 views

LaTeX table help [duplicate]

Does anyone have or can derive any LaTeX code of the form of this tricky table? Thank you \documentclass{article} \usepackage{multirow} \begin{document} \begin{tabular}{|cc||c|c|c|} \hline ...
2
votes
0answers
20 views

!h float parameters for table environment [duplicate]

Latex float parameters look messy to me. I was reading this which says, You can force LaTeX to use one given position. E.g. [!h] forces LaTeX to place it exactly where you place it (Except when ...
1
vote
0answers
31 views

Longtable breaking into very small sections over many pages.

I'm writing a paper in the format of Monthly Notices of the Royal Astronomical Society (MNRAS- mn2e). I seem to be having quite a few issues with my tables for it. I have several long tables that ...
3
votes
1answer
51 views

Sideways table not centered in the page

I'm writing a paper in the format of Monthly Notices of the Royal Astronomical Society (MNRAS). I have several tables I need landscaped since they are too wide. I have used the sideways table command ...
1
vote
1answer
33 views

Removing indention before first table column

I want to remove the space before the first column entry of a table environment in a CV, in order to align it with the section header. The output looks as follows: I am aware that it might look ...
1
vote
3answers
59 views

How to use table in text format as regular table (and reference to it)

I have such text table: Descriptive statistics ================================================================= Statistic N Mean St. Dev. Min Pctl(25) Median Pctl(75) Max ...
2
votes
1answer
31 views

Problem arise displaying table caption

I am facing and issue regarding table caption. The code is the following: \documentclass[12pt]{report} \usepackage[utf8]{inputenc} \usepackage{gensymb} \usepackage[version=3]{mhchem} ...
4
votes
2answers
106 views

Need a Macro for Tables - independent of row and column size

I have created the following macro for Table: \newcommand{\createtable}[7]{ \begin{table}[htbp] \begin{tabular}{|p{8cm}||p{8cm}|} \hline \begin{center}\textbf{\cellcolor{Orchid!25}{#1}}\end{center} ...
0
votes
0answers
10 views

I am having problems with table placement [duplicate]

Hi I am sorry if this is a repeat, I tried to find a similar problem but I could not. I am making Cayley tables and I quite like the ease of the code I am using, but something strange keeps happening. ...
4
votes
1answer
43 views

LaTeX places table outside of page margin

I'm using the KOMA class scrbook with the font Tex Gyre Pagella (11pt) and onehalf-spacing. I am placing a table float with the position options "htb", but both pdflatex and lualatex place the table ...
1
vote
0answers
29 views

Transforming my table in longtable

I've been trying to transform my table into a longtable desperately for the past hours. I looked at numerous examples, checked the documentation but I cannot get it working. So I have a pretty long ...
1
vote
0answers
10 views

Error after inputting frmttable stata table

I am using the Stata user written command frmttable to create journal-like tables and to write them to LaTex. When I use the command \input{... .tex} the table is displayed like I want it, but LaTex ...