Using the tocloft package in LaTeX, I created a List of Definitions. From the package documentation and some online examples I came up with:
\newcommand{\listdefinitionname}{My list of definitions}
\newlistof{definition}{def}{\listdefinitionname}
\newcommand{\definition}[1]{%
\refstepcounter{definition}
\par\noindent\textbf{TheDefinition \thedefinition. #1}
\addcontentsline{def}{definition}
{\protect\numberline{\thechapter.\thedefinition}#1}\par}
...
\listofdefinition
In the "My list of definitions" that is created, for all definitions, the first letter of a definition name superposes the last digit in the definition number. How can I fix this?
The numbering seems to be wrong. If I try
\newlistof[chapter]{definition}{def}{\listdefinitionname}, the definitions throughout 5 chapters are numbered smth like 1.1.1.1,.. 3.3.3.8.. etc. I would like to obtain the numbering from the List of figures, chapternumber.figurenumber, where figurenumber starts with 1 for every new chapter.\listoffiguresissues a list of figures, indented by about 1 cm from the left. With\listofdefinitionthe entries begin right at the left margin. How can I get the List of figures formatting for the list of definitions?
