I'm a newbie in LaTeX, please forgive me if this is too stupid.
I have some code like this:
\documentclass{article}
\newcounter{qnumber}
\newcommand{\autossection}{\stepcounter{qnumber}\subsection{\theqnumber}}
\begin{document}
\section{A}
\autossection
test
\autossection
test
\autossection
test
\autossection
test
\end{document}
Used to automatically print a progressive number as subsection name.
What I want is the subsection number to be formatted like 001, 002, ... 010, 011, ... 100, 101, etc.
Now I only have 1, 2, ... 10, 11, ... 100, 101, etc.
Is this possible?