Text this: Nonsmooth mechanics and analysis