It would be nice to integrate Tikz as part of the blog.

```
\begin{tikzpicture}
\def \n {5}
\def \radius {3cm}
\def \margin {8} % margin in angles, depends on the radius
\foreach \s in {1,...,\n}
{
\node[draw, circle] at ({360/\n * (\s - 1)}:\radius) {$\s$};
\draw[->, >=latex] ({360/\n * (\s - 1)+\margin}:\radius)
arc ({360/\n * (\s - 1)+\margin}:{360/\n * (\s)-\margin}:\radius);
}
\end{tikzpicture}
```

## Code

```
using TikzPictures
tp = TikzPicture(
"""
\def \n {5}
\def \radius {3cm}
\def \margin {8} % margin in angles, depends on the radius
\foreach \s in {1,...,\n}
{
\node[draw, circle] at ({360/\n * (\s - 1)}:\radius) {$\s$};
\draw[->, >=latex] ({360/\n * (\s - 1)+\margin}:\radius)
arc ({360/\n * (\s - 1)+\margin}:{360/\n * (\s)-\margin}:\radius);
}
""")
```

`LoadError: syntax: invalid interpolation syntax: "$\"`

## Citation

BibTeX citation:

```
@online{krishnamurthy2022,
author = {Krishnamurthy, Dheepak},
title = {Using {Tikz} with {Pandoc}},
date = {2022-02-19},
url = {https://kdheepak.com/blog/using-tikz-with-pandoc},
langid = {en}
}
```

For attribution, please cite this work as: