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

2
votes
1answer
892 views

Table overlapping text

I have a two column document and a table that I want it to be page wide. The problem is the table overlaps with the text after the table. Here is the table: \begin{tabularx}{\textwidth}[b]{ | p{1cm} ...
4
votes
2answers
4k views

LaTeX p cell width

totally new to LaTeX, this question occured today: I have a table made of 17 columns. Every column is 0,6cm wide. \begin{tabular}{p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0....
2
votes
1answer
3k views

Cell color partially overriding cell border

I am using \cellcolor to give a background to some cells. The cell color is partially coming over the border of the cell as you can see in the screenshot. This is my LaTeX code for the table. \...
5
votes
1answer
840 views

Calendar package

I'm trying to use the calendar package but I've a problem. The \DaysInWeek command doesn't work. I can't delete the Saturday and Sunday columns. Does anyone have a solution? Here is my code (I use ...
7
votes
2answers
250 views

Box/Table surrounded by a pattern/symbols?

I have a box for tips, but I would like to have a pattern surrounding it like in the example picture. Thank you for your help! \documentclass[ngerman]{scrbook} \usepackage{fontspec} \usepackage{...
11
votes
1answer
997 views

Setting table width with pgfplotstable

I am using pgfplotstable to create a table for the following data: Species Moles (1) Moles (2) Moles (3) Ca++ 1.8887e-4 1.9476e-4 3.4462e-2 CaCl+ 3.7537e-5 ...
2
votes
1answer
161 views

How to add background color to a single row which contains multicolumns?

I want to add background color in the header part of my table which contains grouped columns: \multicolumn{8}{ p{6.0in} }{ \textbf{ PARTNER } } & \hfill\textbf{ TOTAL PAYABLES } \\ A simple \...
3
votes
1answer
124 views

How to make multicolumn width the total of the declared width of each column?

For example I have this table: \begin{longtable}[c]{ p{1.0in} p{1.5in} p{2.0in} p{2.5in} } \multicolumn{3}{l}{ Partner } & \hfill Total \\ \end{longtable} But the result is that the '...
0
votes
1answer
217 views

Footnotes in tables [duplicate]

What is the best and simplest way to add footnotes in tables. I used \parnote but it did not give exactly what I am looking for. That is because I have three notes; two of them are same and should ...
3
votes
1answer
87 views

Table entry optimization

I am looking to get a better way of creating the following table: \documentclass{article} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage[letterpaper,tmargin=2cm,bmargin=2cm,...
3
votes
1answer
18k views

Is it possible to use \cline multiple times when using multirow?

\documentclass{article} \usepackage{multirow} \begin{document} \begin{table}[ht] \begin{center} \begin{tabular}{|c|c|c|c|c|c|c|c|}\cline{3-8} \multicolumn{2}{c|}{\multirow{2}{*}{}}&\multicolumn{3}...
2
votes
2answers
268 views

How to center title of multicolumn only on the multicolumns, not on all columns?

I have the following example LaTeX table code: \begin{tabular}{lllll} \hline \multicolumn{4}{c}{all clusters} \\ \cline{2-5} clust. size & no. clust. & (\%) & no. spec. & (\%) \\ \...
1
vote
0answers
507 views

How to dynamically set the row height of a table based on another adjacent table?

I have 2 tables side by side. Table 1 is dynamic and while table 2 is static (fixed content). I need to adjust the row height of table 2 which must be equal to total height of table 1 (like multirow) ...
3
votes
1answer
93 views

Problem with numbering of figures

I need to reset numbering of figures and tables to 1, 2, 3 and to get rid of numbering 1.1, 1.2, 1.3,... I tried many commands but nothing worked. Could you help me please? The .cls file is HERE. ...
10
votes
2answers
9k views

Center text in a single table cell

Suppose I have simple table. While I want the columns in general to be flush both right and left, there are certain cells that I want to be centered. \documentclass[12pt,a4paper]{book} \def\x{This ...
5
votes
1answer
5k views

How to place a multicolumn figure above a single column figure and a single column table?

I would like to place the following on the same page: A double column figure A single column figure A single column table I want the placement to look something like this:
2
votes
1answer
140 views

How to make this table?

I've been struggling to get the following result: Table N°: Title(1--footnote) ---------------------------- Category Values ---------------------------- One 200 Two ...
3
votes
1answer
672 views

MinionPro Number Styles: lining, tabular using pdfLaTeX

I have successfully installed the MinionPro font for LaTeX. It works with pdfLaTex. I also changed the number style to lining with: \usepackage[textlf]{MinionPro} However if I have a table with ...
7
votes
3answers
371 views

Position both math environment and tikz picture in the tabular

\usepackage{tikz} \begin{document} \begin{tabular}[b]{@{}ccc@{}} \begin{tikzpicture}[grow=right,sloped] \tikzstyle{level 1}=[level distance=2cm, sibling distance=2cm] \tikzstyle{level 2}=[level ...
3
votes
1answer
74 views

How can I list tabulars in the contents, or make tables with invisble captions

Is there a way to have simple tabulars be listed in the list of tables? I'd even put them in by hand if I knew how.. My tables look like this right now: \begin{center} \begin{tabular}{l c l} \...
7
votes
1answer
1k views

Difference between [h] and [H] in float position

I'm trying to choose the positions of my tables but I can't figure out the difference between [H] and [h]. I've seen both advised over my search. If I use [h] the row spacing is different than [H] use....
2
votes
1answer
85 views

Formatting a table

I am trying to format a table but everything errors since I am trying to put a display environment in an array (I also tried a tabular) environment. \documentclass{article} \usepackage{mathtools} \...
3
votes
0answers
517 views

Evenly split the columns of a multirow table in lyx

I would like to have a table like this: % Preview source code %% LyX 2.0.6 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \...
3
votes
1answer
324 views

Typesetting chord progressions

For this to work, you need to install the New Real Book fonts and the experimental realbookchords package by cgnieder, then compile with XeLaTeX or LuaLaTeX. I'm working on a simple set of macros to ...
1
vote
1answer
132 views

How to make a multi-definition inside table

I have a function with multi-definition And I want to take it into a table. But i don't know how do that. Please help me, the image below is the result I want to have.
9
votes
2answers
320 views

Making table cells independent of one another

I'm making a table of molecule structures and some information about them. A minimum working example looks like this: \documentclass{article} \usepackage[version=3]{mhchem} \usepackage{chemfig} \...
5
votes
3answers
217 views

How to execute codes inside a macro?

I use Michael Wichura's old Table macros (see http://www.pctex.com/addons.html) in several places, and I need to access them from within another macro. The problem (I think) is that some of the ...
6
votes
1answer
2k views

Creating multiplication table of symmetric group S_3

How one can create multiplication table of symmetric group S_3? (In that table 6 columns and 6 rows) Edit: here some progress: \begin{table} \begin{tabular}{l|llllll} ~ & e & a ...
1
vote
1answer
113 views

Referencing table [duplicate]

I have a big problem with referencing my tables. Below is how I do it. The pdf seems to know which table I refer to (the reference links me to the right table), but instead of a number it writes "??". ...
0
votes
1answer
175 views

how to break lines in a table?

my code is here \begin{table}[t] \centering \bgroup \def\arraystretch{1.2} \begin{tabular}{|c|c|c|} \hline Frucht graph & Graph $K_3$ & An homomorphism from Frucht graph to $K_3$\\ \...
1
vote
0answers
31 views

how can i add more space on Table [duplicate]

My code is here. \begin{table}[t] \centering \begin{tabular}{|c|c|c|} \hline Graph $G$ & Graph $H$ & An isomorphism between $G$ and $H$\\ \hline \multirow{8}{*}{\includegraphics[height=4cm]{...
7
votes
1answer
4k views

\textheight in LaTeX does not correspond to the size of the frame when using \resizebox

I am trying to add a table to my Beamer presentation and is trying to resize it to the frame. To illustrate here is a working example where the table is originally too high to fit into the page. When ...
4
votes
1answer
192 views

get width of longest line in table column

Question In a longtable, how do I retrieve the width of the longest line for each column? Background I'd like to use the longtable environment in combination with the ltablex package. The latter ...
1
vote
1answer
1k views

Using multicolumn and multirow together with spreadtab

I tried this piece down \documentclass[a4paper,12pt]{article} \usepackage[inner=0.75in,outer=0.65in,top=0.75in,bottom=0.65in]{geometry} \usepackage{multirow} \usepackage{spreadtab} \usepackage[sc]{...
2
votes
1answer
589 views

Table Numbering And Caption in Same location

My table and caption are located on the same line and this started happening after I used a different class file for the conference I am applying towards. Here is a picture of what I mean: (Normally ...
3
votes
1answer
880 views

Plot with Min/Max bar and two average points

I am trying to stop using Excel charts in my academic papers and rather use something more LaTeX integrated such as Tikz. My current Excel chart looks like that: As can be seen, any combination from ...
4
votes
2answers
244 views

Parsing rows (`\\`) and tab characters (`&`)

I have a use for parsing what would look like tabular input data, except that it isn't part of a tabular environment, but rather the argument to a macro. So I developed two macros, \readTABrow which ...
4
votes
1answer
13k views

How shift a part of the long table to the next page in LATEX?

I have a long table in LATEX, where is not visible completely in a page. I want to shift a percentage of a table into the next page. e.g., 70% of the table in the current page and remained 30% in the ...
5
votes
1answer
623 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
513 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
180 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
403 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
805 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
117 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
375 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
402 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
672 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!