{tables} is about the tabular environment and related packages such as {array}, {booktabs}, {tabularx} and {longtable}. For questions about the table environment (i.e., about floating or positioning), use {floats} instead.
2
votes
1answer
53 views
Align text and numeric values by decimal in table body using dcolumn
How can I align numeric values in the body of my table by decimal point when some of those values are accompanied by character values? For example, say I wanted to report some standard deviations in a ...
1
vote
0answers
41 views
Table caption above, figure caption below [duplicate]
In a LaTeX article, I would like to place table captions above the tables and figure captions below. Is this possible?
2
votes
1answer
52 views
How can I left-align the table in pdfLaTeX in TeX Live?
I have these two TeX files:
\documentclass[a3paper,landscape]{article}
\usepackage{array}
\usepackage{tabularx}
\usepackage{longtable}
\usepackage{ltxtable}
\begin{document}
Hello.
...
1
vote
1answer
57 views
How can I autoadjust the table height, width in LaTeX with many pages of text
I am using CentOS and TeX Live. I am new to LaTeX.
This is what I am trying
\documentclass[landscape, letter]{report}
\usepackage{ltxtable}
\usepackage[table]{xcolor}
\usepackage{colortbl}
...
4
votes
0answers
45 views
Aligning a table (vertically) with a subfigure [closed]
I want to show three pictures and a tabel with explanatory text:
--------- ---------
| | | |
| Pic 1 | | Pic 2 |
| | | |
--------- ---------
...
3
votes
1answer
97 views
How can I make the document as wide as possible in LaTeX
I am new to LaTeX and don't know much about it. I am generating PDF from the LaTeX source files.
My column are very wide and I want that PDF should expand to fit the data. Does not matter how long ...
2
votes
1answer
73 views
inserting external LaTeX tables made by Stata into Scientific Workplace 5.50
I am trying to insert a table of statistical output into SWP 5.50 from an external file. The table is generated by my statistics program, and it looks something like this:
...
1
vote
2answers
68 views
Get a table and figure on the same page with captions & labels
Here's what I'm looking for: I need a table and a figure to stay on the same page, while keeping captions & labels fully functional. Both the table and the figure need their own caption and their ...
2
votes
1answer
36 views
Odd behaviour when dashes are add in a table?
Using the following MWE :
\documentclass[12pt,a4paper]{report}
\usepackage[lmargin=3.81cm,tmargin=2.54cm,rmargin=2.54cm,bmargin=2.52cm]{geometry}
\usepackage{booktabs}
\usepackage{siunitx}
...
0
votes
1answer
42 views
Overhead image in a table,how to have fixed cell dimension
I have this problem:
This is my code,i wanna have a fixed height to fit my image perfectly without scaling too much.
\begin{tabular}{|c|c|p{5cm}|}
\posizCellaRiga
\textbf{Nominativo} & ...
1
vote
1answer
115 views
How to implement this table in LaTeX
I really tried hard to do this on my own, but I keep failing ... Using multi-column and multi-row commands confused me. I know some of you might frown upon such a request but I really need help ...
4
votes
1answer
43 views
Tabulary on a rotated page does not use correct \textwidth
I'm trying to have a tabulary-table on a landscape page in a portrait document.
Because I want to have the table use the full width, I tried to set it width to \textwidth, but the width of the table ...
2
votes
1answer
38 views
How to adjust space between columns in longtable environment?
In the regular tabular environment, we can use \setlength{\tabcolsep} to specify the size of the space between the columns, but this doesn't work in longtable. Is there a similar command?
...
17
votes
2answers
427 views
Creating a triangular table
Is there a way to create something that looks like this?
I have looked at the \rotatebox command, but that will not get the same "jagged" edges on the bottom, and looked at How to draw a ...
4
votes
1answer
77 views
LyX table border colour
I have a multi-row table in LyX, with black horizontal borders at the top and bottom of the table. I would like to insert other horizontal borders inside the table that are grey rather than black. ...
1
vote
1answer
97 views
Footnote in tabu table not shown
Which package should I use for proper footnote handling in tabu tables? I thought tabu was supposed to do everything tabularx does, but footnotes do not show up in tabu tables.
Working (using ...
8
votes
1answer
92 views
Animating tabular rows in Beamer without showing the table border
I have a tabular environment with three rows, and I would like to show only the first row on my first slide, then show the next row and finally the third row. I have a solution that almost works but ...
2
votes
2answers
74 views
Table formatting
I use the following table:
\documentclass[a4paper,
12pt,
bibliography=totoc,
index=totoc,
abstracton,
...
2
votes
1answer
30 views
Referencing and printing table entries in main body
I have a table with numbers and I would like to reference a specific number in this table by re-producing it in the main body of the text. For example in this table:
\begin{table}[h]\caption{Summary ...
0
votes
1answer
116 views
Custom length in table results in Package array Error: Illegal pream-token (]): `c' used… :( [closed]
In the code below I get a
Package array Error: Illegal pream-token (]): `c' used.
error after inserting this custom length:
\newlength{\mylengthy}
\settowidth\mylengthy{Registrierte ...
5
votes
1answer
114 views
Making advanced tables [duplicate]
I am trying to generate tables like the one above I found in a textbook in LaTeX.
In particular I am trying to find a way to make that $\$ slash symbol in the left upper corner. It would also be ...
3
votes
1answer
43 views
Using longtable with \cmidrule: page-breaking issues
Here's a (minimal?) working example that illustrates both the issues I am having:
\documentclass{article}
\usepackage{longtable,booktabs,lipsum,array}
\usepackage{pgfplots}
...
5
votes
1answer
74 views
How to TeX a table contain large bracket
How to Tex a table in the form? I'm not interested in the detail of the matrix content, just interested in the form of the matrix, especially how to put the arrows and labels outside the matrix.
...
4
votes
1answer
54 views
colors in tablecells in LaTeX
I'm making a tabular and I want some of the cells to be colored. So I searched how to make colored cells. I now have the following:
\documentclass{article}
\usepackage{xcolor,colortbl}
...
3
votes
2answers
60 views
Increasing the length between rows in a table
I have defined a new command to increase the length between rows in a table:
\newcommand{\ra}[1]{\renewcommand{\arraystretch}{#1}}
For example
\documentclass[a4paper, 11pt]{article}
...
5
votes
1answer
86 views
Formatting a logical (PD) derivation
I'm trying to format a PD derivation but I'm having trouble getting subderivations to display well. Essentially what I'm trying to accomplish is this:
1 | P Assumption
2 | Q ...
3
votes
2answers
133 views
Professional slashbox alternative
Suppose I have the following table which lists conversion rules, where rows denote the input and columns denote the output type (so, for example, the conversion int8_t -> int16_t would use b, while ...
3
votes
1answer
67 views
Combining diagonal table cell lines with minimum row clearance
So, yeah, it just never ends I guess. I'm fully aware that the following table is not exactly going to win an award for its stunning beauty no matter what. But the most important problem is that in ...
2
votes
1answer
161 views
Illegal pream-token in tabular
I'm having trouble constructing a tabular environment and compiling it with pdflatex. Here's what I'm trying to do:
\documentclass{article}
\usepackage[pdftex]{graphicx}
...
4
votes
1answer
59 views
LaTeX not recognizing \end found in a \newcommand
I'm trying to both start and end a table with \newcommand. I'd like to switch to using \EndTableSetupFourColumns (as it removes several warnings and is easier to understand for other readers) but for ...
1
vote
1answer
27 views
Why \ifnum\c@mpfootnote does not work inside tabular?
Why \ifnum\c@mpfootnote does not work inside tabular? Should not I get no footnote-rule? I am just puzzled!
\documentclass{article}
\begin{document}
\makeatletter
\long\def\@mpfootnotetext#1{%
...
2
votes
1answer
25 views
Why does ltablex skip a number in captions?
The below example presents two tables with an tabularx environment (taken from package ltablex) and a caption. After each tabularx-table, the table counter skips one, as if both the caption and the ...
3
votes
2answers
37 views
Centering a wide table that is defined inside a NewEnviron
I am trying to centre a table with a lot of content whose width is larger than the text width. The problem is that I am defining the table environment in the preamble so I can reuse it, and this seems ...
1
vote
1answer
88 views
Centring a sidewaystable both horizontally and vertically
I'm trying to have a sideways table at the end of my document, however I can't seem to get it to centre to the A4 page perfectly like intended.
Here's my preamble:
...
5
votes
2answers
183 views
Format time span for CV
I would like to add the month to the time span of moderncv. I order not to occupy much more space and still having a beautiful solution, I would like to do the following:
Year - Year
Month - Month
...
0
votes
1answer
59 views
Centering table in landscape page [duplicate]
I'm trying to get a table centered both vertically and horizontally in a landscape page. I've tried some of the solutions proposed around here but I can't get them to work in my specific case.
Here ...
4
votes
2answers
82 views
Does anyone know an easy way to produce a table with cells spanning multiple pages using latex?
I'm looking into the possibility of using latex for programmatically generating PDFs from templates with placeholders and some textual data. The current solution I have is based on reportlab, and it ...
3
votes
1answer
46 views
Vertical misalignment due to beamer onslide? [duplicate]
The following MWE displays the problem:
\documentclass{beamer}
\begin{document}
\begin{frame}\onslide<+->
\begin{tabular}{p{4cm}r}
Text\\Text & Text \\\hline
Text\\Text & Text ...
1
vote
1answer
52 views
Last cell in complex table not behaving
I am having a hard time figuring out why the text in the last cell on each row of this complex table I am creating is not positioning correctly. As you can see from my code, the issue only occurs when ...
3
votes
1answer
606 views
Regression tables made with esttab in Stata have columns with different widths, using LyX
I am relatively new to LyX and I am trying to output regression results into TeX code, and then insert the resulting tables in a LyX document.
The command I use to create the table is:
reg y1 x1, ...
1
vote
1answer
44 views
How to properly use tabular within \multirow?
For
\multirow{3}*{\minitab[c]{India \\ Canada}}
I get various error messages in the code below; whereas both
\multirow{3}*{India Canada}
and
\multirow{4}*{\minitab[c]{Common \\ g text}} & ...
1
vote
2answers
69 views
Will subcaption and threeparttable live happily ever after? Trouble combining the two
I'm trying to take this MWE table and put it into a subcaption's subtable environment, or, alternatively, use subcaption's subcaption command - see subcaption's manual - to achieve the same end: to ...
1
vote
3answers
66 views
Footnote in tabular environment
It seems as if footnotes would have only a problem with the table environment but in my minimal example non of those answers
Footnotes in Tabulars?
Footnote in table
seem to work for the tabular ...
9
votes
3answers
2k views
Convert numpy array into tabular
I am doing some data analysis in python, putting the results in form of a matrix stored into a numpy array. I would like to put this results into a report and the best way would be to put a table with ...
10
votes
2answers
437 views
How to align integers on the right, but still center them
Suppose we have a table like this:
\begin{tabular}{c}
Heading \\
1 \\
10 \\
100 \\
\end{tabular}
This will center all the numbers. If I want to align them to the right, I could change the column ...
1
vote
1answer
57 views
Dashed hline in longtabu (arydshln conflicts, does not work?)
I have a large table with the following requirements:
Spans multiple pages (currently using longtable)
The last column's text must wrap (using tabu's longtabu environment as tabularx does not ...
4
votes
1answer
82 views
PGFPlots error “Dimension too large” when plotting .csv data
I did search on here for a solution and I did read the manual, but i couldn't find an answer (or at least one that I understood).
I am plotting some data in a .csv file and for some reason when the x ...
1
vote
1answer
50 views
Left Align with Column Width {p{cm}} [duplicate]
I am trying to create a table something like:
Idioms Definition
A dime Anything that is common, inexpensive,
a dozen and easy to get or available any ...
17
votes
2answers
10k views
Changing the font size in a table
What's the recommend way of changing the font size in a particular table? Is there a better way than enclosing all values with, for example, the \tiny function.
4
votes
2answers
267 views
Misplaced \noalign
Unfortunately I cannot solve the error with noalign on my own:
! Misplaced \noalign.
\hline ->\noalign
{\ifnum 0=`}\fi \hrule \@height \arrayrulewidth \futurelet...
l.12 ... ...


