Examples of powerful LaTeX packages and techniques in use — a great way to learn LaTeX by example. Search or browse below.

PSTricks LaTeX Example 6: Drawing a polygon

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

Megan

PSTricks LaTeX Example 5: Graphing a trig function

Following on from example 4 which showed how to plot the graph of a function in LaTeX using pstricks, here we extend the example to show how trig functions such as cos, sin and tan can be plotted.
Original source: http://www.thelazymathematician.com/p/pstricks-examples.html

Megan

PSTricks LaTeX Example 1: Plotting points

A short example showing how to use the pstricks package for plotting points on a graph with axes.
Original source: http://www.thelazymathematician.com/p/pstricks-examples.html

Megan