I use Asymptote to make mathematical images and diagrams. This is a collection of diagrams I have made, along with their source code (click on an image to view its source). Feel free to copy the code and modify it to suit your needs.
Packages
Some of the diagrams use the following custom packages:
- The olympiad package, consisting of macros that are useful when making diagrams for the types of Euclidean geometry problems appearing on mathematical olympiads. This is particularly useful for marking angles and sides of a figure.
- The MonksTools package, co-created by Ken G. Monks and myself. This is particularly useful for drawing directed graphs and partitions.
If one of the diagrams below contains the line “import olympiad;” then you will need to download the olympiad package, and similarly for any other package listed above.