Skip to content

Commit

Permalink
HEADER: Update header's problem counter
Browse files Browse the repository at this point in the history
This patch fixes a bug where the header's problem
counter is not updated when the problem counter is
overriden.

fixes jdavis#8

Signed-off-by: Mark Stenglein <mark@stengle.in>
  • Loading branch information
ocelotsloth committed Dec 7, 2020
1 parent e13596d commit 281b01c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
Binary file modified homework.pdf
Binary file not shown.
1 change: 1 addition & 0 deletions homework.tex
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
\newenvironment{homeworkProblem}[1][-1]{
\ifnum#1>0
\setcounter{homeworkProblemCounter}{#1}
\nobreak\extramarks{Problem \arabic{homeworkProblemCounter}}{}\nobreak{}
\fi
\section{Problem \arabic{homeworkProblemCounter}}
\setcounter{partCounter}{1}
Expand Down

0 comments on commit 281b01c

Please sign in to comment.