## Simple commutative diagram

In algebra, especially in category theory, we use so called commutative diagrams. Vertices denote objects such as groups or modules. Arrows represent morphisms, which are…

## Electrical circuit

Electrical documents, especially for learners, can contain a lot of formulas. So LaTeX with its strengths in math typesetting is a very good choice for…

## Drawing a graph

In graph theory, models and drawings often consists mostly of vertices, edges, and labels. So, it may be possible, to use a simpler language for…

## Highlighting in a formula

In a complex formula or equation, it can be useful to emphasize a specific part. We can achieve this, for example, through highlighting by color…

## Drawing molecules

In the Chemical formulae example we already encountered formulae for molecules. Now we like to see how to draw them. This means drawing a group…

## Distraction-free plotting in three dimensions

We will use pgfplots for a three-dimensional plot of an exponential function. We will apply a style for reduced and shifted axes, to get a…

## Plotting in polar coordinates

The standard pgfplots axis environment is used for Cartesian coordinates. However, pgfplots provides also logarithmic axes and polar axes. Functions can also be defined in…

## Plotting a function with minimal axes

We plot a sine function with PGFplots, similar to: http://latex-cookbook.net/cookbook/examples/grid-plot/ While a grid and a lot of ticks can be useful to inspect specific values…

## Plotting a function with a grid

We will plot a sine function with PGFplots. A default pgfplots axis will be rectangular box that contains the plot. Let’s look at this. In…