achulkov2

Untitled

Sep 29th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. \newcounter{task}
  2. \newcounter{subtask}[task]
  3. \newcommand{\sub}{\refstepcounter{subtask} \par \arabic{subtask}) \ }
  4. \newenvironment{problem}[1][] {
  5. \refstepcounter{task}
  6. \ifthenelse{\equal{#1}{}}{}{\setcounter{task}{#1}}
  7. \textbf{Задача \arabic{task}.}
  8.  
  9. }{~\\}
Advertisement
Add Comment
Please, Sign In to add comment