GeneralQuestion about indexes in Listings Package (lstlisting)

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
peterwilson_69
Posts: 4
Joined: Fri Feb 26, 2010 11:05 am

Question about indexes in Listings Package (lstlisting)

Post by peterwilson_69 »

Can someone please help me? I'm trying to get a handle on using indexes with the Listings Package. The official documentation is pretty light on sample code and seems to assume I'm a LaTeX expert already - I'm not.

Some simple examples would probably answer all my questions, however I'm struggling to find any.

How do to I index all words in my listing by C++ keyword?
How do to I index all words in my listing by function name?
How do to I index all words in my listing by OpenGL keyword?
How do to I index comments (or different words) in my listing?

Thanks in advance.
Last edited by peterwilson_69 on Sun Feb 28, 2010 8:27 am, edited 1 time in total.

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

peterwilson_69
Posts: 4
Joined: Fri Feb 26, 2010 11:05 am

Re: Question about indexes in Listings Package (lstlisting)

Post by peterwilson_69 »

I'm working on a solution and will post here when I'm done.
Post Reply