The pstricks package can be used to quickly draw polygons and other shapes in LaTeX, as an alternative to the TikZ package. This short example shows how to use pstricks to draw a polygon with some simple styling.
Original source: http://www.thelazymathematician.com/p/pstricks-examples.html
Our searchable collection of LaTeX examples is a great place to look when you're using a LaTeX package for the first time (or the first time in a while!).
Show off your awesome LaTeX skills by contributing examples to the gallery. You can publish any Overleaf project with a couple of clicks.
New examples of LaTeX packages and techniques are added all the time. Follow us on twitter for the highlights!