{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
1answer
67 views

Question regarding formatting contents of a cell in a table

So I have the table below. It's very ugly how e.g. the contents of the second cell in row two is split. I'd prefer the automatic break to only occur between words -- that is, I don't want it to split ...
2
votes
1answer
1k views

Chapter title and rotated table (with subtables) on the same page

My problem is quite similar to the one described in Problems with landscape mode and Title on the same page. The hvfloats solution suggested there does not work for me, however, because I use multiple ...
3
votes
2answers
258 views

Making a table-like structured information block in LaTeX

I want to layout some information in a structured, table-like, or form-like manner. Basically, each 'block' has multiple fields like Title, Description, and other things, and I want to display them ...
1
vote
1answer
642 views

Setting Dynamic Column Properties in LaTeX Tabular

I am writing a system to export reports in various formats from PHP. When it comes to LaTeX it seems to require \begin{tabular}{mandatory column arguments} Since the number of columns in the ...
13
votes
1answer
3k views

Changing font in tabular

I desperately need someone's help. For the past hour I was trying to perform a task so diabolically difficult, even the Hercules himself couldn't achieve: change the freaking font in a table. My ...
2
votes
1answer
737 views

\restylefloat does not restyle properly threeparttable caption

The following code does not produce the result I would expect. When the caption position is changed by restyling the caption it is no longer centred; it moves to the left. Any idea on how to fix the ...
3
votes
1answer
794 views

Changing font color in a table adding unwanted extra spacing

I haven't been able to find a solution, so I'm hoping for any suggestions. When I try to change the font color in my table, I get extra spacing above and below the lines with the color-changed font. ...
2
votes
1answer
157 views

Non-Uniform Inter-Row Spacing in tabularx with p Cells

Take a look at the following picture: The Namespace column is typeset using a p cell. The page layout is in landscape mode. I've set the inter-row spacing explicitly to 20pt. However, since the p ...
4
votes
1answer
82 views

Problem with starting to number at next rows in tables

I've tried with some solutions but I can't get it. I'd like to start to number at third row in this table. Also, I have a problem with \rowcolor Please, help me. \documentclass[10pt, ...
3
votes
1answer
175 views

Numbered list in rows in tables

I want to have numbered listing in each row, I've tried with \rownumber, but it doesn't work. I wrote a number at the beginning, but Could it be automatically? Can you help me? This is my code: ...
5
votes
1answer
10k views

Table cell color overlaps cell border

As the graphic and MWE below show, some of colored my table cells are obscured the cell colors. I'd appreciate help fixing this. \documentclass[english]{article} \usepackage[T1]{fontenc} ...
9
votes
2answers
13k views

align inside of tabular

Today I failed using an align-environment inside of a tabular-environment. Consider the following example: \documentclass[12pt]{scrbook} \usepackage[english]{babel} \usepackage[utf8]{inputenc} ...
7
votes
1answer
1k views

\usepackage[group-separator={,}]{siunitx} Not working with longtable?

I have a table with very long counts (in the millions), so I would like to add commas. I have tried to use siunitx in a variety of ways in the preamble: \usepackage[group-separator={,}]{siunitx} ...
1
vote
0answers
116 views

Itemize in tabular [duplicate]

I really don't get it. I've made e.th. in theory and still it says that I've probably missed "}" somewhere. \documentclass[a4paper,12pt]{scrartcl} \usepackage[ngerman]{babel} \usepackage{bpchem} ...
2
votes
2answers
39k views

How to adjust a table to fit on page [duplicate]

I have the following latex table: \begin{table}[ht] \centering \begin{tabular}{rlrrrrrrr} \hline & X & MASHvstRap & MASHvsBEEML & tRapvsBEEML & frequency & Mash\_mean & ...
7
votes
3answers
398 views

Problem with newenvironment

I'm defining new environment and I'm trying to pass to it two arguments: \newenvironment{ctable}[2]% {% \begin{center}% \begin{tabular}{#1}% }% {% \end{tabular}% \captionof{table}{#2}% ...
3
votes
1answer
192 views

Vertically center numbers in table

Consider the following example: \documentclass{article} \usepackage{booktabs,dcolumn,ragged2e} \newcolumntype{d}[1]{D{.}{,}{#1}} \newcommand*\mc[1]{\multicolumn{1}{c}{#1}} \begin{document} ...
2
votes
1answer
4k views

table too wide and doesn't fit within textwidth

\begin{table}[htbp] \centering \small \begin{tabular}{|c|c|c|c|c|c|c|c|c|} \hline Wavelength & Model & Package & Emmitter type & ...
2
votes
1answer
369 views

How can I align numerical and angle values in a table using siunitx?

As described in DIN 461, units such as "Degree", "Minute" or "Second" should stay with their numerical value when labeling the tics of a coordinate system. I have no proof, but I think that this rule ...
0
votes
1answer
88 views

npround (seems to) destroy rules for caption in table

I'm struggling with this one. In essence, I would like to place the caption above the table but also to have the 'Table 1' appear at the beginning and on the same line as the caption. Finally, I ...
4
votes
2answers
386 views

custom word-wrapping in tablecolumns with fixed width

I have a somewhat special problem. I want to create a fixed-width table column (for example by using the p{0.2\textwidth} column-type). But in the column are really (!) long words, containing mostly ...
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
353 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
85 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
789 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
699 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
268 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
883 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
793 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
379 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
592 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
144 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
398 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
323 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
158 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
214 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
345 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
934 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
225 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} ...