Skip to main content

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
4 answers
183 views

Problems with coloured tables with \multirow and \multicolumn and text-wrapping for table with a lot of text. Getting blank, white areas

I have a table where I need to display lots of text in the first column and the first 3 rows. I therefore require to wrap the text so I have been using centered |p| cells. Since i have so much text i ...
JustAnotherPerson's user avatar
3 votes
3 answers
130 views

Diagonal box in a table

I'd like to have a proper diagonal line in the top left cell - going from the top left corner to the right end corner. Moreover, the vertical lines in the main body of the table are not consistent, ...
Vika's user avatar
  • 457
2 votes
1 answer
79 views

advice and suggestions for table styles

Hi there I'm working on my thesis and looking for the best way possible to present tabular data. I don't have much experience with LaTex, hence, I though to seek for some ideas and hits on how to do ...
Matteo's user avatar
  • 307
0 votes
1 answer
51 views

How to centralize text inside this table, increase the columns height and create a column divide in two with a diagonal line?

Well, I have been struggling for a long time with this single table. I would like to create a fancy table for the patients, colored and beautiful. I tried to centralize the text, however, I am always ...
Francesca's user avatar
1 vote
1 answer
255 views

Why doesn't the diagonal line produced by \diagbox touch the table cell corners? [duplicate]

I was trying to use \diagbox, but It's not going from one corner to another corner in a cell (look on image). Anyone could help me? Please. Thanks. \documentclass [a4paper,11pt] {article} \...
Brendon Peres's user avatar
3 votes
2 answers
397 views

Resize diagbox according to a cell with tabularray

In the following code, the diagbox is not expanded to occupy the whole cell. I can modify height and width (optional parameter of diagbox), but which value can I give to this parameters ? \...
jowe_19's user avatar
  • 939
2 votes
2 answers
374 views

Help me solve problems in my class schedule table

I'd like to make a class schedule. I have written the following, which is partly adapted from an example given by someone else. \documentclass[9pt]{extarticle} \RequirePackage{scrextend} \...
Thomas Peng's user avatar
2 votes
1 answer
103 views

I would like to draw the graph shown in the attached image?

I would like to draw the graph shown in the below image? I tried and reached this graph showing the below image with Latex code? \documentclass{standalone} \standaloneconfig{border=2mm 2mm 2mm 2mm} %...
Fadil's user avatar
  • 31
1 vote
1 answer
91 views

Using diagbox package alters text font in JASSS Latex Template

I am using \diagbox package to format tables using [JASSS template] (https://www.overleaf.com/latex/templates/jasss-article-template/pnrdvncxsjmn). However, upon using it the font type, size and ...
user3856486's user avatar
1 vote
2 answers
253 views

How to draw a diagonal border with multiple lines?

i'm trying to draw a table with the first cell splitted by a diagonal border. But since my headings have 2 lines, the other cells also have 2 lines, and then the borders are incomplete, generating &...
Eduardo Rosa Kras Borges's user avatar
1 vote
2 answers
400 views

Package diagbox ruins my \hline

Preamble: \documentclass{article} \usepackage[a4paper, total={190mm, 280mm}]{geometry} % Greek \usepackage[LGR, T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[greek]{babel} \usepackage{...
leech's user avatar
  • 135
1 vote
3 answers
687 views

\diagbox misbehaving in multicolumn and multirow

I am trying to generate a table based on this diagram here: I based my LaTeX code around the solution found at https://tex.stackexchange.com/a/269273/231499. My attempt; source code: \documentclass{...
AlphonseVA's user avatar
4 votes
2 answers
454 views

Diagbox line issues with cell height

I tried various solutions posted here but I can't find the appropriate one to solve my issue. I have a long text header in the second column that is affecting the diagonal line and celle height in the ...
fpianz's user avatar
  • 43
1 vote
3 answers
517 views

Setting the vertical height of a row that uses `diagbox`

I am trying to set the vertical height of a row which uses diagbox to be smaller, but past techniques such as \setarstrut and cellspace appear to not be working thus far. In particular, I am able to ...
Mathews24's user avatar
  • 121
1 vote
3 answers
2k views

Diagbox line does not touch corner

The diagonal does not touch the corner. Thank you for any help. % Table generated by Excel2LaTeX from sheet 'Planilha1' \begin{table}[htbp] \footnotesize \centering \captionsetup{width=0.75\textwidth}...
diogo lugarini's user avatar
3 votes
2 answers
85 views

diagonal line in table across two column

Want to get diagonal line as highlighted in red. MWE \documentclass{article} \usepackage{booktabs} \usepackage{etex} \makeatletter% \setlength\textheight{56\baselineskip}% \addtolength\textheight{-...
user avatar
0 votes
0 answers
113 views

diagbox with babel RTL tabular issue

I have issue with \diagbox in RTL tabular (babel with bidi=basic, lualatex engine), with xelatex bidi package provide patch of diagbox commands for right to left tabular, but for lualatex there isn't. ...
Salim Bou's user avatar
  • 17.1k
0 votes
1 answer
83 views

including diagbox changes unrelated picture

Running the input \documentclass[a4paper]{article} \pagestyle{empty} %\usepackage{diagbox} \begin{document} \begin{picture}(10,30) \put(5,0){\vector(0,1){30}} \end{picture}% \end{document} through ...
user avatar
4 votes
3 answers
2k 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{...
Ilonpilaaja's user avatar
  • 1,335
4 votes
1 answer
2k 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 ...
Alice's user avatar
  • 41
6 votes
2 answers
1k 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} %\...
Andrew Cho's user avatar
4 votes
2 answers
292 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 (...
Jens's user avatar
  • 1,441
1 vote
1 answer
188 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....
Akhmad Zaki's user avatar
1 vote
2 answers
313 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 ...
Anna's user avatar
  • 157
0 votes
0 answers
330 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 \...
CMichael's user avatar
3 votes
2 answers
2k 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]{...
PSaR's user avatar
  • 31
2 votes
1 answer
717 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} \...
Make42's user avatar
  • 1,782
2 votes
2 answers
319 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} \...
Muhammad Abdulrasool's user avatar
2 votes
1 answer
909 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 ...
JeanJouX's user avatar
  • 621
2 votes
2 answers
1k 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 \...
user3202098's user avatar
2 votes
2 answers
3k 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,...
wabu's user avatar
  • 55
4 votes
3 answers
1k 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 (diagbox package) or diaghead (makecell package). But it seems that diagbox and ...
Stéphane Laurent's user avatar
2 votes
3 answers
4k 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}{| ...
s__o_'s user avatar
  • 23
0 votes
1 answer
703 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 ...
cProg's user avatar
  • 591
1 vote
2 answers
1k 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, ...
cProg's user avatar
  • 591
7 votes
4 answers
5k 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]{...
Master_T's user avatar
  • 325
3 votes
1 answer
338 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}} ...
Svend Tveskæg's user avatar
1 vote
1 answer
966 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 ...
Rodney Beard's user avatar
6 votes
2 answers
8k 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 ...
user4811's user avatar
  • 4,185
9 votes
1 answer
4k 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 ...
Dom's user avatar
  • 301