Keywords and Compile

I tried to browse around and find this, but it’s kind of a complex question so I decided to ask for help.

This is my first time compiling a project.

It’s a file of theatre games that I want to share with other drama teachers and actors.

Each game is its own file.

All similarly themed files are in folders that I would like to be separate chapters.

Here are my questions…

How do I control the format of the compiled document? What are my options?

Can keywords be compiled into some kind of glossary listing each file that has the same tag?

Thanks for your help!