I have followed the steps provided in this answer. But in my case the numbering in coming in the left side of the page. but i want it to appear on the right side.
This is how I defined shloka (verse) environment.
%% Verses
\usepackage{varwidth}
\newcounter{verse}
\setcounter{verse}{0}
\newenvironment{shloka}
{\refstepcounter{verse}
\equation
\let\theequation\theverse
\varwidth[b]{\linewidth}
}
{\endvarwidth
\endequation
\addtocounter{equation}{-1}
}

\documentclass{..to\end{document}to make a diagnosis possible. – Simon Dispa Jan 28 '23 at 18:58