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

3
votes
1answer
1k views

Caption spacing - table vs longtable

if I use both table and longtable in one document, the spacing between the caption and the table (the empty space after the caption) is different for table and longtable. I would prefer minimal (and ...
7
votes
2answers
350 views

Typesetting a table to look like a spreadsheet

Continuing in my efforts to create particular computing environments in LaTeX, I'm now try to coerce a table to look like a spreadsheet. It needs All columns other than the first having equal width ...
1
vote
1answer
84 views

How can I make tabular span across pages [duplicate]

I have this LaTeX code https://www.writelatex.com/242217cvwchw The data is truncated at the bottom. Is there any way to get the data across multiple pages \begin{tabular}{@{\hspace{19ex}}p{37em}} ...
3
votes
2answers
782 views

Table row height, text vertical center and color

So I have the table in the following working example. I used the solution at Column padding in tables but still the text inside each cell is not centered vertically … Besides, I wanted to give it a ...
3
votes
1answer
7k views

multicolumn table in Beamer

I'm new to beamer. I want to have table in my presentation same as in my latex document. \begin{center} \begin{tabular}{cc|c|c|} \cline{3-4} & & \multicolumn{2}{|c|}{Condition (Gold ...
6
votes
1answer
692 views

Dotted column sep in multicolomn minipage

I'm trying to typeset a table whose cells are divided into columns, and the columns are separated by dotted lines. This is for variable-length enumerations of (short) entries and planned to look ...
3
votes
1answer
267 views

Changing the table row height in all rows except the first row

Is there a way to change the row height in a tabular environment in all rows except the first row? I want the rows, except the first one, to be of the same height.
3
votes
1answer
839 views

How could you make an image a hyperlink to a section in a LaTeX document?

I'm fairly new to latex and am currently working on a few articles as practice before I use it for more official documents. In my current document, I am attempting to make a table of icons (png ...
9
votes
2answers
777 views

How to horizontally align headers and decimal centered cells

I use this code to produce a table and to align the column with the dot of the numerical values. \documentclass{article} \usepackage{dcolumn} \begin{document} \begin{tabular}{l D{.}{.}{3} ...
1
vote
1answer
373 views

long table's and figure's captions

How can I make the table and figure captions aligned in the list of tables or list of figures , my problem is that the list of figures and list of tables are going outside the page margins. ...
4
votes
2answers
585 views

\multicolumn error in texmaker

The code below gives me the following error: ! Paragraph ended before \multicolumn was complete. I tried several times but I cannot find what I did wrong. The exact same table works perfectly fine ...
0
votes
2answers
73 views

Problem with tabular and npnoround

When I compile the table below (I tried to edit the code so that it shows well on this site, but that too doesn't seem to work), I get very strange results: I want all numbers to be in the {3}{1} ...
2
votes
1answer
112 views

Problem with aligning using compactlist in tabularx

I've created a table with the tabularx package. Within the cells I use compactitem to create a list. First I had a problem with the leftmargin. To solve this I've used \setlength{\leftmargini}{0pt}. ...
2
votes
2answers
143 views

How do I make such a table in LaTeX?

Probably a very simple and maybe stupid question, but I haven't yet been able to figure out how to make a table like this in LaTeX: So basically all that I want is the horizontal and vertical line ...
4
votes
0answers
129 views

Points/Circles in graph with TikZ based on table within .tex-file? [duplicate]

Suppose I have a table such as \documentclass[ a4paper ]{scrartcl} \usepackage{ tgheros, booktabs } \usepackage[T1]{fontenc} \begin{document} \begin{center} \begin{tabular}{lrrrrr} \toprule Unit ...
2
votes
1answer
143 views

Using data from tabulary to typeset columns

While trying to write a better answer to this question, I've made several (probably quite bad) attempts to use the tabulary environment to typeset paragraphs to try to in some way be able to split a ...
7
votes
1answer
2k views

Fitting a curve from a table! (Tikz/Pgfplots)

I ploted the data from the table below (first vs. fourth column), 3000 1.2970e+00 0.198956 0.258046 3100 8.6050e-01 0.18747 0.161318 3200 5.7970e-01 ...
8
votes
1answer
183 views

“Argument of \pgfmath@@onquick has an extra }” when using pgfmathsetmacro or pgfmathtruncatemacro with &&-operator inside tabular

When I run the following code... \documentclass{article} \usepackage{tikz} \begin{document} \begin{tabular}{c} \pgfmathsetmacro\foo{(2<3) && (3<4)} \foo \end{tabular} \end{document} ...
1
vote
1answer
385 views

Column-wide formatting changes with tabular [duplicate]

I must be doing something wrong, but I follow the example precisely (as precisely as someone could reasonably guarantee) and LaTeX yet refuses to compile the document: ERROR: LaTeX Error: Illegal ...
4
votes
1answer
317 views

Macros multicolumn and row in LaTeX

I have a table like this but in LaTeX when I use \multicolumn or \multirow the output view is not perfect and it seems that there is some overlapping between cells and when we use these commands there ...
5
votes
1answer
4k views

stata mlogit margins margins, dydx(*) predict(outcome()) export to LaTeX table

I am estimating a multinomial logistic regression model in STATA mlogit Y X1 X2 X3 X4 X5 Then using a loop I get the marginal effects est store m forval i = 0/5 { est res m margins, dydx(*) ...
2
votes
2answers
152 views

Tabu part of text in cell not visible

I have problems with the tabu, when I make a table with the code below, the contents of the last column in the first row is not all visible. Why is this? \begin{table}[h] \caption{Explanation } ...
1
vote
1answer
174 views

How do I force LaTeX to show tables in the section where they are made? [duplicate]

I have the following problem: My section 7.2 contains a lot of tables. Now it shows 2 tables, and then there is a space left on the page, that is not big enough for the next table. Therefore, ...
8
votes
1answer
11k views

Rotating package + sidewaystable + pagenumbering not rotated expected

This question is similar to: Set up sidewaysfigure to have the bottom of the figure toward the spine but that question doesn't give me the result I'm looking for. Instead, I want my tables to be ...
3
votes
2answers
207 views

Using \color in a paragraph column inside a tabular environment results in a line break [duplicate]

Some of my documents are compiled into multiple outputs. Some Versions contain certain parts, while other versions contain only a placeholder. For this purpose I have a macro \markup that colors its ...
3
votes
1answer
339 views

How to put a row in a table with no column division but the rest of the table to have divisions

I want to make a table where it is completely gridded up apart from the line subscript where I want to have just lines above and below but no other lines. I am trying this code but it doesn't give me ...
9
votes
1answer
3k views

Change text color in table, preserve ability

I'm having difficulty creating a new command for \rowstyle that allows me to color the text of different rows in a table and preserve my ability to space out the columns and not induce space between ...
2
votes
1answer
900 views

Make every first line of table look the same

I've been struggling recently with tables. And I've finally managed to get past it. However, I'm now trying to make every first line of my tables look the same (bold white on blue background color). ...
1
vote
2answers
220 views

centering the table with tabular*

How can I centre the table content? \begin{table}[h] \centering \renewcommand{\arraystretch}{1} \caption{The Vehicle types} \label{tab:table3} ...
1
vote
1answer
161 views

Solving underfull and overfull warnings

Always when I want to prepare a document with LaTeX I receive different warnings including underfull and overfull but I don't know how I can handle these warnings. As you can see here i have two ...
4
votes
1answer
1k views

change Linespread in longtable and table

In my document i am using a \linespread{1.5} for the whole document, but I would like to have a \linespread{1} for tables and long tables. How can I change it?
0
votes
1answer
1k views

How to mark/round an element of a table/tabular?

I´m creating a table for simplex, and I want to create a circle around a number in a table. How can I make this in LaTeX? I use PSTricks, but I prefer don´t create an image and a table/tabular ...
2
votes
0answers
38 views

How to center 3 factors in one table? [closed]

I want to center the 3 factors in the bottom line in the under table"Ref1.i, Ref1.ii and Ref1.iii". Just as the upper line showed. I'm entry level, thank you for any kind help! code: ...
2
votes
2answers
238 views

Using seqsplit with multicolumn

I want to create a longtable with headers centered, columns left or right aligned. Thanks to my previous question: Right aligning two columns next to each other in longtable and its great answer, I've ...
4
votes
1answer
1k views

Add Table in Header with image

I'm trying to create question paper using Latex. Sample copy of expected header for first page is mentioned below. Note: Image above "First Page Header". Can you please suggest, how can I add table in ...
7
votes
1answer
429 views

Counter problem with tabulary

EDIT: As the example below was quite long, I made a minimal example below to make it easier to see the problem: In the example below, the expected values of the counters should be 0, 1 and 2, but its ...
5
votes
2answers
220 views

Is the longtable enviroment limited? I have a several pages long table

I am writing a long table with several complex things inside. When I realized I needed a multiple page table I tried to change table to longtable, but it just gives me a lot of errors. How can I ...
2
votes
1answer
748 views

Right aligning two columns next to each other in longtable

Reading this other thread, I found how to right align a column in longtable. However if I want to right align two columns that are next to each other: ...
5
votes
1answer
3k views

lstlisting in a tabular environment

I am following Adding C++ code in Latex for adding C++ code to the document. What I have is a table with the following format: \documentclass[12pt,a4paper,final]{report} \usepackage[utf8]{inputenc} ...
5
votes
1answer
317 views

Using BibTex as a general database for generating a table

I want to create an overview table of some data. More specifically, I have some named objects and for each of these I have some properties. Example data and schematic of output: + ...
5
votes
2answers
363 views

Setting widths in a longtable not working

I want to create a longtable that spans several pages, with column widths set to cms by me: \documentclass[12pt]{article} \usepackage{longtable} \usepackage{seqsplit} ...
1
vote
0answers
97 views

What's the correct way to place theorems and pictures side by side? [duplicate]

Okay so I have a definition using the amsthm theorem environments, and a tikzpicture which I want to see side by side. The material inside the definition is not too big, so I expect the final height ...
2
votes
2answers
115 views

Table column with unwanted spacing

I have a table with two columns. \begin{table}[ht] \begin{tabular}{|p{12cm}|p{4cm}|} \hline \textbf{Company} & \textbf{Contact} \\ \hline Company produces advanced product systems compatible with ...
1
vote
1answer
143 views

Autosum Table contents in LaTeX

I am trying to add the contents of a latex table, having something like this in mind: How can I automatically calculate sums in a LaTeX table? But this solution does not work for me... Is there any ...
4
votes
1answer
338 views

acronym - tabular — weird spacing while using \ac

I'm currently writing a Lab-Report, using a lot of acronyms and tables. What I have so far looks like this: \documentclass{standalone} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} ...
4
votes
1answer
452 views

tabularx \hline introduces blank line above

I am using tabularx and I successfully created some tables with it so far (not too nice ones, but thats another problem). One Table freaks me out, as the "header" is separated from the next lines not ...
0
votes
2answers
868 views

Multiple figures layout

I have 5 figures: A, b, c, d, e. I have a question in laying out multi-figures like below: --------- A | b c A | d e { A } is a single long figure using multirow --------- ...
6
votes
2answers
4k views

Longtable with multicolumn and parbox spacing issues

I've been trying to build a "complex" table of a certain size but I still have some problems with the spacing. As you can see in the attached pictures, some lines overlap the table row dividers, other ...
1
vote
0answers
148 views

Is there any way to export an Excel table that contains images to LaTeX? [closed]

If I use the Excel2LaTeX addin, the images are not exported and the column is left empty. Is there any way to export this table that contains images without having to export each image separately? Or ...
2
votes
1answer
4k views

multicolumn command with tabularx environment

I am using the multicolumn command within tabularx and am not getting any joy. I want to organise it so that the top line spans across two separate columns and wraps itself appropriately, but I cant ...