Linked Questions

45
votes
2answers
41k views

Diagonally divided table cell [duplicate]

Possible Duplicate: Diagonal lines in table cell I'd like to include a table of numbers in my document. Those numbers are defined by two parameters n and k, and I'd like to achieve a presentation ...
17
votes
3answers
40k views

slashbox alternative [duplicate]

Possible Duplicate: Diagonal lines in table cell Is there a better way to label both axes of a table at the same time rather than using slashbox? It looks kind of ugly.
30
votes
1answer
94k views

LaTeX table cell with a diagonal line and 2 sub cells [duplicate]

Possible Duplicate: Diagonally divided table cell Diagonal lines in table cell I'd like to have a LaTeX table, where the top left cell marks what the headers are to the right and also mark what ...
5
votes
1answer
2k 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 ...
2
votes
1answer
2k views

Inclined line between two cells in a table [duplicate]

Possible Duplicate: Diagonal lines in table cell How can I put an inclined line between two cells in a table? I know that \cline{i-j} put a partial horizontal line, but I want that this line is ...
4
votes
1answer
2k views

Is it possible to create a table with two entries in one cell separated by 45 degree line? [duplicate]

I want to create a table like the below picture in LaTeX. Does anyone tried this before? Can you introduce how to create such a table? The problem is that I don't know to how create the slash line ...
1
vote
1answer
1k views

How to create slant line in a table? [duplicate]

I want to split a table in two part as shown below. How do i split a cell so that i can write "Inferred" and "Ground truth" as shown in following picture.
2
votes
0answers
1k views

Creating table as shown in the picture [duplicate]

I want to create a table in LaTeX which begins as shown in the figure below. How do I make it using the table/tabular package? I made it using TikZ, but I am sure this is not the efficient way to go ...
1
vote
1answer
253 views

tabular-diagonal separating line [duplicate]

I want to add a diagonal separating line in a title box of a tabular, but the line doesn't appear (I draw it in red on the picture) \begin{center} \begin{tabular}{|l|*{2}{c|}} \hline \...
0
votes
0answers
69 views

Table headers and chain aligment [duplicate]

I have 2 questions. 1- How to use a diagonal seperator for the table hearders n and k in a good way. 2- How to align the back of the arrow to the rightand the head to the left of the numbers? \...
45
votes
2answers
25k views

How to diagonally divide a table cell … properly?

There have been many threads discussing solutions to the task of drawing a diagonal line in a table cell. There are also two packages to do this, slashbox and the better looking makecell with its \...
33
votes
3answers
6k views

Strike out a table cell

I'm trying to strike out cells in a table, without specifying the cell width. To do so, I looked at the code of colortbl as this seems to a very decent job with filling cells. Now I played around ...
8
votes
2answers
7k views

Cross out arbitrary table cells with diagonal line

I'm looking for a way to use a diagonal line to cross out a table cell which may or may not be empty, and without having to manually specify the cell's width and height. (It would also be great if ...
2
votes
3answers
3k views

How to make a transportation tableau

I am trying to make a transportation tableau in LaTeX. The tableau I wanted looks like the one below.
6
votes
2answers
2k views

Multi-colored cell background

I have been successfully using xcolor and its \cellcolor command for a while, and produced beautiful results with it. However, I would like to create some more advanced background effects: color the ...
6
votes
2answers
1k views

Table with a diagonal line that crosses cells

How can I draw the following table in LaTeX? I tried looking here but from the examples I can't figure out how I can draw this. Edit: After browsing a few more times I found this with the help of ...
6
votes
1answer
979 views

Split a tabularx cell at its diagonal when the X column specification is used?

How do I split a cell diagonally, when I'm using tabularx with X column, i.e. \begin{tabularx}{\textwidth}{X}? I've seen many answers on this topic on TeX.SE, but none of them are applicable to cells ...
1
vote
1answer
2k views

Backslash in tables: end in corner

Is it possible to end the backslash in the left upper corner of the table? \documentclass{scrartcl} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} \begin{document} \...
5
votes
1answer
506 views

Clashing multirow with tikz

In order to get a diagonal line in a cell, I picked up a piece of code from Diagonal lines in table cell The code adapted to my situation works fine until I decide to use multirow. Here is the MWE. ...
2
votes
1answer
528 views

label in subcaption and customize cell size of an array

Using the following code \documentclass[11pt]{article} \usepackage{caption} \usepackage{subcaption} \DeclareCaptionSubType*[arabic]{table} \captionsetup[subtable]{labelformat=simple,labelsep=space} \...
0
votes
1answer
946 views

How to create multicolumn with a diagonal line [duplicate]

How to join two columns in a table row and add diagonal line like this: +-----+--+--+--+ | \ k | | | | | \ | | | | | \ | | | | | M \| | | | +--+--+--+--+--+ | | | | | | | | | ...
3
votes
1answer
180 views

Drawing a matrix

I’m new to latex and I need your help with the matrix in the picture below: mwe \documentclass{article} \usepackage{amsmath,blkarray} \begin{document} \[ \begin{blockarray}{ccccc} \begin{block}{c(...
0
votes
1answer
164 views

How to create those tables in Latex? (value table)

I'm looking for a code to create those two tables, could someone help me?
1
vote
2answers
109 views

Tabularx alignment problem in the header with tikz figures and a diagonal line

In a table created with tabularx of 6 columns and 7 rows (in the minimal example, I deleted some), I want to place figures created with tikz in the header. These figures have already been defined ...
1
vote
1answer
125 views

Problems when including diagonal line in a table cell

I am trying to use this solution which uses tikz, however I cannot get it to compile properly. I get the error: Misplaced \omit. ...llcolor[HTML]{EFEFEF}\diag{0.2em}{1cm}{a}{b} Searching for that ...
0
votes
1answer
97 views

getting a distributed spacing for math expressions in tab [duplicate]

I've searched many places and I can't find something close enough to my situation. Basically, I searched on other posts suggesting to use tabu instead of tabular because I would have to use \(content\)...
2
votes
1answer
55 views

Add diagonal to matrix

How can I draw a diagonal that on one side, says Ratings and on the other, books? This is an example made by @Marmot: \documentclass{article} \usepackage{amsmath,blkarray} \begin{document} \[ \...
1
vote
0answers
26 views

Diagonal line through a cell in a table

I have the following table: \begin{table}[h!] \def\arraystretch{1.5} \centering \begin{tabular}{l|llll} & \multicolumn{1}{c}{$00$} & \multicolumn{1}{c}{$01$} & \multicolumn{1}{c}{$10$} &...