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

5
votes
1answer
629 views

How to adjust the width of a wrap text sideways column header in tabular [duplicate]

I am trying to create table as below, in Texmaker. here i am facing following issues. To wrap text the column headers from 4 to 6 and align it center. Hspace on paragraph [row 3 last column] is ...
1
vote
2answers
522 views

Missing vertical line in longtable

I'm missing the vertical line at the right! What can I do? \documentclass[twoside, 12pt,a4paper]{article} \usepackage[utf8]{inputenc} \renewcommand{\baselinestretch}{1.5} % Uncomment for 1.5 spacing ...
2
votes
0answers
185 views

HTML-style table definition?

Is there any LaTeX environment which lets you express a table in a similar logical fashion to HTML or MediaWiki tables? Size defined by the number of cells found, rather than pre-specified in the ...
1
vote
1answer
244 views

Using `minted` environment inside a `tabu` table

I am trying to use a piece of highlighted code using the minted package inside a tabu table: \documentclass{article} \usepackage{minted} \usepackage{longtable} \usepackage{tabu} \begin{document} ...
2
votes
1answer
412 views

How to adjust the width of a wrap text sideways column header and width of a paragraph cell in tabular

I am trying to create table as below, in Texmaker. . here i am facing following issues. To wrap text the column headers from 4 to 6 and align it center. Hspace on paragraph [row 3 last column] is ...
2
votes
1answer
833 views

How to vertically center a table cell content when using sideways?

