I want to cross-refer a chemical reaction and to write chemical reactions I am using
\usepackage{chemformula}
to cite I am using
\usepackage{cleveref}
I want to cross-refer reactions using \cref{label}
. How can I do it?
MWE
\documentclass[a4paper,oneside,12pt,openright]{book}
\usepackage{amsmath,amssymb} %for typing the mathematical equations and symbols
\usepackage[utf8]{inputenc} % input encoding
\usepackage{csquotes} %for using quotes command:\hyphenquote
\usepackage[T1]{fontenc} % font encoding
\usepackage{etoolbox,ragged2e,siunitx,mathtools}
\usepackage{indentfirst} % paragraphs
\usepackage[paper=a4paper,left=22mm, top=22mm, right=15mm, bottom=22mm]{geometry} %paper geometry total={170mm, 257mm}
\usepackage{graphicx} %for figure
\usepackage{array} % for matrices
\usepackage{pgfplots} % for plots
\usepackage{caption} %names of figures and tables
\captionsetup[figure]{list=yes}
\captionsetup[table]{format=plain,labelformat=simple,labelsep=period}%
\usepackage[list=true,listformat=simple]{subcaption}
\pgfplotsset{width=10cm, compat=1.9}
\usepackage{color} %colors in document
\usepackage{xcolor}
\usepackage[english]{babel}% base language and spacing
\frenchspacing
\renewcommand{\baselinestretch}{1.2}
\usepackage{mathrsfs}
\usepackage{chemformula}
\usepackage{cleveref}
\begin{document}
I want to cross refer following reaction
\ch{2H2+ O2 -> 2H2O}
As per above \cref{label} water is formed.
\end{document}