I've searched the Internet, but got nothing. In LaTeX, we can use \square for square, but how can we get a cube, I want to use it in an equation. Here is the picture:

|
The
Those commands won't directly work in math mode, but you can use a
Of course, you could define a command if you are going to use the cube several times:
|
|||||||||||||
|
!in front of it to make it an image. I think it would help to see an example. – Roelof Spijker Jan 9 '12 at 15:28\tikz\draw (0,0,0) rectangle (1,1,0) (0,1,0) -- (0,1,-1) -- (1,1,-1) --(1,1,0) (1,0,0) -- (1,0,-1) -- (1,1,-1);– Roelof Spijker Jan 9 '12 at 15:36