hackl / TikZ-StructuralAnalysis

TikZ Library for Structural Analysis
Other
123 stars 29 forks source link

Playing with indexes #17

Closed agmartin2 closed 6 years ago

agmartin2 commented 6 years ago

Hi,

I have been playing with index creation for stanli.tex, here goes a first cut in case you find it interesting. A complete index is a lot of work, but I think a minimal indexing is done.

For command indexing a \STNLindexcommand is defined, so \STNLindexcommand{command} produces an index entry for \command in tt, but sorted after plain "command" string. "|textit" and "|textbf" can be passed as optional arguments to have index numbers in italics or bold fonts, respectively.

I had to change hyperref option to hypertexnames=true, otherwise links in index pointed to the wrong page (to the absolute page number instead of the relative one).

Both stanli.pdf and example.pdf are refreshed for new changes.

Hope you like it,

Regards,

hackl commented 6 years ago

Thank you very much for your contribution!