# Aspirin

> Acetylsalicylic acid: a benzene ring with a carboxylic acid and an ester group. A chemfig example with its LaTeX source.

A chemfig example in the TeXeR TikZ library: https://texer.org/library/chemfig/aspirin

Package: [chemfig](https://texer.org/library/chemfig.md), on CTAN at https://ctan.org/pkg/chemfig.

Tags: aspirin, ester, carboxylic acid, drug

## Source

```latex
\usepackage{chemfig}

\chemfig{*6(=-=(-COOH)-(-O-[::-60]C(=[::-60]O)-[::60]CH_3)=-)}
```

## As a complete document

The same example in a document that compiles on its own with pdfLaTeX:

```latex
\documentclass[margin=3mm]{standalone}
\usepackage{tikz}
\usepackage{xcolor}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{chemfig}

\begin{document}

\chemfig{*6(=-=(-COOH)-(-O-[::-60]C(=[::-60]O)-[::60]CH_3)=-)}
\end{document}
```
