I defined my own counter which resets every time I call the environment ``environment1''. It works as expected.
\newcounter{ado}[environment1]
I wanted it to be reseted as well when I call the environment ``environment2''. Is there a simple way like the following?
\newcounter{ado}[environment1,environment2]
I am using
\setcounter{ado}{0}
prior to evironment2 environments but i was looking for anything more appropriate.
\partwhere you can use\makeatletter \@addtoreset{ado}{environment2} \makeatother. – Werner Aug 13 '19 at 19:21