GeneralIndex Command

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
QwareeqMathematics
Posts: 68
Joined: Mon Jul 06, 2009 7:44 pm

Index Command

Post by QwareeqMathematics »

Hi All;

Is there any command or code I can add it in preamble to send every word to index.??

Thank you all

Recommended reading 2024:

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

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

phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

Index Command

Post by phi »

Code: Select all

\def\aaaa#1\par{%
  \bbbb#1 \@nil
  \par
}
\def\bbbb#1 #2\@nil{%
  #1\index{#1}
  \ifx&#2&%
  \else
    \bbbb#2\@nil
  \fi
}
\everypar{\aaaa}
QwareeqMathematics
Posts: 68
Joined: Mon Jul 06, 2009 7:44 pm

Re: Index Command

Post by QwareeqMathematics »

It didn't work with me.
QwareeqMathematics
Posts: 68
Joined: Mon Jul 06, 2009 7:44 pm

Re: Index Command

Post by QwareeqMathematics »

Also, how could I print the Alphabet Letters in Index as:

A
air,3


C
Car,3


Thx
Post Reply