TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I’m writing a document in the latex and it contains some BNF grammar noations in several places of the documents. (I used verbatim package in order to write these BNF grammar notations)

Now I want to add a new section to the document that shows name of all grammar notation and their page numbers. This should be similar to “List of Figures” page.

I’m new to Latex and your help will be very helpful for me.


share|improve this question
up vote 2 down vote accepted

Use the tocloft package. For a short introduction see for example: http://texblog.org/2008/07/13/define-your-own-list-of/

share|improve this answer
+1 thanks a lot for your quick response – Upul Jun 25 '12 at 4:23
If you need more specific advice, you should give a MWE. Otherwise "accepting" an answer is the proper way to show your content. – canaaerus Jun 25 '12 at 4:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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