I have the following table: \documentclass{article} \usepackage{graphicx} \usepackage{multirow} \usepackage{adjustbox} \usepackage{rotating} \begin{document} \begin{table}[htbp] \begin{adjustbox}{...
6
votes
2answers
118 views

Alignment in multicolum [duplicate]

I have a problem with alignment in a multicolum, here's the code \begin{table}[H] \caption{Statistic values of dementia epidemiology over the world.} \begin{tabular}{ccrccc} \hline \multirow{2}{*}{...
4
votes
1answer
1k views

Adjustbox on a landscape page makes a table too small

I am trying to use adjustbox to scale down a table that is too large for a landscape page, but when I use it, the scaled table is much smaller than it needs to be relative to the size of the page. Any ...
9
votes
3answers
386 views

Defining tabular rows with macros using `\ifnum` leads to `Incomplete \ifnum`

I am trying to define tabular rows using a macro which shall perform an conditional definition of the tabular row according to a given parameter. Please consider the following MWE: \documentclass{...
2
votes
1answer
405 views

Automatically set the figure width depending on whether the layout is one or two column

I am wondering how do you usually deal with figure width when you are writing a paper. (use \linewidth, \textwidth ? others?) Maybe we can just define a "switch" and use it with ifelse package? (...
12
votes
3answers
5k views

Table with TikZ

I should create a table like the one here as example. I think that the best way to do a table like this one is generate some labels and use them to colorize the nodes in order to make it more ...
9
votes
1answer
677 views

Copybook for calligraphy

What is the best way to place each letter in a square as following: I want to learn Chinese calligraphy and make copybooks for calligraphy by myself, any help or suggestion will be appreciated!
2
votes
0answers
180 views

Document class with table in the header [closed]

I'm trying to write a document class in which the header of the first page has a table. The header of the following pages should have another table. Well, I solved this problem in the .tex file (user ...
3
votes
1answer
325 views

Adjust caption length to table length in hvFloat environment

I am trying to create a sideways-table with multi-columns. As I want title and table on the same page, I am using the hvfloat package. I'd like to get a caption that is as wide as my table, but it ...
3
votes
1answer
340 views

Add space to previous row

I have a table that looks somewhat like this: Group 1 1 2 Sub point 1 3 Subpoint 2 3 Group 2 3 4 Sub point 4 5 Pie! 3 1 Group 3 4 7 Cake? ...
1
vote
1answer
187 views

how to include subfigures in list of figures or sub tables in the list of tables

Currently, \listoffigures and \listoftables display only the root and not the sub parts. I there any way to make them display sub parts as well? I tried searching but found nothing that I can use ...
1
vote
1answer
976 views

Newcommand for table

I have to use certain table format again and again, so I decided to create a new command for better tex file readability. Table as such works but when I put a working table header then it gives me a ...
6
votes
2answers
181 views

Formatting inside a table

\documentclass{article} \usepackage{float} \usepackage{mathtools} \newcommand{\unit}[1]{\hat{\mathbf{#1}}} \begin{document} \begin{table}[H] \centering \begin{alignat*}{4} ...
10
votes
1answer
1k views

How can I center *and* decimal-align a PGFPlots table?

Here is the code I am working with: \documentclass{article} \usepackage{filecontents} \begin{filecontents}{measurements.dat} sample num-bugs num-part other-measure another 5 80 190 ...
2
votes
2answers
171 views

Need help with long and wide table; tried longtabu, longtable, sidewaystable and nothing seems to fit!

I've literally been spending hours, trying to fit this long and wide table with a series of packages: tabu, longtabu, tabularx, sidewaystable, but nothing seems to fit. This is for a thesis so I ...
1
vote
0answers
71 views

Unknown compilation error [closed]

I have a really strange compilation error in LaTeX. What is wrong with this piece of code which LaTeX sees but won't say. I really would like to say more about this problem, but it is really ...
1
vote
1answer
243 views

Few level enumerate across few rows in table

I would like to create result like below: First I was trying to do it using tabbing, but it doesn't work inside enumerate. So I found that it can work with table. How can I do this? ----- EDIT --...
2
votes
1answer
663 views

Vertically center elements in table doesn't work

I am trying to vertical and horizontal align items in a table. I tried to follow what I found on the internet, including on this site, but it seems not to work for the last column. Here is what I have....
3
votes
1answer
1k views

Calculations in Table using spreadtab

When I use this piece, \documentclass[a4paper,12pt]{report} \usepackage[inner=0.75in,outer=0.65in,top=0.75in,bottom=0.65in]{geometry} \usepackage{multirow} \usepackage{spreadtab} \usepackage{url} \...
4
votes
2answers
104 views

create label for graphics inside table cell and also add to table of contents

I would like to create a few command that allows me to reference figures inside a table and add the reference to the table of contents. \newcommand\fig[2]{ \addtocounter{figure}{1} \includegraphics[...
0
votes
1answer
68 views

How to change the endpoints of a picture in Latex but still keep the same length?

I am trying to make a table in LaTeX with 2 columns and 10 rows. Each row represents a different city and each column will represent a parameter. In each column I want to draw the mean and the ...
8
votes
1answer
935 views

Pgfplotstable one row in bold

Considering this MWE, I am looking to obtain bold style on a row. The highlight's style works on columns but not on row. \documentclass{standalone} \usepackage{pgfplotstable} \begin{document} \...
4
votes
1answer
7k views

How to put table caption on top without using float or floatrow package

I have got some very simple table; something of the sort: \begin{table} \centering \begin{tabular}{|c|c|c|} \hline 1 & 2 \\ \hline 3 & 4 \\ \hline \end{tabular} \caption{This is ...
1
vote
2answers
185 views

How to insert images in a table's colum?

I want to display my testing on some images. And i want to display it in the table. so the table has 3 column. first : number 2nd: image 3rd:sentence \begin{table}[!h] \centering \caption{...
23
votes
1answer
29k views

How to draw a double \hline in a table without interrupting vertical lines

I need to draw a double line after the first row in a table, but when using \hline twice, this interrupts the vertical lines: \documentclass{article} \begin{document} \begin{tabular}{|c|c|c|} \hline ...
5
votes
2answers
710 views

Can I make this table fit in portrait mode?

I have a table which I want to make fit in portrait mode. Do you think this is possible? Here is the minimal example: \documentclass[11pt,a4paper]{book} \usepackage[utf8x]{inputenc} \usepackage{ucs} ...
0
votes
1answer
205 views

PDFLatex tables are covering up text

I have a series of images that I'm displaying using a table environment. However, pdflatex places my table over the references portion of my paper. I've tried [htb!] options for the table, and it ...
5
votes
1answer
68 views

How to “count” some table cells and print the result?

Thanks to an answer from David Carlisle found on this site I managed to code this: \documentclass[a4paper,10pt]{article} \usepackage{colortbl} \usepackage{xcolor} \newcommand{\acell}[1]{\gdef\...
1
vote
1answer
639 views

Problem with m{} in tabular

Can someone please tell me why if I write this piece of code \documentclass[10pt,a4paper]{article} \usepackage[italian]{babel} \usepackage[utf8]{inputenc} \renewcommand{\rmdefault}{ptm} \usepackage{...
3
votes
1answer
260 views

Equation numbers under equations

I have three similar equations which I want on a same line. I put them in tabular environment nested within subequations following this: subequation in tabular. Now I have this code: \documentclass{...
4
votes
3answers
1k views

Misplaced \omit and \multicolumn in \IfEqCase

I have the following code with a command that creates rows for a tabular: \documentclass[letterpaper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage{xstring} \newcommand*{\condrow}[2]{ \...
6
votes
2answers
320 views

How does this TeX code generate automatic \hline's in tabular environments?

@AlexeyMalistov gave an answer to make LaTeX draw a \hline between each line in tabular without using \hline? in StackOverflow before TeX.SE existed. The same question was later asked on TeX.SE: ...
3
votes
1answer
927 views

How to make LaTeX (tabu, hhline) tables keep rowheights?

i want to typeset a long table across several columns / pages and want the table rows to keep register. my code looks basically like this: \documentclass{book} \usepackage{pagegrid} \usepackage{...
3
votes
1answer
112 views

How can tikzpictures in a tabular be centered independent of nodes?

I have the following tikzpicture inside a tabular and i would like to have the circles to be centered such that they line up in collumns and rows, even if there are nodes at different positions. How ...
2
votes
1answer
349 views

Multirow results in text overlapping border

when using multirow in the following example, the content of the multirow cell is placed above the cell border. Is there any means to remove the border automatically where multirow is used? Code: \...
7
votes
2answers
17k views

Formatting of Tables in Latex, using multirow and multicolumn together

When I used this piece down, I got. \documentclass[a4paper,12pt]{report} \usepackage[inner=0.75in,outer=0.65in,top=0.75in,bottom=0.75in]{geometry} \usepackage{graphicx} \usepackage{url} \usepackage[...
2
votes
2answers
3k views

Vertical space between tables vspace won't work

I have 2 tables, one above the other. At the moment I can't make any space between them in my report. The strange thing is I moved them in to a new blank document with all the same preamble and \...
4
votes
1answer
267 views

How to control the multirow table to fit in one column?

I have a multirow used in twocolumn format. The issue is that when I used some circled characters, the column of the table widened to invade the next column. How can I control the multirow table to ...
6
votes
1answer
888 views

Warning: Overfull \hbox in table

Consider the following example: \documentclass{article} \usepackage{booktabs,dcolumn} \usepackage{siunitx} \newcommand*\mc[1]{\multicolumn{2}{c}{Eleverne fra $9$.~#1}} \begin{document} \begin{...
11
votes
2answers
384 views

Table with all numbers in millions

What is the proposed way to set numbers in tables which are all in the millions? None of the numbers has a significant digit smaller than 1,000. Since it is a rather large table, I want to get rid off ...
2
votes
2answers
627 views

How to make a table with variable rows

This is my code extracted from a custom class file. \makeatletter \let\@tmemi\@empty\let\@tmemii\@empty \def\tmemi#1{\gdef\@tmemi{#1}} \def\tmemii#1{\gdef\@tmemii{#1}} \...
0
votes
0answers
52 views

How to write Euclidean division [duplicate]

I tried to use the tabular but the \hline spread over the whole line (even under the 77).
4
votes
2answers
473 views

How do you display table headers that are wider than the rest of the column?

I have a table with lots of columns, which only contain a short values, but have long headings. I think this table would fit width-wise on a single (landscape) page, if I could get the headings sit on ...
1
vote
1answer
138 views

Horizontal centering in table

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

Align along dot in tables

Does anyone know how to align the figure along dot within the tabular environment? I would like the figures to be under each other sharing the decimal dot as a common point of alignment. \begin{...