I'm attempting to create a rulebook which is structured as follows:
Chapter 1
Rule 1 - Rule name
Rule 2 - Rule name
Chapter 2
Rule 3 - Rule name
It is important for this rule book that I can add new rules and chapters in between other rules/chapters at a later date or just re-order them. Currently I am using just a regular text editor (like Word/Google Docs). This means that every time I do add something new or re-order, I manually have to adjust all the numbers. Additionally, if there are references to one of the chapters/articles I also have to adjust those. This is a lot of work.
I am wondering if using LaTeX would resolve some of these issues, but I'm not an expert so I'm hoping some of you could help me with this. Is it possible to:
- Have an automatic enumeration as I've shown above. That would be an enumeration where the number is not the first thing (i.e. there is always the word "Rule" before the number) and where the enumeration continues through chapters (i.e. it does not reset).
- Be able to reference these rules/chapters in a similar way as you would normally use
\label
and\ref
. These references would then also automatically adjust when something gets added/changed.
Thanks a lot for your help in advance!
enumitem
and itsresume/resume*
keys.\begin{enumerate}[label=Rule \arabic*]
to start the first list,\begin{enumerate}[resume*]
on the others. It is listes in theenumitem
manual.\item
will generate Rule 1, Rule 2 etc. Items under enumerate are referable, they even retain the item formatting (configurable). Have a play with enumitem to see for yourself