{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
34 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 ...
1
vote
2answers
43 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 ...
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} ...
0
votes
0answers
26 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 ...
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 ...
2
votes
3answers
90 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 ...
0
votes
1answer
75 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 ...
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} ...
0
votes
0answers
17 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
18 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 ...
8
votes
3answers
166 views

Using & in macro abstracting a tabular's row

I am attempting to create a macro for table rows. This will allow me to change the order of the columns in the future, without having to change the order of the columns in every single row. I have ...
0
votes
0answers
27 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} ...
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} ...
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
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
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
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 ...
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 ...
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 ...
7
votes
7answers
200 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: ...
4
votes
2answers
2k views

How to avoid exceeding TeX capacity when using multi-page tables?

I'm using the longtable package (together with xcolor for alternating row colors and booktabs for elegant table headers) to generate a huge table. And by huge, I mean it has more than 900 lines and ...
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
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
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 ...
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). ...
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 ...
11
votes
1answer
7k views

How to put a full-width table at the top or bottom of the same two-column page as the reference text?

I'm posting today because I would like to reduce white space in a document I'm writing. The content is two-columns but I have floating tables that span across both columns (table*). At some point, ...
5
votes
2answers
54 views

Breaking inline math within longtable or tabular

So, I've got the following code: \documentclass{memoir} \usepackage{longtable} \begin{document} \begin{longtable}{p{0.4in}cp{2.75in}p{1.8in}} Symbol & Unit & Describes & Equivalent ...
0
votes
1answer
31 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 ...
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 ...
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} ...
1
vote
1answer
72 views

Positioning and spacing of tables

I'm new to LaTeX and I already know that my question seems too stupid. Actually I'm writing a text as follows: The exact dimensions of the system are listed in Table……\\ \begin{tabular}{|c|c|} ...
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] ...
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 ...
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 , ...
1
vote
1answer
53 views

Simple import of data with special characters for table

I'm currently trying to import a set of data from a file (comma or tabbed delimited, doesn't matter) for creating a table. Below is an example of this data (DH parameters in case you're curious): ...
3
votes
1answer
50 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 ...
9
votes
2answers
195 views

How can I use variables (or formatting commands) in a header row of a \pgfplotstable table?

My first reaction to reading the pgfplotstable manual was: Why would anybody in their right mind use the tabular environment for generating tables? Advantages of pgfplotstable No need to specify ...
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 ...
0
votes
1answer
43 views

Multirow to combine cells

I'm trying to make a table as shown below with all the horizontal and vertical lines. Please help.
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 ...
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 ...