I want to draw a rectangle with a solid dot in each corner. How can I do this?
This is to give a variant from Marco's answer, concerning the Tikz part of his answer. It looks more like the pstricks answer and does not require that you enter the coordinates twice.
The code is
The result is
To draw inside LaTeX you can use the package
Compile the following example with xelatex or latex-ps-pdf
You get the result:
Compile with pdflatex: