Allows selection of lines in units of math

The “math” position is in the “units” section so it is more interesting to allow line selection instead of manual input.