Thereinafter has 2 different meanings across 1 category:
Adverb
in the following part of a given matter, as in a document or speech
in the following part (of a document or speech)