Generaltocloft | List of Definitions

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
laailalalaa
Posts: 35
Joined: Thu Oct 27, 2011 5:31 pm

tocloft | List of Definitions

Post by laailalalaa »

Hello,

Using the tocloft package, I created a List of Definitions. From the package documentation and some online examples I came up with:

Code: Select all

\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\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.

Also, 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.

\listoffigures issues a list of figures, indented by about 1 cm from the left. With \listofdefinition the entries begin right at the left margin.

Please advice,
moi
Last edited by localghost on Thu Feb 02, 2012 7:36 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Post Reply