SHARE
TWEET

Untitled

a guest Feb 22nd, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. newenvironment{myproof}{setcounter{equation}{0}begin{proof}}{end{proof}}
  2.      
  3. newcounter{savenumber}
  4. newenvironment{myproof}{%
  5. setcounter{savenumber}{value{equation}}setcounter{equation}{0}%
  6. begin{proof}}%
  7. {end{proof}%
  8. setcounter{equation}{value{savenumber}}%
  9. }
  10.      
  11. %usepackage{amsmath} % preamble
  12. %usepackage{amsthm} % preamble
  13. begin{document}
  14. begin{equation}
  15.     x=1
  16. end{equation}
  17. begin{equation}
  18.     x=2
  19. end{equation}
  20. begin{myproof}
  21.     begin{equation}
  22.         x=3
  23.     end{equation}
  24. end{myproof}
  25. begin{equation}
  26.     x=4
  27. end{equation}
  28. end{document}
  29.      
  30. newcounter{savenumber}
  31. newenvironment{myproof}{%
  32. renewcommand{theequation}{p.arabic{equation}}% Visual identifier
  33. % renewcommand{theHequation}{p.arabic{equation}}% Uncomment if using hyperref
  34. setcounter{savenumber}{value{equation}}setcounter{equation}{0}%
  35. begin{proof}}%
  36. {end{proof}%
  37. setcounter{equation}{value{savenumber}}
  38. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top