Code: Select all
Code, edit and compile here:
\documentclass[12pt]{article}\usepackage{hyperref}\renewcommand{\theequation}{\thesubsection.\arabic{equation}}\begin{document}Start Section~1, Subsection~1:\stepcounter{section}To square $x$, see: \ref{xsquared}.\vfil\ejectAnother equation is:\begin{equation}1+1=2\end{equation}Start Subsection~2, with reset equation numbers:\stepcounter{subsection}\setcounter{equation}{0}(Some text.)\vfil\ejectThe square of $x$ is:\begin{equation}\label{xsquared}x^2\end{equation}\end{document}