Graphics, Figures & TablesDiagonal lines in table cell

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
pret
Posts: 4
Joined: Mon Apr 18, 2011 1:40 pm

Diagonal lines in table cell

Post by pret »

Hey all,

I want to cross out a specific table cell with 2 diagonal lines: one line from the topleft to the bottomright corner of the cell and one from the bottomleft to the topright corner of the table cell.

And I want this 'crossing' only for one specific cell, not for the whole table...

Help is much appreciated!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Stefan Kottwitz
Site Admin
Posts: 10322
Joined: Mon Mar 10, 2008 9:44 pm

Diagonal lines in table cell

Post by Stefan Kottwitz »

Hi pret,

welcome to the board!

You could use the slashbox package for this.

Stefan
LaTeX.org admin
pret
Posts: 4
Joined: Mon Apr 18, 2011 1:40 pm

Diagonal lines in table cell

Post by pret »

You could use the slashbox package for this.
I already explored the slashbox package but it doesn't fulfill my specific needs. I want two diagonal lines in a cell from opposite sides without any text involved. slashbox only allows 1 diagonal and produces an ugly result when there isn't any text specified.

(The crossing out of a cell indicates in my text that a certain row/column combination is not allowed)

Thanks in advance!
Post Reply