# `TF005` Tags Adding a tag to a requirements adds this requirement to the list of that tag. :::{dropdown} Is a test for :open: :icon: check-circle-fill :color: primary [`SF007` Index requirements by tags](/requirements/SF007) ::: ## Initial state The expected state is the final state of [`TF002` Generate a PDF](/tests/TF002) ## Procedure ### Step 1 Add tags to requirements: edit `spec.yaml` for it to become: ```console $ cat spec.yaml ``` ```yaml kind: requirements category: functional requirements: - id: S01 short: Lorem ipsum long: The first requirement tags: - foo - bar - id: S02 long: The second requirement tags: [bar, baz] ``` ### Step 2 Regenerate the PDF and verify the tags index is present and listing the right requirements ```console $ typst compile specification.typ && open specification.pdf ``` ### Step 3 In the `S01` section, click on the `bar` label to jump to the list of Bar ### Step 4 Verify both `S01` and `S02` are listed