I need to create a table of contents and figures as shown in the below figure using velocity.


I have created the report using velocity. But i don't know, how to create the above, automatically using velocity. Can anyone help me on this.
Thanks in advance