General\listofsomethingarbitrary

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
maarten.decat
Posts: 3
Joined: Thu Dec 17, 2009 10:45 pm

\listofsomethingarbitrary

Post by maarten.decat »

Hi all,

I was wondering if it is possible to create a list of something arbitrary? I'm talking about a list at the start of the document, like a \listoffigures or a \listoftables, but not one of those two :)

I'm asking because I'm using a personal command \todo to display todo's in the document and it would be very handy to view a list of those todo's at the start of the document with the page of the todo next to it. Can I create a new command \listoftodos which lists all the occurences of a \todo command?

Kind regards,

Maarten

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

\listofsomethingarbitrary

Post by frabjous »

See the documentation for the tocloft package, page 12ff. under "New List Of...".
maarten.decat
Posts: 3
Joined: Thu Dec 17, 2009 10:45 pm

Re: \listofsomethingarbitrary

Post by maarten.decat »

Awesome! This is exactly what I need :D And it must be a new speed record of answering ;)

Thanks a lot!
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

\listofsomethingarbitrary

Post by localghost »

Or just use todonotes.

Best regards and welcome to the board
Thorsten
maarten.decat
Posts: 3
Joined: Thu Dec 17, 2009 10:45 pm

Re: \listofsomethingarbitrary

Post by maarten.decat »

Well, yeah, that seems to work better than my own written commands :p Thanks!
Post Reply