In my document I have a list of requirements (currently these are just text created through a custom command).
One special thing is that these requirements are manually numbered (and not ordered by number). This is very important because that way we can assure requirements stay uniquely identifiable across documents and versions.
How can I make a list of requirements? And how can I refer (clickable in PDF) to my requirements from the text?
I have found several examples of this (for instance using ntheorem), but they all do the numbering automatically.
This could work for example as follows (the requirements are spread across the document):
\requirement{7}{Important requirement}
...
\requirement{8}{Secondary requirement}
...
\requirement{3}{Moved requirement, this must be followed if \refRequirement{7} is not follow}
\listOfRequirements
This would produce the requirements in order of set in the document, with a clickable link to requirement 7, and alist of requirements (sorted by number) in a separate chapter, these indicate the page the requirement is on, as well as a link to them.
enumerate
ordescription
environments or make alist
of my own. Sadly,\label
and\ref
don’t work with the optional parameter to\item
out of the box. That can be solved, though.