{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
389 views

Automatic table width doesn't work anymore

I got an odd problem since yesterday. I'm writing my thesis with Lyx. I'm using a template based on the KOMA-Script. Well, yesterday I've deleted a number of tables from my document. After compiling ...
1
vote
0answers
16 views

Text appears at the bottom of row when image is image inserted in the next column [duplicate]

I want to use latex to make PDF for all figures. Please see the code. The image is inserted but "100" on the left column appears at the bottom of the row. How do I align that to top or center of the ...
7
votes
1answer
8k views

How to add vertical and horizontal dashed lines in array and tabular enviroments?

I want to present big matrices using concatenation of rows and columns with dashed lines. Also, I need to do the same for some tables. Is there any way to insert dashed lines in arrays and tabulars, ...
6
votes
2answers
140 views

What is a short command for bold face and emph at the same time in a table cell?

I need a short command to replace \textbf{\emph{...}}. Especially, in entering tables in the text editor, this would help me to keep the structure of table uniform and easy to edit. Thanks.
1
vote
1answer
1k views

vertical alignment using tabularx / arraystretch

I am using the tabularx package to customize my tables. I changed the definition of tabularxcolumn to vertically center the text. As I am using arraystretch, the bold 'titles' of my table are aligned ...
2
votes
1answer
673 views

TabularX vertical alignment

Since the enumiten Package (and therefore leftmargin=*) doesnt work in custom environments, I was trying to trick a bit, doing the items in a table like this (don't ask..) : \documentclass[fleqn,...
3
votes
1answer
244 views

Starred tabular environment and centered text

How to make the starred tabular to center text: \documentclass[varwidth]{standalone} \begin{document} \begin{tabular*}{\linewidth}{@{}c@{\extracolsep{\fill}}} \hline Text to ...
2
votes
0answers
383 views

Automatic formatting of LaTeX table [closed]

I have a table table.tex coming from a statistical software Stata. I would like to know if there is a way to tell LaTeX to format, for instance, some coefficients in red and italic. Something that ...
3
votes
2answers
377 views

How to align text and a table next to each other

I want to produce a table-like structure but preceeded by a single word on the left, like so: Here is what I tried: \begin{minipage}[t]{\textwidth} Here \\ \begin{tabular}{ccl} $n$ & --- &...
4
votes
1answer
188 views

Align column content along \div symbol

I would like to know if there is a way to align the content of a column along the position of a \div symbol. I know how to do it if there is a comma, but I don't know how to align along a different ...
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
262 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
659 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
752 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
813 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
160 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
83 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, a4paper]{article}...
3
votes
1answer
176 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: \...
6
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} \...
3
votes
2answers
42k 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
401 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}% \end{...
3
votes
1answer
193 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} \begin{...
2
votes
1answer
5k 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
371 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
92 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
393 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
358 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
87 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
799 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 standard)}...
7
votes
1answer
712 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
270 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
936 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
826 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} D{.}{.}{...
1
vote
1answer
386 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
610 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
144 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 0....
8
votes
1answer
190 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
419 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 ...