1\documentclass[a4paper]{article}
2\usepackage[a4paper,margin=2cm]{geometry}
3\usepackage{multicol}
4\usepackage{amsmath}
5\usepackage{amssymb}
6\usepackage{tcolorbox}
7\usepackage{fancyhdr}
8\usepackage{carbohydrates}
9\usepackage{tabularx}
10\usepackage{mhchem}
11
12\pagestyle{fancy}
13\fancyhead[LO,LE]{Food Chemistry}
14\fancyhead[CO,CE]{Andrew Lorimer}
15
16\setlength\parindent{0pt}
17
18\begin{document}
19
20 \title{Food chemistry}
21 \author{Andrew Lorimer}
22 \date{}
23 \maketitle
24
25 \subsection*{Carbohydrates}
26
27 \subsubsection*{Monosaccharides}
28
29 The smallest carbohydrates.
30
31 \chemname{\glucose[model=haworth, ring]}{\(\alpha\) glucose \\ \ce{C6H12O6}}
32 \chemname{\glucose[anomer=beta, model=haworth, ring]}{\(\beta\) glucose \\ \ce{C6H12O6}}
33 \chemname{\galactose[model=haworth, ring]}{galactose \\ \ce{C6H12O6}}
34 \chemname{\mannose[model=haworth, ring]}{mannose \\ \ce{C6H12O6}}
35 \chemname{\xylose[model=haworth, ring]}{xylose\\ \ce{C5H10O5}}
36 \setchemfig{cram width=2pt}
37 \chemname{\chemfig{(-[:90]HO)(-[:270]HOCH2)-[:-45](-[:270, 0.5]HO)-(-[:90, 0.5]OH)-[:45]D-[:135]E}}{fructose \\ \ce{C6H12O6}}
38
39\end{document}