I would like to slightly modify this pspicture:

enter image description here

Each of the crosses (as well as the numbers, although that is not so important) should be centred at the centre of their each squares. As you can see in the example below, I have tried both using \rputand uput, but neither seems to work. One provides correctly the x-coordinate, while the other gets correctly only the y-coordinate.

The mwe below uses the answer to this question. Although there is some imporvement, some crosses are still off:

enter image description here

How could I achieve the desire result?

Thank you in advance.

PS: Any modifications regarding the cells with the numbers is also very welcome.

Here is the mwe:




%\psset{unit = 1}



%zeroth row
\rput[B](-4,-4){$\substack{(0,0)\\ \! \\(4,2)}$}
\rput[B](-2,-4){$\substack{(1,0)\\ \! \\(3,2)}$}
\rput[B](0,-4){$\substack{(2,0)\\ \! \\(2,2)}$}
%first row
\rput[B](-2,-2){$\substack{(1,1)\\ \! \\(3,1)}$}
\rput[B](0,-2){$\substack{(2,1)\\ \! \\(2,1)}$}
\rput[B](2,-2){$\substack{(1,0)\\ \! \\(3,1)}$}
%second row
\rput[B](0,0){$\substack{(2,0)\\ \! \\(2,2)}$}
\rput[B](2,0){$\substack{(1,0)\\ \! \\(3,2)}$}
\rput[B]{0}(4,0){$\substack{(0,0)\\ \! \\(4,2)}$}
%third row
%fourth row




1 Answer 1


instead of \rput[B](-4,0){$\bigtimes$} use

  • Oh, sorry. I thought the code was \rput(! \pstnodescale\space -4 0){$\bigtimes$}. Anyway, your solution works perfectly. Thank you! (I can't upvote yet because of my low reputation.)
    – Javi
    Aug 24, 2023 at 11:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .