Ulysses, Writing, Scientific Writing.
documentation7 explains how this works and gives details on various options, such as resetting numbers at which header depth, whether to include the chapter number in the reference or to use section headers instead of numbers. Using text labels to reference objects and setting the numbering scheme