My university's referencing style requires that for a page range, the digits for the last page should only be those digits that have not changed from the first page, e.g. 653-6, 643-53, 540-750.
I am modifying a copy of
I am very new to TeX and I am struggling to work out how to do this. Can anyone help?