File: changectr.tex

package info (click to toggle)
latexml 0.8.8-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 31,920 kB
  • sloc: xml: 109,048; perl: 30,224; sh: 179; javascript: 28; makefile: 13
file content (33 lines) | stat: -rw-r--r-- 655 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
\documentclass{article}
\usepackage{remreset}
\usepackage{chngcntr}
\begin{document}
\counterwithin{equation}{section}
\section{One}
\begin{equation} a=b+c\end{equation}

\counterwithout{equation}{section}
\section{Two}
\begin{equation} a=b+c\end{equation}

\counterwithin{equation}{section}
\section{Three}
\begin{equation} a=b+c\end{equation}


\counterwithout*{equation}{section}
\section{Four}
\begin{equation} a=b+c\end{equation}

\counterwithin*{equation}{section}
\section{Five}
\begin{equation} a=b+c\end{equation}


\makeatletter
\@removefromreset{equation}{section}
\makeatother
\section{Six}
\begin{equation} a=b+c\end{equation}

\end{document}