Questions tagged [diagbox]

{diagbox} is a replacement of the old {slashbox} package, it is used to make table heads with diagonal Lines

Filter by
Sorted by
Tagged with
2
votes
2answers
58 views

diagbox and multirow: adjust the diagonal

\documentclass{article} \usepackage[table]{xcolor} \usepackage{graphicx,array,multirow,pict2e} \definecolor{lightgray}{gray}{0.9} \newcommand{\ra}[1]{\renewcommand{\arraystretch}{#1}} \usepackage{...
4
votes
1answer
157 views

How to remove unwanted horizontal line from diagbox

I'm using \diagbox in a table, but for some reason the horizontal line is still there. The table ends up looking like this: And on another note, the vertical lines don't completely join to the top ...
5
votes
2answers
305 views

How to properly draw diagonal line while using multicolumn inside tabular environment?

\documentclass[a4paper]{article} \usepackage[cjk]{kotex} \usepackage{enumerate, float, pgf, tikz, circuitikz, multirow, tabularx, longtable, pdfpages, makecell, hyperref, array, siunitx, diagbox} %\...
2
votes
1answer
64 views

Diagonal line through whole table

I am trying to set up an intercorrelation table showing results of two samples. However, for better visuals, I want to split this table into two parts by adding a diagonal line through whole table (...
1
vote
1answer
90 views

Using Slashbox/Diagbox in Pgfplotstable

I have a csv file in this form ,0.01,0.1,1.0,10.0,100.0 0,0.3837,0.8259,0.9386,0.9386,0.9386 1,0.3837,0.9464,0.9386,0.9386,0.9386 2,0.3976,0.95,0.9386,0.9386,0.9386 3,0.8259,0.9386,0.9386,0.9386,0....
1
vote
2answers
69 views

How to position text in the top of all columns in the upper row of a table [diagbox]

How can I get '1', '2', '3', '4', and 'Supply' (i.e. the entries in the first row (but in different columns)) on the same height (vertical position) as 'Destination' (i.e. at the top of the columns ...
0
votes
0answers
166 views

Help with diagbox and line-wrap inside tables

I would love some help with this. Basically, I am trying to have this table transposed, but either I am able to limit the size of each column (e.g. tabularx, tabu) to enable line-wrap or I have the \...
3
votes
1answer
391 views

How to create a multirow latex table with line on main diagonal?

I would like to create a Latex table with a line on the main diagonal. My problem: diagbox does not calculate the height in the right way for multirow fields. A small example: \documentclass[a4paper]{...
2
votes
1answer
356 views

Getting tabu to work with diagbox and more correctly

I have been fighting with my code for 5 hours now. How do I get \documentclass[english]{article} \usepackage[allowlitunits]{siunitx} \usepackage{booktabs} \usepackage{tabu} \usepackage{makecell} \...
1
vote
1answer
163 views

Diagonal cell line, extra cell space adjustment?

Why I got an extra navy space to the left in the header of the table? Also, I want the diagonal line to be fit properly, any help. \documentclass[a4paper,12pt]{article} \usepackage{pict2e} \...
2
votes
1answer
357 views

linewidth option not working with diagbox package and beamer

I'm trying to make an array in a frame environment of a beamer presentation. I would like to make a diagonal cell in this array with the \diagbox command. It works well but when I try to adjust the ...
1
vote
1answer
460 views

Diagonal line in table cell is not placed correctly with vertical text

I want to have a diagonal line from the top left hand corner to the bottom right hand corner of the first cell of my table. So I want it to look something like the left table: By just plainly using \...
1
vote
1answer
936 views

height of diagbox with tabularx and multirow

How can get the diagbox on the whole width of the connected rows? Problem now, its height seems to be only 2 textlines. Here is my MWE: \documentclass[a4paper,10pt]{article} \usepackage{multirow,...
2
votes
0answers
316 views

Diagonal line in math arrays

I have some arrays in math mode, such as the one below. I would like a diagonal line in a cell, something like diagbox (diagobx package) or diaghead (makecell package). But it seems that diagbox and ...
3
votes
3answers
2k views

How to set the width of my table?

I've some trouble to set the right width for my table. As you can see in the code below, I use the diagbox package to format my tables header. \begin{table} \centering \begin{tabular*}{\textwidth}{| ...
0
votes
1answer
405 views

Diagbox: compiling error

The version of Latex running on my Ubuntu operating system is the following: I'm having the following error message: when I compile alone the file where line 587 is, the compilation runs with ...
1
vote
1answer
624 views

Table header: diagbox line does not touch corner

Diagbox in table header does not touch corner of cell. Thank you for any help. Here is the Minimal Working Example (MWE), and at bottom a picture of what that MWE is rendering: \documentclass[11pt, ...
4
votes
3answers
2k views

Diagonal line in table header when header is tall

I've been trying to get a diagonally-split table header using the diagbox package, but I have a problem. Here's a working sample that shows the problem: \documentclass[12pt, a4paper, twoside]{...
3
votes
1answer
219 views

Align cell contents at top

Consider the following example: \documentclass{article} \usepackage{diagbox} \newcommand*\mc[1]{\multicolumn{1}{c}{#1}} \begin{document} \begin{table} \centering \begin{tabular}{l | *{8}{c}} ...
1
vote
1answer
564 views

Problem using diagbox in Beamer

I am trying to use diagbox in Beamer to create a north-east angled diagonal in a table cell using the tabular environment. It works in Beamer poster style but I can't get it to work for a standard ...
5
votes
1answer
4k views

Colored diagonal divided table cell

How can I fill a table cell with different colors? I have tried the diagbox package but it doesn't work as you can see. I am not so much interested in the diagonal line. I only want to separate the ...
8
votes
1answer
2k views

problem packages diagbox and cancel

When using cancel package to cross out something and the package diagbox is also loaded the line does not appear in the proper location. When diagbox is not loaded everything works ok. However, I need ...