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

1
vote
1answer
5k views

Increase row height of tabularx [duplicate]

I'm using the tabularx package from within memoir for creating a table. I'm trying to set the row height and found for tabular the command \setlength{\extrarowheight}{40pt} However, with my ...
4
votes
3answers
907 views

How to top align text and image in table?

I am facing some problem in aligning (top-aligned) image and text in a table. \documentclass[11pt,table,a4paper]{article} \usepackage{array,ragged2e} \usepackage{graphicx} \usepackage[top=2cm, bottom=...
3
votes
1answer
122 views

multi row tables

I'm trying to make a table that has column headings with the units underneath the heading. I using the \multirow command, below is a section of the code (I can't add the image of the table output as I ...
3
votes
1answer
62 views

When using the 'longtable' package, how can I have the table title on the second page indicate that it's a continuation from the previous page?

\documentclass[letterpaper]{article} \usepackage{longtable} % Longtable package \usepackage[margin=1in]{geometry} % Margins \usepackage{booktabs} % Nicer horizontal lines ...
4
votes
1answer
76 views

fitting arrays on

How can I get two matrices to fit side by side, centred on the page? Is there a way of automatically printing to 2 decimal places? \documentclass{article} \usepackage{graphicx,amsmath} \begin{...
2
votes
1answer
102 views

Blank space above centered text in tabularx

I have a problem in my report with tabularx and center... I try to center the content of some columns but I don't know why, is there a blank space above the centered text... Here is my code \...
5
votes
1answer
677 views

Make less space between lines on a table

I have a big table where I need to use multiple lines on each cell. The table is too big though so I need the space between lines on each cell to be smaller. I found on another post that I could use ...
6
votes
1answer
198 views

No horizontal bar in table for space between column

I'm trying to create a table with underlined column groupings. I have an extra space between the groupings using @{\hskip 1cm}, but I don't want the underlining to extend over this extra space. Is ...
5
votes
2answers
312 views

How to increase the table row height for furigana(ruby) in XeLaTeX?

The ruby package provides phonetic guide (really, it's possible to use in any language), however, if to use ruby inside the table, the row height will not increased for ruby: I also used the ...
6
votes
3answers
222 views

Table heading too low if on the top of the page

Consider the following MWE: \documentclass{article} \usepackage{lipsum} \usepackage{booktabs} \begin{document} \lipsum[1] \clearpage \begin{table}[htbp]% \centering% \caption{Test table.}%...
9
votes
2answers
6k views

Variable-width horizontal rules with \cline intrude cell text

I have come to learn how to make a variable-width horizontal rule with \hline from the LaTeX companion and with \cline from Horizontal rule with adjustable height behaving like \cline{n-m}. But the ...
13
votes
1answer
3k views

How to right align columns but center align header row using pgfplotstable?

I am a newbie with pgfplotstable: I would like to right align the columns of the table containing my data, but keep the headers center-aligned. Here is the code for the tables - does anyone know how ...
2
votes
0answers
484 views

Defining the position of a tabularx environment [closed]

In my report, I use a tabularx environment within a mdframed environment. I don't know why but I have to delete the table environment surrouding my tabularx environment when I want a table in my ...
11
votes
2answers
177 views

Table without counting ampersands

I want a command like \mytable{4}{ a & b & c & d & e & f} would be the same as \begin{tabular}{cccc} a & b & c & d\\ e & f\\ \end{tabular} and \mytable{2}{ ...
8
votes
1answer
552 views

Remove footnote marks from \listoftables

I'm using footnote marks in my table captions like this: \caption{This is title\protect\footnotemark with a foot note} and then I just use a \footnotetext{Closer explanation...} . This works just ...
4
votes
1answer
1k views

Table and \hlines too short or wide

Here is a MWE of what I am trying to do. \documentclass[a4paper]{article} \usepackage{tabularx,booktabs} \usepackage{color,colortbl} \begin{document} \begin{table}[htb] \centering \begin{tabularx}{\...
3
votes
3answers
284 views

Free cell alignment in a table

I want to use the package tabu which I've heard is the latest and greatest package for creating tables to generate a table that looks like this: ------------------------------------- |A | ...
4
votes
1answer
1k views

What's wrong with this table code in beamer?

I've been struggling for a long while with this code trying to solve the problem there apparently is. I basically copied the code from this page http://en.wikibooks.org/wiki/LaTeX/Tables in the "...
6
votes
0answers
442 views

Making LaTeX tabular environment behave well under copy/paste [closed]

Whenever I copy a table created with the LaTeX tabular environment from the output .pdf file and paste it into a word processor, all the entries go to different lines. Worse, the first column is ...
5
votes
1answer
454 views

How can I insert a table within a figure's caption?

I have a small table that I would like included in the caption below a tikzpicture enclosed within a figure. Is this possible?
0
votes
1answer
326 views

hyphenation of chemical names

i use the datatool package to read a csv table which contains names of chemical compounds in one column. Those names are very long and have to be hyphenated. The problem is that these names contain -. ...
1
vote
1answer
537 views

threeparttable - appending commands to \TPTnoteSettings does not work if package called with flushleft option

In the tablenotes environment defined by the threeparttable package, I wanted to resize my notes globally throughout my document. I have found this answer to a question somebody posted in regards to ...
5
votes
2answers
4k views

place footnote under table above caption

I would like to place a footnote under a table and above the caption. Since I am using the floatrow package I went with \floatfoot, however there is no option to position floatfoot below the table and ...
9
votes
1answer
507 views

LaTeX's datatool package together with siunitx

I want to use the datatool package to read csv files and parse them to LaTeX tables. Furthermore I want to use siunitx to format the numbers from the csv file. Have a look at the following example: \...
3
votes
1answer
136 views

Spacing between LaTeX Tables

I generated two separate tables in chapter of the appendix of all tables. Of course, LaTeX fit the two tables in the page in order to use the whole page. Instead, since they are the last two I'd like ...
2
votes
1answer
2k views

How can I split a column into multiple rows?

How can I get [1, 2, 3] in the table below to each appear in a separate row within the same column (with a line between each)? THANKS. \documentclass[11pt,a4paper]{book} \setcounter{secnumdepth}{4} \...
4
votes
1answer
212 views

List of definitions

I have a plain-text document that I would convert to LaTeX. The document is not a typical text document but a list of definitions including some short prefaces and optionally "post-faces". Example (...
5
votes
2answers
81 views

Forcing case in table

I was wondering if it was possible to force the case for a specific column in a table? Let's say the 3rd column of the following table to be lowercase. \documentclass[10pt,a4paper]{article} \...
2
votes
2answers
182 views

How to *disable* Lua's Microtype for a given tabular column?

I'm looking for a way to disable Lua's Microtype (note the capital M - to distinguish from the lower case microtype package) in the first tabular column of the MWE given below: \documentclass[a4paper]...
4
votes
2answers
108 views

Add header to the table

I want to create the table as follows in latex. Note, the table below is created using excel. So, far I have created something like this: Observed-modeled |observed-modeled| Observed-modeled |...
2
votes
2answers
8k views

Indentation after '\tabular' environments

I was filling some tables for my progress report and noticed something were odd. The following text/tables are indented. MWE: \documentclass[12pt, oneside]{book} \usepackage[ngerman]{babel} \...
1
vote
1answer
96 views

LaTeX: How to get the following output in table?

I am writing a research document in which I need to merge two columns, I did the code for it but not getting desired output, Can anyone please tell me ? what's wrong in my code.... here is my latex ...
2
votes
1answer
287 views

Long table with tiny sized for columns gives misaligned headers

This code gives me misaligned headers. Any idea how to fix it? \documentclass{article} \usepackage{longtable} \usepackage{array} \begin{document} \begin{center} \begin{longtable}{|>{\tiny}c|>{...
12
votes
1answer
386 views

Render rfc4180 compilant CSV as table

Is there a LaTeX package, which would import data from csv and honour the quotation escaping? To be exact I mean one using the rules 1. - 7. of http://tools.ietf.org/html/rfc4180#section-2 Neither ...
5
votes
1answer
1k views

split a horizontal line into serveral lines in a table

I know \cline{i-j} to span a line from column i to j. But if in one line, I want a line only spanning from {1-1} and then {3-3} for example, how can I make it? | a | b | c | -- -- |d | e | f | ...
3
votes
1answer
501 views

How to color the font of a single row in a table, while using a paragraph column?

I tried to color the text of the headers of my tables. Sadly it doesn't work properly as soon as you use it with paragraph columns. Below is my MWE presented. The header in the first table is as I ...
4
votes
2answers
476 views

How to color my (custom) lines/rules in a table contained by mdframed?

As a follow up to my recent question: Now I'd like to put some color on to that line/rule. In the MWE below, \arrayrulecolor{blue}\mycline{1-1} throws an error (undefined control sequence with respect ...
2
votes
4answers
269 views

Problem with custom vertical-alignment and/or length of lines/rules in tabular environment

As a follow-up to my previous question: In my table / tabular, \cline{1-1} gives me the correct vertical position but not the right horizontal length . In contrast, \rule{\mycustomlength}{0.4pt} ...
8
votes
2answers
2k views

How thick a rule does \hline produce?

How thick a rule does \hline produce (in a bog-standard tabular environment) ?
2
votes
1answer
518 views

xstring StrSubstitute and table

I got a problem with xstring \StrSubstitute in combination with a table. I would like to replace newline (\\) in a variable with the \newline command to generate a second line in a paragraphed table ...
6
votes
1answer
528 views

Command for the table Ruffini-Horner algorithm

I am trying to code a command in LaTeX to type the tables used in the computation of the Ruffini-Horner algorithm. You can see in the Wikipedia link above that these are rather simple tables. There is ...
12
votes
1answer
345 views

Diagram with stacks

So this is what I would like to have (please don't mind my awful paint skills): And this is what I got out of tikz: Using this code: \documentclass{article} \usepackage[english]{babel} \...
1
vote
0answers
166 views

Footnotes in tables and shaded environment [closed]

I have a problem with having my footnotes on the same page with the footnotemark. What I use to have them inserted into the table or a shaded box is \footnotemark and \footnotetext pair. But the text ...
4
votes
1answer
127 views

\hline initialises first cell

\hline initialises the first cell with being empty. This results in having the vertical lines being draw. \documentclass[12pt]{report} \usepackage{graphicx} %Used for importing grapics \usepackage{...
4
votes
2answers
132 views

Adding a 'bridge' or link between two rows in a table

I'm making a report and I've been asked to do something which I have no idea is even possible or not. I have this table: \begin{table} \begin{center} \caption{Cryostat-In Pin Outs and Resistances} \...
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 ...