\usepackage{imakeidx} to document preamble,\index{xxx} into document body,\printindex command,xxx.idx file into this page, xxx.ind from this page into your LaTeX - overwrite the file,\index{keyword} - the simpliest index entry,\index{keyword!subkeyword} - nested keyword, max 3 levels,\index{keyword|(} and \index{keyword|)} - open and close multipage index entry,\index{keyword|minor} - mark entry as minor - italic page number,\index{keyword|major} - mark entry as major - underlined page number,\index{keyword|important} - mark entry as important - bold page number,\index{keyword|see{xxx}} - emit see,\index{keyword|seealso{xxx}} - emit see also,\index{keyword|@sort_as} - change item order - quite useful when you neeed e.g. bold keyword entry like here: \index{\textbf{keyword}|@keyword},Note: you can mix options.
Note: expect \indexentry{...}{...} entries in the xxx.idx file.
iv - roman numbers13 - arabic numbers,B-13 - addendums,