I'am preparing manuscript for my students and i would like to add some numerated homework tasks.

For example:

1 section...
2 section...
2.1 subsection...
2.2 subsection...
2.2.1 subsubsection...
2.2.2 homework 1...
2.2.3 homework 2...
3 section...

In other word, I would prefer LyX to take care of those homework counting (1, 2, etc.).

Thanks, Predrag


How this can be done in LyX I don't know. However the code would be something like


\newcommand{\homework}{\stepcounter{homework}\subsubsection{Homework \thehomework}}










enter image description here

  • commands \newcounter{homework}, \stepcounter{homework} and \thehomework{} were something that i was looking for. Thanks a lot! – Predrag_M Oct 18 '18 at 13:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.