Move try_shorten into latex_value from dahelpers