我正在编写一个家庭作业问题的 tex 文件,下面代码中的计数器从 $1$ 开始。我怎样才能将计数器设置为从 $5$ 开始?
\setcounter{secnumdepth}{0}
\newcommand{\homeworkProblemName}{}%
\newcounter{homeworkProblemCounter}%
\newenvironment{homeworkProblem}[1][Problem \arabic{homeworkProblemCounter}]%
{\stepcounter{homeworkProblemCounter}%
\renewcommand{\homeworkProblemName}{#1}%
\section{\homeworkProblemName}%
\enterProblemHeader{\homeworkProblemName}}%
{\exitProblemHeader{\homeworkProblemName}}%
答案1
\setcounter{homeworkProblemCounter}{4}